New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type error runtime.pm2.web is not a function after updateing to 4.0.0 #4449
Comments
Same issue here, had to go back to the last working version 3.5.1. |
Hey, any updates about this issue? Still reproducing in pm2@4.1.2 |
We have encounter same issue, nothing previous builds stopped to work with the latest (1 day ago) update of docker image keymetrics/pm2:8-stretch |
We solved issues for now by rollback pm2 to v3.5.1 as mentioned by @rmiaas, thanks for posing stable version! |
@linegel, how did you solve that? I'm using keymetrics/pm2:8-alpine, and it broke after the update also. I can't find out where can i force a previous version of pm2. |
@zanlucathiago in your Dockerfile, you can do |
@zanlucathiago @rmiaas or you could do better and replace
Since it will remove the dependency, which showed a lack of stability and compatibility between versions of itself. And at the same time will prevent double installation of pm2 |
It's the |
Still crashing (Mac). pm2 --version user@user-computer directory % pm2-runtime start ecosystem.config.js --web TypeError: Runtime.pm2.web is not a function |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
PM2
Any updates ❓ |
pm2-runtime still have this issue, im running in version 4.4.0 TypeError: Runtime.pm2.web is not a function at /usr/local/lib/node_modules/pm2/lib/binaries/Runtime4Docker.js:117:23 at /usr/local/lib/node_modules/pm2/lib/API.js:342:23 |
pm2@4.5.4 FROM node:14-buster, using
|
@Unitech This is still not working. Please consider to reopen this issue. Can the community help to fix it? Some advise would be nice. |
I got also this while |
Can confirm, same issue here. pm2/lib/binaries/Runtime4Docker.js Line 117 in 73a4eaf
Shouldn't this be this.pm2.web(port) ?
|
If you are going to use the docker health check, this command may help you: pm2 jlist | jq '[.[]|select(.name=="process_name")][0]' | jq -r '.pm2_env' | jq -r '.status' See my blog: https://story.moezx.cc/health-check-of-pm2-in-docker/ |
I'm having the same problem |
Anybody solve this problem? |
I still have the same problem when running on AWS Elastic Beanstalk |
End of 2023 the same
|
5.3.0
Node.js v18.18.2 |
What's going wrong?
after updating to pm2@4.0.0 my application start giving an error "TypeError: Runtime.pm2.web is not a function"
full stack trace:
`[WARN] PM2 Daemon is already running
/usr/local/lib/node_modules/pm2/lib/binaries/Runtime4Docker.js:121
Runtime.pm2.web(port);
^
TypeError: Runtime.pm2.web is not a function
at /usr/local/lib/node_modules/pm2/lib/binaries/Runtime4Docker.js:121:23
at autodump (/usr/local/lib/node_modules/pm2/lib/API.js:335:23)
at API.CLI.autodump (/usr/local/lib/node_modules/pm2/lib/API/Startup.js:403:12)
at that._startJson (/usr/local/lib/node_modules/pm2/lib/API.js:334:14)
at /usr/local/lib/node_modules/pm2/lib/API.js:1084:23
at /usr/local/lib/node_modules/pm2/lib/API.js:1162:21
at wrapper (/usr/local/lib/node_modules/pm2/node_modules/async/internal/once.js:12:16)
at iterateeCallback (/usr/local/lib/node_modules/pm2/node_modules/async/internal/eachOfLimit.js:63:24)
at /usr/local/lib/node_modules/pm2/node_modules/async/internal/onlyOnce.js:12:16
at /usr/local/lib/node_modules/pm2/lib/API.js:1157:11`
How could we reproduce this issue?
update to pm2@4.0.0
Supporting information
The text was updated successfully, but these errors were encountered: