Open davidmeirlevy opened 3 years ago
It looks like it's not only me, but also other people that tried to deploy into Heroku in the last few weeks.
I also see something strange in my logs, around this line:
'/app/node_modules/pm2/lib/binaries/Runtime4Docker.js',
why did the pm2-runtime thought my app is inside a docker environment? I believe Heroku doesn't necessarily work with docker images.
I managed to pass this issue on Heroku after I added this package to my own package.json: @pm2/pm2-version-check
.
It's probably a workaround, and I should probably maybe clear the node modules caching of Heroku once or twice to handle it perfectly, but it worked.
I also have been experiencing this, but do not have any preinstall
and pre-start
hooks. Similarly, PM2 is working as expected in a local Dockerized stack, but not in Heroku. I can confirm that install @pm2/pm2-version-check
alleviates the problem as a workaround; any ideas what caused this?
Experiencing the same issue! Just upgraded from 4.5.5
to 4.5.6
2 days ago and our app is no longer starting up on Heroku.
Is there an update on this? I'm experiencing the same error with 5.1.0
and Heroku.
What's going wrong?
since a few days ago, pm2 stopped working in Heroku machines. I'm tried to use pm2 locally and globally, tried to revert to version 4.4.1, or 4.5.1, and upgraded to 4.5.5 - nothing works. The only way to run my app is to roll back into a previous version. It looks like that even if I'm running a new build with the same version that worked - it will not work again.
don't need to say it but I will - it works fine locally, and inside dockerized servers (tested the same code at digitalocean).
How could we reproduce this issue?
Run an app using PM2 on Heroku. the build will pass. after the build passed - see look at the runtime logs. you will get this error:
Supporting information
node 14.6 npm 6.x
tried pm2 versions: 4.4.1, 4.5.1, 4.5.5 (versions with * installed both locally and globally, at both "preinstall" and "prestart" npm hooks.)