Application manager restarting apps randomly
I have about 10 API's running on my system. I'm not overly experienced with CPANEL and application maanger but it looks like Phusion Passenger is running all this.
5 apps have been running a long time. They rarely restart until i reboot them manually.
When they restart they wipe the logs (which is fine) so i can see if there is a tiny log a message "app booted" i know it rebooted.
My other 5 apps which are recently added seem to reboot... HEAPS. eg. every 5 minutes.
Sometimes 1 min, sometimes 1 hour but VERY often compared to "never".
There are no error, console or any other NodeJS logs that have any issues or aynthing at all.
The apps seem to get a new PID.
It looks like they are running, im using them then a few mins later I go to use it and it takes 2-3 scs to get a response because the app manager obviously just restarted the API app.
I honestly have no where to look now to figure how or why this is happening but I'm really hoping someone can direct me. Is there perhaps some kidn of Phusion log somewhere that will say WHY an app restarted or perhaps let me knwo more?
-
Hey there! You can find the specific log path in the user's directory as outlined here:
https://support.cpanel.net/hc/en-us/articles/4402325080727-Node-JS-Log-Location
Does that show any additional details?
0 -
Thanks for the response. I have access to WHM and CPanel, but where is this logs file?
eg. if im in CPANEL file manager, I cant see
The default log file is located inlog/passenger.XXX.log
, whereXXX
is the port number that Passenger listens on.Sorry I'm quite new to cpanel etc and havent really figured what this location refers.
0 -
These would be inside the user's account, so /home/username would be the cPanel username you are working with.
0 -
Thanks again for the response and apologies for the lack of my ability, but in home/user there is no nodejsapps or anything like that page infers.
There is a logs folder but all logs are ssl- related and nothing passenger.XXX.log related at all.
ID was wondering if this might have anything to do with the passenger max pool size?
eg. i dont see any issue with my main API's running, which there are 5.
But the other 5 seem to restart randomly. Could it be they hit the pool limit and because they are my sandbox api's and arent in use much that passenger just shuts them down until accessed next?0 -
Unfortunately I'm not sure - we're really just guessing without more data.
Could you create a ticket so the system could be examined?
1 -
Hi cPRex.
How do a ticket? I'm still having issues and its definately this max pool thing keeping it at 6 applications0 -
You can open a ticket from WHM >> Create a Support Ticket. That will either direct you to us if you are the licenseholder, or your hosting provider.
0 -
Right looks like i need to get my provider to do it or contact Cpanel.
In essence im using application manager running NodeJS apps.
The conf files are there in each of the apps but there is no global passenger file i can see.My understanding this all has something to do with max passenger apps running at a time or something, because the default is 6 and my apps keep getting shut down to 6.
1
Please sign in to leave a comment.
Comments
8 comments