#Schedules are running endlessly from the future after daylight savings time change

4 messages · Page 1 of 1 (latest)

wide perch
#

All servers with a schedule are running endlessly at random intervals. This would result in repeat schedules when not scheduled. This has started since daylight savings time change.

No logs from Laravel show anything odd to report.

I have performed the following to resolve this issue:

  • Restarted pteroq
  • Restarted wings
  • Restarted nginx
  • Refreshed the Artisan config with php artisan config:clear
  • Fully reboot the Linux server that Panel is running on (the webserver and game node are separate machines)

All of which to no avail to resolve the issue.

I think this is a bug with Artisan queue workers as a lot of those workers results in a lot of failures. I cannot confirm why it is this but running the service command on its own, it for sure outputs a lot of errors.

   INFO  Processing jobs from the [high,standard,low] queues.

  2024-11-04 23:49:02 Pterodactyl\Jobs\Schedule\RunTaskJob 9dpBFoJ0BGDMUADdJgPe9Hh6X51U6oE4 ......... RUNNING
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob 9dpBFoJ0BGDMUADdJgPe9Hh6X51U6oE4 .... 12.12ms FAIL
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob JS4ph6JbVFsxXXj2qdpo2YdKUH9zqun2 ......... RUNNING
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob JS4ph6JbVFsxXXj2qdpo2YdKUH9zqun2 ..... 3.83ms FAIL
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob YQVRVUTdmlLa7IYg38gICTU9B3d2fhYi ......... RUNNING
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob YQVRVUTdmlLa7IYg38gICTU9B3d2fhYi ... 127.70ms DONE
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob JS4ph6JbVFsxXXj2qdpo2YdKUH9zqun2 ......... RUNNING
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob JS4ph6JbVFsxXXj2qdpo2YdKUH9zqun2 ..... 4.05ms FAIL
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob MhGUEEAdYo28XLIz3zzOYorlWs0acRvb ......... RUNNING
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob MhGUEEAdYo28XLIz3zzOYorlWs0acRvb ..... 4.15ms FAIL
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob 4nd85D23IeHPI7v6ynM95n176iztftto ......... RUNNING
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob 4nd85D23IeHPI7v6ynM95n176iztftto ..... 3.47ms FAIL
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob 9dpBFoJ0BGDMUADdJgPe9Hh6X51U6oE4 ......... RUNNING
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob 9dpBFoJ0BGDMUADdJgPe9Hh6X51U6oE4 ..... 7.28ms FAIL
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob gFCTYoCjtHzHwHd8OXcfWRqKrw2Kym4G ......... RUNNING
  2024-11-04 23:49:03 Pterodactyl\Jobs\Schedule\RunTaskJob gFCTYoCjtHzHwHd8OXcfWRqKrw2Kym4G ... 106.53ms DONE

What might also be related is the server time zone is in UTC, however the Laravel app time zone is in Eastern time. (America/Indiana/Indianapolis, to be exact) Unsure if related. Wings server is also UTC.

Web server is running:

  • Panel 1.11.7
  • Ubuntu 24.04.1 LTS
  • NGINX 1.24.0-2ubuntu7.1
  • PHP 8.3.6
idle rampart
#

Found a fix ?

wide perch
#

I haven't found a fix, I have found related GH issues, however nothing concrete.

~2 years ago | https://github.com/pterodactyl/panel/issues/4536

Days ago | https://github.com/pterodactyl/panel/issues/5237

GitHub

Current Behaviour Since the clocks changed here in the UK, my schedules that run once per 4 hours, are now running an hour early - this isnt really the issue though.. The problem is once they run t...

GitHub

Current Behavior Schedules will randomly run several times more than expected (Have had it run 10x what it is supposed to do, and what it normally does) Expected Behavior Schedule runs once or the ...

wide perch
#

I think I found a fix, albeit this is just immediate testing.

Check if your .env that APP_TIMEZONE matches your:

  • System with timedatectl
  • Wings config in /etc/pterodactyl/config.yml
  • Bonus points if you also find what your DB time zone is in.

If not, change to where all of it matches.

If you are changing the Laravel .env, change that value to your time zone exactly.

Run php artisan config:clear as this will refresh cache with Laravel. Ensure you are in your panel root directory.

Restart both pteroq and nginx, or full reboot your server. (I didn't bother with restarting services so YMMV).