Mateusz Winiarski
2008-Jul-06 06:42 UTC
[Instantrails-users] localhost running application
I''ve reinstalled InstantRails-2.0-win downloading from instantrails website. Regenerated configuration Changed Apache port to 81 (in config file) - there is another app on port 80. Turned off proxy. Run: cookbook on 3001 (waiting...) Run: beginners tutorial: Routing in Rails 2.0... (waiting...) Run another rails app (waiting...) Every time the same loop saying that: mongrel_rails.rb:19: Unhandled listen loop exception #(Errno::ENOTSOCK: An operation was attempted on something that is not a socket.). Generally there is code in Ruby, where server is listening for connection using "accept" method, but something is wrong (so loop is server''s loop) and error handling prints error and goes into the loop again. Socket is: (protocol, local IP, local port, remote IP, remote port) So I guess accept receives not full socket information, or data type is mismatched. There is no problem with firewall, cause it prompts to allow connection. Any suggestions ? Mateusz Winiarski www.winiarski.ugu.pl www.mawiniarski.net78.net -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/instantrails-users/attachments/20080706/2dff9671/attachment.html>
What URL are you trying to hit? http://localhost:3001 If so, then Apache is not involved at all, you are trying to connect directly to mongrel. Connecting through apache would require you to use www.mycookbook.com since that is what apache is keying off to determine the server to proxy to. I would also suggest trying it with the firewall disabled. While it is prompting to allow the connection it may be having unintended consequences ;-) Hope that helps. If not, is there another machine you can try it on to try and isolate the problem? --Bill -----Original Message----- From: instantrails-users-bounces at rubyforge.org on behalf of Mateusz Winiarski Sent: Sun 7/6/2008 1:42 AM To: instantrails-users at rubyforge.org Subject: Re: [Instantrails-users] localhost running application I''ve reinstalled InstantRails-2.0-win downloading from instantrails website. Regenerated configuration Changed Apache port to 81 (in config file) - there is another app on port 80. Turned off proxy. Run: cookbook on 3001 (waiting...) Run: beginners tutorial: Routing in Rails 2.0... (waiting...) Run another rails app (waiting...) Every time the same loop saying that: mongrel_rails.rb:19: Unhandled listen loop exception #(Errno::ENOTSOCK: An operation was attempted on something that is not a socket.). Generally there is code in Ruby, where server is listening for connection using "accept" method, but something is wrong (so loop is server''s loop) and error handling prints error and goes into the loop again. Socket is: (protocol, local IP, local port, remote IP, remote port) So I guess accept receives not full socket information, or data type is mismatched. There is no problem with firewall, cause it prompts to allow connection. Any suggestions ? Mateusz Winiarski www.winiarski.ugu.pl www.mawiniarski.net78.net -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/instantrails-users/attachments/20080707/272295cc/attachment.html>