headplane
headplane copied to clipboard
Unable to decode turbo-stream response
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.
Add some information, my headscale version is headscale/headscale:v0.24
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)
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:ronetworks: 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!
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).
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.
Should be fixed in 0.5.8 (need people to confirm before I close).
Can someone confirm this is fixed in 0.6.0?