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

Teeworlds Server fails to start (Linux) #1643

Closed
Fisico opened this issue Nov 11, 2018 · 5 comments
Closed

Teeworlds Server fails to start (Linux) #1643

Fisico opened this issue Nov 11, 2018 · 5 comments
Labels
Milestone

Comments

@Fisico
Copy link
Contributor

Fisico commented Nov 11, 2018

I compiled the latest source on my Linux Server(Ubuntu 16.04.5 LTS | Linux 4.4.0-138-generic).
I can’t start the server cause it always fails with "[5be8123c][kernel]: ERROR: couldn't register interface storage. null pointer given"

Storage.ctf and "/data/maps" with maps is in the server directory.
Permissions should be ok cause i have the same problem with the root user.

teeworlds@FisicoSrv1:~/teeworlds/build/x86_64/release$ ./teeworlds_srv -f serverconfig.cfg
[5be8123c][engine]: running on unix-linux-amd64
[5be8123c][engine]: arch is little endian
[5be8123c][storage]: added path '$USERDIR' ('/home/teeworlds/.local/share/teeworlds')
[5be8123c][storage]: added path '$DATADIR' ('data')
[5be8123c][storage]: added path '$CURRENTDIR' ('/home/teeworlds/teeworlds/build/x86_64/release')
[5be8123c][storage]: added path '$APPDIR' ('.')
[5be8123c][storage]: unable to create save directory
[5be8123c][storage]: initialisation failed
[5be8123c][kernel]: ERROR: couldn't register interface storage. null pointer given

teeworlds@FisicoSrv1:~/teeworlds/build/x86_64/release$ ls
1on1.cfg 3on3ctf.cfg 5on5ctf.cfg lms.cfg serverconfig.cfg sur.cfg tlms.cfg
2on2ctf.cfg 4on4ctf.cfg data objs storage.cfg teeworlds_srv

@oy
Copy link
Member

oy commented Nov 11, 2018

Seems the path "/home/teeworlds/.local/share/teeworlds" doesn't exist or you don't have write access.

@Fisico
Copy link
Contributor Author

Fisico commented Nov 11, 2018

ok thanks, "/home/teeworlds/.local/share/teeworlds" was missing. That fixed the issue for me.
But why does the Teeworlds server needs this directory?

Nothing interesting is in this folder except master.cfg

teeworlds@FisicoSrv1:~/.local/share/teeworlds$ ls
configs demos dumps masters.cfg

@oy
Copy link
Member

oy commented Nov 11, 2018

It uses it to save stuff like configs, demos, dumps etc.

But Teeworlds should create the folder the folder in case it's missing.

@oy oy added the bug label Nov 11, 2018
@Lucki
Copy link
Contributor

Lucki commented Dec 5, 2018

@Fisico You can also set the folder to any other writable path in context to the program with XDG_DATA_HOME=/path/to/folder teeworlds_srv. It's also possible to do that permanent globally or only for one user. See https://wiki.archlinux.org/index.php/environment_variables#Defining_variables

@oy oy added this to the 0.7.2 milestone Dec 13, 2018
@oy oy modified the milestones: 0.7.2, 0.7.3 Dec 24, 2018
@oy
Copy link
Member

oy commented Feb 3, 2019

fixed by e117ee0

@oy oy closed this as completed Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants