502 bad gateway after last update

My site is kurazav.com and after the last update, it went down and return the error - 502 Bad gateway.
Ghost-CLI version: 1.15.3 Ghost version: 3.40.3

The error.log from nginx returns a bunch of - [error] 5774#5774: *5 connect() failed (111: Connection refused) while connecting to upstream.

It was working just fine, today I did a ghost update and this happened.

What could have gone wrong?

@kurazav, it does happen to me sometimes, did you try to restart your ghost ?

the command is : ghost restart
You can also try : ghost doctor

You will have more infos about the commands here : Ghost-CLI - A fully loaded tool for installation and configuration

Good luck

I have restarted my ghost instance and checked the doctor, but nothing out of the common.

do a ghost update, the new version is 3.40.4, it all works for me

Well, it doesn’t work.

Paste nginx error here…

2021/01/06 00:25:56 [error] 5774#5774: *123 connect() failed (111: Connection refused) while connecting to upstream, client: 35.153.127.45, server: kurazav.com, request: β€œGET /sellers.json HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/sellers.json”, host: β€œkurazav.com” 2021/01/06 00:44:08 [error] 5774#5774: *126 connect() failed (111: Connection refused) while connecting to upstream, client: 47.254.170.110, server: kurazav.com, request: β€œGET /dns-query?dns=AAABAAABAAAAAAAAA3d3dwViYWlkdQNjb20AAAEAAQ HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/dns-query?dns=AAABAAABAAAAAAAAA3d3dwViYWlkdQNjb20AAAEAAQ”, host: β€œ161.35.121.255:443” 2021/01/06 02:13:28 [error] 5774#5774: *158 connect() failed (111: Connection refused) while connecting to upstream, client: 200.106.78.151, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com” 2021/01/06 02:13:29 [error] 5774#5774: *158 connect() failed (111: Connection refused) while connecting to upstream, client: 200.106.78.151, server: kurazav.com, request: β€œGET /favicon.ico HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/favicon.ico”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com/” 2021/01/06 02:14:12 [error] 5774#5774: *158 connect() failed (111: Connection refused) while connecting to upstream, client: 200.106.78.151, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com” 2021/01/06 02:14:12 [error] 5774#5774: *158 connect() failed (111: Connection refused) while connecting to upstream, client: 200.106.78.151, server: kurazav.com, request: β€œGET /favicon.ico HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/favicon.ico”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com/” 2021/01/06 02:20:13 [error] 5774#5774: *165 connect() failed (111: Connection refused) while connecting to upstream, client: 66.249.66.159, server: kurazav.com, request: β€œGET /robots.txt HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/robots.txt”, host: β€œkurazav.com” 2021/01/06 02:27:13 [error] 5774#5774: *167 connect() failed (111: Connection refused) while connecting to upstream, client: 66.249.66.157, server: kurazav.com, request: β€œGET /robots.txt HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/robots.txt”, host: β€œkurazav.com” 2021/01/06 02:32:07 [error] 5774#5774: *170 connect() failed (111: Connection refused) while connecting to upstream, client: 66.249.66.158, server: kurazav.com, request: β€œGET /robots.txt HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/robots.txt”, host: β€œkurazav.com” 2021/01/06 02:56:32 [error] 5774#5774: *174 connect() failed (111: Connection refused) while connecting to upstream, client: 184.105.247.196, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œ161.35.121.255” 2021/01/06 02:59:13 [error] 5774#5774: *178 connect() failed (111: Connection refused) while connecting to upstream, client: 80.82.65.80, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œ161.35.121.255:443” 2021/01/06 03:09:17 [error] 5774#5774: *191 connect() failed (111: Connection refused) while connecting to upstream, client: 128.14.134.134, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œ161.35.121.255” 2021/01/06 04:01:12 [error] 5774#5774: *196 connect() failed (111: Connection refused) while connecting to upstream, client: 128.14.209.226, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œ161.35.121.255” 2021/01/06 04:02:07 [error] 5774#5774: *199 connect() failed (111: Connection refused) while connecting to upstream, client: 3.126.62.13, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 04:08:20 [error] 5774#5774: *201 connect() failed (111: Connection refused) while connecting to upstream, client: 54.36.148.202, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 05:48:16 [error] 5774#5774: *213 connect() failed (111: Connection refused) while connecting to upstream, client: 197.62.191.96, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 05:48:17 [error] 5774#5774: *213 connect() failed (111: Connection refused) while connecting to upstream, client: 197.62.191.96, server: kurazav.com, request: β€œGET /favicon.ico HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/favicon.ico”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com/” 2021/01/06 05:54:28 [error] 5774#5774: *217 connect() failed (111: Connection refused) while connecting to upstream, client: 54.196.141.241, server: kurazav.com, request: β€œGET /sellers.json HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/sellers.json”, host: β€œkurazav.com” 2021/01/06 06:19:34 [error] 5774#5774: *220 connect() failed (111: Connection refused) while connecting to upstream, client: 47.254.170.110, server: kurazav.com, request: β€œGET /dns-query?dns=AAABAAABAAAAAAAAA3d3dwViYWlkdQNjb20AAAEAAQ HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/dns-query?dns=AAABAAABAAAAAAAAA3d3dwViYWlkdQNjb20AAAEAAQ”, host: β€œ161.35.121.255:443” 2021/01/06 07:30:44 [error] 5774#5774: *228 connect() failed (111: Connection refused) while connecting to upstream, client: 87.123.197.11, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 07:30:44 [error] 5774#5774: *228 connect() failed (111: Connection refused) while connecting to upstream, client: 87.123.197.11, server: kurazav.com, request: β€œGET /favicon.ico HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/favicon.ico”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com/” 2021/01/06 07:32:46 [error] 5774#5774: *231 connect() failed (111: Connection refused) while connecting to upstream, client: 192.241.216.65, server: kurazav.com, request: β€œGET /actuator/health HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/actuator/health”, host: β€œ161.35.121.255” 2021/01/06 07:51:27 [error] 5774#5774: *233 connect() failed (111: Connection refused) while connecting to upstream, client: 209.17.96.242, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 08:12:51 [error] 5774#5774: *235 connect() failed (111: Connection refused) while connecting to upstream, client: 139.91.68.36, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œdisneyave.com” 2021/01/06 09:25:54 [error] 5774#5774: *241 connect() failed (111: Connection refused) while connecting to upstream, client: 97.107.140.60, server: kurazav.com, request: β€œGET /rss/ HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/rss/”, host: β€œkurazav.com” 2021/01/06 09:45:48 [error] 5774#5774: *243 connect() failed (111: Connection refused) while connecting to upstream, client: 45.155.205.108, server: kurazav.com, request: β€œPOST /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php”, host: β€œ161.35.121.255:443” 2021/01/06 09:45:48 [error] 5774#5774: *245 connect() failed (111: Connection refused) while connecting to upstream, client: 45.155.205.108, server: kurazav.com, request: β€œPOST /api/jsonws/invoke HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/api/jsonws/invoke”, host: β€œ161.35.121.255:443” 2021/01/06 09:45:51 [error] 5774#5774: *248 connect() failed (111: Connection refused) while connecting to upstream, client: 45.155.205.108, server: kurazav.com, request: β€œGET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php”, host: β€œ161.35.121.255:443” 2021/01/06 09:45:53 [error] 5774#5774: *250 connect() failed (111: Connection refused) while connecting to upstream, client: 45.155.205.108, server: kurazav.com, request: β€œGET /index.php?s=/Index/\think\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1]=HelloThinkPHP21 HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/index.php?s=/Index/\think\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP21”, host: β€œ161.35.121.255:443” 2021/01/06 09:45:56 [error] 5774#5774: *252 connect() failed (111: Connection refused) while connecting to upstream, client: 45.155.205.108, server: kurazav.com, request: β€œGET /?XDEBUG_SESSION_START=phpstorm HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/?XDEBUG_SESSION_START=phpstorm”, host: β€œ161.35.121.255:443” 2021/01/06 09:45:56 [error] 5774#5774: *253 connect() failed (111: Connection refused) while connecting to upstream, client: 45.155.205.108, server: kurazav.com, request: β€œGET /wp-content/plugins/wp-file-manager/readme.txt HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/wp-content/plugins/wp-file-manager/readme.txt”, host: β€œ161.35.121.255:443” 2021/01/06 09:45:58 [error] 5774#5774: *256 connect() failed (111: Connection refused) while connecting to upstream, client: 45.155.205.108, server: kurazav.com, request: β€œPOST /mifs/.;/services/LogService HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/mifs/.;/services/LogService”, host: β€œ161.35.121.255:443”, referrer: β€œhttps://161.35.121.255:443” 2021/01/06 09:46:01 [error] 5774#5774: *258 connect() failed (111: Connection refused) while connecting to upstream, client: 45.155.205.108, server: kurazav.com, request: β€œPOST /Autodiscover/Autodiscover.xml HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/Autodiscover/Autodiscover.xml”, host: β€œ161.35.121.255:443” 2021/01/06 09:46:03 [error] 5774#5774: *260 connect() failed (111: Connection refused) while connecting to upstream, client: 45.155.205.108, server: kurazav.com, request: β€œGET /console/ HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/console/”, host: β€œ161.35.121.255:443” 2021/01/06 10:02:48 [error] 5774#5774: *263 connect() failed (111: Connection refused) while connecting to upstream, client: 3.126.62.13, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 10:23:09 [error] 5774#5774: *270 connect() failed (111: Connection refused) while connecting to upstream, client: 46.101.49.73, server: kurazav.com, request: β€œGET /system_api.php HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/system_api.php”, host: β€œ161.35.121.255” 2021/01/06 10:23:09 [error] 5774#5774: *275 connect() failed (111: Connection refused) while connecting to upstream, client: 46.101.49.73, server: kurazav.com, request: β€œGET /c/version.js HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/c/version.js”, host: β€œ161.35.121.255” 2021/01/06 10:23:10 [error] 5774#5774: *280 connect() failed (111: Connection refused) while connecting to upstream, client: 46.101.49.73, server: kurazav.com, request: β€œGET /streaming/clients_live.php HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/streaming/clients_live.php”, host: β€œ161.35.121.255” 2021/01/06 10:23:11 [error] 5774#5774: *285 connect() failed (111: Connection refused) while connecting to upstream, client: 46.101.49.73, server: kurazav.com, request: β€œGET /stalker_portal/c/version.js HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/stalker_portal/c/version.js”, host: β€œ161.35.121.255” 2021/01/06 10:23:12 [error] 5774#5774: *290 connect() failed (111: Connection refused) while connecting to upstream, client: 46.101.49.73, server: kurazav.com, request: β€œGET /client_area/ HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/client_area/”, host: β€œ161.35.121.255” 2021/01/06 10:23:12 [error] 5774#5774: *295 connect() failed (111: Connection refused) while connecting to upstream, client: 46.101.49.73, server: kurazav.com, request: β€œGET /stalker_portal/c/ HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/stalker_portal/c/”, host: β€œ161.35.121.255” 2021/01/06 10:27:43 [error] 5774#5774: *298 connect() failed (111: Connection refused) while connecting to upstream, client: 34.105.30.79, server: kurazav.com, request: β€œHEAD / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com” 2021/01/06 10:32:27 [error] 5774#5774: *300 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com” 2021/01/06 10:34:51 [error] 5774#5774: *300 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 10:40:25 [error] 5774#5774: *309 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 10:44:34 [error] 5774#5774: *312 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 10:45:18 [error] 5774#5774: *314 connect() failed (111: Connection refused) while connecting to upstream, client: 45.83.67.125, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œ161.35.121.255” 2021/01/06 10:51:10 [error] 5774#5774: *316 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 10:51:13 [error] 5774#5774: *316 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 10:54:11 [error] 28181#28181: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com” 2021/01/06 10:56:47 [error] 28181#28181: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 11:09:50 [error] 28181#28181: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 11:11:37 [error] 28181#28181: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 11:11:39 [error] 28181#28181: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 11:35:35 [error] 665#665: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 11:36:46 [error] 665#665: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 11:42:33 [error] 665#665: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 35.227.167.61, server: kurazav.com, request: β€œHEAD / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com” 2021/01/06 12:14:59 [error] 665#665: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 12:25:17 [error] 665#665: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 185.81.157.115, server: kurazav.com, request: β€œGET /wp-admin/install.php HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/wp-admin/install.php”, host: β€œkurazav.com” 2021/01/06 12:52:41 [error] 665#665: *21 connect() failed (111: Connection refused) while connecting to upstream, client: 139.91.68.36, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œwebexp-ipqa-ion.com” 2021/01/06 13:39:27 [error] 665#665: *30 connect() failed (111: Connection refused) while connecting to upstream, client: 202.67.41.31, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 13:39:28 [error] 665#665: *32 connect() failed (111: Connection refused) while connecting to upstream, client: 202.67.41.31, server: kurazav.com, request: β€œGET /favicon.ico HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/favicon.ico”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com/” 2021/01/06 13:40:46 [error] 665#665: *37 connect() failed (111: Connection refused) while connecting to upstream, client: 202.67.41.31, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 13:40:49 [error] 665#665: *37 connect() failed (111: Connection refused) while connecting to upstream, client: 202.67.41.31, server: kurazav.com, request: β€œGET /ghost HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/ghost”, host: β€œkurazav.com” 2021/01/06 14:18:05 [error] 665#665: *42 connect() failed (111: Connection refused) while connecting to upstream, client: 37.3.82.238, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com” 2021/01/06 14:18:05 [error] 665#665: *44 connect() failed (111: Connection refused) while connecting to upstream, client: 37.3.82.238, server: kurazav.com, request: β€œGET /favicon.ico HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/favicon.ico”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com/” 2021/01/06 14:58:45 [error] 665#665: *47 connect() failed (111: Connection refused) while connecting to upstream, client: 197.62.191.96, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: "kurazav.com"2021/01/06 14:58:45 [error] 665#665: *47 connect() failed (111: Connection refused) while connecting to upstream, client: 197.62.191.96, server: kurazav.com, request: β€œGET /favicon.ico HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/favicon.ico”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com/” 2021/01/06 14:58:49 [error] 665#665: *47 connect() failed (111: Connection refused) while connecting to upstream, client: 197.62.191.96, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: "kurazav.com"2021/01/06 14:58:50 [error] 665#665: *47 connect() failed (111: Connection refused) while connecting to upstream, client: 197.62.191.96, server: kurazav.com, request: β€œGET /favicon.ico HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/favicon.ico”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com/” 2021/01/06 14:58:50 [error] 665#665: *47 connect() failed (111: Connection refused) while connecting to upstream, client: 197.62.191.96, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: "kurazav.com"2021/01/06 14:58:50 [error] 665#665: *47 connect() failed (111: Connection refused) while connecting to upstream, client: 197.62.191.96, server: kurazav.com, request: β€œGET /favicon.ico HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/favicon.ico”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com/” 2021/01/06 15:01:03 [error] 665#665: *58 connect() failed (111: Connection refused) while connecting to upstream, client: 54.208.55.240, server: kurazav.com, request: β€œGET /sellers.json HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/sellers.json”, host: β€œkurazav.com” 2021/01/06 15:30:45 [error] 665#665: *63 connect() failed (111: Connection refused) while connecting to upstream, client: 74.120.14.55, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œ161.35.121.255:443” 2021/01/06 15:30:45 [error] 665#665: *65 connect() failed (111: Connection refused) while connecting to upstream, client: 74.120.14.55, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œ161.35.121.255” 2021/01/06 15:43:44 [error] 665#665: *67 connect() failed (111: Connection refused) while connecting to upstream, client: 193.118.53.202, server: kurazav.com, request: β€œGET / HTTP/1.1”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œ161.35.121.255” 2021/01/06 16:00:28 [error] 665#665: *70 connect() failed (111: Connection refused) while connecting to upstream, client: 188.24.48.19, server: kurazav.com, request: β€œGET / HTTP/2.0”, upstream: β€œhttp://127.0.0.1:2368/”, host: β€œkurazav.com”, referrer: β€œhttp://kurazav.com”

In the error above, the port that the connection was trying to be established on was :2368 but doing a netstat -plant I saw that the correct port was :2369

I don’t know what caused this change, as it was working just fine before I had updated ghost. Apparently, the update changed some of my ports in the nginx configurations for my website -> /etc/nginx/sites-enabled/kurazav.com-ssl.conf & /kurazav.com.conf) had the ports set to :2368 instead of :2369

Hi, I have the same problem with my site https://poligonoboletin.cl/. Would you be so kind to provide more detailed information on how you found the error and solved it?

It seems like you have solved your problem.
Anyway, I have checked if the port is configured correctly in all conf files, and it wasn’t and that’s why it didn’t work for me.

1 Like