Closed tombou closed 1 year ago
Hi, can you share your Nextcloud logs?
Here are the newest I've got
{"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Repair::step: Repair step: Add job to cleanup the bruteforce entries","userAgent":"--","version":"24.0.6.1","data":{"app":"updater"}} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used","userAgent":"--","version":"24.0.6.1","data":[]} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Repair::step: Repair step: Queue a one-time job to check for user uploaded certificates","userAgent":"--","version":"24.0.6.1","data":{"app":"updater"}} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used","userAgent":"--","version":"24.0.6.1","data":[]} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Repair::step: Repair step: Repair DAV shares","userAgent":"--","version":"24.0.6.1","data":{"app":"updater"}} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used","userAgent":"--","version":"24.0.6.1","data":[]} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Repair::step: Repair step: Add background job to set the lookup server share state for users","userAgent":"--","version":"24.0.6.1","data":{"app":"updater"}} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent is used","userAgent":"--","version":"24.0.6.1","data":[]} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Repair::step: Repair step: Add token cleanup job","userAgent":"--","version":"24.0.6.1","data":{"app":"updater"}} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"24.0.6.1","data":{"app":"updater"}} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:46+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"24.0.6.1","data":{"app":"updater"}} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:46+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Updater::updateEnd: Update successful","userAgent":"--","version":"24.0.7.1","data":{"app":"updater"}} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:46+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"24.0.7.1","data":{"app":"updater"}} {"reqId":"uAoykgvUBKhxEzZAYLdd","level":1,"time":"2022-11-03T17:00:46+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\OC\Updater::resetLogLevel: Reset log level to Error(3)","userAgent":"--","version":"24.0.7.1","data":{"app":"updater"}}
I have a clue about the issue. I'm able to solve it doing an operation manually. I've just removed the line "'maintenance_window_start' => 1," from my config file and the status updated! I've put back the configuration and now the value update by itself like it should do every 5 minutes
Maybe there is a sensitive task that fail or a job that block this when doing an update? Also, I haven't tested if it goes through its maintenance window if the value updates correctly afterwards. I will let an instance without modifying the config file manually to see if tomorrow it will be fine.
Quick update, once it hits the maintenance window, it works properly. So the bug seems to be when and maintenance_window_start is configured and the update was done before that time.
@nickvergessen do sensitive cronjoba maybe not update rhe last cron value if the maintenance window is not reached?
Well it's not about the jobs, but JobList::setLastJob
is setting the config value.
But also that is not the issue here
The problem is that last_checked of time insensitive jobs is not updated when they don't run, which is totally expected.
The only reason we never saw this is that the insensitive-window is 4h hours. On our instance the time is 0am UTC (~1-2am CE(S)T). From there onwards 4h is 4-5am CE(S)T so the warning only shows after 5pm CE(S)T where I guess no one is checking the admin settings anymore (especially since it's on the Basic settings and not the Overview page).
As a quick fix we could either:
Same problem for me after updating to 25.0.1.... Cronjob not run since 17 hours
So the cronjob works and only the displaying is wrong?
So the cronjob works and only the displaying is wrong?
Basically yes
⚠️ This issue respects the following points: ⚠️
Bug description
I've updated some of my instances from 24.0.6 to 24.0.7 and when I go to Settings, Administration - Basic Settings, it reports that my last cron job was 12h ago. I didn't change any settings for the cron job in the crontab and I've got instances still on 24.0.6 that is reporting the last sync correctly. I've even tested the webcron manually and I got success as a response without changing the last sync time. It looks like the cron jobs are performing correctly though.
Steps to reproduce
Expected behavior
To get the last run with a success from few seconds or few minutes ago
Installation method
Community Manual installation with Archive
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
No response
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response