Closed DiFFoZ closed 10 months ago
Dang, I had a call so I'm a bit late reviewing these issues. Phew for wrapping all the separate ScanKnownLevels sections in try-catch blocks!
Not sure why it would be getting permission denied when I think it created those folders before. Will investigate.
It shouldn't interrupt loading fortunately despite the error.
When my server starts, it stops with this error, and simply doesn't load
OH DUH 🤦♂️ the game wasn't prefixing the game folder path to /Servers/... so it was looking in the operating system root. I think it works on Windows because it's automatically relative to the working directory?
I'm not sure why it would be blocking loading though. @diogocarvalho19 could you share your log file please in case there's a separate error that's blocking loading?
[2023-11-24 18:28:56] Reflect net invokables: 28ms
[2023-11-24 18:28:56] Discovered assembly "Rocket.API, Version=4.9.3.4, Culture=neutral, PublicKeyToken=null" at "/home/untserver/serverfiles/Modules/Rocket.Unturned/Rocket.API.dll"
[2023-11-24 18:28:56] Discovered assembly "Rocket.API, Version=4.9.3.4, Culture=neutral, PublicKeyToken=null" at "/home/untserver/serverfiles/Modules/Rocket.Unturned/Rocket.API.dll"
[2023-11-24 18:28:56] Discovered assembly "Rocket.Core, Version=4.9.3.4, Culture=neutral, PublicKeyToken=null" at "/home/untserver/serverfiles/Modules/Rocket.Unturned/Rocket.Core.dll"
[2023-11-24 18:28:56] Discovered assembly "Rocket.Core, Version=4.9.3.4, Culture=neutral, PublicKeyToken=null" at "/home/untserver/serverfiles/Modules/Rocket.Unturned/Rocket.Core.dll"
[2023-11-24 18:28:56] Discovered assembly "Rocket.Unturned, Version=4.9.3.10, Culture=neutral, PublicKeyToken=null" at "/home/untserver/serverfiles/Modules/Rocket.Unturned/Rocket.Unturned.dll"
[2023-11-24 18:28:56] Discovered assembly "Rocket.Unturned, Version=4.9.3.10, Culture=neutral, PublicKeyToken=null" at "/home/untserver/serverfiles/Modules/Rocket.Unturned/Rocket.Unturned.dll"
[2023-11-24 18:28:56] Found 1 module(s):
[2023-11-24 18:28:56] 0: "Rocket.Unturned"
[2023-11-24 18:28:56] Unturned overriding Steam AppId with "304930"
[2023-11-24 18:28:56] Game version: 3.23.13.0 Engine version: 2021.3.29f1
[2023-11-24 18:28:56] Executing 5 potential game command(s) from the command-line:
[2023-11-24 18:28:56] Did not match "port:27015" with any commands
[2023-11-24 18:28:56] Did not match "players:20" with any commands
[2023-11-24 18:28:56] Did not match "-nographics" with any commands
[2023-11-24 18:28:56] Did not match "pei" with any commands
[2023-11-24 18:28:56] Did not match "batchmode" with any commands
[2023-11-24 18:28:56] Successfully set map to Russia!
[2023-11-24 18:28:56] Successfully set gamemode to normal!
[2023-11-24 18:28:56] Successfully set name to [EU#1] UNTC4 Vanilla+ [ HOME & TPA & Keep Skills ]!
[2023-11-24 18:28:56] Successfully set perspective to both!
[2023-11-24 18:28:56] Successfully set max players to 50!
[2023-11-24 18:28:56] Platform: LinuxServer
[2023-11-24 18:28:56] Operating System: Linux 5.4 Ubuntu 20.04 64bit
[2023-11-24 18:28:56] System Memory: 32017MB
[2023-11-24 18:28:56] Rocket Unturned v4.9.3.10 for Unturned v3.23.13.0
[2023-11-24 18:28:56] Initialized module "Rocket.Unturned"
[2023-11-24 18:28:56] Vanilla Built-in Assets added asset search location "/home/untserver/serverfiles/Bundles"
[2023-11-24 18:28:56] Server Common (Legacy) added asset search location "/home/untserver/serverfiles/Bundles/Workshop/Content"
[2023-11-24 18:28:56] Per-Server (Legacy) added asset search location "/home/untserver/serverfiles/Servers/untserver/Workshop/Content"
[2023-11-24 18:28:56] Per-Server (Legacy) added asset search location "/home/untserver/serverfiles/Servers/untserver/Bundles"
[2023-11-24 18:28:56] Discovered level "Alpha Valley" at "/home/untserver/serverfiles/Maps/Alpha Valley"
[2023-11-24 18:28:56] Discovered level "Destruction" at "/home/untserver/serverfiles/Maps/Destruction"
[2023-11-24 18:28:56] Discovered level "Germany" at "/home/untserver/serverfiles/Maps/Germany"
[2023-11-24 18:28:56] Discovered level "Monolith" at "/home/untserver/serverfiles/Maps/Monolith"
[2023-11-24 18:28:56] Discovered level "PEI" at "/home/untserver/serverfiles/Maps/PEI"
[2023-11-24 18:28:56] Discovered level "Paintball_Arena_0" at "/home/untserver/serverfiles/Maps/Paintball_Arena_0"
[2023-11-24 18:28:56] Discovered level "Russia" at "/home/untserver/serverfiles/Maps/Russia"
[2023-11-24 18:28:56] Discovered level "Scope_Markers_Test" at "/home/untserver/serverfiles/Maps/Scope_Markers_Test"
[2023-11-24 18:28:56] Discovered level "Tutorial" at "/home/untserver/serverfiles/Maps/Tutorial"
[2023-11-24 18:28:56] Discovered level "Washington" at "/home/untserver/serverfiles/Maps/Washington"
[2023-11-24 18:28:56] Discovered level "Yukon" at "/home/untserver/serverfiles/Maps/Yukon"
[2023-11-24 18:28:56] Caught exception loading levels in legacy per-server workshop Maps folder (/Servers/untserver/Workshop/Maps):
[2023-11-24 18:28:56] Access to the path '/Servers/untserver/Workshop/Maps' is denied.
[2023-11-24 18:28:56] at System.IO.FileSystem.CreateDirectory (System.String fullPath) [0x00191] in <2161c9885dd04ff291b79db9349c4b9b>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0002c] in <2161c9885dd04ff291b79db9349c4b9b>:0
at SDG.Unturned.ReadWrite.createFolder (System.String path, System.Boolean usePath) [0x00018] in
When my server starts, it stops with this error, and simply doesn't load
My servers have exactly the same problem And exactly the same error in the logs
Thanks - I guess the exception logging is throwing an exception
Any temporary solution or just an update?
A .1 patch is now building/uploading and I expect I'll put it out right away.
ksdsksd mentions here https://github.com/SmartlyDressedGames/Unturned-3.x-Community/issues/4223#issuecomment-1825986941 creating the folder that it's incorrectly trying to create as a temporary workaround, but the patch should be out very soon.
Ok thanks
Sorry for my mistake with the path and the unfortunate double exception causing it to break loading. This should now be fixed in the .1 patch!
It worked here, thanks for the help!
Thanks, it's fixed