By Ujjwal Kumar
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:
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
✔ 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.
sudo -i -u ghost-mgr
sudo rm -r /var/www/ghost
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.
Welll… bummerrrrrrrr… it doesn’t work… great. I was hoping to roll out a Ghost site in 1.2.3… but nothing…
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.