Bug#928110: Teeworlds server fails to start because of missing directory
Baptiste Jonglez
debian at bitsofnetworks.org
Sun Apr 28 11:54:18 BST 2019
Package: teeworlds-server
Version: 0.7.2-3
I installed teeworlds-server on a fresh installation of buster and
followed the instructions in the README:
# adduser --force-badname _teeworlds
# systemctl enable teeworlds-server
# systemctl start teeworlds-server
However, the teeworlds server failed to start:
Apr 28 12:28:21 teeworlds systemd[1]: Started Teeworlds multiplayer server.
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][engine]: running on unix-linux-amd64
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][engine]: arch is little endian
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][storage]: couldn't open storage.cfg
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][storage]: using standard paths
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][storage]: added path '$USERDIR' ('/home/_teeworlds/.local/share/teeworlds')
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][storage]: added path '$DATADIR' ('/usr/share/games/teeworlds/data')
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][storage]: added path '$CURRENTDIR' ('/')
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][storage]: added path '$APPDIR' ('/usr/games')
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][storage]: unable to create save directory
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][storage]: initialisation failed
Apr 28 12:28:21 teeworlds teeworlds[3990]: [2019-04-28 12:28:21][kernel]: ERROR: couldn't register interface storage. null pointer given
Apr 28 12:28:21 teeworlds systemd[1]: teeworlds-server.service: Succeeded.
The problem is that the "/home/_teeworlds/.local/share/teeworlds"
directory does not exist. Creating it fixed the issue:
# su - _teeworlds -c 'mkdir -p /home/_teeworlds/.local/share/teeworlds'
Apr 28 12:37:23 teeworlds systemd[1]: Started Teeworlds multiplayer server.
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][engine]: running on unix-linux-amd64
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][engine]: arch is little endian
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][storage]: couldn't open storage.cfg
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][storage]: using standard paths
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][storage]: added path '$USERDIR' ('/home/_teeworlds/.local/share/teeworlds')
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][storage]: added path '$DATADIR' ('/usr/share/games/teeworlds/data')
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][storage]: added path '$CURRENTDIR' ('/')
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][storage]: added path '$APPDIR' ('/usr/games')
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][console]: failed to open 'autoexec.cfg'
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][console]: Info: only relative paths starting from the ones you specify in 'storage.cfg' are a
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][console]: executing '/etc/teeworlds/server.cfg'
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][Console]: No such command: sv_rcon_ban_time.
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][Console]: No such command: sv_spectator_slots.
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][server]: starting...
Apr 28 12:37:23 teeworlds teeworlds[4018]: [2019-04-28 12:37:23][datafile]: loading. filename='maps/ctf5.map'
...
This directory either needs to be created automatically, or additional
instructions should be added to the README.
Thanks,
Baptiste
More information about the Pkg-games-devel
mailing list