Jump to content

Native Linux server (with management scripts)


Alloc

Recommended Posts

No nothing interesting in the logs Im afraid, the saveworld command did seem to correlate with the crashes, but not always, so its probably just a coincidence.

There are around 15 players on the server. CPU load gets somewhat intensive (80%-90%) but ram seems to be doing ok, even though the game does seem to use around 2GB (log says heap grows to around 2.8GB). Do you have any idea how I could confirm if the game is running our of memory anyways? Does the game run as a 32bit process?

 

Edit: Well it does seem to be 32bit, is there any way I could try running it as 64bit?

Edited by Isalof (see edit history)
Link to comment
Share on other sites

Thanks I will have a look at it kakusha.

 

Im getting an error with the newest release v52 which is prevent the server from working, could u have a look at it Alloc?

 

2014.09.04 06:53:01: Fallback handler could not load library /home/sdtd/engine/7DaysToDie_Data/Mono/x86/SteamworksNative

2014.09.04 06:53:01: Exception: ServicesGameServer.Initialize failed: SteamInitializeFailed

2014.09.04 06:53:01: at ManagedSteam.ServicesGameServer.Startup (UInt32 ip, UInt16 steamPort, UInt16 gamePort, UInt16 queryPort, ServerMode serverMode, System.String versionString) [0x00000] in <filename unknown>:0

2014.09.04 06:53:01: at ManagedSteam.ServicesGameServer.Initialize (System.Globalization.CultureInfo activeCulture, UInt32 ip, UInt16 steamPort, UInt16 gamePort, UInt16 queryPort, ServerMode serverMode, System.String versionString) [0x00000] in <filename unknown>:0

2014.09.04 06:53:01: at ManagedSteam.ServicesGameServer.Initialize (UInt32 ip, UInt16 steamPort, UInt16 gamePort, UInt16 queryPort, ServerMode serverMode, System.String versionString) [0x00000] in <filename unknown>:0

2014.09.04 06:53:01: at SteamMasterServer.Connect (UnityEngine.MonoBehaviour _mono) [0x00000] in <filename unknown>:0

2014.09.04 06:53:01: at GameManager.md0011 () [0x00000] in <filename unknown>:0

2014.09.04 06:53:01: at GameManager.Awake () [0x00000] in <filename unknown>:0

 

Edit:

 

Oh and before that (with the previous version) the server was throwing the following exceptions:

2014.09.04 00:10:02: Add Dirty: -153, 87

2014.09.04 00:10:02: Save PlayerData file: Too many open files

2014.09.04 00:10:02: Updating player inventory - player id: 172

2014.09.04 00:10:02: Save player fow file: Too many open files

2014.09.04 00:10:02: Exception in MapRenderBlockBuffer.saveTextureToFile(): System.IO.IOException: Too many open files

2014.09.04 00:10:02: at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)

2014.09.04 00:10:02: at System.IO.File.Create (System.String path, Int32 bufferSize) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at System.IO.File.Create (System.String path) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at System.IO.File.WriteAllBytes (System.String path, System.Byte[] bytes) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at AllocsFixes.MapRendering.MapRenderBlockBuffer.saveTextureToFile (System.String _fileName) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: Exception in MapRenderBlockBuffer.saveTextureToFile(): System.IO.IOException: Too many open files

2014.09.04 00:10:02: at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)

2014.09.04 00:10:02: at System.IO.File.Create (System.String path, Int32 bufferSize) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at System.IO.File.Create (System.String path) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at System.IO.File.WriteAllBytes (System.String path, System.Byte[] bytes) [0x00000] in <filename unknown>:0

2014.09.04 00:10:02: at AllocsFixes.MapRendering.MapRenderBlockBuffer.saveTextureToFile (System.String _fileName) [0x00000] in <filename unknown>:0

Edited by Isalof (see edit history)
Link to comment
Share on other sites

Regarding the second part: Were you trying to run the "rendermap" command at that time?

 

@first one: Might just as well be related to the max open files too. Looks like the engine is often keeping a lot of files opened and AFAIK net sockets are counted in too...

 

Can't say for sure though. You might try increasing the files limit as shown by qriff here.

Link to comment
Share on other sites

Ok thanks I'll try it as soon as I'm back, hope it will work.

I'm not on a wrong version though right? Cause I couldn't find the release notes for v52 yet :D

 

No I wasn't trying to run the command I just noticed the server wasn't running right so I checked the logs and found the exception.

Edited by Isalof (see edit history)
Link to comment
Share on other sites

Well, I hope this isn't a major problem for now ... but I'll probably have to further improve the rendering stuff so there are less file accesses.

 

v52 probably was a bump to the server mod. I should really get that done differently, it's kinda annoying how it works right now ;)

Link to comment
Share on other sites

As described in that post I edited the file and added the entries:

sdtd hard nofile 16384

sdtd soft nofile 8192

I even rebooted after that but no luck im afraid :(

 

2014.09.04 17:44:36: Exception: ServicesGameServer.Initialize failed: SteamInitializeFailed

2014.09.04 17:44:36: at ManagedSteam.ServicesGameServer.Startup (UInt32 ip, UInt16 steamPort, UInt16 gamePort, UInt16 queryPort, ServerMode serverMode, System.String versionString) [0x00000] in <filename unknown>:0

2014.09.04 17:44:36: at ManagedSteam.ServicesGameServer.Initialize (System.Globalization.CultureInfo activeCulture, UInt32 ip, UInt16 steamPort, UInt16 gamePort, UInt16 queryPort, ServerMode serverMode, System.String versionString) [0x00000] in <filename unknown>:0

2014.09.04 17:44:36: at ManagedSteam.ServicesGameServer.Initialize (UInt32 ip, UInt16 steamPort, UInt16 gamePort, UInt16 queryPort, ServerMode serverMode, System.String versionString) [0x00000] in <filename unknown>:0

2014.09.04 17:44:36: at SteamMasterServer.Connect (UnityEngine.MonoBehaviour _mono) [0x00000] in <filename unknown>:0

2014.09.04 17:44:36: at GameManager.md0011 () [0x00000] in <filename unknown>:0

2014.09.04 17:44:36: at GameManager.Awake () [0x00000] in <filename unknown>:0

2014.09.04 17:44:36: Unloading 5 Unused Serialized files (Serialized files now loaded: 1 / Dirty serialized files: 0)

2014.09.04 17:44:36: Unloading 153 unused Assets to reduce memory usage. Loaded Objects now: 94076.

2014.09.04 17:44:36: Total: 116.552002 ms (FindLiveObjects: 5.977000 ms CreateObjectMapping: 0.578000 ms MarkObjects: 109.618004 ms DeleteObjects: 0.298000 ms)

 

Then a player tried to join which failed => 2014.09.04 17:45:04: ServicesGameServer not initialzed!

 

I found a few more things, though some of them were occuring before that error:

2014.09.04 17:43:51: The file '/home/sdtd/engine/7DaysToDie_Data/mainData' is corrupted! Remove it and launch unity again!

2014.09.04 17:43:51: [Position out of bounds! 931644 > 931640]

2014.09.04 17:43:51: The class named 'Localization' is abstract. The script class can't be abstract!

 

2014.09.04 17:43:56: The file '/home/sdtd/engine/7DaysToDie_Data/level0' is corrupted! Remove it and launch unity again!

2014.09.04 17:43:56: [Position out of bounds! 162972 > 162968]

2014.09.04 17:43:56: The file '/home/sdtd/engine/7DaysToDie_Data/level0' is corrupted! Remove it and launch unity again!

2014.09.04 17:43:56: [Position out of bounds! 163560 > 163556]

 

I dont think the last messages are interesting though. Weirdly enough my other Instance which is Navezgane based with close to 0 players is still running and can be restarted..

Any more ideas :/ ?

Link to comment
Share on other sites

Ok so, this deserves a seperate post :D. I finally got it working again!

It would seem as though the Region folder had too many files in it...

I deleted all the regions outside of those that players had keystoned and then the server just started up again...

 

So it would seem that once the region folder gets too large the server will just crash? Anyone else experience something like this? FYI my region folder was about 6.7GB.

Link to comment
Share on other sites

Ah, good to know this was causing problems. I have heard of larger region folders (12 GiB) but they were running the Windows build ;)

 

The other "errors" are ok.

 

 

 

Alpha 9.2

Currently I'm missing the new engine files but that will most likely be fixed during the evening (CEST). So like in 4hrs probably.

Link to comment
Share on other sites

"DO NOT FORGET TO READ THE RELEASE NOTES OF THE SCRIPTS!"

 

you mean this....

Note: This updated only script files. If the global config file

/etc/7dtd.conf contains changes for the newer version or there

were new files added to the user folder /home/sdtd those changes

have not been applied!

 

Or something else.. either way its not very clear what users should be paying attention too exactly or where these notes can be found.

Link to comment
Share on other sites

Nope, I was talking about this part which points you to the release notes:

Please check the release notes before continuing:
 https://7dtd.illy.bz/wiki/Release%20Notes

;)

(And I think it's actually really clearly said there what and where ;) Not reading command output doesn't mean there is none or that it wouldn't contain anything useful)

Also release notes for a software product can be found on the product's website most of the time so that would be a good place to start.

 

Not meant to be harsh or anything but I just don't like documenting all that stuff and trying to get the commands to point you at what to do for people not even reading it. That's just making me having to repeat instructions over and over again and you (as in "the user") having to wait for my response on questions. That's kinda frustrating :(

Edited by Alloc (see edit history)
Link to comment
Share on other sites

7dtd.sh start da♥♥♥♥

Failed!

 

logs says...

Mono path[0] = '/home/sdtd/engine/7DaysToDie_Data/Managed'

Mono path[1] = '/home/sdtd/engine/7DaysToDie_Data/Mono'

Mono config path = '/home/sdtd/engine/7DaysToDie_Data/Mono/etc'

Invalid serialized file version. File: "/home/sdtd/engine/7DaysToDie_Data/mainData". Expected version: 4.5.0f6. Actual version: 4.5.3f3.

 

(Filename: Line: 736)

 

Failed to read file '/home/sdtd/engine/7DaysToDie_Data/mainData' because it is corrupted.

 

(Filename: Line: 442)

 

PlayerInitEngineNoGraphics settings: Could..... not preload global game manager #0 i=0

Failed to initialize player

 

updated scripts .. and did the "You have to download the linux_files-archive again!. After that please run 7dtd.sh updateengine --force. "

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...