[GH-ISSUE #446] Bad Gateway when trying to access ressource #3400

Closed
opened 2026-04-20 07:20:36 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @TjarkD on GitHub (Mar 31, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/446

I set up Pangolin and added my Homelab as a site. The connection to homelab has been established.
I installed Newt as a Docker container in the homelab.
Newt reports the following when I try to establish access.

newt | INFO: 2025/03/31 20:41:43 WireGuard device created. Lets ping the server now... newt | INFO: 2025/03/31 20:41:43 Ping attempt 1 of 15 newt | INFO: 2025/03/31 20:41:43 Pinging 100.89.128.1 newt | INFO: 2025/03/31 20:41:43 Ping latency: 40.916267ms newt | INFO: 2025/03/31 20:41:43 Starting ping check newt | INFO: 2025/03/31 20:41:43 Started tcp proxy from 100.89.128.4:55954 to 192.168.178.93:8086 newt | ERROR: 2025/03/31 20:41:46 Error connecting to target: dial tcp 192.168.178.93:8086: connect: connection refused

The Application that i want to access is Jellyfin, i have Jellyfin installed as a deb package on my homelab host. Locally i can access Jellyfin via 192.168.178.93:8086

Originally created by @TjarkD on GitHub (Mar 31, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/446 I set up Pangolin and added my Homelab as a site. The connection to homelab has been established. I installed Newt as a Docker container in the homelab. Newt reports the following when I try to establish access. `newt | INFO: 2025/03/31 20:41:43 WireGuard device created. Lets ping the server now... newt | INFO: 2025/03/31 20:41:43 Ping attempt 1 of 15 newt | INFO: 2025/03/31 20:41:43 Pinging 100.89.128.1 newt | INFO: 2025/03/31 20:41:43 Ping latency: 40.916267ms newt | INFO: 2025/03/31 20:41:43 Starting ping check newt | INFO: 2025/03/31 20:41:43 Started tcp proxy from 100.89.128.4:55954 to 192.168.178.93:8086 newt | ERROR: 2025/03/31 20:41:46 Error connecting to target: dial tcp 192.168.178.93:8086: connect: connection refused` The Application that i want to access is Jellyfin, i have Jellyfin installed as a deb package on my homelab host. Locally i can access Jellyfin via 192.168.178.93:8086
Author
Owner

@oschwartz10612 commented on GitHub (Apr 1, 2025):

Hello!

Looks like some kind of routing error between newt and your Jellyfin application. Is newt on the same host in a docker container or a separate one? If its the same host can you try to use network_mode: host for the newt docker and see if localhost:8086 works?

It is hard to troubleshoot stuff like this because it is all up to your networking situation. Make sure you can reach your Jellyfin from that IP from the newt host.

<!-- gh-comment-id:2767741506 --> @oschwartz10612 commented on GitHub (Apr 1, 2025): Hello! Looks like some kind of routing error between newt and your Jellyfin application. Is newt on the same host in a docker container or a separate one? If its the same host can you try to use `network_mode: host` for the newt docker and see if `localhost:8086` works? It is hard to troubleshoot stuff like this because it is all up to your networking situation. Make sure you can reach your Jellyfin from that IP from the newt host.
Author
Owner

@TjarkD commented on GitHub (Apr 1, 2025):

Hey,

thank you for you support.
With host mode it also does not work.
If I test the accesebillity of Jellyfin via localhost it works.

Image

Setup in Pangolin Dashboard

Image

Same error in docker logs as before

Image

Newt and Jellyfin are on the same host, I also tried the non docker version of newt yesterday. But had the same result

<!-- gh-comment-id:2768379774 --> @TjarkD commented on GitHub (Apr 1, 2025): Hey, thank you for you support. With host mode it also does not work. If I test the accesebillity of Jellyfin via localhost it works. ![Image](https://github.com/user-attachments/assets/7128a04c-1238-414e-b863-340ae044cdee) Setup in Pangolin Dashboard ![Image](https://github.com/user-attachments/assets/d18c62c2-afe9-4f17-9622-66231eeab904) Same error in docker logs as before ![Image](https://github.com/user-attachments/assets/d7dba06d-e7cd-434e-a606-1294f527f8d8) Newt and Jellyfin are on the same host, I also tried the non docker version of newt yesterday. But had the same result
Author
Owner

@tannkosten commented on GitHub (Apr 1, 2025):

Your curl goes to port 8096 (default port of jellyfin), while the rest seems to go to 8086.
Is that correct, or a typo? :)

<!-- gh-comment-id:2769301232 --> @tannkosten commented on GitHub (Apr 1, 2025): Your curl goes to port 8096 (default port of jellyfin), while the rest seems to go to 8086. Is that correct, or a typo? :)
Author
Owner

@TjarkD commented on GitHub (Apr 1, 2025):

Thank you, you are right.
I just didnt see the typo. Now all works

<!-- gh-comment-id:2769430953 --> @TjarkD commented on GitHub (Apr 1, 2025): Thank you, you are right. I just didnt see the typo. Now all works
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#3400