Question

Why is Ghost not installing correctly?

Posted October 2, 2018 3.6k views
GhostUbuntu 18.04

Okay so I already have a droplet dedicated to one Ghost blog. I wanted to create a test droplet today so I went ahead and used the one-click app to install Ghost with Ubuntu 18.04. I logged into the console once the droplet was created.

Ghost installer ran automatically up until the point where it notifies you of entering your domain and email for SSL. After pressing ENTER, the installer just exists and when I check /var/www/ghost/ the directory is empty. Am I doing something wrong here?

This I’ve tried:

  • Rebuilding the droplet
  • Destroying and recreating a droplet
  • Trying to install on a droplet in a different location

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
9 answers
✔ Checking system Node.js version
✔ Checking logged in user
✔ Checking current folder permissions
✔ Checking operating system compatibility
✔ Checking for a MySQL installation
✔ Checking memory availability
✔ Checking for latest Ghost version
✔ Setting up install directory
✖ Downloading and installing Ghost v2.33.0
A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@2.33.0: The engine "cli" appears to be invalid.
error csv-parser@2.3.1: The engine "node" is incompatible with this module. Expected version ">= 8.16.0". Got "8.10.0"
error Found incompatible module.

Got this error with One Click install. Here’s a quick run down of what I did to resolve in the event that someone else encounters the same issue.

1) change to ghost user

sudo -i -u ghost-mgr

2) remove botched/broken install directory

sudo rm -r /var/www/ghost

3) add nodejs source (maybe unnecessary, idk)

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash 
4) run updates

sudo apt-get update
sudo apt-get upgrade

5) update nodejs

sudo apt-get install -y nodejs

6) recreate install dir and set permissions 

sudo mkdir /var/www/ghost
sudo chown ghost-mgr:ghost-mgr /var/www/ghost

7) re-run install command. (just copy this from the terminal output of the failed install to get the command with your MYSQL pw. Will look like:

ghost install –auto –db=mysql –dbhost=localhost –dbname=ghost_production –dbuser=ghost –dbpass=veryNicePassword –dir=/var/www/ghost –start


That did the trick for me. Worth note, I first tried on a $5 droplet and then moved to a $10 droplet based on comments above. I don't think that matters though and I'm guessing the above fix would work on $5 droplet as well. 

Same problem here. Ended up installing it on my own.

has this been fix yet? , having the same issue

Still having same issue on 2019, really sucks…

Infuriating. Feel like I’m being “punked” trying to use this system. I’ve been trying for months. I RTFM and have followed directions in the docs to create a “one-click” Ghost. It’s just unusable, inexcusable. “One-click” is misused here.

Welll… bummerrrrrrrr..... it doesn’t work.... great. I was hoping to roll out a Ghost site in 1.2.3..... but nothing....

same here. tried the “click once” option and now stuck in hell.

can’t run any ghost commands because

Working directory is not a recognisable Ghost installation.
Run `ghost config` again within a folder where Ghost was installed with Ghost-CLI.

i figured out command needs to be run from /var/www/ghost but no matter what i do, i still get 502 Bad Geteway when i try to go to http://my_ip/ghost

Another reason it would not install correctly is if the ghost database user account is not using the correct password during install. I ran into that problem, where I needed to update the password of the ghost user to the same password used in the install script. After that everything else worked as expected.

Still having this issue in 2020 :(
Just installed an Ubuntu Droplet and went on here
https://ghost.org/docs/install/ubuntu/?_ga=2.65752169.678147745.1592695501-1319289443.1592695501#create-a-directory

Works like a charm

Submit an Answer