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

Valheim - Game port LISTEN = 0 #106

Open
hermda02 opened this issue Nov 23, 2024 · 0 comments
Open

Valheim - Game port LISTEN = 0 #106

hermda02 opened this issue Nov 23, 2024 · 0 comments

Comments

@hermda02
Copy link

hermda02 commented Nov 23, 2024

I am trying to set up a server at home using the following docker-compose.yml file:

version: "3.8"
services:
  linuxgsm-valheim:
     image: gameservermanagers/gameserver:vh
     container_name: vhserver
     volumes:
       - ./vhserver:/data
     network_mode: host

After running through the suggested tests, I have yet to find any errors pop up that would seem to indicate that anything has gone wrong with the build process. However, there seems to be an issue with the proper ports being set to LISTEN. Only the query port moves from 0 to 1 when the server gets restarted with a password set (both Game and Query are 0 before a password gets set as the server fails to start).

Here is the output from running the details routine:

me@pop-os:~/projects/services/vhserver$ sudo docker exec -it --user linuxgsm vhserver ./vhserver details

Distro Details
==================================================================================================================
Date:         Sat Nov 23 10:52:34 PM UTC 2024
Distro:       Ubuntu 22.04.5 LTS
Arch:         x86_64
Kernel:       6.9.3-76060903-generic
Hostname:     pop-os
Environment:  docker
Uptime:       14d, 5h, 14m
tmux:         3.2a
glibc:        2.35

Server Resource
==================================================================================================================
CPU         
Model:      Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz
Cores:      4
Frequency:  2600.014MHz
Avg Load:   2.00, 1.32, 1.01

Memory                                  
Mem:       total  used   free   cached  available
Physical:  7.6GB  4.4GB  2.4GB  2.4GB   2.4GB
Swap:      12GB   2.2GB  9.4GB          

Storage      
Filesystem:  overlay
Total:       450G
Used:        422G
Available:   4.4G

Network       
IP:           0.0.0.0
Internet IP:  my.ip.ad.dress

Valheim Resource Usage
==================================================================================================================
CPU Used:  28.1%  
Mem Used:  20.3%  1568MB

Storage       
Total:        22M
Serverfiles:  2.3G

Valheim Server Details
==================================================================================================================
Server name:      server_name
App ID:           896660
Server IP:        0.0.0.0:2456
Internet IP:      my.ip.ad.dress:2456
Server password:  somepassword
Players:          0/64
Current map:      server_name
Game world:       Dedicated
Save interval:    1800s
Master server:    listed
Status:           STARTED

vhserver Script Details
==================================================================================================================
Script name:       vhserver
LinuxGSM version:  v24.3.2
glibc required:    2.15
Discord alert:     off
Email alert:       off
Gotify alert:      off
IFTTT alert:       off
Pushbullet alert:  off
Pushover alert:    off
Rocketchat alert:  off
Slack alert:       off
Telegram alert:    off
Update on start:   off
User:              linuxgsm
Location:          /app

Backups
==================================================================================================================
No Backups created

Command-line Parameters
==================================================================================================================
 ./valheim_server.x86_64 -name 'server_name' -password somepassword -port 2456 -world vhserver -public 1 -savedir '/data/.config/unity3d/IronGate/Valheim' -saveinterval 1800 -backups 4 -backupshort 7200 -backuplong 43200 -crossplay -instanceid 1  

Ports
==================================================================================================================
Change ports by editing the parameters in:
/data/config-lgsm/vhserver

Useful port diagnostic command:
ss -tuplwn | grep valheim_server.

DESCRIPTION  PORT  PROTOCOL  LISTEN
Game         2456  udp       0
Query        2457  udp       1

Status:	STARTED

Here is the output from the useful port diagnostic command:

Netid State  Recv-Q Send-Q Local Address:Port    Peer Address:Port Process 
udp   UNCONN 0      0            0.0.0.0:34724      0.0.0.0:*    users:(("valheim_server.",pid=1037106,fd=50))
udp   UNCONN 0      0            0.0.0.0:2457       0.0.0.0:*    users:(("valheim_server.",pid=1037106,fd=36))
udp   UNCONN 0      0                  *:37620            *:*    users:(("valheim_server.",pid=1037106,fd=56))
tcp   LISTEN 0      128        127.0.0.1:43489      0.0.0.0:*    users:(("valheim_server.",pid=1037106,fd=33))

I have checked to ensure that port 2456 is not being used by any other services set up on my machine.

Any ideas for how to fix this? Is this a bug with the docker compose file or is something being handled incorrectly on my system? Any insight would be helpful.

Cheers.

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

1 participant