Project

General

Profile

redmine:email:receive_imap hangs indefinitely

Added by brian tucker over 13 years ago

every time i try to run redmine:email:receive_imap it hangs indefinitely but i don't get any errors. i have let it run for up to 30 minutes and still nothing. the gmail account is not showing any imap activity and the emails are untouched. i would really appreciate any input! here is my trace (note that i ^C the process after letting it run for a long time because it never errors out):

rake -f /home/redmine/public_html/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com username= password=****** port=993 SSL=1 project=support move_on_success=redmine --trace
(in /home/redmine/public_html)
  • Invoke redmine:email:receive_imap (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine:email:receive_imap
    ^Crake aborted!

/usr/lib/ruby/1.8/net/imap.rb:994:in `gets'
/usr/lib/ruby/1.8/net/imap.rb:994:in `get_response'
/usr/lib/ruby/1.8/net/imap.rb:917:in `initialize'
/home/redmine/public_html/lib/redmine/imap.rb:29:in `new'
/home/redmine/public_html/lib/redmine/imap.rb:29:in `check'
/home/redmine/public_html/lib/tasks/email.rake:133
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19


Replies (3)

RE: redmine:email:receive_imap hangs indefinitely - Added by brian tucker over 13 years ago

i have read several threads on here with other people's problems. i don't have any outgoing ports blocked. its using gmail in the google apps context, so its not a problem with the imap server. username/password triple checked.

RE: redmine:email:receive_imap hangs indefinitely - Added by brian tucker over 13 years ago

i finally let it run for over an hour and got the following error:

undefined method `name' for nil:NilClass

this looks like a ruby issue more than a redmine issue. i'll certainly appreciate any additional insight.

RE: redmine:email:receive_imap hangs indefinitely - Added by brian tucker over 13 years ago

i figure it out. i had the latest version of rails installed instead of the required 2.3.5
i installed the 2.3.5 version alongside it which was fine for the main install apparently but not good enough for this process. i had to go through and manually uninstall every 2.3.5 gem, which wasn't that hard actually. there were about 10 or so. 'gem list' told me everything i needed to know.

i reinstalled rails 2.3.5 just to be sure everything was there, then re-installed redmine from scratch and restarted the server. now it works flawlessly

    (1-3/3)