Project

General

Profile

Problems email [Gmail] config in Redmine 3.0.0

Added by Daniel Perez Crespo over 9 years ago

Hello I´m trying to config Gmail in Redmine 3.0.0 Stable Version 29-02-2015.

For That i go to my configuration.yml file and remove '#' into de Gmail configuration, something like that.

production:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: "smtp.gmail.com"
port: 587
domain: "smtp.gmail.com"
authentication: :plain
user_name: ""
password: "mypassword"

I read in another post about config mail in redmine 2.x.x where people said write this without quotes in address, domain and password, and keep quotes in user_name variable. i was testing that but it doesn´t work.

when i restart apache server the Error.log show the following message.

[ 2015-02-28 22:26:10.0630 27673/7fcfd08fa700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /var/www/html/redmine: An error occured while starting up the preloader.
Error ID: e5907761
Error details saved to: /tmp/passenger-error-SMwmln.html
Message from application: (<unknown>): found character that cannot start any token while scanning for the next token at line 56 column 3 (Psych::SyntaxError)
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/psych.rb:370:in `parse'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/psych.rb:370:in `parse_stream'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/psych.rb:318:in `parse'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/psych.rb:245:in `load'
/var/www/html/redmine/lib/redmine/configuration.rb:86:in `load_from_yaml'
/var/www/html/redmine/lib/redmine/configuration.rb:42:in `load'
/var/www/html/redmine/lib/redmine/configuration.rb:67:in `[]'
/var/www/html/redmine/lib/redmine/thumbnail.rb:24:in `<module:Thumbnail>'
/var/www/html/redmine/lib/redmine/thumbnail.rb:21:in `<module:Redmine>'
/var/www/html/redmine/lib/redmine/thumbnail.rb:20:in `<top (required)>'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/var/www/html/redmine/lib/redmine.rb:47:in `<top (required)>'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
/var/www/html/redmine/config/initializers/30-redmine.rb:6:in `<top (required)>'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `block in load'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:652:in `block in load_config_initializer'
.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:166:in `instrument'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:651:in `load_config_initializer'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:615:in `each'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:615:in `block in <class:Engine>'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:420:in `block (2 levels) in each_strongly_connected_component_from'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:419:in `block in each_strongly_connected_component_from'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `each'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `tsort_each_child'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:413:in `call'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:413:in `each_strongly_connected_component_from'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:345:in `each'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:345:in `call'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
/var/www/html/redmine/config/environment.rb:14:in `<top (required)>'
config.ru:3:in `require'
config.ru:3:in `block in <main>'
.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/builder.rb:55:in `instance_eval'
.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/builder.rb:55:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
.rvm/gems/ruby-2.2.0/gems/passenger-4.0.59/helper-scripts/rack-preloader.rb:112:in `eval'
.rvm/gems/ruby-2.2.0/gems/passenger-4.0.59/helper-scripts/rack-preloader.rb:112:in `preload_app'
.rvm/gems/ruby-2.2.0/gems/passenger-4.0.59/helper-scripts/rack-preloader.rb:158:in `<module:App>'
.rvm/gems/ruby-2.2.0/gems/passenger-4.0.59/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
.rvm/gems/ruby-2.2.0/gems/passenger-4.0.59/helper-scripts/rack-preloader.rb:28:in `<main>'

Someone knows what is wrong?

Someone has email configuration working with redmine 3.0.0?

Thanks in Advance


Replies (1)

RE: Problems email [Gmail] config in Redmine 3.0.0 - Added by Fernando Lainez over 9 years ago

Hi Daniel, after a while I manage to properly set up the email configuration on Redmine 3.0.0 stable.

I edited the file configuration.yml, as you did, but I did not place the data in Gmail configuration, I wrote it at the bottom of the document.

I used quotes only in user_name, and tried to not delete spaces or add any tabs to the lines, in order to keep the indent structure (I believe it's a yaml file, and tab indentation is not allowed in yaml files):

  1. specific configuration options for production environment
  2. that overrides the default ones
    production:
    email_delivery:
    delivery_method: :smtp
    smtp_settings:
    enable_starttls_auto: true
    address: smtp.gmail.com
    port: 587
    domain: smtp.gmail.com
    authentication: :login
    user_name: ""
    password: your_password
  1. specific configuration options for development environment
  2. that overrides the default ones
    development:

If you still have not solve the problem I hope this helps you.

Un saludo.

    (1-1/1)