StrangeLoopGames / EcoIssues

131 stars 21 forks source link

Server crashes with "System.ArgumentException: Object of type 'LiteDB.ObjectId' cannot be converted to type 'System.String'." #24833

Closed rembomy closed 7 months ago

rembomy commented 8 months ago

Server crashes with following logs after restart, sometimes using restore recovers it, but next time server restarts it crashes again. Started happening after latest update.

OS: Linux Ubuntu

logs.txt

D3nnis3n commented 8 months ago

Please attach the save file and database.

rembomy commented 8 months ago

Files are too big to upload here so I uploaded to OneDrive: https://1drv.ms/f/s!AojweHpoBzSBmOkdMC_QIRmmSRSUGw?e=VcqBd8

This is currently last restore point that was created before the server went to restart loop. This has already happened multiple times so I suspect that the issue is still there, just some specific restarting case when it fails.

Also below is my Linux systemd config in case it interests you. With this game actually saves and closes properly.

$ cat /etc/systemd/system/eco.service
[Unit]
Description=Eco
Wants=network-online.target
After=syslog.target network.target nss-lookup.target network-online.target

[Service]
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
User=steam
Group=steam
LimitNOFILE=100000
WorkingDirectory=/opt/eco
ExecStartPre=/usr/games/steamcmd +runscript /opt/update_eco.txt
ExecStart=/opt/eco/EcoServer
ExecReload=kill -TERM $MAINPID
ExecStop=kill -TERM $MAINPID
[Install]
WantedBy=multi-user.target
D3nnis3n commented 8 months ago

I have tried multiple cycles of starting and stopping the server with this savegame and wasn't able to get the error.

Is there anything specific involved in getting it? Your mention of your config to "with this game actually saves and closes properly" sounds like the server was simply not shut down correctly and the database corrupted as a consequence - that is common for ungraceful shutdowns and a setup error, not a bug - though typically shows in different ways. (With the actual savegame corrupting, not the database)

Could you maybe provide one of the broken saves, so we could look at that?

rembomy commented 8 months ago

I do not have the broken save at the moment as I did overwrite the save from backup (those things are super btw!) If it happens again I will provide one and I can open a new ticket if needed.

D3nnis3n commented 7 months ago

Closing due to not reproducible and no broken save available.