1 (edited by marisag 2020-05-29 06:49:34)

Topic: Trying to run as not root and fails to start...

I had been running the server as root, but I want to set up a shared server for someone and naturally dont want to do that on this server. I copied the config from one of my working server and tried to start it as the new user account, but the server fails to start. I get messages like this:

[2020-05-29 04:37:57][engine]: running on unix-linux-amd64
[2020-05-29 04:37:57][engine]: arch is little endian
[2020-05-29 04:37:57][storage]: added path '/home/twowner/.teeworlds'
[2020-05-29 04:37:57][storage]: added path '$CURRENTDIR' ('/home/twowner/twserver')
[2020-05-29 04:37:57][storage]: added path '$APPDIR' ('.')
[2020-05-29 04:37:57][console]: executing 'autoexec.cfg'
[2020-05-29 04:37:57][console]: executing 'twserver.cfg'
[2020-05-29 04:37:57][server]: added option 'RESTART IN 10s' 'restart 10'
[2020-05-29 04:37:57][server]: added option 'Gamemode: DM' 'exec dm.cfg'
[2020-05-29 04:37:57][server]: added option 'Gamemode: CTF' 'exec ctf.cfg'
[2020-05-29 04:37:57][server]: added option 'Gamemode: TDM' 'exec tdm.cfg'
[2020-05-29 04:37:57][server]: added option 'Gamemode: TDM (DUEL)' 'exec duel.cfg'
[2020-05-29 04:37:57][server]: added option 'Map: ctf1' 'change_map ctf1'
[2020-05-29 04:37:57][server]: added option 'Map: ctf2' 'change_map ctf2'
[2020-05-29 04:37:57][server]: added option 'Map: ctf3' 'change_map ctf3'
[2020-05-29 04:37:57][server]: added option 'Map: ctf4' 'change_map ctf4'
[2020-05-29 04:37:57][server]: added option 'Map: ctf5' 'change_map ctf5'
[2020-05-29 04:37:57][server]: added option 'Map: dm1' 'change_map dm1'
[2020-05-29 04:37:57][server]: added option 'Map: dm2' 'change_map dm2'
[2020-05-29 04:37:57][server]: added option 'Map: dm6' 'change_map dm6'
[2020-05-29 04:37:57][server]: added option 'Map: dm7' 'change_map dm7'
[2020-05-29 04:37:57][server]: added option 'Map: dm8' 'change_map dm8'
[2020-05-29 04:37:57][server]: added option 'Map: dm9' 'change_map dm9'
[2020-05-29 04:37:57][server]: starting...
[2020-05-29 04:37:57][mapchecker]: invalid standard map
[2020-05-29 04:37:57][server]: failed to load map. mapname='dm1'

---
and my config file is:
---

sv_name "ZtC Map Testing"
sv_motd Welcome to the Gameplayer Club Teeworlds Server - Get more info about our games at https://GamePlayer.club
sv_rcon_password "getserious"
password ""
sv_max_clients 16
sv_port 8305
sv_external_port 8305
sv_register 1
sv_spamprotection 0
sv_warmup 10
logfile "teeworlds.log"
add_vote "RESTART IN 10s" "restart 10"
add_vote "Gamemode: DM" "exec dm.cfg"
add_vote "Gamemode: CTF" "exec ctf.cfg"
add_vote "Gamemode: TDM" "exec tdm.cfg"
add_vote "Gamemode: TDM (DUEL)" "exec duel.cfg"
add_vote "Map: ctf1" "change_map ctf1"
add_vote "Map: ctf2" "change_map ctf2"
add_vote "Map: ctf3" "change_map ctf3"
add_vote "Map: ctf4" "change_map ctf4"
add_vote "Map: ctf5" "change_map ctf5"
add_vote "Map: dm1" "change_map dm1"
add_vote "Map: dm2" "change_map dm2"
add_vote "Map: dm6" "change_map dm6"
add_vote "Map: dm7" "change_map dm7"
add_vote "Map: dm8" "change_map dm8"
add_vote "Map: dm9" "change_map dm9"

---
Any ideas?

--- https://TeeworldFans.GamePlayer.club - Our Official Teeworlds Fan Site - hosts for $14/month first free! of $5/month for a shared server

2

Re: Trying to run as not root and fails to start...

[2020-05-29 04:37:57][mapchecker]: invalid standard map

Looks like you have the map installed but it is non standard or outdated. There is a hardcodet checksum in the code that makes sure no official maps are modified. The map can be installed in one of these places:

/home/twowner/.teeworlds/maps/dm1.map
/home/twowner/twserver/maps/dm1.map
/home/twowner/twserver/data/maps/dm1.map

Either rename it to dm1_custom.map and use 'sv_map dm1_custom' in your config or get a offical map. That one could work https://github.com/teeworlds/teeworlds- … er/dm1.map

#yemDX is a known troll!
but onbgy is the biggest troll
and deen always trolls, he just makes it so perfect that u think hes not

3 (edited by 2020-05-29 10:34:56)

Re: Trying to run as not root and fails to start...

ChillerDragon wrote:

[2020-05-29 04:37:57][mapchecker]: invalid standard map

Looks like you have the map installed but it is non standard or outdated. There is a hardcodet checksum in the code that makes sure no official maps are modified. The map can be installed in one of these places:

/home/twowner/.teeworlds/maps/dm1.map
/home/twowner/twserver/maps/dm1.map
/home/twowner/twserver/data/maps/dm1.map

Either rename it to dm1_custom.map and use 'sv_map dm1_custom' in your config or get a offical map. That one could work https://github.com/teeworlds/teeworlds- … er/dm1.map

Yes I think it came from a different version. Your map was the same one I was using but was not matching the outdated teeworlds_srv version. Updating back to my original version and I don't get that error. Instead I get (see next message) this...

Here is what I get now:

[2020-05-29 08:23:19][engine]: running on unix-linux-amd64
[2020-05-29 08:23:19][engine]: arch is little endian
[2020-05-29 08:23:19][storage]: added path '$USERDIR' ('/home/twowner/.teeworlds')
[2020-05-29 08:23:19][storage]: added path '$DATADIR' ('data')
[2020-05-29 08:23:19][storage]: added path '$CURRENTDIR' ('/home/twowner/twserver')
[2020-05-29 08:23:19][storage]: added path '$APPDIR' ('.')
[2020-05-29 08:23:19][console]: failed to open 'autoexec.cfg'
[2020-05-29 08:23:19][console]: executing 'twserver.cfg'
[2020-05-29 08:23:19][server]: added option 'RESTART IN 10s' 'restart 10'
[2020-05-29 08:23:19][server]: added option 'Gamemode: DM' 'exec dm.cfg'
[2020-05-29 08:23:19][server]: added option 'Gamemode: CTF' 'exec ctf.cfg'
[2020-05-29 08:23:19][server]: added option 'Gamemode: TDM' 'exec tdm.cfg'
[2020-05-29 08:23:19][server]: added option 'Gamemode: TDM (DUEL)' 'exec duel.cfg'
[2020-05-29 08:23:19][server]: added option 'ctf4' 'change_map ctf4'
[2020-05-29 08:23:19][server]: added option 'lost' 'change_map lost'
[2020-05-29 08:23:19][server]: added option 'blmapOnionPie' 'change_map blmapOnionPie'
[2020-05-29 08:23:19][server]: added option 'ctf7' 'change_map ctf7'
[2020-05-29 08:23:19][server]: added option 'dm2' 'change_map dm2'
[2020-05-29 08:23:19][server]: added option 'ctf_endspring' 'change_map ctf_endspring'
[2020-05-29 08:23:19][server]: added option 'ctf_moldyPie' 'change_map ctf_moldyPie'
[2020-05-29 08:23:19][server]: added option 'InsertTitleHere_0cbf9eb3' 'change_map InsertTitleHere_0cbf9eb3'
[2020-05-29 08:23:19][server]: added option 'dm3' 'change_map dm3'
[2020-05-29 08:23:19][server]: added option 'Desertification' 'change_map Desertification'
[2020-05-29 08:23:19][server]: added option 'ctf_great_autumn' 'change_map ctf_great_autumn'
[2020-05-29 08:23:19][server]: added option 'testmap_179c730b' 'change_map testmap_179c730b'
[2020-05-29 08:23:19][server]: added option 'I_4cef3b72' 'change_map I_4cef3b72'
[2020-05-29 08:23:19][server]: added option 'DDRace_4449c9c1' 'change_map DDRace_4449c9c1'
[2020-05-29 08:23:19][server]: added option 'dmSnowfall' 'change_map dmSnowfall'
[2020-05-29 08:23:19][server]: added option 'MoNeY_4d92588a' 'change_map MoNeY_4d92588a'
[2020-05-29 08:23:19][server]: added option 'MegaRosenkohl_50c7e9ad' 'change_map MegaRosenkohl_50c7e9ad'
[2020-05-29 08:23:19][server]: added option 'dm_frozenPie' 'change_map dm_frozenPie'
[2020-05-29 08:23:19][server]: added option 'kll-Z_DDRace_Ultimate_1.1_c7b5942c' 'change_map kll-Z_DDRace_Ultimate_1.1_c7b5942c'
[2020-05-29 08:23:19][server]: added option 'ctf6' 'change_map ctf6'
[2020-05-29 08:23:19][server]: added option 'newmap_0124e2bf' 'change_map newmap_0124e2bf'
[2020-05-29 08:23:19][server]: added option 'ctf8' 'change_map ctf8'
[2020-05-29 08:23:19][server]: added option 'Ikarus-_29754452' 'change_map Ikarus-_29754452'
[2020-05-29 08:23:19][server]: added option 'ctf1' 'change_map ctf1'
[2020-05-29 08:23:19][server]: added option 'DDRace64_48b6d40d' 'change_map DDRace64_48b6d40d'
[2020-05-29 08:23:19][server]: added option 'JustDoIt-_4ee25ba4' 'change_map JustDoIt-_4ee25ba4'
[2020-05-29 08:23:19][server]: added option 'dm6' 'change_map dm6'
[2020-05-29 08:23:19][server]: added option 'dm1_dreams' 'change_map dm1_dreams'
[2020-05-29 08:23:19][server]: added option '273_85c9a5de' 'change_map 273_85c9a5de'
[2020-05-29 08:23:19][server]: added option 'p1pEasy' 'change_map p1pEasy'
[2020-05-29 08:23:19][server]: added option 'ctf2' 'change_map ctf2'
[2020-05-29 08:23:19][server]: added option 'dm9' 'change_map dm9'
[2020-05-29 08:23:19][server]: added option 'I_e51c094e' 'change_map I_e51c094e'
[2020-05-29 08:23:19][server]: added option 'Sexy_tee_9dc24ced' 'change_map Sexy_tee_9dc24ced'
[2020-05-29 08:23:19][server]: added option 'Jan-Race_853c4172' 'change_map Jan-Race_853c4172'
[2020-05-29 08:23:19][server]: added option 'Jan-Race_597cc1c6' 'change_map Jan-Race_597cc1c6'
[2020-05-29 08:23:19][server]: added option 'ctf_choco' 'change_map ctf_choco'
[2020-05-29 08:23:19][server]: added option 'I_4ca6e4fd' 'change_map I_4ca6e4fd'
[2020-05-29 08:23:19][server]: added option 'p2pEasy' 'change_map p2pEasy'
[2020-05-29 08:23:19][server]: added option 'ctf5_china' 'change_map ctf5_china'
[2020-05-29 08:23:19][server]: added option 'ctf_Deaded' 'change_map ctf_Deaded'
[2020-05-29 08:23:19][server]: added option 'dm7' 'change_map dm7'
[2020-05-29 08:23:19][server]: added option 'ctf3' 'change_map ctf3'
[2020-05-29 08:23:19][server]: added option 'blmapOnionPie_ddr' 'change_map blmapOnionPie_ddr'
[2020-05-29 08:23:19][server]: added option 'DM_FunLanD' 'change_map DM_FunLanD'
[2020-05-29 08:23:19][server]: added option 'NEW_DDrace_by_Glück_cef5a52b' 'change_map NEW_DDrace_by_Glück_cef5a52b'
[2020-05-29 08:23:19][server]: added option 'dm8' 'change_map dm8'
[2020-05-29 08:23:19][server]: added option 'I_63b867e4' 'change_map I_63b867e4'
[2020-05-29 08:23:19][server]: added option 'xyz_DDRace_edited_by_KillerWolf_1.2_cf91f690' 'change_map xyz_DDRace_edited_by_KillerWolf_1.2_cf91f690'
[2020-05-29 08:23:19][server]: added option 'DDrace_a058dc5f' 'change_map DDrace_a058dc5f'
[2020-05-29 08:23:19][server]: added option 'ctf5' 'change_map ctf5'
[2020-05-29 08:23:19][server]: added option 'wontfix_5b62784f' 'change_map wontfix_5b62784f'
[2020-05-29 08:23:19][server]: added option 'blmapOnionPie_nu' 'change_map blmapOnionPie_nu'
[2020-05-29 08:23:19][server]: added option 'Mario-_by_Josua_47a9ee43' 'change_map Mario-_by_Josua_47a9ee43'
[2020-05-29 08:23:19][server]: added option 'I_0a602305' 'change_map I_0a602305'
[2020-05-29 08:23:19][server]: added option 'dm1' 'change_map dm1'
[2020-05-29 08:23:19][server]: added option 'DDRace_9a06a4db' 'change_map DDRace_9a06a4db'
[2020-05-29 08:23:19][server]: added option 'dm_bombcave' 'change_map dm_bombcave'
[2020-05-29 08:23:19][server]: added option 'Ghost-City_c9f84d58' 'change_map Ghost-City_c9f84d58'
[2020-05-29 08:23:19][server]: added option 'graveyard' 'change_map graveyard'
[2020-05-29 08:23:19][server]: added option 'xyz_DDRace_edited_by_KillerWol_cf91f690' 'change_map xyz_DDRace_edited_by_KillerWol_cf91f690'
[2020-05-29 08:23:19][server]: option 'ghost-city_c9f84d58' already exists
[2020-05-29 08:23:19][server]: added option 'flyctf_sunday' 'change_map flyctf_sunday'
[2020-05-29 08:23:19][server]: added option 'SKY_IVLAND-_1a6b6c05' 'change_map SKY_IVLAND-_1a6b6c05'
[2020-05-29 08:23:19][server]: added option 'dm1_moon' 'change_map dm1_moon'
[2020-05-29 08:23:19][server]: added option 'lms1' 'change_map lms1'
[2020-05-29 08:23:19][server]: added option 'konstantin=-3_4eb792a2' 'change_map konstantin=-3_4eb792a2'
[2020-05-29 08:23:19][server]: added option 'blmapOnionPie_ddr_nu' 'change_map blmapOnionPie_ddr_nu'
[2020-05-29 08:23:19][server]: added option 'NEW_DDrace_by_Gl_cef5a52b' 'change_map NEW_DDrace_by_Gl_cef5a52b'
[2020-05-29 08:23:19][server]: added option 'dm1_entities' 'change_map dm1_entities'
[2020-05-29 08:23:19][engine/logfile]: failed to open 'dumps//tmp/teeworlds.log.txt' for logging
[2020-05-29 08:23:19][server]: starting...
[2020-05-29 08:23:19][datafile]: loading. filename='maps/dm1.map'
[2020-05-29 08:23:19][datafile]: allocsize=3884
[2020-05-29 08:23:19][datafile]: readsize=3484
[2020-05-29 08:23:19][datafile]: swaplen=3504
[2020-05-29 08:23:19][datafile]: item_size=3096
[2020-05-29 08:23:19][datafile]: loading done. datafile='maps/dm1.map'
[2020-05-29 08:23:19][datafile]: loading data index=14 size=288 uncompressed=1148
[2020-05-29 08:23:19][datafile]: loading data index=15 size=592 uncompressed=1380
[2020-05-29 08:23:19][datafile]: loading data index=16 size=238 uncompressed=448
[2020-05-29 08:23:19][datafile]: loading data index=17 size=303 uncompressed=860
[2020-05-29 08:23:19][datafile]: loading data index=18 size=517 uncompressed=1828
[2020-05-29 08:23:19][datafile]: loading data index=19 size=114 uncompressed=224
[2020-05-29 08:23:19][server]: maps/dm1.map sha256 is 491af17a510214506270904f147a4c30ae0a85b91bb854395bef8c397fc078c3
[2020-05-29 08:23:19][server]: maps/dm1.map crc is 64548818
[2020-05-29 08:23:19][net]: failed to bind socket with domain 2 and type 2 (99 'Cannot assign requested address')
[2020-05-29 08:23:19][net]: failed to bind socket with domain 10 and type 2 (99 'Cannot assign requested address')
[2020-05-29 08:23:19][server]: couldn't open socket. port 8305 might already be in use

Hmm, seems I had a "bind" option in my config file. Removing it and the server is now starting OK smile Thanks for the help!

--- https://TeeworldFans.GamePlayer.club - Our Official Teeworlds Fan Site - hosts for $14/month first free! of $5/month for a shared server