LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

[Bug]: Unturned Server Not Listening on Required Ports

Open SebasVee opened this issue 1 year ago • 0 comments

User story

I was testing some free games to host for my family, and I wanted to see how well they work.

Game

Unturned

Linux distro

Ubuntu 22.04

Command

command: start

Further information

I'm having trouble with the Unturned server not listening on the required ports (27015 and 27016). It’s running in a Docker container, and I’m using the default config file. I even tried hardcoding the Commands.dat file, but it still doesn’t listen on those ports.

Relevant log output

Distro Details
==============================================================================================================================================================================
Date:         Sat Oct  5 10:02:51 PM UTC 2024
Distro:       Ubuntu 22.04.5 LTS
Arch:         x86_64
Kernel:       6.8.12-2-pve
Hostname:     2a257ff258dc
Environment:  docker
Uptime:       14d, 21h, 26m
tmux:         3.2a
glibc:        2.35

Server Resource
==============================================================================================================================================================================
CPU
Model:      Intel(R) Pentium(R) Silver J5005 CPU @ 1.50GHz
Cores:      4
Frequency:  2695.680MHz
Avg Load:   4.55, 3.27, 2.55

Memory
Mem:       total  used   free   cached  available
Physical:  16GB   11GB   3.8GB  2.2GB   3.8GB
Swap:      8.0GB  173MB  7.9GB

Storage
Filesystem:  overlay
Total:       40G
Used:        6.6G
Available:   31G

Network
IP:           0.0.0.0
Internet IP:  x.x.x.x

Unturned Resource Usage
==============================================================================================================================================================================
CPU Used:  58.8%
Mem Used:  5.7%   898MB

Storage
Total:        22M
Serverfiles:  2.7G

Unturned Server Details
==============================================================================================================================================================================
Server name:  LinuxGSM
App ID:       1110390
Server IP:    0.0.0.0:27015
Internet IP:  x.x.x.x:27015
Maxplayers:   20
Default map:  PEI
Game mode:    normal
Status:       STARTED

untserver Script Details
==============================================================================================================================================================================
Script name:       untserver
LinuxGSM version:  v24.3.1
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
Config file:       /data/serverfiles/Servers/untserver/Config.json

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

Command-line Parameters
==============================================================================================================================================================================
 ./Unturned_Headless.x86_64 -nographics -batchmode -bind 0.0.0.0 -port 27015 -maxplayers 20 -perspective first -mode normal -name LinuxGSM -map PEI -gslt  +InternetServer/untserver

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

Useful port diagnostic command:
ss -tuplwn | grep Unturned_Headle

DESCRIPTION  PORT   PROTOCOL  LISTEN
Game         27015  udp       0
Query        27015  udp       0
Steam        27016  udp       0

Status: STARTED

Script output:

Oct 05 21:59:55.512 untserver: START: PASS: Started LinuxGSM
Oct 05 21:59:55.522 untserver: START: PASS: Using cached IP as public IP address
Oct 05 21:59:55.652 untserver: START: PASS: Started LinuxGSM
Oct 05 21:59:55.734 untserver: START: INFO: LinuxGSM version: v24.3.1
Oct 05 21:59:55.738 untserver: START: PASS: core_exit.sh exiting with code: 0
Oct 05 21:59:55.889 untserver: START: INFO: Using anonymous Steam login
Oct 05 21:59:56.430 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:00:06.629 untserver: UPDATE: INFO: Using anonymous Steam login
Oct 05 22:00:07.150 untserver: DETAILS: PASS: Using cached IP as public IP address
Oct 05 22:00:11.524 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:00:14.586 untserver: MONITOR: PASS: Checking details: Details is running
Oct 05 22:00:14.696 untserver: MONITOR: INFO: LinuxGSM version: v24.3.1
Oct 05 22:00:14.728 untserver: MONITOR: PASS: core_exit.sh exiting with code: 0
Oct 05 22:00:27.759 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:00:29.537 untserver: DETAILS: PASS: Using cached IP as public IP address
Oct 05 22:00:39.611 untserver: UPDATE: PASS: Checking local build
Oct 05 22:00:41.081 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:00:43.464 untserver: MONITOR: PASS: Checking details: Details is running
Oct 05 22:00:43.528 untserver: MONITOR: INFO: LinuxGSM version: v24.3.1
Oct 05 22:00:43.538 untserver: MONITOR: PASS: core_exit.sh exiting with code: 0
Oct 05 22:00:51.332 untserver: UPDATE: PASS: Checking remote build
Oct 05 22:00:51.822 untserver: CORE: ERROR: Unknown command: ./untserver help
Oct 05 22:00:51.964 untserver: UPDATE: INFO: No update available
Oct 05 22:00:51.975 untserver: UPDATE: INFO: Local build: 15449522
Oct 05 22:00:51.988 untserver: UPDATE: INFO: Remote build: 15449522
Oct 05 22:00:51.999 untserver: UPDATE: INFO: Branch: public
Oct 05 22:00:52.045 untserver: UPDATE: INFO: LinuxGSM version: v24.3.1
Oct 05 22:00:52.055 untserver: UPDATE: PASS: core_exit.sh exiting with code: 0
Oct 05 22:00:52.181 untserver: CORE: PASS: Display commands
Oct 05 22:00:52.202 untserver: CORE: INFO: LinuxGSM version: v24.3.1
Oct 05 22:00:52.206 untserver: CORE: PASS: core_exit.sh exiting with code: 0
Oct 05 22:00:54.564 untserver: DETAILS: INFO: LinuxGSM version: v24.3.1
Oct 05 22:00:54.571 untserver: DETAILS: PASS: core_exit.sh exiting with code: 0
Oct 05 22:01:01.118 untserver: DETAILS: PASS: Using cached IP as public IP address
Oct 05 22:01:10.629 untserver: DETAILS: PASS: Using cached IP as public IP address
Oct 05 22:01:10.805 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:01:19.514 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:01:21.590 untserver: MONITOR: PASS: Checking details: Details is running
Oct 05 22:01:21.616 untserver: MONITOR: INFO: LinuxGSM version: v24.3.1
Oct 05 22:01:21.624 untserver: MONITOR: PASS: core_exit.sh exiting with code: 0
Oct 05 22:01:31.102 untserver: DETAILS: INFO: LinuxGSM version: v24.3.1
Oct 05 22:01:31.107 untserver: DETAILS: PASS: core_exit.sh exiting with code: 0
Oct 05 22:02:19.845 untserver: DETAILS: PASS: Using cached IP as public IP address
Oct 05 22:02:24.667 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:02:32.752 untserver: DETAILS: PASS: Using cached IP as public IP address
Oct 05 22:02:34.806 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:02:36.877 untserver: MONITOR: PASS: Checking details: Details is running
Oct 05 22:02:36.906 untserver: MONITOR: INFO: LinuxGSM version: v24.3.1
Oct 05 22:02:36.912 untserver: MONITOR: PASS: core_exit.sh exiting with code: 0
Oct 05 22:02:51.958 untserver: DETAILS: INFO: LinuxGSM version: v24.3.1
Oct 05 22:02:51.965 untserver: DETAILS: PASS: core_exit.sh exiting with code: 0
Oct 05 22:03:39.139 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:04:03.236 untserver: MONITOR: PASS: Using cached IP as public IP address
Oct 05 22:04:05.096 untserver: MONITOR: INFO: Checking session: CHECKING
Oct 05 22:04:05.360 untserver: MONITOR: PASS: Checking session: OK
Oct 05 22:04:06.906 untserver: MONITOR: INFO: Querying port: gamedig: 127.0.0.1:27015 : 1 : QUERYING
Oct 05 22:04:13.448 untserver: MONITOR: WARN: Querying port: gamedig: 127.0.0.1:27015 : 1 : FAIL
Oct 05 22:04:14.982 untserver: MONITOR: INFO: Querying port: gamedig: 172.10.25.51:27015 : 1 : QUERYING
Oct 05 22:04:21.469 untserver: MONITOR: WARN: Querying port: gamedig: 172.10.25.51:27015 : 1 : FAIL

Steps to reproduce

  1. Start the Unturned server in a Docker container.
  2. Check the listening ports using the command: ss -tuplwn.

SebasVee avatar Oct 05 '24 22:10 SebasVee