Ghost is not installing

Hi,
I am trying to install ghost in my server but it showing this type of issues. How can I solve this?

eghost@ghost:/var/www/newsportal$ ghost install --db=sqlite3
✔ Checking system Node.js version
✔ Checking logged in user
✖ Checking current folder permissions
✔ Checking operating system compatibility
✔ Checking memory availability
One or more errors occurred.

1) Checking current folder permissions

Message: The directory /var/www/newsportal is not writable by your user. You must grant write access and try again.
Help: https://ghost.org/docs/install/ubuntu/#create-a-directory

Debug Information:
    OS: Ubuntu, v16.04.6 LTS
    Node Version: v10.13.0
    Ghost-CLI Version: 1.14.0
    Environment: production
    Command: 'ghost install --db=sqlite3'

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/api/ghost-cli/ for troubleshooting.

Did you read the linked articles, and try running ghost doctor as it says in the output?

Hey seems its permission issue…
Make sure the user(eghost) is in sudo group & the user have write permission on ghost folder(newsporta)

I tried. It is showing this issue

eghost@ghost:/var/www/newsportal$ ghost doctor
An error occurred.
Message: 'ENOENT: no such file or directory, lstat '/var/www/newsportal/content''


Debug Information:
    OS: Ubuntu, v16.04.6 LTS
    Node Version: v10.13.0
    Ghost-CLI Version: 1.14.0
    Environment: production
    Command: 'ghost doctor'

Additional log info available in: /home/eghost/.ghost/logs/ghost-cli-debug-2020-06-05T10_22_04_022Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/api/ghost-cli/ for troubleshooting.

The user that is installing ghost needs permission to write to the folder

Can you confirm that you followed the steps outlined here?

I installed ghost but it is not starting. It is showing database error.
Can you check please?

eghost@ghost:/var/www/newsportal$ ghost start
+ sudo systemctl is-active ghost_newsportal-electronthemes-ghost-com
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
+ sudo systemctl is-active ghost_newsportal-electronthemes-ghost-com
✔ Validating config
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking binary dependencies
+ sudo systemctl start ghost_newsportal-electronthemes-ghost-com
+ sudo systemctl stop ghost_newsportal-electronthemes-ghost-com
✖ Starting Ghost: newsportal-electronthemes-ghost-com
A GhostError occurred.

Message: SQLITE_CANTOPEN: unable to open database file
Help: Unknown database error
Suggestion: journalctl -u ghost_newsportal-electronthemes-ghost-com -n 50

Debug Information:
    OS: Ubuntu, v16.04.6 LTS
    Node Version: v10.13.0
    Ghost Version: 3.18.1
    Ghost-CLI Version: 1.14.0
    Environment: production
    Command: 'ghost start'

Additional log info available in: /home/eghost/.ghost/logs/ghost-cli-debug-2020-06-06T04_13_22_669Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/api/ghost-cli/ for troubleshooting.

Please take a look at this :smile:

1 Like