Command received in Invalid state when trying to use redmine:email:receive_imap
Added by Sjonni Jónsson about 14 years ago
I am trying to get the receive_imap function to work.
I type the following :rake -f "C:\Program Files\BitNami Redmine\apps\redmine\Rakefile" redmine:email:receive_imap RAILS_ENV="production" host=xxxx username=xxxx password=xxxx
@(in C:/Program Files/BitNami Redmine/ruby/bin)
- Invoke redmine:email:receive_imap (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute redmine:email:receive_imap
rake aborted!
Command received in Invalid state.
C:/Program Files/BitNami Redmine/ruby/lib/ruby/1.8/net/imap.rb:985:in `pick_up_t
agged_response'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/1.8/net/imap.rb:976:in `get_tagge
d_response'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/1.8/net/imap.rb:1034:in `send_com
mand'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/1.8/monitor.rb:242:in `synchroniz
e'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/1.8/net/imap.rb:1019:in `send_com
mand'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/1.8/net/imap.rb:380:in `login'
C:/Program Files/BitNami Redmine/apps/redmine/lib/redmine/imap.rb:30:in `check'
C:/Program Files/BitNami Redmine/apps/redmine/lib/tasks/email.rake:133
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:636:in `call'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:636:in `execute'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:631:in `each'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:631:in `execute'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:597:in `invoke_with_call_chain'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/1.8/monitor.rb:242:in `synchroniz
e'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:590:in `invoke_with_call_chain'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:583:in `invoke'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:2051:in `invoke_task'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:2029:in `top_level'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:2029:in `each'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:2029:in `top_level'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:2068:in `standard_exception_handling'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:2023:in `top_level'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:2001:in `run'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:2068:in `standard_exception_handling'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake
.rb:1998:in `run'
C:/Program Files/BitNami Redmine/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake
:31
C:/Program Files/BitNami Redmine/ruby/bin/rake:19:in `load'
C:/Program Files/BitNami Redmine/ruby/bin/rake:19
C:\Program Files\BitNami Redmine\ruby\bin>@
Any Ideas what the problem is?
Replies (3)
RE: Command received in Invalid state when trying to use redmine:email:receive_imap
-
Added by Felix Schäfer about 14 years ago
The IMAP login command borks, you probably have an error in your configuration.
RE: Command received in Invalid state when trying to use redmine:email:receive_imap
-
Added by Stephen Zappia almost 14 years ago
Felix Schäfer wrote:
The IMAP login command borks, you probably have an error in your configuration.
Do you mean the configuration on the mail server or the Redmine server?
I'm getting the same error. Redmine is installed on a Linux box and is trying to connect to a Windows server running Exchange
Output:
root@ded87 [/home/nucleus/rails_apps/redmine]# rake -f /home/nucleus/rails_apps/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=xxx username=xxx password=xxx --trace(in /home/nucleus/rails_apps/redmine)
- Invoke redmine:email:receive_imap (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute redmine:email:receive_imap
rake aborted!
Command received in Invalid state.
/usr/lib/ruby/1.8/net/imap.rb:985:in `pick_up_tagged_response'
/usr/lib/ruby/1.8/net/imap.rb:976:in `get_tagged_response'
/usr/lib/ruby/1.8/net/imap.rb:1034:in `send_command'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/net/imap.rb:1019:in `send_command'
/usr/lib/ruby/1.8/net/imap.rb:380:in `login'
/home/nucleus/rails_apps/redmine/lib/redmine/imap.rb:30:in `check'
/home/nucleus/rails_apps/redmine/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
RE: Command received in Invalid state when trying to use redmine:email:receive_imap
-
Added by Stephen Zappia almost 14 years ago
Furthermore I tried connecting using SSL and got a different error. Any ideas?
- Invoke redmine:email:receive_imap (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute redmine:email:receive_imap
rake aborted!
SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
/usr/lib/ruby/1.8/net/imap.rb:904:in `connect'
/usr/lib/ruby/1.8/net/imap.rb:904:in `initialize'
/home/nucleus/rails_apps/redmine/lib/redmine/imap.rb:29:in `new'
/home/nucleus/rails_apps/redmine/lib/redmine/imap.rb:29:in `check'
/home/nucleus/rails_apps/redmine/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