-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading Nextcloud sometimes causes Cronjob Deadlocks #4726
Comments
I am writing this as an experience I had and how I solved it to help others solve this issue aswell - and perhaps inspire some sort of check to prevent this from actually ever happen or at least some information about this in wiki.
Problem - feeds not updating?For some months after a server hardware upgrade I noticed that my feed stopped working all of a sudden. After reading through the So after digging around I found this in the While at this I also noticed something I hadnt paid attention to, I had not recieved any email notifications of uploads either. Again the SolutionNot recommended waySo I simply deleted the entries in Recommended wayBut probably the better way to do it is just to update the ConclusionSo what I think happened was that the time and date where incorrect when I first booted up the new hardware and somehow it managed
Kind regards, |
PS. I cant find this solution in FAQ (am I blind?) - it seems only to talk about this:
and checking that
returns a zero value and in my case it did. However the Another suggested and perhaps cleaner solution could be:
Then upon next execution of Cheers |
This also happened to me while developing some feature for the deck app. In my case there was a runtime error causing the cronjob to stop. In that case the cronjob reserved_at value is set and it will never be called again. In my case you can see in the log files that the job never finished because of the error:
I've not digged into the job/cron code yet, but maybe it helps to just clear the reserved_at value at least when the app updates. |
Ah nevermind, I just ran into a lock of 12 hours as described here: #2382 (comment) |
I recently had the same issue. Resetting |
I think we fixed it now. |
I got this issue recently (in the last 2 weeks), the News app stopped working then I set
and
|
Sometimes when upgrading Nextcloud, the reserved_at attribute for cronjobs is set to a value that will never be triggered. This causes the News cronjob to never run. You can check if that happens by executing
Then you have to manually reset it using
My guess is that it's caused by a race condition (maybe we should prevent updating when a cronjob is run?)
The text was updated successfully, but these errors were encountered: