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

When you delete a website the nodejs app started with PM2 is not deleted #359

Closed
fstrazzante opened this issue Oct 24, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@fstrazzante
Copy link

CloudPanel version(s) affected

2.3.2

Description

If you start a PM2 job on and then you delete the website with Cloudpanel Frontend, the port(and the job) remain in use.
Workaround: Find the job with
lsof -i :5000
and kill it with
sudo kill <PID>

How to reproduce

  • create a Nodejs website on port N
  • deploy the Nodejs app. (I copied the file to the remote folder)
  • start the app with pm2
  • ... the app is working ...
  • delete the website with cloudpanel
  • create a new website with cloudpanel on port N
  • ... and I got the error: Port already in use

Possible Solution

No response

Additional Context

(I'm using Ubuntu 22.04)
It might be not related with CloudPanel but with PM2 or with the ubuntu user management. My argument is that if you delete the website and the user, then also this job should stop, but that could just be me. What do you think?
(thank you for this amazing software)

@cloudpanel-io
Copy link
Owner

cloudpanel-io commented Oct 24, 2023

Thanks @fstrazzante, for reporting the issue. Indeed all processes of the user should be killed during the deletion process.

We will put this on our list for the next version.

@cloudpanel-io cloudpanel-io added the bug Something isn't working label Nov 6, 2023
@cloudpanel-io
Copy link
Owner

The issue has been resolved in the development version and will be incorporated into the upcoming v2.4.0 release scheduled for the end of November.

Thanks for reporting it @fstrazzante

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants