Question
Upgraded Ghost to 0.9: 502 Bad Gateway
I’ve just upgraded Ghost using the official guide.
Now when I try to reach my blog it says: 502 Bad Gateway.
In the error log, it says:
2016/08/07 07:32:43 [error] 953#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: ***, server: my-ghost-blog.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:2368/favicon.ico", host: ***SERVER IP ADDRESS***, referrer: ***SERVER IP ADDRESS***
I checked the config.js file and URL is set to my correct IP address and not to my-ghost-blog.com as per default.
Possibly relevant: when I followed the last step and executed npm install --production
I got a bunch of warnings back:
npm WARN cannot run in wd ghost@0.9.0 node core/server/utils/npm/preinstall.js (wd=/var/www/ghost)
npm WARN unmet dependency /var/www/ghost/node_modules/bookshelf requires bluebird@'^2.9.4' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/bluebird,
npm WARN unmet dependency which is version 3.4.1
npm WARN unmet dependency /var/www/ghost/node_modules/ghost-gql requires lodash@'3.10.1' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/lodash,
npm WARN unmet dependency which is version 4.13.1
npm WARN unmet dependency /var/www/ghost/node_modules/jsonpath requires underscore@'1.7.0' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/underscore,
npm WARN unmet dependency which is version 1.8.3
npm WARN unmet dependency /var/www/ghost/node_modules/knex requires bluebird@'^2.9.24' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/bluebird,
npm WARN unmet dependency which is version 3.4.1
npm WARN unmet dependency /var/www/ghost/node_modules/knex requires lodash@'^3.7.0' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/lodash,
npm WARN unmet dependency which is version 4.13.1
npm WARN unmet dependency /var/www/ghost/node_modules/multer requires busboy@'^0.2.11' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/busboy,
npm WARN unmet dependency which is version 0.2.9
npm WARN unmet dependency /var/www/ghost/node_modules/netjet requires lru-cache@'^4.0.0' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/lru-cache,
npm WARN unmet dependency which is version 2.7.0
npm WARN unmet dependency /var/www/ghost/node_modules/pg requires semver@'^4.1.0' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/semver,
npm WARN unmet dependency which is version 5.3.0
npm WARN unmet dependency /var/www/ghost/node_modules/mocha requires escape-string-regexp@'1.0.2' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/escape-string-regexp,
npm WARN unmet dependency which is version 1.0.5
npm WARN unmet dependency /var/www/ghost/node_modules/istanbul/node_modules/js-yaml/node_modules/argparse requires lodash@'>= 3.2.0 < 4.0.0' but will load
npm WARN unmet dependency /var/www/ghost/node_modules/lodash,
npm WARN unmet dependency which is version 4.13.1
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.
×
Same problem here.