EACCES Issue .ghostpid

Hi folks I’m running ghost on Bitnami through light sail. I am getting the following error running ghost:

An error occurred.
Message: ‘EACCES: permission denied, unlink ‘/opt/bitnami/ghost/.ghostpid’’

ls -l /opt/bitnami/ghost/.ghostpid
-rw-rwx— 1 bitnami bitnami 0 Nov 15 05:43 /opt/bitnami/ghost/.ghostpid

any help would be appreciated

You need to check if the user running ghost process has access to the file.

Find the user running the ghost process:
ps aux | grep ghost | grep -v grep

Process isn’t running. I can’t start ghost because of a permission issue. Something is out of wack. Is there a guide for what permission needs to be what across the file hierarchy ?

When you run the process, which user you are using? The user needs write access to the file.

bitnami. On AWS Lightsail that default user.