-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
PM2 throws errors when used with projects managed by GIT #5696
Comments
Uhhh when I moved the project's .git folder outside of the project, there's suddenly no problem at all. Why? I'm so confused. Why is PM2 dipping into my .git folder? Updated the issue report with this info. My servers are located in a child folder of my main project folder, while my .git folder is located in the parent project folder. I have no idea how pm2 is traversing up several folders outside the scope of my applications and then dipping into the .git folder. |
Here is how I fixed this problem for myself.
EDIT: This actually does not work. I'm having this problem again months later and these steps are not working. I'm not sure what I did last time to resolve it but my only solution now was to create a powershell script to move my .git folder outside of the project so pm2 doesn't have a seizure. |
Several months later, I'm having this problem again and the steps I used before don't seem to be resolving the issue. The only thing that works is to remove .git folder from my project entirely. Once again, the problem started occuring randomly without much reason why it has happened. I did do a push to my git repo before I logged off last Friday. But why is PM2 messing with my .git folder? I'm not using the watching feature of pm2. I also tried including the "ignore_watch" parameter with '\.git' added to my ecosystem and the issue still occurred. |
I tried setting watch to false for all apps in my ecosystem and the issue persists. |
... my fix was I made a powershell script to move |
Updated the details of this bug to better reflect the problem in case anyone looks at this in the future. |
I have disabled vision by default in the prochain release of PM2,
Or with bun:
Thanks |
What's going wrong?
When I start any PM2 app, I see the following error, over and over. The server starts, errors then tries to restart.
How could we reproduce this issue?
Every time I've seen this error it occurred after I did a push to upstream with GIT. Afterwards, pm2 will start throwing errors related to GIT. I'm not using the watch feature.
To confirm this is in fact the issue: When I moved the project's .git folder outside of the project, there's suddenly no problem at all.
Supporting information
The text was updated successfully, but these errors were encountered: