LZ4 block is corrupted, or invalid length has been given. Sometimes failed auto-restart.Solved

Good day. I tried to look through similar topics, but they are usually unresolved.
The problem is not permanent, because I don’t manually reboot the server, this manifests itself during auto-restart, but always, I repeat, always, with a similar error at startup, in order for the server to start, it’s enough to turn off the server and turn it on again.
I used custom maps with rustmaps, and took the seeds of regular procedural maps with rustmaps, and generated random seeds directly from the server. I have tried deleting the map file while the server is down, but nothing seems to work. I ask you to connect here as many people with great experience as possible, let's find the answer to this question once and for all. Thank you :)

!-------------------!

Log from server when restart failed:

!-------------------!

Asset Warmup (9930/9930)
WebSocket RCon Started on 20901
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Generating procedural map of size 5000 with seed 9121993
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

LZ4 block is corrupted, or invalid length has been given.
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

NullReferenceException: Object reference not set to an instance of an object
at World.GetCachedHeightMapResolution () [0x0000a] in <e06e484c5bba4b08ba021d3eca9c7c63>:0
at WorldSetup+<InitCoroutine>d__15.MoveNext () [0x0043f] in <e06e484c5bba4b08ba021d3eca9c7c63>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <0b31faaf1c50461d95c83ac166a20393>:0

(Filename: <e06e484c5bba4b08ba021d3eca9c7c63> Line: 0)

 

!-------------------!

List of my plugins:

!-------------------!

plugins
[15:03:09]Listing 95 plugins:
01 "Admin No Loot" (0.1.3) by Dana (0.08s) - AdminNoLoot.cs
02 "Armor Not Forever" (1.0.10) by Flames (0.99s) - ArmorNotForever.cs
03 "ArmoredTrain" (1.2.6) by Adem (13.19s) - ArmoredTrain.cs
04 "Auto Plant" (1.2.4) by Egor Blagov / rostov114 (0.14s) - AutoPlant.cs
05 "Backpack Button" (1.0.1) by WhiteThunder (0.28s) - BackpackButton.cs
06 "Backpacks" (3.11.2) by WhiteThunder (1.05s) - Backpacks.cs
07 "Bed Rename Blocker" (2.0.1) by MON@H (0.00s) - BedRenameBlocker.cs
08 "BetterNpc" (1.1.8) by KpucTaJl (3.80s) - BetterNpc.cs
09 "Blueprint Manager" (2.0.6) by Whispers88 (0.02s) - BlueprintManager.cs
10 "Bradley Guards" (1.4.6) by Bazz3l (0.89s) - BradleyGuards.cs
11 "Building Workbench" (1.3.2) by MJSU (3.84s) - BuildingWorkbench.cs
12 "CargoShipScientistsBugFix" (2.1.3) by Ultra (2.28s) - CargoShipNoScientistsBugFix.cs
13 "Component Blocker" (0.1.8) by Calytic (8.84s) - ComponentBlocker.cs
14 "Convoy" (2.2.0) by Adem (0.31s) - Convoy.cs
15 "Copy Paste" (4.1.33) by misticos (0.05s) - CopyPaste.cs
16 "CraftSystem" (0.0.6) by Sparkless, куплено на RustPlugin.ru (3.66s) - CraftingSystem.cs
17 "Cupboard Auto Lock" (0.0.6) by BuzZ/Arainrr (0.01s) - CupboardAutoLock.cs
18 "Custom Genetics" (0.15.0) by yoshi2 (0.00s) - CustomGenetics.cs
19 "Custom Vending Setup" (2.9.0) by WhiteThunder (0.64s) - CustomVendingSetup.cs
20 "Dance" (1.2.0) by senyaa (0.00s) - Dance.cs
21 "Default Radio Station" (1.1.0) by marcuzz (0.44s) - DefaultRadioStation.cs
22 "DefendableHomes" (1.0.5) by KpucTaJl (4.28s) - DefendableHomes.cs
23 "Despawn Config" (2.2.3) by Wulf (0.44s) - DespawnConfig.cs
24 "Enhanced Ban System" (5.2.6) by Reneb/Slut (0.08s) - EnhancedBanSystem.cs
25 "Entity Limit" (2.1.3) by Orange/The Friendly Chap (3.65s) - EntityLimit.cs
26 "Entity Owner" (3.4.1) by Calytic (0.00s) - EntityOwner.cs
27 "Excavator Lock" (0.4.16) by Lorenzo (0.35s) - ExcavatorLock.cs
28 "GameStoresRUST" (0.3.9) by HOUGAN & Sstine & rostov114 # GAMESTORES (0.06s) - GameStoresRUST.cs
29 "HitIcon" (2.0.0) by FastBurst (0.31s) - HitIcon.cs
30 "IQCases" (2.0.4) by Mercury (0.14s) - IQCases.cs
31 "IQChat" (2.19.61) by Mercury (0.21s) - IQChat.cs
32 "IQEconomic" (1.12.1) by Mercury (5.63s) - IQEconomic.cs
33 "IQGradeRemove" (1.3.10) by Mercury (1.45s) - IQGradeRemove.cs
34 "IQInfo" (0.0.25) by Mercury (0.10s) - IQInfo.cs
35 "IQKits" (1.1.9) by Mercury (0.59s) - IQKits.cs
36 "IQRates" (1.8.23) by Mercury (4.54s) - IQRates.cs
37 "IQSphereEvent" (1.3.5) by Mercury (0.47s) - IQSphereEvent.cs
38 "Image Library" (2.0.60) by Absolut & K1lly0u (0.31s) - ImageLibrary.cs
39 "Instant Craft" (2.2.1) by Vlad-0003 / Orange / rostov114 (0.08s) - InstantCraft.cs
40 "Instant Startup" (1.0.2) by Kaysharp (0.00s) - InstantStartup.cs
41 "Item Cost Calculator" (2.0.15) by Absolut/Arainrr (0.11s) - ItemCostCalculator.cs
42 "Logger" (2.2.1) by Wulf/lukespragg (0.82s) - Logger.cs
43 "Loot Bouncer" (1.0.9) by Sorrow/Arainrr (0.64s) - LootBouncer.cs
44 "Loot Defender" (2.1.1) by Author Egor Blagov, Maintainer nivex (3.38s) - LootDefender.cs
45 "MLRS Damage" (1.3.1) by iLakSkiL (1.00s) - MLRSDamage.cs
46 "MainMenu" (1.1.4) by OxideBro (0.13s) - MainMenu.cs
47 "Master Key" (0.7.7) by FastBurst (34.91s) - MasterKey.cs
48 "MiningFarm" (2.1.2) by CASHR#6906 (0.67s) - MiningFarm.cs
49 "Monument Addons" (0.13.0) by WhiteThunder (0.41s) - MonumentAddons.cs
50 "Monument Finder" (3.1.0) by WhiteThunder (0.01s) - MonumentFinder.cs
51 "NTeleportation" (1.7.1) by nivex (1.38s) - NTeleportation.cs
52 "Nav Mesh Error Fix" (1.1.1) by Ryz0r (0.00s) - NavMeshErrorFix.cs
53 "NeverWear" (0.2.0) by k1lly0u / rostov114 (0.40s) - NeverWear.cs
54 "NightVision" (2.4.1) by Clearshot (1.21s) - NightVision.cs
55 "No Decay" (1.4.6) by 0x89A (7.49s) - NoDecay.cs
56 "No Flykick" (1.3.3) by August (0.01s) - NoFlykick.cs
57 "NpcSpawn" (2.4.8) by KpucTaJl (15.11s) - NpcSpawn.cs
58 "Oil Rig Doors Fix" (1.0.1) by MON@H (0.33s) - OilRigDoorsFix.cs
59 "PermissionsManager" (2.0.7) by Steenamaroo (0.46s) - PermissionsManager.cs
60 "Personal Heli" (1.1.8) by Egor Blagov (7.75s) - PersonalHeli.cs
61 "Planterbox Defender" (2.1.0) by kaucsenta (0.00s) - PlanterboxDefender.cs
62 "Player Database" (1.6.2) by Reneb / Maintained by FakeNinja (0.00s) - PlayerDatabase.cs
63 "PreventLooting" (1.12.1) by CaseMan (0.14s) - PreventLooting.cs
64 "PveMode" (1.0.7) by KpucTaJl (5.03s) - PveMode.cs
65 "Raidable Bases" (2.6.917) by nivex (96.62s) - RaidableBases.cs
66 "Simple Kill Feed" (2.1.2) by Krungh Crow (0.15s) - SimpleKillFeed.cs
67 "Skills" (1.31.12) by Mevent (4.29s) - Skills.cs
68 "SkyReportSystem" (3.2.0) by DezLife (0.10s) - SkyReportSystem.cs
69 "Slap" (2.0.2) by Wulf (0.00s) - Slap.cs
70 "SmoothRestarter" (3.2.0) by 2CHEVSKII (0.01s) - SmoothRestarter.cs
71 "Spawn Mini" (2.12.0) by SpooksAU (1.89s) - SpawnMini.cs
72 "Sputnik" (1.1.1) by Adem (3.76s) - Sputnik.cs
73 "Stack Size Controller" (4.1.1) by AnExiledDev (21.55s) - StackSizeController.cs
74 "Super Card" (1.0.6) by Mevent#4546 (3.49s) - SuperCard.cs
75 "Team Info" (0.1.7) by Lorddy (0.00s) - TeamInfo.cs
76 "Terrain Violation Fix" (1.0.2) by Tryhard (0.01s) - TerrainViolationFix.cs
77 "Timed Permissions" (1.6.0) by LaserHydra (0.01s) - TimedPermissions.cs
78 "TruePVE" (2.0.8) by nivex (37.32s) - TruePVE.cs
79 "Vehicle Deployed Locks" (1.9.0) by WhiteThunder (1.07s) - VehicleDeployedLocks.cs
80 "XDShop" (1.3.5) by DezLife (0.01s) - XDShop.cs
81 "XHeliHealth" (1.0.0) by Monster (2.11s) - XHeliHealth.cs
82 "XNote" (1.0.0) by Monster. (0.00s) - XNote.cs
83 "XPanelPlus" (1.0.3) by Monster (9.44s) - XPanelPlus.cs
84 "XSkinMenu" (1.0.13) by Monster (2.14s) - XSkinMenu.cs
85 "Fixes Collection" (1.0.4) by Varzhak (2.98s) - Fixes.alkad
У меня такой же краш сервера...

Unexpected end of stream
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

NullReferenceException: Object reference not set to an instance of an object
  at World.GetCachedHeightMapResolution () [0x0000a] in <b6015c8bf3354c38a9ab43e57bc505d5>:0
  at WorldSetup+<InitCoroutine>d__15.MoveNext () [0x0043f] in <b6015c8bf3354c38a9ab43e57bc505d5>:0
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <0b31faaf1c50461d95c83ac166a20393>:0

(Filename: <b6015c8bf3354c38a9ab43e57bc505d5> Line: 0)

Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll.so
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/advapi32.dll
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.so
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/advapi32
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll.so
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll.so
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/advapi32.dll
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.so
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/advapi32
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll.so
Fallback handler could not load library /home/rust/serverfiles/RustDedicated_Data/Mono/libadvapi32.dll

thanks, as I understand it, something needs to be done on the hosting side, I passed this information on to them, I hope they will study and take the necessary measures.

It seems to me that the problem was from using maps from the rustmaps resource, and it doesn’t matter at all whether these were maps from the history of generations, custom, or regular procedural maps generated using their site.
Now I have a map installed, the seed of which was generated by the server itself, everything works perfectly, I hope this will continue.

Merged post

unfortunately, the error happened again, I was wrong.. regarding your idea, the hosting replied that this is the library that RustEdit uses, but at the moment the server does not use this add-on..

your save file is corrupted.. remove the corrupted file and restart the server which should fix the recurring issue.

this error is not frequent, I only met it during auto-restart, and the server always starts after an error from 1 time, deleting the save file will wipe the map, right?

well.. LZ4 is a corrupted save, because you had old saves in your cfg it got corrupted so try and delete your old save files and restart if that doesnt help then the main save might have got corrupted too so a full map wipe.

since this is not the first wipe, maybe something crookedly saves the server, for auto-restart I use https://umod.org/plugins/smooth-restarter, maybe it's in it? is there any way to check the quality of the save that is performed by the plugin/plugins?

every save is saved inside your server cfg so as specified old saves are known to corrupt the current save, not everytime but it'll happen sooner or later

tonight I tried to delete all saves on a running server and save the server with a new save (2:00), and at 4:00 the server itself did not start again after auto-restart :(

i believe "world.cache false" fixed this issue,
while there were no errors, I will write if information is added.

I've been seeing this for the last 2 weeks on my servers, even after a map wipe. Any good "solution" to resolving it?

yeah, change hosting.. :) dont rofl

Locked automatically