Forum: Ruby-core [RubySpec #3553] getaddrinfo: The storage control blocks were destroyed "windows ruby not being able

Posted by Leonardo De Araujo (Guest)
on 2010-07-09 04:23
(Received via mailing list)
RubySpec #3553: getaddrinfo: The storage control blocks were destroyed 
"windows ruby not being able to handle IPv6"
http://redmine.ruby-lang.org/issues/show/3553

Author: Leonardo De Araujo
Status: Open, Priority: Normal

Hi all,
I've installed Redmine 0.9.5 on Windows and I get an error when 
executing the following command:

C:\Ruby187\bin>rake -f "c:\Program Files\redmine-0.9.5\Rakefile" 
redmine:email:receive_imap RAILS_ENV="production" host=imap.google.com 
username=redmine@xxxxxxxxxx.ca password=xxxxxxxx ssl=SSL port=993 
--trace

Result

(in C:/Ruby187/bin)
Invoke redmine:email:receive_imap (first_time)
Invoke environment (first_time)
Execute environment
Execute redmine:email:receive_imap
rake aborted!
getaddrinfo: The storage control blocks were destroyed.
C:/Ruby187/lib/ruby/1.8/net/imap.rb:888:in `initialize'
C:/Ruby187/lib/ruby/1.8/net/imap.rb:888:in `open'
C:/Ruby187/lib/ruby/1.8/net/imap.rb:888:in `initialize'
c:/Program Files/redmine-0.9.5/lib/redmine/imap.rb:29:in `new'
c:/Program Files/redmine-0.9.5/lib/redmine/imap.rb:29:in `check'
c:/Program Files/redmine-0.9.5/lib/tasks/email.rake:133
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in 
`execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in 
`execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in 
`invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in 
`invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in 
`invoke_task'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in 
`top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in 
`top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_excep
tion_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in 
`top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_excep
tion_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Ruby187/bin/rake:19:in `load'
C:/Ruby187/bin/rake:19

Some research has pointed to a problem with "windows ruby not being able 
to handle IPv6"

I logged an issue at Redmine issuelog and they pointed me here.

Any idea / suggestions on how to address this issue?

Thanks

Leonardo
Posted by Roger Pack (Guest)
on 2010-07-09 07:07
(Received via mailing list)
Issue #3553 has been updated by Roger Pack.


got this once "The storage control blocks were destroyed."
For me it meant "try it again your wireless is flaky" but I assume not 
so in your case?
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3553
Posted by Leonardo De Araujo (Guest)
on 2010-07-09 21:33
(Received via mailing list)
Issue #3553 has been updated by Leonardo De Araujo.


Not really.. good try though... ;-)
It is a amazon cloud instance server running Windows Server 2008. I 
heard that Ruby on Windows is getting trouble with IPv6...
Not sure what to make of that...

If I disable IPv6 at that server, would that work or kill my rig?

Thanks

Leo
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3553
Posted by Luis Lavena (Guest)
on 2010-07-09 22:04
(Received via mailing list)
Issue #3553 has been updated by Luis Lavena.


Two things:

1) move Redmine installation outside Program Files, path with spaces are 
not good for Ruby.

2) From the folder installation, seems you're using RubyInstaller 
(Ruby187). That is correct?

Can you create a simple test case of invoking imap *without* Redmine 
installation? In that way, we can try reproduce the issue.

The simplest test case that exposes the issue the faster we can 
investigate and perhaps solve the issue.


----------------------------------------
http://redmine.ruby-lang.org/issues/show/3553
Posted by Shikha A. (shikha_a)
on 2010-12-15 03:05
hey Leonardo:

I am getting the same error. Do you remember how you fixed this issuw?
Posted by Sumith Gamage (banduwgs)
on 2012-10-10 01:19
Dear Falks, I am too getting the same issue. Any help from a person who
already sorted it please... - Tks, SG

Ref:
D:\BitNami\ruby\bin>rake -f "D:\BitNami\apps\redmine\htdocs\Rakefile"
--trace redmine:email:receive_imap RAILS_ENV="production" \\
host=imap.google.com username=xxx@gmail.com password=yyy
** Invoke redmine:email:receive_imap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:email:receive_imap
rake aborted!
getaddrinfo: The storage control blocks were destroyed.
D:/BitNami/ruby/lib/ruby/1.8/net/imap.rb:888:in `initialize'
D:/BitNami/ruby/lib/ruby/1.8/net/imap.rb:888:in `open'
D:/BitNami/ruby/lib/ruby/1.8/net/imap.rb:888:in `initialize'
D:/BitNami/apps/redmine/htdocs/lib/redmine/imap.rb:29:in `new'
D:/BitNami/apps/redmine/htdocs/lib/redmine/imap.rb:29:in `check'
D:/BitNami/apps/redmine/htdocs/lib/tasks/email.rake:133
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake
task.rb:205:in `call'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake
task.rb:205:in `execute'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake
task.rb:200:in `each'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
`execute'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in
`invoke_with_call_chain'
D:/BitNami/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
`invoke_with_call_chain'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
`invoke'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in
`invoke_task'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
`top_level'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
`each'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
`top_level'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
`standard_exception_handling'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
`top_level'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in
`run'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
`standard_exception_handling'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in
`run'
D:/BitNami/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
D:/BitNami/ruby/bin/rake:19:in `load'
D:/BitNami/ruby/bin/rake:19
Tasks: TOP => redmine:email:receive_imap
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.