Ghost v3 crashes with a 502 on page load

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

  • What’s your URL? This is the easiest way for others to debug your issue
    [redacted after fix]
  • What version of Ghost are you using?
    3.1.1
  • What configuration?
    Installed using ghost-cli, running behind cloudflare and nginx
  • What browser?
    Chrome
  • What errors or information do you see in the console?
ghost log [redacted after fix]
+ sudo systemctl is-active ghost_blog[redacted after fix]
[2019-12-07 11:47:46] INFO Bootstrap client was closed.
[2019-12-07 11:48:01] INFO "GET /" 200 797ms
[2019-12-07 11:48:02] INFO "GET /assets/built/screen.css?v=79770a5fe5" 200 27ms
[2019-12-07 11:48:02] INFO "GET /assets/built/casper.js?v=79770a5fe5" 200 6ms
[2019-12-07 11:48:07] INFO Ghost is running in production...
[2019-12-07 11:48:07] INFO Your site is now available on [redacted after fix]
[2019-12-07 11:48:07] INFO Ctrl+C to shut down
[2019-12-07 11:48:07] INFO Ghost boot 4.262s
[2019-12-07 11:48:47] INFO "GET /" 200 991ms
[2019-12-07 11:48:48] INFO "GET /" 200 281ms
[2019-12-07 11:48:54] INFO Ghost is running in production...
[2019-12-07 11:48:54] INFO Your site is now available on [redacted after fix]
[2019-12-07 11:48:54] INFO Ctrl+C to shut down
[2019-12-07 11:48:54] INFO Ghost boot 4.24s
[2019-12-07 11:49:00] INFO "GET /" 200 863ms
[2019-12-07 11:49:01] INFO "GET /assets/built/screen.css?v=03365b71ef" 200 21ms
[2019-12-07 11:49:07] INFO Ghost is running in production...
[2019-12-07 11:49:07] INFO Your site is now available on [redacted after fix]
[2019-12-07 11:49:07] INFO Ctrl+C to shut down
[2019-12-07 11:49:07] INFO Ghost boot 4.622s
ghost log blog[redacted after fix]
+ sudo systemctl is-active ghost_blog[redacted after fix]
[2019-12-07 11:48:07] INFO Ghost is running in production...
[2019-12-07 11:48:07] INFO Your site is now available on [redacted after fix]
[2019-12-07 11:48:07] INFO Ctrl+C to shut down
[2019-12-07 11:48:07] INFO Ghost boot 4.262s
[2019-12-07 11:48:47] INFO "GET /" 200 991ms
[2019-12-07 11:48:48] INFO "GET /" 200 281ms
[2019-12-07 11:48:54] INFO Ghost is running in production...
[2019-12-07 11:48:54] INFO Your site is now available on [redacted after fix]
[2019-12-07 11:48:54] INFO Ctrl+C to shut down
[2019-12-07 11:48:54] INFO Ghost boot 4.24s
[2019-12-07 11:49:00] INFO "GET /" 200 863ms
[2019-12-07 11:49:01] INFO "GET /assets/built/screen.css?v=03365b71ef" 200 21ms
[2019-12-07 11:49:07] INFO Ghost is running in production...
[2019-12-07 11:49:07] INFO Your site is now available on [redacted after fix]
[2019-12-07 11:49:07] INFO Ctrl+C to shut down
[2019-12-07 11:49:07] INFO Ghost boot 4.622s
[2019-12-07 11:49:17] INFO "GET /favicon.ico" 302 17ms
[2019-12-07 11:49:19] INFO "GET /" 200 932ms
[2019-12-07 11:49:19] INFO "GET /assets/built/screen.css?v=fa02929a98" 200 11ms
[2019-12-07 11:49:20] INFO "GET /assets/built/casper.js?v=fa02929a98" 200 5ms

  • What steps could someone else take to reproduce the issue you’re having?
  1. Load the page
  2. See it crash and give 502 errors

I recently upgraded from v2 to v3 as I wanted to use the new features. With this, I had to update my node version which I did using the n package from npm. The upgrade worked fine, but now whenever I load the front page, it just crashes and gives me 502 errors.

How do I go about fixing this?

1 Like

I’ve managed to resolve the issue by manually creating and moving all my images into the size/w1000/* folder.

I got the same issue (After upgrade from Ghost 3.0.3 to 3.1.1

  1. Nginx 502.
  2. Image link break.

I am just too lazy to deal with this.

How to rollback (from 3.1.1 back to 3.0.3)

ghost update --rollback