-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New 4.0 does not work when accessing HA through reverse proxy #371
Comments
As I noted in my ticket #372 I saw this exact same problem when upgrading from 3.7 to 4.0. |
@frenck is there any additional information we could provide you to help get to the bottom of this? |
I would suggest, test it under a different proxy (I'm going to assume both reports are Apache), and also look upstream for issues. The addon wraps Code-Server, the major changes were in that release. |
This looks like it could be related coder/code-server#4723. |
@bakerkj not sure why you tagged me. I don't know if I need extra information as I haven't looked into it 🤷 If I need something I would post that. |
Hi, i'm using caddy and I have no issues with 4.0.0 or 4.1.0 |
I have teh same issue on 4.1. I have reverted to 3.7 to continue to work. my Hass box is running behind a Apache Reverse Proxy, and this is the only addon that is not working. |
Same issue running Apache. I think the issue may be with the websocket for: Inspecting it in chrome, I don't see any response to the initial auth message when accessing through the proxy, while without a proxy I see a near immediate response. EDIT: It looks like the bakerkj is exaclty right, this is an error upstream coder/code-server#4723. They seem to be aware of it ... and I think working on it? |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
This is still broken and clearly impacting many users. Please don't close the issue. |
I can confirm the problem with Studio Code Server 4.1.0 and Home Assistant 2022.3.3. ProxyPreserveHost On RewriteEngine on |
Also having the same issue since the 4.0 update where Studio Code cannot be accessed using an apache reverse proxy. |
This comment was marked as abuse.
This comment was marked as abuse.
This was the push I needed to migrate my reverse proxy server from Apache to NGINX, which had been on my long term to do list for years. I set up NGINX Proxy Manager via Docker Compose, and recreating the proxy hosts was much less painful than I had feared. If migrating is feasible for anyone, I would highly recommend it. |
moving to nginx won't help you resolving this issue. |
YMMV, I suppose, but the default configuration in NGINX Proxy Manager works flawlessly with my Home Assistant instance, including the Studio Code Server 4.1.0 add-on, without the errors that I had encountered using Apache reverse proxy. |
To circumvent the issue, I'm ussing the private IP address of my server (http://192.168.x.x:8123) to access Home Assistant + Stuio Server when I'm at home. |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
Still happens for me on Home Assistant 2022.4.6 |
The issue is solved if you follow the solution and upgrade Apache as noted here: |
Confirmed that updating Apache to 2.4.53 fixed the issue for me. |
Closing, as it's not related to the addon. |
Problem/Motivation
New 4.0 update has stopped access to the add-on
Expected behavior
When opening the Web-UI for the add-on, it should just display and work correctly
Actual behavior
After a few seconds of a blank page an error box is shown with "An unexpected error occurred that requires a reload of this page."
"The workbench failed to connect to the server (Error: Time limit reached)"
Steps to reproduce
Visit the Visual Studio Code add-on Web-UI using a reverse proxy on an HTTPS connection
Proposed changes
This worked correctly on previous versions but has now stopped working ... the add-on is accessible when browsing HA directly on the local network using the local IP address without HTTPS.
The text was updated successfully, but these errors were encountered: