Unitech / Unitech/pm2

pm2 is periodically restarting every few seconds without a noticeable error on Google Cloud Run (using Docker)?

Open
#5,762 0 comments 0 reactions 0 assignees View on GitHub

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-daemon mode
  • 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.