lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.89k stars 269 forks source link

HTTP_STATUS always returns 0 players #663

Open floryn08 opened 4 months ago

floryn08 commented 4 months ago

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 commented 1 month ago

Probably #624.

alatricta commented 2 weeks ago

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