Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Server fails to start with latest BepInEx 5.4.2201 #225

Closed
Ricket opened this issue Oct 28, 2023 · 3 comments
Closed

[BUG] Server fails to start with latest BepInEx 5.4.2201 #225

Ricket opened this issue Oct 28, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Ricket
Copy link

Ricket commented Oct 28, 2023

Describe the issue
My valheim server auto updated to the latest bepinex, 5.4.2201, and it is failing to start.

Expected behavior

Configuration

Screenshots

Server Environment
Docker lloesche/valheim-server image

Installed Mods
DiscordConnector, LetMeSleep. Verified that LetMeSleep is not causing the issue.

Additional context

valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server FileNotFoundException: Could not load file or assembly 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <695d1cc93cca45069c528c15c9fdd749>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at Newtonsoft.Json.Utilities.ThreadSafeStore`2[TKey,TValue].Get (TKey key) [0x00000] in <dd21e08747d94bcebed8b56112226337>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at Newtonsoft.Json.Utilities.EnumUtils.GetEnumValuesAndNames (System.Type enumType) [0x0000c] in <dd21e08747d94bcebed8b56112226337>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at Newtonsoft.Json.JsonWriter.BuildStateArray () [0x0001b] in <dd21e08747d94bcebed8b56112226337>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at Newtonsoft.Json.JsonWriter..cctor () [0x000b3] in <dd21e08747d94bcebed8b56112226337>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server Rethrow as TypeInitializationException: The type initializer for 'Newtonsoft.Json.JsonWriter' threw an exception.
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at Newtonsoft.Json.JsonTextWriter..ctor (System.IO.TextWriter textWriter) [0x00000] in <dd21e08747d94bcebed8b56112226337>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00015] in <dd21e08747d94bcebed8b56112226337>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x00007] in <dd21e08747d94bcebed8b56112226337>:0

valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value) [0x00000] in <dd21e08747d94bcebed8b56112226337>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at DiscordConnector.DiscordApi.SendMessage (DiscordConnector.Webhook+Event ev, System.String message) [0x0000c] in <59e104b8cfc1454d98cf24ffc4c461a6>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at DiscordConnector.Patches.GamePatches+LoadWorld.Prefix () [0x0001c] in <59e104b8cfc1454d98cf24ffc4c461a6>:0
valheim-valheim-1  | Oct 28 18:33:29 supervisord: valheim-server   at (wrapper dynamic-method) Game.DMD<Game::Awake>(Game)
valheim-valheim-1  | Oct 28 18:33:35 supervisord: valheim-server 10/28/2023 18:33:35: Zonesystem Start 37591
valheim-valheim-1  | Oct 28 18:33:35 supervisord: valheim-server NullReferenceException: Object reference not set to an instance of an object
valheim-valheim-1  | Oct 28 18:33:35 supervisord: valheim-server   at Game.UpdateWorldRates (System.Collections.Generic.HashSet`1[T] globalKeys, System.Collections.Generic.Dictionary`2[TKey,TValue] globalKeysValues) [0x0017a] in <007aed1e0475484c9b5ee9ac9d571c5b>:0
valheim-valheim-1  | Oct 28 18:33:35 supervisord: valheim-server   at ZoneSystem.UpdateWorldRates () [0x00000] in <007aed1e0475484c9b5ee9ac9d571c5b>:0
valheim-valheim-1  | Oct 28 18:33:35 supervisord: valheim-server   at ZoneSystem.Start () [0x0001c] in <007aed1e0475484c9b5ee9ac9d571c5b>:0
valheim-valheim-1  | Oct 28 18:33:36 supervisord: valheim-server 10/28/2023 18:33:36: Exception while loading world /home/valheim/.config/unity3d/IronGate/Valheim/worlds_local/Njord.db:System.NullReferenceException: Object reference not set to an instance of an object
valheim-valheim-1  | Oct 28 18:33:36 supervisord: valheim-server   at ZDOMan.Load (System.IO.BinaryReader reader, System.Int32 version) [0x001a5] in <007aed1e0475484c9b5ee9ac9d571c5b>:0
valheim-valheim-1  | Oct 28 18:33:36 supervisord: valheim-server   at (wrapper dynamic-method) ZNet.DMD<ZNet::LoadWorld>(ZNet)
valheim-valheim-1  | Oct 28 18:33:36 supervisord: valheim-server 10/28/2023 18:33:36: World load failed mid-file. Exiting without save. Check backups!
valheim-valheim-1  | Oct 28 18:33:36 supervisord: valheim-server NullReferenceException: Object reference not set to an instance of an object
valheim-valheim-1  | Oct 28 18:33:36 supervisord: valheim-server   at (wrapper dynamic-method) ZNet.DMD<ZNet::LoadWorld>(ZNet)
valheim-valheim-1  | Oct 28 18:33:36 supervisord: valheim-server   at ZNet.ServerLoadWorld () [0x00000] in <007aed1e0475484c9b5ee9ac9d571c5b>:0
valheim-valheim-1  | Oct 28 18:33:36 supervisord: valheim-server   at ZNet.Start () [0x00017] in <007aed1e0475484c9b5ee9ac9d571c5b>:0
@nwesterhausen nwesterhausen added the bug Something isn't working label Oct 29, 2023
@nwesterhausen
Copy link
Owner

This should be fixed in the latest version 2.1.16

@Pysis868
Copy link

Pysis868 commented Nov 1, 2023

BepInEx 5.4.22.0 - valheim_server

> sigcheck valheim_server.exe:
	Prod version:	2020.3.45f1 (660cd1701bd5)
	File version:	2020.3.45.6687953

> sigcheck DiscordConnector.dll:
	File version:	2.1.14.0
(Really at 2.1.15.)

> start_headless_server - mods.bat
<Serialization Error>

> sigcheck DiscordConnector.dll:
	File version:	2.1.16.0

> start_headless_server - mods.bat
<No Serialization Error>

@nwesterhausen
Copy link
Owner

BepInEx 5.4.22.0 - valheim_server


> sigcheck valheim_server.exe:

	Prod version:	2020.3.45f1 (660cd1701bd5)

	File version:	2020.3.45.6687953



> sigcheck DiscordConnector.dll:

	File version:	2.1.14.0

(Really at 2.1.15.)



> start_headless_server - mods.bat

<Serialization Error>



> sigcheck DiscordConnector.dll:

	File version:	2.1.16.0



> start_headless_server - mods.bat

<No Serialization Error>

does this mean it's working with 2.1.16? I had to include the extra dll with the plugin to fix the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants