Project

General

Profile

Redmine 1.0 Stack. Test email works- notifications don't work

Added by John C almost 14 years ago

Sending test email from Redmine, it works fine. (I am receiving the test email properly) However, email notifications are not working. (User is enabled to receive notifications. All basics are covered) Really desperate to find a solution for this asap.

While running

RAILS_ENV=PRODUCTION script/about

I get the following

./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
./script/../config/../vendor/rails/railties/lib/initializer.rb:386:in `read’: No such file or directory – /opt/bitnami/apps/redmine/config/environments/PRODUCTION.rb (Errno::ENOENT)
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:386:in `load_environment’
from /opt/bitnami/apps/redmine/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings’
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:379:in `load_environment’
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:137:in `process’
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:113:in `send’
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:113:in `run’
from /opt/bitnami/apps/redmine/config/environment.rb:20
from /opt/bitnami/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’
from /opt/bitnami/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’
from /opt/bitnami/apps/redmine/vendor/rails/railties/lib/commands/about.rb:1
from /opt/bitnami/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’
from /opt/bitnami/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’
from script/about:4

production.log looks like the following - First entry is the test email which is delivered properly

Processing AdminController#test_email (for 122.167.16.128 at 2010-11-25 02:19:32) [GET]
Parameters: {"action"=>"test_email", "controller"=>"admin"}Sending email notification to: mail to Redirected to http://204.236.133.113/redmine/settings/edit?tab=notificationsCompleted in 2374ms (DB: 2) | 302 Found [http://204.236.133.113/redmine/admin/test_email]

Processing IssuesController#create (for 122.167.16.128 at 2010-11-25 02:20:01) [POST]
Parameters: {"commit"=>"Create", "project_id"=>"br1", "action"=>"create", "authenticity_token"=>"2VxLej97YIp8ldUbZlzLs7gAvMywt4SU3PCJvo0O9cQ=", "issue"=>{"start_date"=>"2010-11-25", "estimated_hours"=>"", "priority_id"=>"4", "done_ratio"=>"0", "assigned_to_id"=>"1", "subject"=>"xyz", "category_id"=>"", "tracker_id"=>"1", "due_date"=>"", "status_id"=>"1", "description"=>"asdf", "watcher_user_ids"=>["1"]}, "controller"=>"issues", "attachments"=>{"1"=>{"description"=>""}}}
Redirected to http://204.236.133.113/redmine/issues/29
Completed in 487ms (DB: 34) | 302 Found [http://204.236.133.113/redmine/projects/br1/issues]

Processing IssuesController#show (for 122.167.16.128 at 2010-11-25 02:20:02) [GET]
Parameters: {"action"=>"show", "id"=>"29", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml
Completed in 778ms (View: 631, DB: 44) | 200 OK [http://204.236.133.113/redmine/issues/29]


Replies (2)

RE: Redmine 1.0 Stack. Test email works- notifications don't work - Added by John C almost 14 years ago

Just to update on the above.
If I attach a File to a project, email notification work. It doesn't work anywhere else. (Everything is ticked for email update in settings)

Following is the production log, showing file creation and email activity. This is bitnami 1.0 stack of Redmine

Processing FilesController#new (for 122.167.16.128 at 2010-11-25 04:43:16) [GET]
  Parameters: {"action"=>"new", "id"=>"br1", "controller"=>"files"}
Rendering template within layouts/base
Rendering files/new
Completed in 396ms (View: 361, DB: 2) | 200 OK [http://204.236.133.113/redmine/projects/br1/files/new]

Processing FilesController#new (for 122.167.16.128 at 2010-11-25 04:43:51) [POST]
  Parameters: {"commit"=>"Add", "action"=>"new", "authenticity_token"=>"2VxLej97YIp8ldUbZlzLs7gAvMywt4SU3PCJvo0O9cQ=", "id"=>"br1", "controller"=>"files", "attachments"=>{"1"=>{"file"=>#<File:/tmp/RackMultipart20101125-12064-1vjtqzl-0>, "description"=>"parameters"}}}
Sending email notification to: xxx@xx.com
Sent mail to
Redirected to http://204.236.133.113/redmine/projects/br1/files
Completed in 2410ms (DB: 7) | 302 Found [http://204.236.133.113/redmine/projects/br1/files/new]

RE: Redmine 1.0 Stack. Test email works- notifications don't work - Added by Felix Schäfer almost 14 years ago

You need to run RAILS_ENV=production script/about for the info script to work correctly.

    (1-2/2)