Project

General

Profile

some problems about email of redmine

Added by youyou lan about 15 years ago

when i configure email service of redmine , some problem appear.

working process:
1、email.yml.example rename email.yml
2、
  1. Outgoing email settings

production:

delivery_method: :smtp
smtp_settings:
address: "smtp.163.com"
port: 25
domain: "163.com"
authentication: :login
user_name:""
password: "******"

development:

delivery_method: :smtp
smtp_settings:
address: "smtp.163.com"
port: 25
domain: "163.com"
authentication: :login
user_name:""
password: "******"

3、restart service,the problem shows:

=> Booting WEBrick...

/usr/local/ruby/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 9, col 4: ` user_name: ""' (ArgumentError)

from /usr/local/ruby/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/local/ruby/lib/ruby/1.8/yaml.rb:144:in `load_file'
from /usr/local/ruby/lib/ruby/1.8/yaml.rb:143:in `open'
from /usr/local/ruby/lib/ruby/1.8/yaml.rb:143:in `load_file'
from /home/redmine/install/redmine-0.8.4/config/initializers/40-email.rb:6
from /home/redmine/install/redmine-0.8.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'

please give some resolvents.


Replies (1)

RE: some problems about email of redmine - Added by Daniel Herrera about 15 years ago

Hi everyone,

I have a loop problem when I restart my app.

The mongrel.log suggested that the reason for the loop seems to be somewhere in your code. Here is the full traceback:

/home/isci/webapps/sergiprojectes/config/initializers/40-email.rb:12: undefined method `each' for nil:NilClass (NoMethodError)
from /home/isci/webapps/sergiprojectes/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'
from /home/isci/webapps/sergiprojectes/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'
from /home/isci/webapps/sergiprojectes/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
from /home/isci/webapps/sergiprojectes/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'
from /home/isci/webapps/sergiprojectes/vendor/rails/railties/lib/initializer.rb:484:in `load_application_initializers'
from /home/isci/webapps/sergiprojectes/vendor/rails/railties/lib/initializer.rb:483:in `each'
from /home/isci/webapps/sergiprojectes/vendor/rails/railties/lib/initializer.rb:483:in `load_application_initializers'
from /home/isci/webapps/sergiprojectes/vendor/rails/railties/lib/initializer.rb:149:in `process'
from /home/isci/webapps/sergiprojectes/vendor/rails/railties/lib/initializer.rb:97:in `send'
from /home/isci/webapps/sergiprojectes/vendor/rails/railties/lib/initializer.rb:97:in `run'
from /home/isci/webapps/sergiprojectes/config/environment.rb:20
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `call'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `listener'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
from /usr/local/bin/mongrel_rails:19:in `load'
from /usr/local/bin/mongrel_rails:19

is anything we can do to fix this?

Best Regards,

Daniel.

    (1-1/1)