Installation error #593

Closed
opened 2025-12-29 02:20:57 +01:00 by adam · 1 comment
Owner

Originally created by @dsbt01 on GitHub (Dec 11, 2023).

Bug description

when trying to start the docker container, I am getting this error message:

headscale-headscale-1 | 2023-12-11T17:56:51Z INF No private key file at path, creating... path=
headscale-headscale-1 | 2023-12-11T17:56:51Z FTL go/src/headscale/cmd/headscale/cli/server.go:21 > Error initializing error="failed to read or create private key: failed to save private key to disk: open : no such file or directory"

I have setup the yml file like
volumes:
- ./config:/etc/headscale/
- ./data:/var/lib/headscale

I am not sure what the issue is since I have created the folders as requested in docker/headscale/config and data folders and I am runnng the process as root. I really do not know why this is giving this error.

Environment

fresh copy of ubuntu latest LTS

To Reproduce

Originally created by @dsbt01 on GitHub (Dec 11, 2023). ## Bug description when trying to start the docker container, I am getting this error message: headscale-headscale-1 | 2023-12-11T17:56:51Z INF No private key file at path, creating... path= headscale-headscale-1 | 2023-12-11T17:56:51Z FTL go/src/headscale/cmd/headscale/cli/server.go:21 > Error initializing error="failed to read or create private key: failed to save private key to disk: open : no such file or directory" I have setup the yml file like volumes: - ./config:/etc/headscale/ - ./data:/var/lib/headscale I am not sure what the issue is since I have created the folders as requested in docker/headscale/config and data folders and I am runnng the process as root. I really do not know why this is giving this error. ## Environment fresh copy of ubuntu latest LTS ## To Reproduce <!-- Steps to reproduce the behavior. -->
adam added the bug label 2025-12-29 02:20:57 +01:00
adam closed this issue 2025-12-29 02:20:57 +01:00
Author
Owner

@kradalby commented on GitHub (Dec 12, 2023):

Hi,

Please use Discord for support requests.

If you are using 0.22.3, make sure you look at the example config from the correct git tag and not main.

If you are using main or the new alpha, make sure you have set the derp.server.private key if you have that enabled.

@kradalby commented on GitHub (Dec 12, 2023): Hi, Please use Discord for support requests. If you are using 0.22.3, make sure you look at the example config from the correct git tag and not `main`. If you are using `main` or the new alpha, make sure you have set the derp.server.private key if you have that enabled.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#593