pangolin: internal server error trying to proxy home assistant #242
Replies: 8 comments 20 replies
-
You have to add your Newt server as proxy in HA configuration.yaml:
restart HA |
Beta Was this translation helpful? Give feedback.
-
Hi,Thanks, that sounds like the missing element.But I still make some mistake, because I still get the error message internal server error
What I did
1) configuration.yaml:
http:
use_x_forwarded_for: true
trusted_proxies:
# Newt
- 192.168.xx.xxx (Ip of my NAS wer pangolin runs as docker compose)
2) Pangolin-Webserver:
Ressource with external ipv4 of home assistant and port defined at my router. Connection as https(Http causes 400: bad Gateway)
3) router:
Definition of a Port (Typ TCP) for access ipv4&6 to homeassistant
|
Beta Was this translation helpful? Give feedback.
-
No sorry; no one seems to have this problem or solved it. The only way is the external WAN. What I haven’t tried so far is using WireGuard instead of newt. Maybe someone has experienced this ? What is the difference ? |
Beta Was this translation helpful? Give feedback.
-
I ran into this issue but in my debian LXC container. You need to use the internal Newt tunnel IP address. Hope this helps someone. My setup: Pangolin on VPS. Newt in local hosted Proxmox Debian LXC with static ip - 192.168.10.214
|
Beta Was this translation helpful? Give feedback.
-
I have the same issue. I have Pangolin on a VPS, and Newt and Home Assistant running on two separate docker containers at home. Added the Newt container ip as a trusted proxy, and I'm getting the "Internal Server Error" response. Nothing is showing up in the Pangolin or Newt logs. In order to get something from Home Assistant, I had to add the following to my
and I get in the home assistant logs:
It seems to be an issue with the headers? But I don't have time to look more into it now. Hopefully this gets someone a little further on the issue. |
Beta Was this translation helpful? Give feedback.
-
I think i found a way Here is what i have set as bypass rules and here is what needs to be written in the configuration.yml http: |
Beta Was this translation helpful? Give feedback.
-
Hi, It worked, as soon, as I changed in pangolin the 'method' in the 'target'-definition from https -> http. The resource URL is still defined with https and also when I open the resource website, which connects to my homeassistant, my browser says, the connection is secured. But I'm not sure, if this configuration in pangolin is correct now or if I actually should select method https, as described on the pangolin website: https://docs.fossorial.io/Community%20Guides/homeassistant#exposing-home-assistant-through-addon Does anyone know more here? |
Beta Was this translation helpful? Give feedback.
-
This thread has helped me get oh so close to making my setup work. I'm trying to access my HAOS server through a pangolin and have felt all the headaches above. It all worked once I added the auth bypass rules laid out by @steuerlexi, with one addition to include include my custom dashboard. Obviously, it's troublesome to have essentially everything bypassing authorization, so I was really hoping the solution that @Ferdinand99 said about changing the target method to http was the answer. Unfortunately, that didn't work for me. With that setting I can't access from outside my network via either the HA app or the web UI. This clearly has to be something in the pangolin auth process, since everything works once you bypass enough. I'm just a hobbyist and new to RPS, Docker, Traefik, etc. and am struggling to do any of my own troubleshooting. Does anyone have any other suggestions beyond the above? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
pangolin works fine with my infrastructure and some application except to home assistant. Here I get the message "internal server error". I've used the same seeting compared to other applications in my local network and checked the settings of home assistant - I have no idea what to change or where to look at.
Here ist my setup:
I used the same appoach for home assiatant but got the mentioned error. Home assistant runs on a separate mini-computer, system is open to external ipv4 (which is the internal).
Has anyone an idea ?
Thanks
Stephan
Beta Was this translation helpful? Give feedback.
All reactions