Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Pow fails with Rails 2.3.2 app. #149

Closed
gt-sdi opened this issue May 27, 2011 · 3 comments
Closed

Pow fails with Rails 2.3.2 app. #149

gt-sdi opened this issue May 27, 2011 · 3 comments

Comments

@gt-sdi
Copy link

gt-sdi commented May 27, 2011

Trying to use Pow with several 2.3.2 apps. ... None are happy. All respond in the same way .... i.e. Get told that the app threw an exception when starting.

From Safari when trying to access the app via Pow:

Your Rack app raised an exception when Pow tried to run it.
Error: Response was not received
at Client._finishRequest (/Users/gtorn/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/client.js:75:27)
at Client. (/Users/gtorn/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/client.js:37:21)
at Client.emit (events.js:81:20)
at Array.0 (net.js:829:12)
at EventEmitter._tickCallback (node.js:126:26)

From the Pow log:

[Fri, 27 May 2011 03:22:14 GMT] DEBUG nack worker 37210 spawned
[Fri, 27 May 2011 03:22:15 GMT] WARNING /Users/gtorn/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:182:in write': closed stream (IOError) [Fri, 27 May 2011 03:22:15 GMT] WARNING from /Users/gtorn/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:182:in handle_exception'
[Fri, 27 May 2011 03:22:15 GMT] WARNING from /Users/gtorn/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:111:in start' [Fri, 27 May 2011 03:22:15 GMT] WARNING from /Users/gtorn/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:13:in run'
[Fri, 27 May 2011 03:22:15 GMT] WARNING from /Users/gtorn/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/bin/nack_worker:4
[Fri, 27 May 2011 03:22:16 GMT] DEBUG nack worker exited

Interesting facts:

  • Watching the app's dev log shows that the request reaches the app and it succeeds ... no exception
  • App runs fine for under rackup
  • Pow is happy with a barebones Rails 3 app.
  • rvm in use ... and is up to date
  • 2.3.2 apps using ruby 1.8.6-p420
  • 3.0.7 app using ruby 1.9.2-p180

Any suggestions gratefully received ... happy to supply any further info requested.

Hope to get this working as Pow looks great!

@steveklabnik
Copy link

You can't upgrade Rails to 2.3.11, or Ruby to 1.8.7? That stuff is WAAAAY out of date. 2.3.2 has some pretty huge security flaws...

I'd be kinda shocked if pow did actually support something so old. Then again, what do I know?

@gt-sdi
Copy link
Author

gt-sdi commented May 31, 2011

Thanks Steve ... certainly don't disagree about the age ... unfortunately the app belongs to a client, so upgrading not within my scope. Since there general indication that Pow will work with "2.3" ... thought I'd try ... if it only works with 2.3.X onwards it would be handy to document this and save somebody else the pain ... there's a lot of "old" apps out there still.

@steveklabnik
Copy link

Most unfortunate. I feel for you. :/

I'm pretty sure I used it with a 2.3.8 app, but mine are all 2.3.11 now, so I'm not 100% sure.

@josh josh closed this as completed Jul 5, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants