Page 1 of 1
[1.1.53] Crash of server because of ban
Posted: Sat Feb 19, 2022 6:35 pm
by ZwerOxotnik
Expected:
Steps to reproduce:
- headless server on Windows 10 (I guess, something seems off in the path)
-
Code: Select all
/c game.ban_player(game.player, "test")
or something like that in a mod
Actual Result:
- Crush with weird logs
- The player is banned, but it's not possible to be on the server after that
Notes:
- I attached `factorio-current(7).log` to this message, which was caused by
Code: Select all
/c game.ban_player(game.player, "test")
Re: [1.1.53] Crash of server because of ban using scripts
Posted: Sat Feb 19, 2022 7:12 pm
by ZwerOxotnik
I tried it again with:
Code: Select all
/c game.ban_player("ZwerOxotnik", "test")
(Logs from server and banned client)
Re: [1.1.53] Crash of server because of ban using scripts
Posted: Sat Feb 19, 2022 7:39 pm
by ZwerOxotnik
I tried it again with:
Code: Select all
/c game.ban_player("zippyit", "test")
(Logs from server, me and zippyit)
Re: [1.1.53] Crash of server because of ban using scripts
Posted: Sat Feb 19, 2022 7:46 pm
by ZwerOxotnik
Same situation with `/ban zippyit`
Re: [1.1.53] Crash of server because of ban
Posted: Sat Feb 19, 2022 7:49 pm
by Rseding91
You have the hidden config setting "log stack trace on exception" enabled. Disable it.
Re: [1.1.53] Crash of server because of ban
Posted: Sat Feb 19, 2022 7:56 pm
by ZwerOxotnik
Rseding91 wrote: Sat Feb 19, 2022 7:49 pm
You have the hidden config setting "log stack trace on exception" enabled. Disable it.
It seems to be working fine, as I disabled it on the server.
Re: [1.1.53] Crash of server because of ban
Posted: Sat Feb 19, 2022 8:08 pm
by ZwerOxotnik
Results on the server after the change (attached files, seems fine)
Re: [1.1.53] Crash of server because of ban
Posted: Sat Feb 19, 2022 8:10 pm
by Rseding91
Can you post the log from the client as well?
Re: [1.1.53] Crash of server because of ban
Posted: Sat Feb 19, 2022 8:14 pm
by ZwerOxotnik
Rseding91 wrote: Sat Feb 19, 2022 8:10 pm
Can you post the log from the client as well?
Yep
Re: [1.1.53] Crash of server because of ban
Posted: Sat Feb 19, 2022 8:17 pm
by Rseding91
I'm not seeing anything in the server log or client logs that indicate any issues after disabling the exception logging? Is it still having issues after that?
Re: [1.1.53] Crash of server because of ban
Posted: Sat Feb 19, 2022 8:19 pm
by ZwerOxotnik
Rseding91 wrote: Sat Feb 19, 2022 8:17 pm
I'm not seeing anything in the server log or client logs that indicate any issues after disabling the exception logging? Is it still having issues after that?
I don't see any issues after that. (however, I didn't try some scripts)
Re: [1.1.53] Crash of server because of ban
Posted: Sat Feb 19, 2022 8:31 pm
by ZwerOxotnik
I tried some scripts and it works fine:
Code: Select all
/c game.ban_player("ZwerOxotnik", "test")
Code: Select all
/c game.ban_player(game.players["zippyit"], "test")
Code: Select all
/c game.ban_player(game.player, "test")