[1.1.53] Crash of server because of ban

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

[1.1.53] Crash of server because of ban

Post by ZwerOxotnik »

Expected:
  • No crush etc and ban
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")
Attachments
factorio-current(7).log
/c game.ban_player(game.player, "test")
(97.74 KiB) Downloaded 71 times
Last edited by ZwerOxotnik on Sat Feb 19, 2022 7:46 pm, edited 1 time in total.

User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

Re: [1.1.53] Crash of server because of ban using scripts

Post by ZwerOxotnik »

I tried it again with:

Code: Select all

/c game.ban_player("ZwerOxotnik", "test")
(Logs from server and banned client)
Attachments
factorio-current-client.log
/c game.ban_player("ZwerOxotnik", "test")
(22.12 KiB) Downloaded 73 times
factorio-current-server.log
(295.67 KiB) Downloaded 71 times

User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

Re: [1.1.53] Crash of server because of ban using scripts

Post by ZwerOxotnik »

I tried it again with:

Code: Select all

/c game.ban_player("zippyit", "test")
image
(Logs from server, me and zippyit)
Attachments
factorio-current-ZwerOxotnik.log
/c game.ban_player("zippyit", "test")
(12.22 KiB) Downloaded 68 times
factorio-current-ZippyIT.txt
(8.84 KiB) Downloaded 71 times
factorio-current-server.log
(103.2 KiB) Downloaded 67 times

User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

Re: [1.1.53] Crash of server because of ban using scripts

Post by ZwerOxotnik »

Same situation with `/ban zippyit`

Rseding91
Factorio Staff
Factorio Staff
Posts: 13246
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.53] Crash of server because of ban

Post by Rseding91 »

You have the hidden config setting "log stack trace on exception" enabled. Disable it.
If you want to get ahold of me I'm almost always on Discord.

User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

Re: [1.1.53] Crash of server because of ban

Post 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.

User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

Re: [1.1.53] Crash of server because of ban

Post by ZwerOxotnik »

Results on the server after the change (attached files, seems fine)
Attachments
factorio-current-server.log
(588.34 KiB) Downloaded 73 times
config-server.ini
(17.26 KiB) Downloaded 78 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13246
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.53] Crash of server because of ban

Post by Rseding91 »

Can you post the log from the client as well?
If you want to get ahold of me I'm almost always on Discord.

User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

Re: [1.1.53] Crash of server because of ban

Post by ZwerOxotnik »

Rseding91 wrote:
Sat Feb 19, 2022 8:10 pm
Can you post the log from the client as well?
Yep
Attachments
factorio-current-ZwerOxotnik.log
(13.18 KiB) Downloaded 85 times
factorio-current-ZippyIT.log
(21.54 KiB) Downloaded 83 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13246
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.53] Crash of server because of ban

Post 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?
If you want to get ahold of me I'm almost always on Discord.

User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

Re: [1.1.53] Crash of server because of ban

Post 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)
image

User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

Re: [1.1.53] Crash of server because of ban

Post 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")

Post Reply

Return to “Resolved Problems and Bugs”