I recently installed Ghost 1.8.4 and Nginx on my AWS ec2 Ubuntu 16.04 server. When I loaded my blog site, it correctly took me to the Ghost home page, from where I logged into Ghost admin. On the admin screen, there was a message to update.
I ran ghost update
in putty
The update appeared to be successful, but when I returned to my blog site, I received the following error:
502 Bad Gateway nginx/1.10.3 (Ubuntu)
- Does anyone know a probably cause of this error and how to resolve?
- I checked some posts, which suggested I should have turned Ghost off before the update. If this is true, is my ghost installation now corrupted?
I went to my ghost directory in
/var/www/ghost
and tried to run:sudo service ghost start
but it returned:
Failed to start ghost.service: Unit ghost.service not found
and trying to stop, returns
Unit ghost.service not loaded
. Am I running the command from the correct location?
which ghost
? – Silkenwhich ghost
andghost start
what does that give you? – Silkenwhich ghost
returns/usr/bin/ghost
and when i go tovar/www/ghost
and runghost start
i get:✖ Starting Ghost An error occurred. Message: 'EACCES: permission denied, open '/var/www/ghost/.ghost-cli'' Debug Information: Node Version: v6.11.3 Ghost-CLI Version: 1.1.1 Environment: production Command: 'ghost start' Additional log info available in: /home/ubuntu/.ghost/logs/ghost-cli-debug-2017-09-23T04_00_01_360Z.log Please refer to https://docs.ghost.org/docs/v1/troubleshooting#section-cli-errors for troubleshooting.
– Messuagesudo ghost start
– Silken