ich777 / docker-steamcmd-server

Simple Dockerfile that installs steamcmd and a selected game server
127 stars 101 forks source link

V - Rising as a docker broken? #65

Closed Staticvi closed 6 months ago

Staticvi commented 6 months ago

Hey was using this yesterday it was working fine all day went to update server settings and test them out pulled a new repo just because I didnt uncheck it. Now it fails to launch and I get this error



PlatformSystemBase - - Entering OnCreate!

JsonReaderException: After parsing a value an unexpected character was encountered: P. Path 'Description', line 4, position 3.

  at Newtonsoft.Json.JsonTextReader.ParsePostValue (System.Boolean ignoreComments) [0x00000] in <00000000000000000000000000000000>:0 

  at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <00000000000000000000000000000000>:0 

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <00000000000000000000000000000000>:0 

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Populate (Newtonsoft.Json.JsonReader reader, System.Object target) [0x00000] in <00000000000000000000000000000000>:0 

  at Newtonsoft.Json.JsonSerializer.PopulateInternal (Newtonsoft.Json.JsonReader reader, System.Object target) [0x00000] in <00000000000000000000000000000000>:0 

  at Newtonsoft.Json.JsonConvert.PopulateObject (System.String value, System.Object target, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <00000000000000000000000000000000>:0 

  at Stunlock.Core.SettingsBase.TryLoadJsonFile (System.String path, System.Boolean logWarning, System.Boolean defaultSettings) [0x00000] in <00000000000000000000000000000000>:0 

  at Stunlock.Core.SettingsBase.LoadFromFile (System.String filePath, System.Boolean logIfFileDoesntExist) [0x00000] in <00000000000000000000000000000000>:0 

  at ProjectM.SettingsManager.VerifyServerSettings (System.Boolean silentInitialize) [0x00000] in <00000000000000000000000000000000>:0 

  at ProjectM.SettingsManager.get_ServerHostSettings () [0x00000] in <00000000000000000000000000000000>:0 

  at ProjectM.Auth.PlatformSystemBase.OnCreate () [0x00000] in <00000000000000000000000000000000>:0 

  at Unity.Entities.ComponentSystemBase.CreateInstance (Unity.Entities.World world) [0x00000] in <00000000000000000000000000000000>:0 

  at Unity.Entities.World.AddSystem_OnCreate_Internal (Unity.Entities.ComponentSystemBase system) [0x00000] in <00000000000000000000000000000000>:0 

  at Unity.Entities.World.GetOrCreateSystemsAndLogException (Unity.Collections.NativeList`1[T] types, System.Int32 typesCount, Unity.Collections.AllocatorManager+AllocatorHandle allocator) [0x00000] in <00000000000000000000000000000000>:0 

  at Unity.Entities.World.GetOrCreateSystemsAndLogException (Unity.Collections.NativeList`1[T] types, Unity.Collections.AllocatorManager+AllocatorHandle allocator) [0x00000] in <00000000000000000000000000000000>:0 

  at Stunlock.Core.WorldBootstrapUtilities.AddSystemsToWorld (Unity.Entities.World world, Stunlock.Core.WorldBootstrap worldConfig, Stunlock.Core.WorldSystemConfig worldSystemConfig) [0x00000] in <00000000000000000000000000000000>:0 

  at ProjectM.Bootstrap.Unity.Entities.ICustomBootstrap.Initialize (System.String defaultWorldName) [0x00000] in <00000000000000000000000000000000>:0 

  at Stunlock.Core.WorldBootstrapUtilities.InitializeDefaultWorldWithBootstrap (System.String defaultWorldName) [0x00000] in <00000000000000000000000000000000>:0 

UnityEngine.Logger:LogException(Exception, Object)

UnityEngine.Debug:LogException(Exception)

Unity.Entities.World:GetOrCreateSystemsAndLogException(NativeList`1, Int32, AllocatorHandle)

Unity.Entities.World:GetOrCreateSystemsAndLogException(NativeList`1, AllocatorHandle)

Stunlock.Core.WorldBootstrapUtilities:AddSystemsToWorld(World, WorldBootstrap, WorldSystemConfig)

ProjectM.Bootstrap:Unity.Entities.ICustomBootstrap.Initialize(String)

Stunlock.Core.WorldBootstrapUtilities:InitializeDefaultWorldWithBootstrap(String)

EOSPlatformSystem - Entering OnCreate!

EOSPlatformSystem - Skipping EOS initialization - EOS features disabled!

Loaded VersionDataSettings:

{

  "NetworkVersion": 16,

  "PersistenceVersion": 3

}

PersistenceVersionOverride value found from VersionDataSettings: 3

Persistence Version initialized as: 3

NullReferenceException: Object reference not set to an instance of an object.

  at ProjectM.GameBootstrap.Start () [0x00000] in <00000000000000000000000000000000>:0 ```

  Want me to post the compose settings also?
ich777 commented 6 months ago

Now it fails to launch and I get this error

The container is working as expected for me and should have no issues. Are you sure that the JSON is not malformed or something like that?

What do you mean with a new repo?

Two things could be the cause:

EDIT: Please keep in mind you have to stop the container/dedicated server first, then edit the config files and then start the container again, otherwise you can see such issues or your changes will be simply discarded.

Staticvi commented 6 months ago

Okay, in portainer it ask would you like to Re-pull image and redeploy I don't was just thinking repo that was my fault. But i had changed the server description and name so maybe that was causing an issue with the saved info I will delete the saved info and try again. also thank you for being so responsive!

It was something in the JSON.. Is it okay to update the ServerHostSettings.json once a server is made? or will that break the saved games? seems like it broke it to me but maybe I messed something up when doing so.

ich777 commented 6 months ago

Ah, you edited the message, please always create a new message for visibility.

It is possible and saft to edit the files for a already set uo game server yes. Just keep in mind to edit it with the correct editor and not change the formatting, most of the times WordPad changes the formatting to Windows instead of Unix and this can cause such issues.

…and as said above please stop the container first, edit the files and then start the container again.

ich777 commented 6 months ago

Is the issue now resolved or does it still give you issues?

ich777 commented 6 months ago

@Staticvi any info on that?

ich777 commented 6 months ago

Closing due to no further response.