We are a small charity running a website www.charnwoodsrc.org on a Digital Ocean droplet. I am not a developer, but the only Trustee that has very limited knowledge or Unix (from 30 years ago!).
Having received many warning about security, I have just updated Ghost to 6.24.0 from 4.48.9. Now when trying to access the website I get a 502 Bad Gateway error.
Any help trying to diagnose the problem would be greatly appreciated.
ghost-mgr@charnwood-web:/var/www/ghost$ ghost status + sudo systemctl is-active ghost_www-charnwoodsrc-org ββββββββββββββββββββββββ¬βββββββββββββββββ¬ββββββββββ¬βββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬βββββββ¬ββββββββββββββββββ β Name β Location β Version β Status β URL β Port β Process Manager β ββββββββββββββββββββββββΌβββββββββββββββββΌββββββββββΌβββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββΌββββββββββββββββββ€ β www-charnwoodsrc-org β /var/www/ghost β 6.24.0 β running (production) β https://www.charnwoodsrc.org β 2369 β systemd β ββββββββββββββββββββββββ΄βββββββββββββββββ΄ββββββββββ΄βββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ΄βββββββ΄ββββββββββββββββββ
ghost-mgr@charnwood-web:/var/www/ghost$ ghost doctor
Checking system Node.js version - found v22.22.2
Checking logged in user
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions
Warning: Your Ubuntu version has reached end-of-life.
Consider upgrading to Ubuntu 22.04 or 24.04.
Checking system compatibility
Checking for a MySQL installation
- sudo systemctl is-active ghost_www-charnwoodsrc-org
Instance is currently running
Validating config [skipped]
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
Checking binary dependencies
Checking free space
Checking systemd unit file
Checking systemd node version - found v22.22.2
Ghost backup gives the following log
ghost-mgr@charnwood-web:/var/www/ghost$ cat /home/ghost-mgr/.ghost/logs/ghost-cli-debug-2026-04-01T11_02_40_883Z.log
Debug Information:
OS: Ubuntu, v20.04.6 LTS
Node Version: v22.22.2
Ghost Version: 6.24.0
Ghost-CLI Version: 1.28.6
Environment: production
Command: βghost backupβ
An error occurred.
Message: βResponse code 502 (Bad Gateway)βStack: HTTPError: Response code 502 (Bad Gateway)
at EventEmitter. (/usr/lib/node_modules/ghost-cli/node_modules/got/source/as-promise.js:74:19)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
Path: /ghost/api/admin/authentication/setup/
Ghost log
ghost-mgr@charnwood-web:/var/www/ghost$ ghost log
- sudo systemctl is-active ghost_www-charnwoodsrc-org
[2026-04-01 10:50:35] INFO Running milestone emails job on Wed Apr 01 2026 10:50:35 GMT+0000 (Coordinated Universal Time)
[2026-04-01 10:50:35] INFO URL Service ready in 2275ms
[2026-04-01 10:50:35] INFO Bootstrap client was closed.
[2026-04-01 10:50:35] ERROR Could not get webhook secret for ActivityPub FetchError: invalid json response body at https://www.charnwoodsrc.org/.ghost/activitypub/v1/site/ reason: Unexpected token β<β, "<!DOCTYPE "β¦ is not valid JSON
[2026-04-01 10:50:35] ERROR No webhook secret found - cannot initialise
[2026-04-01 10:50:35] INFO Explore Response 200 OK
[2026-04-01 10:51:39] INFO Updating incoming recommendations on boot
[2026-04-01 10:53:49] INFO Worker for job βprocess-outboxβ online
[2026-04-01 10:53:49] INFO Worker for job process-outbox sent a message: done
[2026-04-01 10:53:49] WARN Missing mail.from config, falling back to a generated email address. Please update your config file and set a valid from address
[2026-04-01 10:53:49] INFO [OUTBOX] No pending outbox entries to process
[2026-04-01 10:55:51] INFO [Recommendations] Updating recommendations metadata
[2026-04-01 10:58:49] INFO Worker for job βprocess-outboxβ online
[2026-04-01 10:58:49] INFO Worker for job process-outbox sent a message: done
[2026-04-01 10:58:49] WARN Missing mail.from config, falling back to a generated email address. Please update your config file and set a valid from address
[2026-04-01 10:58:49] INFO [OUTBOX] No pending outbox entries to process
[2026-04-01 11:03:49] INFO Worker for job βprocess-outboxβ online
[2026-04-01 11:03:49] INFO Worker for job process-outbox sent a message: done
[2026-04-01 11:03:49] WARN Missing mail.from config, falling back to a generated email address. Please update your config file and set a valid from address
[2026-04-01 11:03:49] INFO [OUTBOX] No pending outbox entries to process
ghost-mgr@charnwood-web:/var/www/ghost$ sudo systemctl status mysql.service
β mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2026-03-31 12:54:23 UTC; 22h ago
Process: 742 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 866 (mysqld)
Status: βServer is operationalβ
Tasks: 45 (limit: 1116)
Memory: 48.0M
CGroup: /system.slice/mysql.service
ββ866 /usr/sbin/mysqldMar 31 12:54:15 charnwood-web systemd[1]: Starting MySQL Community Serverβ¦
Mar 31 12:54:23 charnwood-web systemd[1]: Started MySQL Community Server.