502 Bad Gateway after updage to ghost 5.15

Checking system Node.js version - found v14.20.0
✔ 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
System checks failed with message: 'Linux version is not Ubuntu 16, 18, 20, or 22'
Some features of Ghost-CLI may not work without additional configuration.
For local installs we recommend using `ghost install local` instead.
? Continue anyway? Yes
System stack check skipped
ℹ Checking system compatibility [skipped]
✔ Checking for a MySQL installation
+ sudo systemctl is-active ghost_35-247-184-242
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 v14.20.0
ghost_app@ghost-cms-vm:/var/www/ghost$ linux version
-bash: linux: command not found
ghost_app@ghost-cms-vm:/var/www/ghost$ cd
ghost_app@ghost-cms-vm:~$ linux version
-bash: linux: command not found
ghost_app@ghost-cms-vm:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION="10 (buster)"
ghost_app@ghost-cms-vm:~$ ghost ls

Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.

+ sudo systemctl is-active ghost_35-247-184-242
│ Name           │ Location       │ Version │ Status               │ URL               │ Port │ Process Manager │
│ 35-247-184-242 │ /var/www/ghost │ 5.15.0  │ running (production) │ . │ . │ systemd         │
Debug Information:
    OS: Debian GNU/Linux, v10
    Node Version: v14.20.0
    Ghost Version: 5.15.0
    Ghost-CLI Version: 1.23.0
    Environment: production

Bad gateway can mean a problem with nginx or the ghost instance that nginx is trying to talk to. Check that Ghost is listening where you told nginx to look for it (probably port 2368 - check that with the command “netstat -antp”). Try restarting nginx.