PowerShellGSM icon indicating copy to clipboard operation
PowerShellGSM copied to clipboard

Icarus Server errors and shutdown constantly

Open Runaris opened this issue 2 years ago • 5 comments

I am unsure what's going on here but its only affecting my Icarus Server after weekly update 108 hotfix. Server will start, but will only stay up for a very short amount of time (about 3minutes) before the client checks the server and it just automatically crashes sending it into a boot loop (where the scheduler will go round in circles because it crashed) Haven't been able to cleanly host it since using this really handy program.

Runaris avatar Dec 31 '23 04:12 Runaris

Hi, i've the same issue.

And i found a solution to the problem (i will make a pull request for that)

In the file main.ps1 make these changes

Line 115 : if (($Server.AutoRestartOnCrash) -and ((New-TimeSpan -Start Get-Date -End $TasksSchedule.NextAlive) -le 0)) { Line 130 : if (($Server.AutoUpdates) -and ((New-TimeSpan -Start Get-Date -End $TasksSchedule.NextUpdate) -le 0)) { Line 145 : if (($Server.AutoRestart) -and ((New-TimeSpan -Start Get-Date -End $TasksSchedule.NextRestart) -le 0)) {

The problem arose from the fact that the date of the next update was compared with the current date 01/01/2024 is less than 12/31/2023 (compared values) and therefore launches a full update.

Torath0071 avatar Dec 31 '23 14:12 Torath0071

Line 115 : if (($Server.AutoRestartOnCrash) -and ((New-TimeSpan -Start Get-Date -End $TasksSchedule.NextAlive) -le 0)) {

1 It's not working....

TOXid avatar Dec 31 '23 14:12 TOXid

Oh yes, sorry, I'm not really familiar with Powershell. Try to surround Get-Date like this (Get-Date)

Line 115 : if (($Server.AutoRestartOnCrash) -and ((New-TimeSpan -Start (Get-Date) -End $TasksSchedule.NextAlive) -le 0)) { Line 130 : if (($Server.AutoUpdates) -and ((New-TimeSpan -Start (Get-Date) -End $TasksSchedule.NextUpdate) -le 0)) { Line 145 : if (($Server.AutoRestart) -and ((New-TimeSpan -Start (Get-Date) -End $TasksSchedule.NextRestart) -le 0)) {

Torath0071 avatar Dec 31 '23 15:12 Torath0071

Oh yes, sorry, I'm not really familiar with Powershell. Try to surround Get-Date like this (Get-Date)

No, it still doesn’t work, there’s some kind of system time conversion error. I don’t have time to read and screenshot.

TOXid avatar Jan 01 '24 00:01 TOXid

Should be resolved in latest release

patrix87 avatar Jan 04 '24 02:01 patrix87