Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP_STATUS always returns 0 players #663

Open
floryn08 opened this issue Feb 23, 2024 · 2 comments
Open

HTTP_STATUS always returns 0 players #663

floryn08 opened this issue Feb 23, 2024 · 2 comments

Comments

@floryn08
Copy link

Hi!

I'm using this image using the following docker-compose.yaml file:

version: '3.9'

services:

  valheim: 
    container_name: valheim
    image: ghcr.io/lloesche/valheim-server:latest
    cap_add:
      - sys_nice
    volumes: 
      - ${VOLUMES_PATH}/game-servers/valheim/config:/config
      - ${VOLUMES_PATH}/game-servers/valheim/data:/opt/valheim
      - /etc/localtime:/etc/localtime:ro 
      - /etc/timezone:/etc/timezone:ro
    ports: 
      - "2456-2458:2456-2458/udp"
      - 1234:80
    environment:
      SERVER_NAME: ${SERVER_NAME}
      WORLD_NAME: ${SERVER_NAME}
      SERVER_PASS: ${SERVER_PASSWORD}
      SERVER_PUBLIC: true
      SUPERVISOR_HTTP: false
      STATUS_HTTP: true
      SERVER_ARGS: -crossplay
      ADMINLIST_IDS: ${VALHEIM_ADMINS}
    restart: unless-stopped

When I call /status.json the response always shows 0 player_count even though my friend and I are connected and playing.

Is this a known problem?

@Grantapher
Copy link

Probably #624.

@alatricta
Copy link

I have the same problem. Please help me solve it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants