Project

General

Profile

Configuration.yml is not a valid YAML file and could not be loaded - error comes after editing smtp settings for email configuration

Added by Rajesh R almost 10 years ago

Hello all,

My redmine configuration is:
Ruby version 1.8.7 (i386-linux)
RubyGems version 1.3.7
Rack version 1.1.6
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Application root /var/www/redmine-1.4.4
Environment production
Database adapter mysql
Database schema version 20120301153455

Operating system :CentOS 6.2

I change the SMTP settings in /var/www/redmine/config/configuration.yml file

  1. ==== SMTP server at using TLS (GMail) #
    production:
    email_delivery:
    delivery_method: :smtp
    smtp_settings:
    tls: true
    enable_starttls_auto: true
    address: "smtp.gmail.com"
    port: 587
    domain: "smtp.gmail.com"
    authentication: :plain
    username: ""
    password: "password"

I save this file, then go to /var/www/redmine, run the following command-
#ruby script/server webrick -e production

I get the following error:
=> Booting WEBrick
=> Rails 2.3.14 application starting on http://0.0.0.0:3000
Your Redmine configuration file located at /var/www/redmine-1.4.4/config/configuration file is not a valid YAML file and could not be loaded.

when I try to open redmine in a browser window by typing the redmine server's IP address, I get "Web Application could not be started" error ( I have attached the page here). This error comes only when I restart the htttpd service. If I dont restart the service, I am able to open redmine in a browser window.

If I comment out the SMTP server settings in the configuration.yml file, I am able to run the #ruby script/server webrick -e production command with no errors and redmine runs fine.

Pls help as I am newbie to redmine and I have to configure email notification.
P.S: I am using gmail smtp settings for testing. If this works, then I need to configure an external mail server hosted on the web server service provider used by my company.

Any guidance will be greatly appreciated.

Regards,

Rajesh


Replies (2)

RE: Configuration.yml is not a valid YAML file and could not be loaded - error comes after editing smtp settings for email configuration - Added by Rajesh R over 9 years ago

Hello Jan,

Thanks a lot for your help.

I opened the configuration.yml file, commented out the smtp settings under SMTP server at using TLS (GMAIL), then edited the smtp settings under #default configuration options for all environments. I changed the options as per my email server settings. Tested my redmine installation using ruby script/server command and restarted httpd service.

Now I am able to send email notification using the tracker tool.

Thanks for your help.

    (1-2/2)