[Headscale] Issue after install, frontend won't load #1549

Closed
opened 2026-02-05 01:31:43 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @jd-apprentice on GitHub (Aug 29, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Headscale

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/headscale.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

Context

  1. There is no issue related
  2. There is no discussion related to post install methods.
  3. This could be an issue from headscale-admin itself

Issue

After a fresh install of the Script I've run into this

Image

🔄 Steps to reproduce the issue.

  1. Install a fresh headscale instance with the Script
  2. Get the LXC IP
  3. Go into the browser and access to /admin/
  4. Receive some errors in the client console and unable to load the site itself

Paste the full error output (if available).

Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
    Immutable 4
D1cWQVhH.js:8:5361

🖼️ Additional context (optional).

No response

Originally created by @jd-apprentice on GitHub (Aug 29, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Headscale ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/headscale.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. ## Context 1. There is no issue related 2. There is no discussion related to post install methods. 3. This could be an issue from headscale-admin itself ## Issue After a fresh install of the Script I've run into this <img width="1439" height="899" alt="Image" src="https://github.com/user-attachments/assets/0b0c66f4-ec88-4cb5-b51e-5b126b59b7d3" /> ### 🔄 Steps to reproduce the issue. 1. Install a fresh headscale instance with the Script 2. Get the LXC IP 3. Go into the browser and access to <LXC-IP>/admin/ 4. Receive some errors in the client console and unable to load the site itself ### ❌ Paste the full error output (if available). ```js Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data Immutable 4 D1cWQVhH.js:8:5361 ``` ### 🖼️ Additional context (optional). _No response_
OVERLORD added the external label 2026-02-05 01:31:43 +03:00
Author
Owner

@michelroegl-brunner commented on GitHub (Aug 29, 2025):

This seems to be a headscale bug? Have you reportet your issue there?

@michelroegl-brunner commented on GitHub (Aug 29, 2025): This seems to be a headscale bug? Have you reportet your issue there?
Author
Owner

@jd-apprentice commented on GitHub (Aug 29, 2025):

This seems to be a headscale bug? Have you reportet your issue there?

No, but I will now. Should I close this issue?

@jd-apprentice commented on GitHub (Aug 29, 2025): > This seems to be a headscale bug? Have you reportet your issue there? No, but I will now. Should I close this issue?
Author
Owner

@tremor021 commented on GitHub (Aug 29, 2025):

Nah, keep it so we know when its resolved

@tremor021 commented on GitHub (Aug 29, 2025): Nah, keep it so we know when its resolved
Author
Owner

@MickLesk commented on GitHub (Aug 29, 2025):

Its an Caddy Thing, the json cannot load. Ive an workaround but its hacky.

There docs (or the caddyfile) are not really good

@MickLesk commented on GitHub (Aug 29, 2025): Its an Caddy Thing, the json cannot load. Ive an workaround but its hacky. There docs (or the caddyfile) are not really good
Author
Owner

@mojrs10 commented on GitHub (Aug 31, 2025):

Can you share fix pls

@mojrs10 commented on GitHub (Aug 31, 2025): Can you share fix pls
Author
Owner

@madcar86 commented on GitHub (Sep 5, 2025):

+1

@madcar86 commented on GitHub (Sep 5, 2025): +1
Author
Owner

@MickLesk commented on GitHub (Sep 23, 2025):

use this caddyfile:

:80

redir /admin /admin/

handle_path /admin* {
    root * /opt/headscale-admin
    encode gzip zstd

    header {
        X-Content-Type-Options nosniff
    }

    try_files {path} {path}/ /opt/headscale-admin/index.html
    file_server
}

handle /api/* {
    reverse_proxy localhost:8080
}

systemctl reload caddy

then access with /admin/

@MickLesk commented on GitHub (Sep 23, 2025): use this caddyfile: ```bash :80 redir /admin /admin/ handle_path /admin* { root * /opt/headscale-admin encode gzip zstd header { X-Content-Type-Options nosniff } try_files {path} {path}/ /opt/headscale-admin/index.html file_server } handle /api/* { reverse_proxy localhost:8080 } ``` systemctl reload caddy then access with <IP>/admin/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1549