# 502 Bad Gateway after updage to ghost 5.15

**URL:** <https://forum.ghost.org/t/502-bad-gateway-after-updage-to-ghost-5-15/32862>\
**Category:** Installation\
**Created:** [September 19, 2022, 10:30am UTC](https://forum.ghost.org/t/502-bad-gateway-after-updage-to-ghost-5-15/32862 "2022-09-19T10:30:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulVu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/paulvu/32/19506_2.png) [@paulVu](https://forum.ghost.org/u/paulVu)\
**Post date:** [September 19, 2022, 10:30am UTC](https://forum.ghost.org/t/502-bad-gateway-after-updage-to-ghost-5-15/32862/1 "2022-09-19T10:30:31Z")

</div>

```auto
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_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
ghost_app@ghost-cms-vm:~$ ghost ls

Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js

+ 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 │
└────────────────┴────────────────┴─────────┴──────────────────────┴───────────────────┴──────┴

```

---

<div class="post-metadata">

**Author:** ![paulVu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/paulvu/32/19506_2.png) [@paulVu](https://forum.ghost.org/u/paulVu)\
**Post date:** [September 19, 2022, 10:35am UTC](https://forum.ghost.org/t/502-bad-gateway-after-updage-to-ghost-5-15/32862/2 "2022-09-19T10:35:33Z")

</div>

```auto
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

```

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [September 20, 2022, 7:29pm UTC](https://forum.ghost.org/t/502-bad-gateway-after-updage-to-ghost-5-15/32862/3 "2022-09-20T19:29:13Z")

</div>

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.
