Content
You are here:
Email configuration issue
Added by Phason Electronics over 10 years ago
When I went through installation and initial configuration, I commented out the e-mail configuration section just to eliminate complications. Now that I’ve got things installed, I want to configure the e-mail. When I run comment the e-mail section of my configuration.yml
file, I get the passenger “Web application could not be started” error with the following information.
(/home/openproject/openproject/config/configuration.yml): did not find expected key while parsing a block mapping at line 102 column 1 (Psych::SyntaxError) /home/svr1/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:370:in `parse' /home/svr1/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:370:in `parse_stream' /home/svr1/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:318:in `parse' /home/svr1/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:245:in `load' /home/svr1/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:464:in `block in load_file' /home/svr1/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:464:in `open' /home/svr1/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:464:in `load_file' /home/openproject/openproject/lib/open_project/configuration.rb:145:in `load_config_from_file' /home/openproject/openproject/lib/open_project/configuration.rb:79:in `load' /home/openproject/openproject/lib/open_project/configuration.rb:104:in `[]' /home/openproject/openproject/config/application.rb:130:in `<class:Application>' /home/openproject/openproject/config/application.rb:63:in `<module:OpenProject>' /home/openproject/openproject/config/application.rb:62:in `<top (required)>' /home/openproject/openproject/config/environment.rb:32:in `require' /home/openproject/openproject/config/environment.rb:32:in `<top (required)>' config.ru:32:in `require' config.ru:32:in `block in <main>' /home/svr1/.rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval' /home/svr1/.rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize' config.ru:1:in `new' config.ru:1:in `<main>' /home/svr1/.rvm/gems/ruby-2.1.1/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:112:in `eval' /home/svr1/.rvm/gems/ruby-2.1.1/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:112:in `preload_app' /home/svr1/.rvm/gems/ruby-2.1.1/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:158:in `<module:App>' /home/svr1/.rvm/gems/ruby-2.1.1/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /home/svr1/.rvm/gems/ruby-2.1.1/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:28:in `<main>'
I have read through the e-mail configuration in some different instructions. I have seen it formatted differently in some of them. I have attached my configuration file. What am I doing incorrectly?
Replies (4)
White space is important for .yml files — it might be the indentation which needs a fix
note that there are exactly two spaces (not 5) in front of the smtp settings.
I did not know that.
I went back and re-copied the
configuration.yml.example
and then edited it again. The spacing and format is exactly as it is in the example. The only changes I have made to the configuration file are modifying the e-mail settings and enabling thememcache
on line 146. I attached the file again, after re-copying it.One thing I noticed is that the example has quotation marks around the username and password. It doesn’t work for me at the moment either way, but are the quotation marks necessary?
This time I also attached the complete passenger error text.
Is there something else that I have not installed or configured correctly
I got past the passenger error. Here is the format I have for the e-mail configuration in the
configuration.yml
file.However, when I try to do something in open project that requires sending an e-mail notification, I get a 500 error. When I check the log, this is what it says.
I have tried setting the smtp_port in the configuration file to 30 and 587, but the error message is the same, including the port.
I am still stumped on this e-mail issue and have not gotten any farther. Is there something I have done incorrectly, or that I can try?
Regards,
Chris