My ghost blog gets shut down when there are not any sessions open

When there are no more active connections, my ghost blog gets shuted down.

Then when a user visits it, he/she gets a “We’re busy updadint our website”. Then, after some seconds, after a refresh everything is working again.

For obvious reasons, I dont like that and I would apreciate some help !

I tried running ghost both with “forever” npm module and both as a node app (node run ghost.js, a modified ghost.js to respect my versioning).

Here’s the error log, at hthe moment of shutting down and Im here to provide any information that may help ! I would like to contirbute to ghost, so Im doing my little research.

|2022-10-30 16:36:05||||684075/T1c age/Cor/App/Gro/SessionManagement.cpp:330: Session checked out from process (pid=685135, group=/var/www/vhosts/highmonkeys.gr/readme.simplecode.info/ghost (production))||||Node.js|
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|2022-10-30 16:39:39||||684075/T1 age/Cor/CoreMain.cpp:1147: Checking whether to disconnect long-running connections for process 685135, application /var/www/vhosts/highmonkeys.gr/readme.simplecode.info/ghost (production)||||Node.js|
|2022-10-30 16:39:39||||684075/T1 age/Cor/App/Gro/InitializationAndShutdown.cpp:167: Begin shutting down group /var/www/vhosts/highmonkeys.gr/readme.simplecode.info/ghost (production)||||Node.js|
|2022-10-30 16:39:39||||684075/T1 age/Cor/App/Gro/ProcessListManagement.cpp:512: Detaching all processes in group /var/www/vhosts/highmonkeys.gr/readme.simplecode.info/ghost (production)||||Node.js|
|2022-10-30 16:39:39||||684075/T1 age/Cor/CoreMain.cpp:1147: Checking whether to disconnect long-running connections for process 685135, application /var/www/vhosts/highmonkeys.gr/readme.simplecode.info/ghost (production)||||Node.js|
|2022-10-30 16:39:39||||684075/T1t age/Cor/App/Gro/ProcessListManagement.cpp:328: Detached process (pid=685135, group=/var/www/vhosts/highmonkeys.gr/readme.simplecode.info/ghost (production)) has 0 active sessions now. Triggering shutdown.||||Node.js|
|2022-10-30 16:39:39||||684075/T1t age/Cor/App/Gro/ProcessListManagement.cpp:335: Detached process (pid=685135, group=/var/www/vhosts/highmonkeys.gr/readme.simplecode.info/ghost (production)) has shut down. Cleaning up associated resources.||||Node.js|
|2022-10-30 16:39:39||||684075/T1t age/Cor/App/Gro/InitializationAndShutdown.cpp:80: Finishing shutdown of group /var/www/vhosts/highmonkeys.gr/readme.simplecode.info/ghost (production)|

I have no idea what you are running, but it doesn’t seem normal and instead looks like Ruby’s Passenger?. I don’t recognize those files in the stacktrace. Any reason you just didn’t use ghost-cli and let it configure systemd for you? As that will automatically start Ghost on crash or on reboot.

I tried running ghost both with “forever” npm module and both as a node app (node run ghost.js, a modified ghost.js to respect my versioning).

What does this mean to “respect my versioning”? Just wondering if you modified things against the default and running some non-standard setup which makes it difficult to help.