Open pavelhoral opened 1 week ago
This is contents of the layerHistory just before a different crash:
I guess this is the culprit:
{
"layer": null,
"time": "2024-11-20T18:09:08.946Z"
},
From Discord I can see that the "null" map was supposed to be Manicouagan RAAS v1 - Manicouagan
(Discord timezone in the screenshot is CET / +1):
Can you provide the full log with crash. This is most likely a configuration problem and nothing is actually wrong with sjs itself.
output-2024-11-20T06_00_13.204Z.log
The log contains also stringified layerHistory where DEBUG log by Palko
can be seen.
[2024-11-20T06:00:15.908Z][SquadServer][1] Updating squad list...
[2024-11-20T06:00:21.633Z][SquadServer][1] Updated squad list.
[2024-11-20T06:00:21.633Z][SquadServer][1] Updating player list...
[2024-11-20T06:00:21.695Z][SquadServer][1] Updated player list.
[2024-11-20T06:00:21.695Z][SquadServer][1] Updating layer information...
[2024-11-20T06:00:21.798Z][SquadServer][1] Updated layer information.
[2024-11-20T06:00:21.798Z][SquadServer][1] Updating server information...
[2024-11-20T06:00:21.839Z][SquadServer][1] Updated server information.
[2024-11-20T06:00:21.839Z][LogParser][1] Attempting to watch log file...
[2024-11-20T06:00:22.262Z][LogParser][1] Watching log file...
[2024-11-20T06:00:22.262Z][SquadServer][1] Watching undefined...
[2024-11-20T06:00:22.262Z][SquadServer][1] Pinging SquadJS API...
[2024-11-20T06:00:22.419Z][SquadServer][1] Successfully pinged the SquadJS API. Got back error: Invalid ping.
[2024-11-20T06:00:22.430Z][SquadServer][1] Fetching Admin Lists...
[2024-11-20T06:00:22.501Z][SquadServer][1] 388 admins loaded...
As I suspected this is infact a config issue. Your squadjs is not properly connected to your log file. It should read watching <name of server>
not undefined.
As I suspected this is infact a config issue. Your squadjs is not properly connected to your log file. It should read watching
not undefined.
This is strange. We are using SFTP log reader mode and I can confirm we are getting LogParser events (as seen in the attached log). So this works. Maybe the issue is caused by the log parser initializing before the server fully loads up (we do periodic restarts at 6 AM)? If that is the case it is a very nasty race condition.
Description of Issue
SquadJS very often crashes in discord-round-winner plugin (see bellow).
Errors or Screenshots of Issue
Squad Information
This is the SquadJS log before the crash (it happens quite often):
This specific crash appeared after Manicouagan RAAS v2 - Manicouagan map ended.
System Information