Coder Social home page Coder Social logo

Comments (10)

eMoonT avatar eMoonT commented on July 17, 2024 1

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.

ohdearaugustin avatar ohdearaugustin commented on July 17, 2024

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.

Kingwayer avatar Kingwayer commented on July 17, 2024

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.

Actually just did all your mentioned difference version combination, all is the same, can you do a test to verify?

from headscale.

ohdearaugustin avatar ohdearaugustin commented on July 17, 2024

For 0.22.3 just follow the docs

from headscale.

Kingwayer avatar Kingwayer commented on July 17, 2024

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.

Kingwayer avatar Kingwayer commented on July 17, 2024

@ohdearaugustin why removed bug label? I think this is a bug and actually after months it's not been fixed yet.

from headscale.

ohdearaugustin avatar ohdearaugustin commented on July 17, 2024

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.

ohdearaugustin avatar ohdearaugustin commented on July 17, 2024

Add your config file and the log output.

from headscale.

Kingwayer avatar Kingwayer commented on July 17, 2024

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.

ohdearaugustin avatar ohdearaugustin commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.