Native Linux server (with management scripts)

server still gets random crashes when someone disconnects it seems

at the top of the output file

2014.09.20 15:40:25: Failed to create secure directory (/run/user/0/pulse): Permission denied

2014.09.20 15:40:25: Failed to create secure directory (/run/user/0/pulse): Permission denied

also this

2014.09.20 16:04:37: Texture rectangle is out of bounds

2014.09.20 16:04:43: Texture rectangle is out of bounds

2014.09.20 16:04:43: Texture rectangle is out of bounds

2014.09.20 16:04:45: Texture rectangle is out of bounds

also my minimap on far out zoom is a large tile with "?" if u zoom once into it it loads rendered tiles agian.. not sure how that came about, all the other tiles are fine.

 
Last edited by a moderator:
is there any .sh cron script that could check an instance and start it up if its not running? (ie its crashed seems to have started happening since EAC)

not that familiar with .sh stuff only php

 
server still gets random crashes when someone disconnects it seems
at the top of the output file

<log messages>
Don't know why it should and at least I suppose I don't affect this ;)

The messages don't seem to be really bad.

also my minimap on far out zoom is a large tile with "?" if u zoom once into it it loads rendered tiles agian.. not sure how that came about, all the other tiles are fine.
By minimap you mean the ingame one? Could you make a screenshot? Haven't heard of anything like that before.

is there any .sh cron script that could check an instance and start it up if its not running? (ie its crashed seems to have started happening since EAC)
Well, if it's about real crashes (i.e. process died) you could simply add a cron entry with "7dtd.sh start <instance>". If the instance is running anyway it won't do anything and if not it starts it. Obviously doesn't work if the process is still running but the server isn't doing what it should.

 
Hi all,

I have been running a 7dtd server, though recently this stopped working and even reinstalling on different servers I cannot again get this to work. Have installed manually and through automated installation script. Most recent server installation is through the script. Any errors in the logs seem to have been dismissed through earlier posts as not an error which would result in the server not running. My current server is a 4vCPU server with 4GB of RAM on a 14.04 server. I'm stuck and cannot figure out why this is not running.

The server is not connectable on the port 25000 even through localhost via telnet, though the telnet interface is accessible and appears to be functioning. The firewall is currently disabled. No data is being written to the Region directory within the instance. The instance logs are as given below.

current_output.txt

output_log.txt

Thanks for any help or ideas!

 
Last edited by a moderator:
Hm, the log looks ok. Nothing out of the ordinary in there.

That you can not connect with Telnet on 25000 is normal as the game ports are UDP and Telnet tries to make a TCP connection. "7dtd.sh status <instance>" should show you which ports are really opened when the server is running (it should show at least 25000, 25001, 25002 each UDP).

 
Thank you Alloc,

Wow. I feel like an idiot. I had a server that was not working (which has been blown away many iterations ago), and my quick test since this was not working was to check via telnet. On connecting 7dtd direct to the IP of the server, I do see it is working correctly. Many apologies for overlooking this basic networking principle.

Doesn't seem to be said enough in this forum, but thank you for you time and effort allowing us to run these servers! And thank you for the quick support within this forum!

 
By minimap you mean the ingame one? Could you make a screenshot? Haven't heard of anything like that before.
yeh here is public map you can see it and zoom in.. http://map.kraftzone.net/7dtd/

i would mind letting all players view the map to see landclaims (no live positions or inventory), but i have the main webserver passworded so its not really possible to get that updated list through the api without exposing the password

hope you add in some perms for level or access to features like live player positions/landclaims/view inventory or multiple password access to the main webserver directory soon, I have been wanting to let few people get access to that with there own user/pass or at least a different password anyway

7dtd.sh start <instance>". If the instance is running anyway it won't do anything and if not it starts it.
after posting I had a look into it and noticed the same, so I did cron exactly like that, less complicated than i thought it might have been :D

 
map/0/0/-1.png it is a file.. its 127byte .png with a little red question mark on a white background 8x8pixels :D

how that got generated no idea.. but I did try delete it, refreshed the public map and it got generated again

maybe that was just a coincidence.. how to get it to rerender that tile again properly

 
2014.09.21 17:46:31: Error getting entity player for ClientInfo: System.NullReferenceException: Object reference not set to an instance of an object2014.09.21 17:46:31: at AllocsFixes.CommonMappingFunctions.GetEntityPlayer (.ClientInfo _ci) [0x00000] in <filename unknown>:0

2014.09.21 17:46:31: Error in AllocsLogFunctions.PlayerDisconnected: System.NullReferenceException: Object reference not set to an instance of an object

2014.09.21 17:46:31: at AllocsFixes.PersistentData.Player.SetOffline () [0x00000] in <filename unknown>:0

2014.09.21 17:46:31: at AllocsFixes.AllocsLogFunctions.PlayerDisconnected (.ConnectionManager manager, Int32 _clientId, Boolean _bShutdown) [0x00000] in <filename unknown>:0

2014.09.21 17:46:31: Removing player with id clientId=20, entityId=81126

2014.09.21 17:46:31: Exited thread_CommWriter: cl=20, ch=1

2014.09.21 17:46:31: No objects for the given player ID were deleted 20

2014.09.21 17:46:31: Exited thread_CommWriter: cl=20, ch=2

2014.09.21 17:46:31: Player set to offline: 76561198028067473

2014.09.21 17:46:31: Error getting entity player for ClientInfo: System.NullReferenceException: Object reference not set to an instance of an object

2014.09.21 17:46:31: at AllocsFixes.CommonMappingFunctions.GetEntityPlayer (.ClientInfo _ci) [0x00000] in <filename unknown>:0

2014.09.21 17:46:31: Error in AllocsLogFunctions.PlayerDisconnected: System.NullReferenceException: Object reference not set to an instance of an object

2014.09.21 17:46:31: at AllocsFixes.PersistentData.Player.SetOffline () [0x00000] in <filename unknown>:0
and many of these in the log

(Filename: /BuildAgent/work/d63dfc6385190b60/artifacts/LinuxStandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)
 
The latter one is just Unity output for log messages, just ignore them (that's why I filter them for the log, they just clutter it).

The first one is a bit weird as that shouldn't be possible but on the other hand the worst that can happen is that the player will still be shown as online in the map atm.

Do you know on what occasion that happened? I.e. was it a normal client side disconnect, a kick by EAC, a kick by console, ban ...?

 
i dunno i'll check later

can you add some sort of /butcher to remove all zombies.. notice a lot get spawned in stupid places like apartment buildings 4+ stories high or in caves when the nearest player is blocks away and at ground level, doesn't make sense especially when pathfinding ain't excatly great.. seem like simple performance fixes that could go a long way just aren't being done.. so a quick fix to wipe them would help.

Just kind of wondering why there is a spike in cpu usage lately with this newer 9.3hotfix when in pre 9.2 had much more players online and less cpu usage.

 
i dunno i'll check later
If you do that with a newer mod release instead of looking for the exception please look for "Entity not available. Something seems to be wrong here..." ;)

(Upload in a few minutes)

can you add some sort of /butcher to remove all zombies..
Hm, not sure how to do this, will have a look though.

 
Hello. Trying to get my server running, but when im running the script, as root, i get this error just after useradd and group add..

Downloading and installing management scripts
2014-09-22 19:07:42 URL:http://illy.bz/fi/7dtd/management_scripts.tar.gz [918249/918249] -> "/tmp/management_scripts.tar.gz" [1]

update-rc.d: using dependency based boot sequencing

insserv: Script teamspeak is broken: incomplete LSB comment.

insserv: missing `Provides:' entry: please add.

insserv: missing `Required-Start:' entry: please add even if empty.

insserv: missing `Required-Stop:' entry: please add even if empty.

insserv: missing `Default-Start:' entry: please add even if empty.

insserv: missing `Default-Stop:' entry: please add even if empty.

insserv: Default-Start undefined, assuming empty start runlevel(s) for script `teamspeak'

insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `teamspeak'

Compiling start-stop-daemon

start-stop-daemon.c:59:25: fatal error: sys/syscall.h: No such file or directory

compilation terminated.

chown: cannot access `start-stop-daemon': No such file or directory

chmod: cannot access `start-stop-daemon': No such file or directory
At the end of installation i get a lot of errormessages, and server dont start.. Now what? :/

Everything else in the installation is running just fine..

 
Compiling fails because you don't have libc6-dev installed (seems to be optional in newer Debian releases). For the other one: Looks like you have a script in /etc/init.d that doesn't meet the requirements for such a script (probably /etc/init.d/teamspeak). Don't know why update-rc.d fails when another script isn't correct but for some reason it does. The only drawback for you could be that the server won't automatically start at boot so you would have to start it manually on each reboot (though maybe update-rc.d does it's job despite the errors).

 
If you do that with a newer mod release instead of looking for the exception please look for "Entity not available. Something seems to be wrong here..."

(Upload in a few minutes)

did you upload new version?

 
Ah, Linux package ... Doing that in a minute ;)

(Really gotta decouple the scripts from the mod ...)

/EDIT: And done ;)

 
Compiling fails because you don't have libc6-dev installed (seems to be optional in newer Debian releases). For the other one: Looks like you have a script in /etc/init.d that doesn't meet the requirements for such a script (probably /etc/init.d/teamspeak). Don't know why update-rc.d fails when another script isn't correct but for some reason it does. The only drawback for you could be that the server won't automatically start at boot so you would have to start it manually on each reboot (though maybe update-rc.d does it's job despite the errors).
Thank you. Now the server is running fine.

When you mention it, ts3 have never started on boot...

 
7dtd.sh start ZoneInstance Zone is already running
Only its not.... seems to have somewhat crashed yet still be running... this is making an auto restart cron with " 7dtd.sh start Zone" not that reliable to use..

7dtd.sh instances listInstance name | Running | Players | Port

---------------------+----------+---------+------

/usr/local/lib/7dtd/common.sh: line 186: 25921 Killed nc 127.0. 0.1 $TEL_PORT 0<&3

Zone | yes | 20/25000 | 0
 
Back
Top