Re: Can I issue a "heroku restart" from within my app that's running on Heroku?

2011-11-16 Thread Corey Trager
I migrated from the aspen stack to the bamboo 1.9.2 stack and now this *DOES* work: heroku = Heroku::Client.new("YOUR EMAIL", "YOUR PASSWORD") heroku.ps_restart("hacknews") -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send e

Re: Can I issue a "heroku restart" from within my app that's running on Heroku?

2011-11-16 Thread John McCaffrey
Some of the posts mention https, content-length, and redirects, so If you could track the urls that cause the problem, that might be helpful. (you may have to track the url BEFORE the one that gets the EOF)

Re: Can I issue a "heroku restart" from within my app that's running on Heroku?

2011-11-16 Thread Corey Trager
John - I have been trying to find the real heart of the issue, which again, is that the app gets into a state. That an individual request for a URL fails, no problem. That requests continue to fail, that means there's some sort of state change somewhere. But there is no state in MY logic. The

Re: Can I issue a "heroku restart" from within my app that's running on Heroku?

2011-11-16 Thread John McCaffrey
Again, I would suggest that you try to find the real heart of the issue and find ways to debug/instrument the code to figure out what is happening that gets it stuck. Maybe opening a ticket with the heroku team may help (maybe its something they've seen, or they have a good suggestion for how to d

Re: Can I issue a "heroku restart" from within my app that's running on Heroku?

2011-11-16 Thread Neil Middleton
I would guess the commands you're issuing don't match the stack your on. All you should need is the credentials and the app name for the gem, but saying this I've only done this on Cedar so YMMV. Neil On 16 Nov 2011, at 14:09, Corey Trager wrote: > Not working yet. > > Testing on my dev box,

Re: Can I issue a "heroku restart" from within my app that's running on Heroku?

2011-11-16 Thread Corey Trager
Not working yet. Testing on my dev box, heroku.restart resulted in a 404 but heroku.ps_restart DID restart my app running at Heroku, so that was promising. That is, my local app A could restart my Heroku app B. But, when deployed to Heroku and tried to have B restart itself, ps_restart resulted i