Isalof Posted September 3, 2014 Share Posted September 3, 2014 (edited) 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 September 3, 2014 by Isalof (see edit history) Link to comment Share on other sites More sharing options...
Alloc Posted September 3, 2014 Author Share Posted September 3, 2014 No way unless you find the required 64 bit files (and I can tell you that's basically impossible atm) So well, 2.8 is quite a bit already, but I can not say for sure if that's the problem. Link to comment Share on other sites More sharing options...
Isalof Posted September 3, 2014 Share Posted September 3, 2014 Well I dont have anything else to go on so I guess it really could be the memory and all I can do is wait for patch to improve that :/ Thats a pitty about the 64bit version, I guess there is no point in me looking if you didnt find it lol . Link to comment Share on other sites More sharing options...
kakusha Posted September 4, 2014 Share Posted September 4, 2014 Hi Isalof. To check your server's status, how about using top command. like, #!/bin/sh sdtdpid=$(cat /TO/YOUR/INSTANCE/7dtd.pid) top -b -n 1 -p $sdtdpid > /TO/LOG/DIR/top7dtd.log Link to comment Share on other sites More sharing options...
Isalof Posted September 4, 2014 Share Posted September 4, 2014 (edited) 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 September 4, 2014 by Isalof (see edit history) Link to comment Share on other sites More sharing options...
Alloc Posted September 4, 2014 Author Share Posted September 4, 2014 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 More sharing options...
Isalof Posted September 4, 2014 Share Posted September 4, 2014 (edited) 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 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 September 4, 2014 by Isalof (see edit history) Link to comment Share on other sites More sharing options...
Alloc Posted September 4, 2014 Author Share Posted September 4, 2014 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 More sharing options...
Isalof Posted September 4, 2014 Share Posted September 4, 2014 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 More sharing options...
Isalof Posted September 4, 2014 Share Posted September 4, 2014 Ok so, this deserves a seperate post . 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 More sharing options...
Alloc Posted September 4, 2014 Author Share Posted September 4, 2014 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 More sharing options...
Isalof Posted September 4, 2014 Share Posted September 4, 2014 Ok, so we probably shouldnt update yet then? As in server wont start? Link to comment Share on other sites More sharing options...
Alloc Posted September 4, 2014 Author Share Posted September 4, 2014 Yep, new Unity version so it's incompatible atm. Link to comment Share on other sites More sharing options...
Isalof Posted September 4, 2014 Share Posted September 4, 2014 Alright, thanks for the Info! Link to comment Share on other sites More sharing options...
Alloc Posted September 4, 2014 Author Share Posted September 4, 2014 Ok, version 53 seems to be ok. DO NOT FORGET TO READ THE RELEASE NOTES OF THE SCRIPTS! Link to comment Share on other sites More sharing options...
nolram_ Posted September 4, 2014 Share Posted September 4, 2014 Hello friend, updated the game and the script(v53), but now when I type "sudo 7dtd.sh start MyInstances" I get the following error message: Failed! Link to comment Share on other sites More sharing options...
Alloc Posted September 4, 2014 Author Share Posted September 4, 2014 Just quoting myself this time: DO NOT FORGET TO READ THE RELEASE NOTES OF THE SCRIPTS! If it hadn't been just one post above yours it would be different ... but I'm not writing all this stuff for fun Link to comment Share on other sites More sharing options...
sparxiky Posted September 4, 2014 Share Posted September 4, 2014 Any news yet for Dedicated server on Windows ? Kinda sad.... Link to comment Share on other sites More sharing options...
Alloc Posted September 4, 2014 Author Share Posted September 4, 2014 Any news yet for Dedicated server on Windows ? Kinda sad.... o.O What's that got to do with Linux? Also, what news would you expect? Dedi on Windows has been officially there since 7.8 (iirc) ... Link to comment Share on other sites More sharing options...
adni86 Posted September 4, 2014 Share Posted September 4, 2014 Dear Alloc, thank you for the great work. Seems to be stable at rev166 Link to comment Share on other sites More sharing options...
Koolio Posted September 4, 2014 Share Posted September 4, 2014 "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 More sharing options...
Alloc Posted September 4, 2014 Author Share Posted September 4, 2014 (edited) 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 September 4, 2014 by Alloc (see edit history) Link to comment Share on other sites More sharing options...
azunai Posted September 4, 2014 Share Posted September 4, 2014 A newer version of the scripts is available. Local: v.52 (supported dedi build: 363156) Available: v.53 (supported dedi build: 373581) Please check the release notes before continuing: https://7dtd.illy.bz/wiki/Release%20Notes its not just for fun Link to comment Share on other sites More sharing options...
Koolio Posted September 4, 2014 Share Posted September 4, 2014 Any news yet for Dedicated server on Windows ? Kinda sad.... Linux support is already an after thought for the funpimps, don't be distracting our Alloc with this windows support nonsense Link to comment Share on other sites More sharing options...
Koolio Posted September 5, 2014 Share Posted September 5, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now