Comments (10)
You can refer to my configuration, which might provide you with some help.
version: '3.7'
services:
headscale:
image: headscale/headscale:0.23.0-alpha9
container_name: headscale
volumes:
- ./config:/etc/headscale/
- /var/run/headscale
ports:
- 8080:8080
- 9090:9090
command: serve
restart: always
from headscale.
There is currently no docker container with the latest tag.
Use specific version like headscale/headscale: 0.22.3
with a command headscale serve
or a unstable alpha version
with headscale/headscale:0.23.0-alpha12
and a command serve
.
from headscale.
There is currently no docker container with the latest tag.
Use specific version like
headscale/headscale: 0.22.3
with a commandheadscale serve
or a unstable alpha version withheadscale/headscale:0.23.0-alpha12
and a commandserve
.
Actually just did all your mentioned difference version combination, all is the same, can you do a test to verify?
from headscale.
For 0.22.3 just follow the docs
from headscale.
For 0.22.3 just follow the docs
that's the standard installation step I have followed, you didn't answer or give me any hints at all.
from headscale.
@ohdearaugustin why removed bug label? I think this is a bug and actually after months it's not been fixed yet.
from headscale.
There is no config file what you are using. There are no logs.
And you claim that you followed the standard installation.
In my opinion this is a user error and not a bug in headscale.
It is a misconfiguration and therefore not a bug.
You reedited the docker-compose.
This docker-compose doesn't look like the one in the documentation.
Sorry, but it seems to me that you don't really understand docker.
from headscale.
Add your config file and the log output.
from headscale.
docker-compose.yml
version: "3.7"
services:
headscale:
image: headscale/headscale:0.22.3
restart: unless-stopped
container_name: headscale
ports:
- "0.0.0.0:8080:8080"
- "127.0.0.1:9090:9090"
volumes:
# pls change [config_path] to the fullpath of the config folder just created
- /opt/headscale:/etc/headscale
- /var/lib/headscale:/var/lib/headscale
- /var/run/headscale:/var/run/headscale
command: headscale serve
headscale-ui:
image: ghcr.io/gurucomputing/headscale-ui:latest
restart: unless-stopped
container_name: headscale-ui
ports:
- 3838:80
config.yaml
# Change to your hostname or host IP
server_url: https://mx.xxx.com:8080
# Listen to 0.0.0.0 so it's accessible outside the container
metrics_listen_addr: 0.0.0.0:9090
# The default /var/lib/headscale path is not writable in the container
noise:
private_key_path: /var/lib/headscale/noise_private.key
# The default /var/lib/headscale path is not writable in the container
derp:
private_key_path: /var/lib/headscale/private.key
# The default /var/run/headscale path is not writable in the container
unix_socket: /var/run/headscale/headscale.sock
# The default /var/lib/headscale path is not writable in the container
database.type: sqlite3
database.sqlite.path: /opt/headscale/config/db.sqlite
docker logs --follow headscale
2024-06-05T13:12:39Z FTL go/src/headscale/cmd/headscale/cli/root.go:48 > Error loading config error="fatal error reading config file: Config File \"config\" Not Found in \"[/etc/headscale /root/.headscale /]\""
2024-06-05T13:12:53Z WRN Failed to read configuration from disk error="Config File \"config\" Not Found in \"[/etc/headscale /root/.headscale /]\""
2024-06-05T13:12:53Z FTL go/src/headscale/cmd/headscale/cli/root.go:48 > Error loading config error="fatal error reading config file: Config File \"config\" Not Found in \"[/etc/headscale /root/.headscale /]\""
2024-06-05T13:13:19Z WRN Failed to read configuration from disk error="Config File \"config\" Not Found in \"[/etc/headscale /root/.headscale /]\""
2024-06-05T13:13:19Z FTL go/src/headscale/cmd/headscale/cli/root.go:48 > Error loading config error="fatal error reading config
from headscale.
2024-06-05T13:13:19Z WRN Failed to read configuration from disk error="Config File "config" Not Found in "[/etc/headscale /root/.headscale /]""
Obviously your config is not loaded, this will cause headscale to restart.
Going to close this issue as it is clearly not a bug. For further support please join the discord server, people are always ready to help there.
Edit: Typo
from headscale.
Related Issues (20)
- [Feature] Restricted nameservers without search domains HOT 1
- [Feature] Expose OIDC server status via monitoring
- [Bug] macOS unable to connect, node has an open stream(..), rejecting new stream HOT 6
- [Bug] Unify integration test docker
- [Feature] Support for derp's verify-client-url HOT 4
- [Bug] Unstable tailscale client Integration Test fails HOT 1
- [Bug] ACL can't work with netmask smaller than /24 HOT 7
- [Bug] v0.23 does not work with PostgreSQL HOT 1
- [Bug] ACLs although going one way, are discoverable by the "dst". HOT 1
- [Bug] Can't always connect to Heascale through data (lte/4g) without passing via wifi first HOT 2
- [Bug] dns_config.domains only works if override_local_dns is enabled HOT 3
- [Feature] Improve docu development
- [Bug] Node Connection Issues(~600 nodes) in v0.23.0-alpha12 HOT 7
- [Bug] systemctl stop headscale is very slow! HOT 3
- [Bug] Issues with OIDC, Authelia and Nix Agenix together HOT 5
- Inter-controlplane federation
- [Feature] Filter output of cli commands
- [Bug] Method βHosts.UnmarshalYAML does not add CIDR notation
- [Feature] provide docker containers with two standard tags "latest" and "production"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headscale.