Hi, since quite a while we have been having an annoying issue with our DayZ PS server: every now and then, at intervals that seem random, all players are kicked out of the server with a "not whitelisted" error.
For context, I have a custom discord bot that updates the whitelist automatically using the Nitrado's REST API. The whitelist is compiled as follows:
1. Usernames are checked to be matching the expected PSN id format (with a regex)
2. Each username is on a single line, ending with \n
3. Usernames are checked to ensure that they match 100% the PSN id (including the letter case)
The kicks happen quite often (like every 30m-1h), and they seem unrelated to any of the following events:
- number of players online
- whitelist changes (i.e., they happen even if the rest api is never called)
The only thing that is consistent is that the line "Reloading Userlist whitelist.txt" appears in the RPT logs everytime right before the kicking starts (so the whitelist reloading is causing the issue).
For example, this is the RPT log sequence when the kicking happens:
- 19:36:46.757 Reloading Userlist ban.txt
- 19:36:46.757 Reloading Userlist whitelist.txt
- 19:36:46.757 Player <hidden1> (<hidden1>) kicked from server: 12 (You are not whitelisted on this server.)
- 19:36:46.757 Player <hidden2> (<hidden2>) kicked from server: 12 (You are not whitelisted on this server.)
- 19:36:46.757 [Disconnect]: Client <hidden1> early disconnect
- 19:36:46.757 [Disconnect]: Client <hidden2> early disconnect
- 19:36:46.773 Reloading Userlist whitelist.txt
- 19:36:46.773 [Disconnect]: Start script disconnect <hidden1> (dbCharacterId 1 dbPlayerId 1) logoutTime 5
- 19:36:46.773 [Disconnect]: Start script disconnect <hidden2> (dbCharacterId 31 dbPlayerId 31) logoutTime 5
Whereas this is the log output when the kicking does not happen after Realoading Userlist:
- 19:15:11.347 Reloading Userlist whitelist.txt
- 19:15:24.157 [CE][LootRespawner] (PRIDummy) :: [RESPAWN CANDIDATE] Bandana_RedPattern missing:2 [cnt:2, nom:4, min:2]
- 19:15:24.157 Adding Bandana_RedPattern at [6013,3292]
- 19:15:24.157 Adding Bandana_RedPattern at [6757,2675]
- 19:15:24.157 [CE][LootRespawner] (PRIDummy) :: Bandana_RedPattern respawned:2, tests:2 missing:0
(Which show that the realoading happens but players are not kicked)
The issue seems to get worse on weekends, but this might be just a feeling.
We run the server in Frankfurt, with a small regular base of 3-4 players online together.
Any ideas how to address the problem?