Defect #8104

Sending email: end of file reached

Added by Anton Romanov about 11 years ago. Updated almost 11 years ago.

Status:NewStart date:2011-04-08
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Email notifications
Target version:-
Resolution: Affected version:1.1.1

Description

When I try to send test email, I see error message:

An error occurred while sending mail (end of file reached)

Redmine v. 1.1.1.stable (MySQL)

Ruby:

/var/lib/redmine/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
About your application's environment
Ruby version              1.8.7 (x86_64-linux)
RubyGems version          1.3.7
Rack version              1.0
Rails version             2.3.5
Active Record version     2.3.5
Active Resource version   2.3.5
Action Mailer version     2.3.5
Active Support version    2.3.5
Edge Rails revision       unknown
Application root          /var/lib/redmine
Environment               production
Database adapter          mysql
Database schema version   20101114115359

config/email.yml:

production:
  delivery_method: :smtp
  smtp_settings:
    address: smtp.spaceweb.ru
    port: 25
    domain: MySiteDomain.ru
    authentication: :login
    user_name: "USER" 
    password: "PASSWORD" 

How can I fix it?

sending_email.log (9.21 KB) Anton Romanov, 2011-04-09 08:11

History

#1 Updated by Etienne Massip about 11 years ago

Check your log files (Redmine's production.log and your Ruby application server's).

#2 Updated by Anton Romanov about 11 years ago

No errors about failed sending message in production.log even on debug log level.

#3 Updated by Anton Romanov about 11 years ago

In apache logs I see nothing about failed sending.

#4 Updated by Etienne Massip about 11 years ago

Could you try to run Redmine with ruby script/server to see if this reproduces ?

Did you modify your app/views/mailer/test.text.(html|plain).rhtml contents ?

#5 Updated by Anton Romanov about 11 years ago

Etienne Massip wrote:

Could you try to run Redmine with ruby script/server to see if this reproduces ?

What is it and how can I run it?

Did you modify your app/views/mailer/test.text.(html|plain).rhtml contents ?

No, I didn't modify these files.

#6 Updated by Etienne Massip about 11 years ago

Just stop your Redmine instance, go to your Redmine installation directory and run ruby script/server RAILS_ENV=production.

#7 Updated by Anton Romanov almost 11 years ago

I tried to upgrade to version 1.2.1 and after that I see same error.
When run ruby script/server RAILS_ENV=production it show:

$ ruby script/server RAILS_ENV=production
=> Booting WEBrick
=> Rails 2.3.11 application starting on http://0.0.0.0:3000
/var/lib/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:62:in `establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified)
    from /var/lib/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:in `establish_connection'
    from /var/lib/redmine-1.2.1/config/../vendor/rails/railties/lib/initializer.rb:438:in `initialize_database'
    from /var/lib/redmine-1.2.1/config/../vendor/rails/railties/lib/initializer.rb:141:in `process'
    from /var/lib/redmine-1.2.1/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
    from /var/lib/redmine-1.2.1/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
    from /var/lib/redmine-1.2.1/config/environment.rb:20
    from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /var/lib/redmine-1.2.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
    from /var/lib/redmine-1.2.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
    from /var/lib/redmine-1.2.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
    from /var/lib/redmine-1.2.1/vendor/rails/railties/lib/commands/server.rb:84
    from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from script/server:3

And nothing working.

Also available in: Atom PDF