简体   繁体   中英

Heroku app crashes immediately upon startup, works fine locally, tried everything I can think of

EDIT: so I copied my files to a new directory, created a new git repo, created a new heroku app, pushed to the new heroku app, configured a few heroku environment variables, and . . . everything works fine now. Same exact code. Anyone have any clue as to what causes a Heroku app to become corrupted like this? If this happened when we were in production we would be in serious trouble.

I added CarrierWave and Cloudinary to my app, works great locally, crashes on Heroku.

Oddly it worked on a later heroku push (after making a trivial change), and rolling back to that known working release still doesn't fix things (still crashes). Heroku support is looking at it but is slow to respond (their suggestions so far have not worked). Here is a link to the gist of the Heroku logfile:

https://gist.github.com/gosuto/5278659

Any help would be much appreciated, I'm pulling my hair out.

This turned out to be a NewRelic issue. I had newrelic_rpm in my Gemfile and apparently that conflicts with either CarrierWave or Cloudinary. I removed newrelic_rpm from my Gemfile and all is right from the world.

I am waiting on word back from Heroku and NewRelic on whether or not I can specify a specific version of newrelic_rpm to avoid this issue. Once I get more details I will update this answer.

Ben

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM