Hi
I’ve installed latest version of Ghost on Apache + Passenger setup. On this kind of setup the Ghost app is not running permanently, Apache/Passenger manages process startup and shutdown.
If the Ghost app is not running the next user accessing the website will force Ghost startup and he will always get an 503 error. The following is logged:
App 936 output: [2019-03-26 00:24:21] WARN Theme’s file locales/es.json not found.
App 936 output: [2019-03-26 00:24:21] WARN Falling back to locales/en.json.
App 936 output: [2019-03-26 00:24:21] WARN Theme’s file locales/en.json not found.
App 936 output: [2019-03-26 00:24:22] INFO Ghost is running in production…
App 936 output: [2019-03-26 00:24:22] INFO Your blog is now available on http://www.domain.com
App 936 output: [2019-03-26 00:24:22] INFO Ctrl+C to shut down
App 936 output: [2019-03-26 00:24:22] INFO Ghost is running in production…
App 936 output: [2019-03-26 00:24:22] INFO Your blog is now available on http://www.domain.com/
App 936 output: [2019-03-26 00:24:22] INFO Ctrl+C to shut down
App 936 output: [2019-03-26 00:24:22] INFO Ghost boot 2.555s
App 936 output: ERROR [2019-03-26 00:24:22] “GET /feed/” 503 26ms
App 936 output:
App 936 output: NAME: MaintenanceError
App 936 output: MESSAGE: Site is starting up, please wait a moment then retry.
App 936 output:
App 936 output: level:normal
App 936 output:
App 936 output: empty
App 936 output: empty
App 936 output: ERROR DETAILS:
App 936 output: empty
App 936 output:
App 936 output: MaintenanceError: Site is starting up, please wait a moment then retry.
If I access the site again everything works, if someone else access the site everything works.
But after a few minutes or hours Apache/Passenger will shutdown the app and the next user will get the 503 error again.
Is there anyway to avoid these errors? Ghost does not support this kind of setup/environment?
Returning an error on every startup does not look like a good idea.
Many thanks