pm2 is periodically restarting every few seconds without a noticeable error on Google Cloud Run (using Docker)?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
Cross-posting https://stackoverflow.com/questions/77979351/how-to-start-node-js-pm2-on-google-cloud-it-keeps-restarting-with-my-job-here for visibility. Any ideas how to get this working properly on Google Cloud Run?
How could we reproduce this issue?
- Docker image
- TypeScript compiled to JS
- pm2 in
--no-daemonmode - Google Cloud Build for the docker image
- Google Cloud Run for the serverless app
Supporting information
Don't know how to run pm2 report yet on Google Cloud Run, if you know please let me know so I can help debug.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Docker image and Cloud Run deployment described in the issue, using pm2 in --no-daemon mode and checking Cloud Run logs for the restart cause. Collect a pm2 report if possible and compare the behavior with the linked reproduction details; done means identifying a reproducible cause and documenting a working configuration or a clearly isolated pm2 problem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, google-cloud, node.js, typescript
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100