-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: $time must not be accessed before initialization #35543
Comments
cc @come-nc |
I can confirm this bug. |
I can confirm this bug. |
Can confirm this bug. |
Same here @ |
same here... |
Same on docker |
This looks like a subclass of TimedJob that bypasses the constructor. So far I only found this with the TimedJob from OC, but your trace shows it comes from the TimedJob of OCP. Could one of you give the result of "occ background-job:list --limit=100" ? |
result of "occ background-job:list --limit=100" |
Thank you. |
And it is my fault 😭 nextcloud/files_antivirus@ba33506 |
I have the files_antivirus application enabled. |
Can someone confirm that this fixes the problem: https://patch-diff.githubusercontent.com/raw/nextcloud/files_antivirus/pull/254.diff ? |
Patch applied. Next invocation of the faulty piece of code scheduled at 14:00. Is there a mean to force the execution? |
Patch applied |
Thanks for the patch. I've applied it as well and next run will be 15:11 |
No more error in the journal. Thanks 👍 |
Also from my side, the problem seems to be fixed. |
Thank you @come-nc for the quick fix and release of files_antivirus 4.0.1 😊 |
Great, thanks that someone fixed the bug.But I am not a computer specialist, so I don't know how to apply or to type in the code given in the patch link. Can someone explain? Thanks a lot. |
@rkrenzin I'm pretty sure the commit has been pushed out. You can just update your Antivirus for Files app through the Nextcloud browser interface like you normally do for any other update. |
No need, should be included in the 4.0.1 release (which isn't on github's release page but it is via Nextcloud apps management). Otherwise (for the sake of learning), https://patch-diff.githubusercontent.com/raw/nextcloud/files_antivirus/pull/254.diff (the patch supplied on December 5 by come-nc) shows the differences between the old
Since that path is relative to the application's path, the full path to that file would be As for how diff works: https://en.wikipedia.org/wiki/Diff |
@Steve8291 Many thanks for the quick replay. I've just updated antivirus and will see if the error message will not appear again. @Kwarde666 I appreciate your additional explanations. Many thanks. Learning is always good :-) |
@Kwarde666 Is all the code just one command to be copied in the command line of the terminal window? |
@rkrenzin No. |
hello! 2024-02-23T02:20:01.418631023Z Error: Typed property OCP\BackgroundJob\Job::$time must not be accessed before initialization in /var/www/html/lib/public/BackgroundJob/TimedJob.php:101 result of “occ background-job:list --limit=100” : |
See eldertek/duplicatefinder#57 |
Thanks a lot! |
For consideration - perhaps error handling for BackgroundJob could be improve to point out in a more obvious way which job is causing issues. (without the need to use the occ command). |
same error for me -- nextcloud 28.0.4 do not know hopw to apply the patch provided by @come-nc (#35543 (comment)) Thanks a lot for your help |
@vgrosdoy |
@vgrosdoy No patching is needed this patch was released already. |
it seems the issue was due to DuplicateFinder addons |
Bug description
Since the upgrade to NC 25, the following error pops up during the execution of cron jobs only at 02:00 and 14:00:
Steps to reproduce
Expected behavior
No error ;-)
Installation method
Community Web installer on a VPS or web space
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
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
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: