headplane icon indicating copy to clipboard operation
headplane copied to clipboard

Unable to decode turbo-stream response

Open gorquan opened this issue 9 months ago • 7 comments
trafficstars

Hello,I use the docker image ghcr.io/tale/headplane:0.4.1, and run it behind the proxy(traefik), trefik will provide https and proxy to port 3000 visit the container(headplane). it's work!

My Headscale also run behind the proxy(traefik), but listen port 80. And also traefik provide https and proxy to port 80 visit the headscale.

But within a short time, headplane will pop up "Unable to decode turbo-stream response". I check the log in terminal, but nothing information about error.

This is my headplane docker compose file.

services: headplane: image: ghcr.io/tale/headplane:0.4.1 labels: - "traefik.enable=true" - "traefik.http.routers.headplane-router-http.rule=Host(xxx) && PathPrefix(/admin)" - "traefik.http.routers.headplane-router-http.entrypoints=http" - "traefik.http.routers.headplane-router-http.middlewares=headplane-redirect-to-https" - "traefik.http.middlewares.headplane-redirect-to-https.redirectscheme.scheme=https" - "traefik.http.middlewares.headplane-redirect-to-https.redirectscheme.permanent=true" - "traefik.http.routers.headplane-router-https.rule=Host(xxx) && PathPrefix(/admin)" - "traefik.http.routers.headplane-router-https.entrypoints=https" - "traefik.http.routers.headplane-router-https.tls=true" - "traefik.http.routers.headplane-router-https.service=headplane-service" - "traefik.http.routers.headplane-router-https.middlewares=headplane-header" - "traefik.http.services.headplane-service.loadbalancer.server.port=3000" - "traefik.http.services.headplane-service.loadbalancer.healthcheck.port=3000" - "traefik.http.services.headplane-service.loadbalancer.server.scheme=http" - "traefik.http.middlewares.headplane-header.headers.stsIncludeSubdomains=true" - "traefik.http.middlewares.headplane-header.headers.forceSTSHeader=true" - "traefik.http.middlewares.headplane-header.headers.stsPreload=true" - "traefik.http.middlewares.headplane-header.headers.stsSeconds=31536000" - "traefik.http.middlewares.headplane-header.headers.isDevelopment=false" restart: always container_name: headplane hostname: headplane environment: COOKIE_SECRET: 'xxx' HEADSCALE_INTEGRATION: 'docker' HEADSCALE_CONTAINER: 'headscale' ROOT_API_KEY: 'xxx' DISABLE_API_KEY_LOGIN: 'true' volumes: - /data/headscale/config:/etc/headscale/ - /data/headscale/data:/var/lib/headscale - /var/run/docker.sock:/var/run/docker.sock:ro

networks: default: external: name: traefik

I think it is a great work, so i want to use it to help me manager headscale. How can i do to fix this problem? Thanks.

gorquan avatar Feb 08 '25 05:02 gorquan

Add some information, my headscale version is headscale/headscale:v0.24

gorquan avatar Feb 08 '25 05:02 gorquan

This is probably not helpful but I closed the tab and reopened it going to the root /admin url (I think my problem was reloading a stale tab following a restart)

zmweske avatar Feb 10 '25 03:02 zmweske

Hello,I use the docker image ghcr.io/tale/headplane:0.4.1, and run it behind the proxy(traefik), trefik will provide https and proxy to port 3000 visit the container(headplane). it's work!

My Headscale also run behind the proxy(traefik), but listen port 80. And also traefik provide https and proxy to port 80 visit the headscale.

But within a short time, headplane will pop up "Unable to decode turbo-stream response". I check the log in terminal, but nothing information about error.

This is my headplane docker compose file.

services: headplane: image: ghcr.io/tale/headplane:0.4.1 labels: - "traefik.enable=true" - "traefik.http.routers.headplane-router-http.rule=Host(xxx) && PathPrefix(/admin)" - "traefik.http.routers.headplane-router-http.entrypoints=http" - "traefik.http.routers.headplane-router-http.middlewares=headplane-redirect-to-https" - "traefik.http.middlewares.headplane-redirect-to-https.redirectscheme.scheme=https" - "traefik.http.middlewares.headplane-redirect-to-https.redirectscheme.permanent=true" - "traefik.http.routers.headplane-router-https.rule=Host(xxx) && PathPrefix(/admin)" - "traefik.http.routers.headplane-router-https.entrypoints=https" - "traefik.http.routers.headplane-router-https.tls=true" - "traefik.http.routers.headplane-router-https.service=headplane-service" - "traefik.http.routers.headplane-router-https.middlewares=headplane-header" - "traefik.http.services.headplane-service.loadbalancer.server.port=3000" - "traefik.http.services.headplane-service.loadbalancer.healthcheck.port=3000" - "traefik.http.services.headplane-service.loadbalancer.server.scheme=http" - "traefik.http.middlewares.headplane-header.headers.stsIncludeSubdomains=true" - "traefik.http.middlewares.headplane-header.headers.forceSTSHeader=true" - "traefik.http.middlewares.headplane-header.headers.stsPreload=true" - "traefik.http.middlewares.headplane-header.headers.stsSeconds=31536000" - "traefik.http.middlewares.headplane-header.headers.isDevelopment=false" restart: always container_name: headplane hostname: headplane environment: COOKIE_SECRET: 'xxx' HEADSCALE_INTEGRATION: 'docker' HEADSCALE_CONTAINER: 'headscale' ROOT_API_KEY: 'xxx' DISABLE_API_KEY_LOGIN: 'true' volumes: - /data/headscale/config:/etc/headscale/ - /data/headscale/data:/var/lib/headscale - /var/run/docker.sock:/var/run/docker.sock:ro

networks: default: external: name: traefik

I think it is a great work, so i want to use it to help me manager headscale. How can i do to fix this problem? Thanks.

@gorquan Hi there!

The issue Unable to decode turbo-stream response occurs when one of these things occur:

  • Your computer goes to sleep
  • You restarted the headplane server
  • Your network went down
  • Your reverse proxy interrupted the connection
  • You restarted your reverse proxy
  • Or just the connection got interrupted by something.

Normally, Refreshing the page just works.

However, if none of the things above occurred and this error occurs while you are working on the admin panel (changing settings, viewing machines, etc) Then the issue may be your reverse proxy.

If it is in the case, Can you try to switch a reverse proxy? I use nginx and everything is fine.

Thanks!

kokofixcomputers avatar Feb 14 '25 16:02 kokofixcomputers

The stale tab issue appears to be a React Router issue (or maybe just a skill issue on my end). I think I've atleast made it cleaner and it should auto refresh so I'll close this for now (on 0.5.2).

tale avatar Feb 28 '25 18:02 tale

I've set this on the 0.6.0 milestone, with the hope that my caching and deduplication changes I'm implementing should help to offset this issue entirely.

tale avatar Mar 23 '25 22:03 tale

Should be fixed in 0.5.8 (need people to confirm before I close).

tale avatar Apr 03 '25 17:04 tale

Can someone confirm this is fixed in 0.6.0?

tale avatar May 25 '25 15:05 tale