Report this

What is the reason for this report?

"502 Bad Gateway nginx/1.4.6 (Ubuntu)" error after upgrrading ghost from 0.7.9 to 0.11.1

Posted on March 26, 2017

I just upgrade ghost from 0.7.9 to 0.11.1 by following this guide on ghost.org.. After the upgrade which completed without errors I get “502 Bad Gateway nginx/1.4.6 (Ubuntu)” when I try to visit the site. When I revert to my backup everything works fine. And when I say “revert to my backup” I don’t mean restoring the whole server I just mean “cp -R ./ghost-backup ./ghost”. A reboot was not required after reverting back to the backup either. Something is failing with the upgrade but I have no idea what.

My theme is Casper 1.2.8.

This is what appeared in the error log for nginx.

2017/03/26 05:32:23 [error] 1062#0: *21 connect() failed (111: Connection refused) while connecting to upstream, client: [client IP], server: site.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:2368/", host: "www.site.com"



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It seems that the problem was the theme. Before doing the log test you suggested I finally upgraded the theme. I hesitated because the documentation made it sound optional and I wasn’t sure if I’d modified the theme or not.

So I think we can conclude that Casper 1.2.8 does not work on Ghost 0.11.1. The documentation could be clearer, they make it sound like upgrading the theme is optional.

Por que me dices error

V3 (3.4.5)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.