redmine:email:receive_imap throws EOFError
Added by Robert Morbitzer 2 months ago
I want to fetch mails per recieve_imap function.
Environment: Redmine version 5.1.3.stable Ruby version 3.2.3-p157 (2024-01-18) [x86_64-linux-gnu] Rails version 6.1.7.8 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp Redmine settings: Redmine theme Classic SCM: Git 2.43.0 Filesystem
Command¶
rake -f /opt/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host="mail.xxx.de" username="projekt.redmine@xxx.com" password="xxx" port="25" project="xxx" --trace
Error¶
** Invoke redmine:email:receive_imap (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute redmine:email:receive_imap rake aborted! EOFError: end of file reached (EOFError) /var/lib/gems/3.2.0/gems/net-imap-0.3.7/lib/net/imap.rb:2156:in `get_tagged_response' /var/lib/gems/3.2.0/gems/net-imap-0.3.7/lib/net/imap.rb:2224:in `block in send_command' /usr/lib/ruby/3.2.0/monitor.rb:202:in `synchronize' /usr/lib/ruby/3.2.0/monitor.rb:202:in `mon_synchronize' /var/lib/gems/3.2.0/gems/net-imap-0.3.7/lib/net/imap.rb:2206:in `send_command' /var/lib/gems/3.2.0/gems/net-imap-0.3.7/lib/net/imap.rb:1074:in `login' /opt/redmine/lib/redmine/imap.rb:36:in `check' /opt/redmine/lib/tasks/email.rake:122:in `block (4 levels) in <top (required)>' /opt/redmine/app/models/mailer.rb:650:in `with_synched_deliveries' /opt/redmine/lib/tasks/email.rake:121:in `block (3 levels) in <top (required)>' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `block in execute' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `each' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `execute' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/task.rb:188:in `invoke' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/application.rb:188:in `invoke_task' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block (2 levels) in top_level' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `each' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block in top_level' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/application.rb:147:in `run_with_threads' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/application.rb:132:in `top_level' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/application.rb:83:in `block in run' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/application.rb:214:in `standard_exception_handling' /var/lib/gems/3.2.0/gems/rake-13.2.1/lib/rake/application.rb:80:in `run' /var/lib/gems/3.2.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' /usr/local/bin/rake:25:in `load' /usr/local/bin/rake:25:in `<main>' Tasks: TOP => redmine:email:receive_imap
Any help would be appreciated.
Replies (1)
RE: redmine:email:receive_imap throws EOFError - Added by Robert Morbitzer 2 months ago
I Solved it!
I changed the command to following:
rake -f /opt/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host="Internal IP Adress of Mailserver" username="projekt.redmine@xxx.com" password="xxx" project="xxx" --trace
The Mailserver showed an "SSl Accept" Error.
Without the fqdn in host there's no problem and due it's internal it's no problem with an unencrypted connection.
So Thread can be closed.