pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.83k stars 1.74k forks source link

Schedules Running multiple times during timezone change dates #5237

Open haraldmbs opened 4 weeks ago

haraldmbs commented 4 weeks ago

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 same amount it normally would.

Steps to Reproduce

Create a schedule. Have a timezone change happen (In this case CEST timezone changes 1 hour back)

Panel Version

1.11.7

Wings Version

1.11.13

Games and/or Eggs Affected

Assuming all, tested: Forge, Paper

Docker Image

ghcr.io/pterodactyl/yolks:java_21 and ghcr.io/pterodactyl/yolks:java_18

Error Logs

No relevant information, I believe this to be a problem either with the scheduling system itself, or cron, if it only triggered twice (1 hour apart) I wouldn't think much of it, but it spam did the schedule for around an hour span. and then again about 30 min ago it spammed a different schedule.

Is there an existing issue for this?

sprocketaudio commented 4 weeks ago

Same problem here for me again (happened last year too and I ended up reinstalling the OS, and Panel/Wings!!)

Panel 1.11.7 Wings 1.11.13

.env file set to Europe/Berlin config.yml file set to Europe/Berlin Linux OS timezone set to Europe/Berlin MYSQL time set to 'SYSTEM'

Subthy commented 3 weeks ago

same issue happening here. Got America/Chicago time zone

ninco90 commented 3 weeks ago

The same thing happens here. The task keeps repeating itself every minute 1 hour before the scheduled time and until it reaches the scheduled time it does not stop repeating itself.

My colleague has already restarted the wings, the panel,... verified the time settings. We don't know what else to try.

sprocketaudio commented 3 weeks ago

The following was posted in Discord and has worked for me finally!

Run in SSH: sudo nano /var/www/pterodactyl/.env check that this is the correct timezone in APP_TIMEZONE cd /var/www/pterodactyl && php artisan config:clear (This is the important bit I think!!!) sudo systemctl restart nginx Restart the whole panel server with reboot

ninco90 commented 3 weeks ago

Yes, I forgot to post it here. I'm glad it was helpful to you.

haraldmbs commented 2 weeks ago

sprocketaudio

I have followed this, yet it is still occuring to this day, everyday