Failed (111: Connection refused) when uploading uploaded images via ftp.


#1

Hello everyone,

I have a blog hosted on a Droplet on DigitalOcean and a few days ago my server failed and I could not recover the Ghost installation. I performed the installation on a new server using a One-Click Application Droplet.

As I usually back up my sites I imported all of the blog articles through Ghost’s own dashboard, and then I used FileZilla to upload the images of each article.

However, not all images have been recognized, some are not displayed either in the panel or in the article.

The error log contains the following message:

2018/07/23 16:51:18 [error] 1627#1627: *6141 connect() failed (111: Connection refused) while connecting to upstream, client: 172.68.218.52, server: euaggelion.blog.br, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:2369/", host: "euaggelion.blog.br", referrer: "https://euaggelion.blog.br/"

2018/07/23 16:52:44 [error] 1627#1627: *6143 connect() failed (111: Connection refused) while connecting to upstream, client: 172.68.218.52, server: euaggelion.blog.br, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:2369/", host: "euaggelion.blog.br", referrer: "https://euaggelion.blog.br/"

2018/07/23 16:52:47 [error] 1627#1627: *6145 connect() failed (111: Connection refused) while connecting to upstream, client: 172.68.218.52, server: euaggelion.blog.br, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:2369/", host: "euaggelion.blog.br", referrer: "https://euaggelion.blog.br/"

2018/07/23 16:52:49 [error] 1627#1627: *6147 connect() failed (111: Connection refused) while connecting to upstream, client: 172.68.218.52, server: euaggelion.blog.br, request: "GET /content/images/2018/01/logo-3.png/ HTTP/1.1", upstream: "http://127.0.0.1:2369/content/images/2018/01/logo-3.png/", host: "euaggelion.blog.br", referrer: "https://euaggelion.blog.br/"

2018/07/23 16:52:49 [error] 1627#1627: *6148 connect() failed (111: Connection refused) while connecting to upstream, client: 172.68.218.52, server: euaggelion.blog.br, request: "GET /content/images/2018/02/o-semeador-1.jpg/ HTTP/1.1", upstream: "http://127.0.0.1:2369/content/images/2018/02/o-semeador-1.jpg/", host: "euaggelion.blog.br", referrer: "https://euaggelion.blog.br/"

2018/07/23 16:54:30 [error] 1625#1625: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.118.34, server: euaggelion.blog.br, request: "POST /2014/12/devocional-155-salmo-119170-171.html?shared=email&msg=fail&pdf=40?share=email&nb=1 HTTP/1.1", upstream: "http://127.0.0.1:2369/2014/12/devocional-155-salmo-119170-171.html?shared=email&msg=fail&pdf=40?share=email&nb=1", host: "euaggelion.blog.br", referrer: "https://euaggelion.blog.br/2014/12/devocional-155-salmo-119170-171.html?shared=email&msg=fail&pdf=40?share=email&nb=1"

2018/07/23 16:54:52 [error] 1625#1625: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 172.69.70.209, server: euaggelion.blog.br, request: "GET /feed HTTP/1.1", upstream: "http://127.0.0.1:2369/feed", host: "euaggelion.blog.br"

2018/07/23 16:57:19 [error] 1625#1625: *24 connect() failed (111: Connection refused) while connecting to upstream, client: 172.68.218.52, server: euaggelion.blog.br, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:2369/", host: "euaggelion.blog.br", referrer: "https://euaggelion.blog.br/"

2018/07/23 16:57:20 [error] 1625#1625: *25 connect() failed (111: Connection refused) while connecting to upstream, client: 172.68.218.52, server: euaggelion.blog.br, request: "GET /content/images/2018/01/logo-3.png/ HTTP/1.1", upstream: "http://127.0.0.1:2369/content/images/2018/01/logo-3.png/", host: "euaggelion.blog.br", referrer: "https://euaggelion.blog.br/"

2018/07/23 16:57:20 [error] 1625#1625: *51 connect() failed (111: Connection refused) while connecting to upstream, client: 172.68.218.52, server: euaggelion.blog.br, request: "GET /content/images/2018/02/o-semeador-1.jpg/ HTTP/1.1", upstream: "http://127.0.0.1:2369/content/images/2018/02/o-semeador-1.jpg/", host: "euaggelion.blog.br", referrer: "https://euaggelion.blog.br/"

#2

Did you make any nginx changes? Did you set your url as the url for Ghost? Seems weird that it says the referrer is your url but the upstream is the ip? Not 100% sure on that though, just thinking out loud.


#3

No, I did not change any Nginx configuration. I installed Ghost using DigitalOcean auto-installation, that is why did not do any additional configuration.

Yeap, the Ghost url was still set during the installation process and the upstream address showed is the localhost and the port configured in config.production.json:

{
"url": "https://euaggelion.blog.br",
"server": {
"port": 2369,
"host": "127.0.0.1"
}

#4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.