Skip to content
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

Services running using pm2 do not restart on server reboot #31

Closed
1t5j0y opened this issue May 21, 2024 · 7 comments
Closed

Services running using pm2 do not restart on server reboot #31

1t5j0y opened this issue May 21, 2024 · 7 comments
Assignees

Comments

@1t5j0y
Copy link
Contributor

1t5j0y commented May 21, 2024

rules-server, avni-media are run using pm2. If the instance on which these are running gets restarted, these services need to be configured to be restarted too.

Impacted sevices:

  • Media-server (Integration instance)
  • Rules-server (Avni-server instance)

Environments:

  • Prod
  • Prerelease
  • Staging
  • RWB_prod
  • RWB_Staging
@himeshr
Copy link
Contributor

himeshr commented May 24, 2024

@himeshr himeshr moved this from New Issues to Ready in Avni Product May 24, 2024
@Balamuruganjeevi Balamuruganjeevi self-assigned this May 24, 2024
@Balamuruganjeevi Balamuruganjeevi moved this from Ready to In Progress in Avni Product May 24, 2024
@Balamuruganjeevi Balamuruganjeevi moved this from In Progress to Ready in Avni Product May 30, 2024
@mahalakshme mahalakshme moved this from Ready to In Analysis in Avni Product Jun 4, 2024
@Balamuruganjeevi Balamuruganjeevi moved this from In Analysis to In Progress in Avni Product Jun 6, 2024
@Balamuruganjeevi Balamuruganjeevi moved this from In Progress to Code Review Ready in Avni Product Jun 6, 2024
@Balamuruganjeevi
Copy link
Contributor

I have checked the scripts for both avni-media and rules-server both are looking fine have all steps included init. @1t5j0y can you please review.

@1t5j0y
Copy link
Contributor Author

1t5j0y commented Jun 6, 2024

@Balamuruganjeevi have you modified any code which needs to be reviewed?
cc: @himeshr

@Balamuruganjeevi
Copy link
Contributor

Balamuruganjeevi commented Jun 6, 2024

No nothing have changed and i have modified some code in avni-media yesterday but it won't work so i replaced it, so nothing changed.

@1t5j0y
Copy link
Contributor Author

1t5j0y commented Jun 6, 2024

@Balamuruganjeevi since we have confirmed that the issue is present (atleast in avni-media) yesterday (simulated by rebooting prerelease integration server) and no change has been made, the issue won't be fixed and there is nothing to review.
Moving this back to 'Ready' so someone else can take a look.

@1t5j0y 1t5j0y moved this from Code Review Ready to Ready in Avni Product Jun 6, 2024
@1t5j0y 1t5j0y moved this from Ready to In Progress in Avni Product Jun 25, 2024
@1t5j0y 1t5j0y self-assigned this Jun 25, 2024
1t5j0y added a commit to avniproject/avni-media that referenced this issue Jun 25, 2024
@1t5j0y 1t5j0y moved this from In Progress to Code Review Ready in Avni Product Jun 25, 2024
@1t5j0y
Copy link
Contributor Author

1t5j0y commented Jun 26, 2024

avni-media had this issue because the command output by running pm2 startup (which creates the service to resurrect pm2 processes) was not being run.
rules-server is getting restarted on server reboot as the avni-infra scripts already include this step.

@himeshr himeshr moved this from Code Review Ready to In Code Review in Avni Product Jun 26, 2024
@himeshr himeshr moved this from In Code Review to Code Review with Comments in Avni Product Jun 26, 2024
1t5j0y added a commit to avniproject/avni-media that referenced this issue Jun 26, 2024
@1t5j0y 1t5j0y moved this from Code Review with Comments to QA Ready in Avni Product Jun 26, 2024
@1t5j0y
Copy link
Contributor Author

1t5j0y commented Jul 2, 2024

Tested on staging and prerelease by rebooting server and ensuring avni-media came back online as part of fix dev.

@1t5j0y 1t5j0y closed this as completed Jul 2, 2024
@github-project-automation github-project-automation bot moved this from QA Ready to Done in Avni Product Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants