Hello!
Today I tried to access my website, and it’s returning a 502 Bad Gateway - nginx/1.18.0 (Ubuntu).
I have Ghost installed in a DigitalOcean 1-click droplet. The url of the web is:
https://escritsensecasa.com/
Ghost version: 5.76.2
node version: 18.17.1
This had happened before, and restarting the droplet would fix it, but this time it didn’t.
I ran an apt-get update
and upgrade
in case it was an issue with an outdated package, but it’s still not working.
When I run ghost status
, it returns the following (it seems to be fine):
│ Name │ Location │ Version │ Status │ URL │ Port │ Process Manager │
├─────────────────────┼────────────────┼─────────┼──────────────────────┼─────────────────────────────┼──────┼─────────────────┤
│ escritsensecasa-com │ /var/www/ghost │ 5.76.2 │ running (production) │ https://escritsensecasa.com │ 2368 │ systemd
The ghost doctor
returns the following:
Checking system Node.js version - found v18.17.1
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
Checking system compatibility
Checking for a MySQL installation
- sudo systemctl is-active ghost_escritsensecasa-com
Instance is currently running
Validating config [skipped]
Checking folder permissions
Checking file permissions
Checking memory availability
Checking binary dependencies
Checking free space
Checking systemd unit file
Checking systemd node version - found v18.17.1
On the other hand, the MySQL status also appears to be correct:
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 Sat 2024-09-07 09:44:11 UTC; 27min ago
Process: 6584 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 6592 (mysqld)
Status: “Server is operational”
Tasks: 38 (limit: 1101)
Memory: 64.9M
CPU: 11.176s
CGroup: /system.slice/mysql.service
└─6592 /usr/sbin/mysqld
Sep 07 09:44:09 escritsensecasa systemd[1]: mysql.service: Deactivated successfully.
Sep 07 09:44:09 escritsensecasa systemd[1]: Stopped MySQL Community Server.
Sep 07 09:44:09 escritsensecasa systemd[1]: mysql.service: Consumed 3.640s CPU time.
Sep 07 09:44:09 escritsensecasa systemd[1]: Starting MySQL Community Server…
Sep 07 09:44:11 escritsensecasa systemd[1]: Started MySQL Community Server.
I’m running out of ideas and I can’t make it work. Any idea where the problem is?
Thanks in advance!!