Fixing ghost
For those of you who don't know, I use Ghost to write this blog. While upgrading to the latest version of Ghost (5.50.0 at time of writing), my blog broken with the error message "We'll be right back"...
As a new comer to Ghost, I didn't know quite what to expect. My backup had also failed, but I had plowed on regardless. I use the lxc container from Turnkey linux on my proxmox install and had customized the install to include ghost-cli.
Upgrading I had just done a "ghost update", which had caused the errors. Running "ghost doctor" highlighted a few errors here and there, mostly permissions. Mostly no fixing the issue.
Eventually, I tracked down one issue being to the port number for ghost had somehow increamented by one. This meant nginx was now pointing to the wrong port. A minor edit of config.production.json later, and the port was corrected.
Upon restarting, the database connection appeared to be broken. It seems that the database type was "unsupported". I use mariadb, so this wasn't entirely unexpected, however, it was saying the mysql (and not mysql2) was one of the only supported databases. Updating the config to mysql fixed the issue and I was able to get the blog back up and running.
Now to get back to writing my blog post for the week....
About the author
Tim Wilkes is a UK-based security architect with over 15 years of experience in electronics, Linux, and Unix systems administration. Since 2021, he's been designing secure systems for a telecom company while indulging his passions for programming, automation, and 3D printing. Tim shares his projects, tinkering adventures, and tech insights here - partly as a personal log, and partly in the hopes that others will find them useful.
Want to connect or follow along?
LinkedIn: [phpsytems]
Twitter / X: [@timmehwimmy]
Mastodon: [@timmehwimmy@infosec.exchange]
If you've found a post helpful, consider supporting the blog - it's a part-time passion that your support helps keep alive.
⚠️ Disclaimer
This post may contain affiliate links. If you choose to purchase through them, I may earn a small commission at no extra cost to you. I only recommend items and services I’ve personally read or used and found valuable.
As an Amazon Associate I earn from qualifying purchases.