Email notifications on Redmine 0.9.3 and Ubuntu 10.04
Added by Ivan Markov over 12 years ago
Im using Ubuntu 10.04 and Readmine 0.9.3.
So here is my problem. I tryed alot of guides as to setup email notifications.
When I edit email.yml in /usr/share/redmine/config/ (or in /etc/redmine/default/) and add
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 user_name: "your_email@gmail.com" password: "your_password"
my administrations page breaks. I go to Administration->Settings and get an Error 500.
Error logs show
Processing SettingsController#index (for xxx.xxx.xxx.xxx at 2012-05-10 01:01:52) [GET] Parameters: {"controller"=>"settings", "action"=>"index"} Rendering template within layouts/admin Rendering settings/edit ActionView::TemplateError (undefined method `[]' for nil:NilClass) on line #6 of app/views/settings/_authentication.rhtml: 3: <div class="box tabular settings"> 4: <p><%= setting_check_box :login_required %></p> 5: 6: <p><%= setting_select :autologin, [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]}, :blank => :label_disabled %></p> 7: 8: <p><%= setting_select :self_registration, [[l(:label_disabled), "0"], 9: [l(:label_registration_activation_by_email), "1"], app/models/setting.rb:100:in `value=' vendor/rails/activerecord/lib/active_record/base.rb:2589:in `send' vendor/rails/activerecord/lib/active_record/base.rb:2589:in `attributes=' vendor/rails/activerecord/lib/active_record/base.rb:2585:in `each' vendor/rails/activerecord/lib/active_record/base.rb:2585:in `attributes=' vendor/rails/activerecord/lib/active_record/base.rb:2285:in `initialize' app/models/setting.rb:166:in `new' app/models/setting.rb:166:in `find_or_default' app/models/setting.rb:107:in `[]' app/models/setting.rb:136:in `autologin' app/helpers/settings_helper.rb:36:in `send' app/helpers/settings_helper.rb:36:in `setting_select' app/views/settings/_authentication.rhtml:6 vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in `call' vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in `capture' vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer' vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in `capture' vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb:460:in `form_tag_in_block' vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb:39:in `form_tag' app/views/settings/_authentication.rhtml:1 vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `send' vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `render' vendor/rails/actionpack/lib/action_view/renderable_partial.rb:20:in `render' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark' vendor/rails/actionpack/lib/action_view/renderable_partial.rb:19:in `render' vendor/rails/actionpack/lib/action_view/template.rb:73:in `render_template' vendor/rails/actionpack/lib/action_view/renderable_partial.rb:45:in `render_partial' vendor/rails/actionpack/lib/action_view/partials.rb:152:in `render_partial' vendor/rails/actionpack/lib/action_view/base.rb:258:in `render' app/views/common/_tabs.rhtml:24 app/views/common/_tabs.rhtml:23:in `each' app/views/common/_tabs.rhtml:23 vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `send' vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `render' vendor/rails/actionpack/lib/action_view/renderable_partial.rb:20:in `render' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark' vendor/rails/actionpack/lib/action_view/renderable_partial.rb:19:in `render' vendor/rails/actionpack/lib/action_view/template.rb:73:in `render_template' vendor/rails/actionpack/lib/action_view/renderable_partial.rb:45:in `render_partial' vendor/rails/actionpack/lib/action_view/partials.rb:152:in `render_partial' vendor/rails/actionpack/lib/action_view/base.rb:258:in `render' app/helpers/application_helper.rb:182:in `render_tabs' app/views/settings/edit.rhtml:3 vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `send' vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `render' vendor/rails/actionpack/lib/action_view/template.rb:73:in `render_template' vendor/rails/actionpack/lib/action_view/base.rb:256:in `render' vendor/rails/actionpack/lib/action_view/base.rb:369:in `_render_with_layout' vendor/rails/actionpack/lib/action_view/base.rb:254:in `render' vendor/rails/actionpack/lib/action_controller/base.rb:1177:in `render_for_file' vendor/rails/actionpack/lib/action_controller/base.rb:905:in `render_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render' vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render' app/controllers/settings_controller.rb:25:in `index' vendor/rails/actionpack/lib/action_controller/base.rb:1256:in `send' vendor/rails/actionpack/lib/action_controller/base.rb:1256:in `perform_action_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in `passenger_orig_perform_action' /usr/lib/ruby/1.8/phusion_passenger/railz/request_handler.rb:65:in `perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send' vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_without_session_management_support' vendor/rails/actionpack/lib/action_controller/session_management.rb:134:in `process_without_test' vendor/rails/actionpack/lib/action_controller/test_process.rb:18:in `process' vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:184:in `handle_request' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:112:in `dispatch_unlocked' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:124:in `synchronize' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:124:in `dispatch' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:134:in `dispatch_cgi' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:41:in `dispatch' /usr/lib/ruby/1.8/phusion_passenger/railz/request_handler.rb:50:in `process_request' /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:in `start' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' /usr/lib/phusion_passenger/passenger-spawn-server:61 Rendering /usr/share/redmine/public/500.html (500 Internal Server Error)
and I tried changing around the settings (removing some lines after changing authentication to :none) just for tests, and then I get the message that email is not configured
Email delivery is not configured, and notifications are disabled. Configure your SMTP server in config/email.yml and restart the application to enable them.
Any help? Please?