Hi guys,
I just upgraded Ghost and got a 502 Bad Gateway error. I’ve checked my error.log and the error seems to be:
connect() failed (111: Connection refused) while connecting to upstream
Any help would be greatly appreciated!
Thanks
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!
The above reply by @albertlimca fixes the issue in my droplet for Ghost 0.9.0.
Thanks!
After doing the update did you attempt a service ghost restart and did this command result in any output?
I had this problem too after doing the usual npm install --production and service ghost restart
rm rf node_modules
npm cache clean
npm install --production --unsafe-perm
npm install knex
chown -R ghost:ghost *
npm start --production
At this stage I got an error saying something about not finding SQLite3. So install SQLite3 module npm install sqlite3 --build-from-source
If it didn’t build, make sure all the dependencies are installed
sudo npm install -g node-gyp
sudo apt-get install build-essential
sudo apt-get install python-software-properties python g++ make
npm install sqlite3 --build-from-source
Finally restart ghost npm start --production
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.