ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Sending notification fails (Bug #1240)
Description
I'm getting this message on the logs.
... Sending email notification to: endersonmaia@<OMITED> The following error occured while sending email notification: "Expected /var/www/chiliproject.production/app/models/version.rb to define VERSION". Check your configuration in config/configuration.yml. ...
I've migrates chiliproject to another server, and now I'm getting this message.
Everything in the chiliproject code are the same between deploys, just the database config is different.
The different is in the ruby version, I'm using ruby 1.9.3-p385.
I'm running the test suite right now to see if I get any clues.
History
Updated by Enderson Maia at 2013-02-19 10:47 pm
Forget to mention about the log message.
I can't find anywhere that has a VERSION constant to be defined, or any reference to this constant.
Updated by Enderson Maia at 2013-02-20 02:04 pm
THAT'S NOT THE CORRECT SOLUTION
When I added the constant VERSION in the file app/models/version.rb, I sovled the problem.
... VERSION = '0.1' class Version < ActiveRecord::Base ...
I think it has something to do with load paths, but not figured the right way to solve it yet.
Updated by Holger Just at 2013-02-20 09:05 pm
This should definitely not be necessary. I suspect you have some plugins installed which mess with the load order. Please paste the full stack trace from the log. Also, please specify your ruby version and the complete list of your custom plugins.
- Status changed from Open to Needs more information
Updated by Enderson Maia at 2013-05-22 09:18 pm
I was using the Rails plugin action_mailer_optional_tls
.
I removed vendor/plugins/action_mailer_optional_tls
, and changed the config/configuration.yml
:
email_delivery: delivery_method: :smtp smtp_settings: - tls: true + enable_starttls_auto: true address: "smtp.gmail.com" port: 587
Solved my problem, I'm closing the issue.
- Status changed from Needs more information to Closed