Unable to reach the origin service

2022-10-12T16:59:09Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp [::1]:80: connect: connection refused" connIndex=0 dest=https://cloud.website.org/favicon.ico ip=198.41.200.63 type=http
2022-10-12T16:59:09Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp [::1]:80: connect: connection refused" connIndex=0 dest=https://cloud.website.org/favicon.ico ip=198.41.200.63 type=http
8 Replies
Erisa
Erisa3y ago
Whats your tunnel config ("Public hostnames" if dash tunnel)? What happens if you curl localhost -6 -v on the machine?
fleabeard
fleabeardOP3y ago
My cloudflared config.yaml is using this:
ingress:
- service: http://localhost
ingress:
- service: http://localhost
curl localhost -6 -v
* Trying ::1:80...
* connect to ::1 port 80 failed: Connection refused
* Failed to connect to localhost port 80 after 0 ms: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 80 after 0 ms: Connection refused
curl localhost -6 -v
* Trying ::1:80...
* connect to ::1 port 80 failed: Connection refused
* Failed to connect to localhost port 80 after 0 ms: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 80 after 0 ms: Connection refused
I already run a website on another VM on my network for Nextcloud using CF Tunnels. I'm trying to get another instance of it up with another domain. Maybe that's my problem?
Erisa
Erisa3y ago
What if you try curl witth -4 instead? What kind of webserver setup is the website running on?
fleabeard
fleabeardOP3y ago
curl localhost -4 -v
* Trying 127.0.0.1:80...
* connect to 127.0.0.1 port 80 failed: Connection refused
* Failed to connect to localhost port 80 after 0 ms: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 80 after 0 ms: Connection refused
curl localhost -4 -v
* Trying 127.0.0.1:80...
* connect to 127.0.0.1 port 80 failed: Connection refused
* Failed to connect to localhost port 80 after 0 ms: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 80 after 0 ms: Connection refused
It's ubuntu 22.04 running apache as the webserver
Erisa
Erisa3y ago
Okay so cloudflared is trying to connect to localhost port 80 and there is nothing there for it to connect to, which is why its failing does the website work from another IP, do you know what IP or port apache is listening on?
fleabeard
fleabeardOP3y ago
Oh you know what? Apache isn't running! Let me fix that. Sheeesh There's an error in my config
Erisa
Erisa3y ago
notlikecatgoogly its okay let me know if you run into any issues after apache is running
fleabeard
fleabeardOP3y ago
So sorry for wasting your time. That's all it was. Everything is working now! ❤️
Want results from more Discord servers?
Add your server