-
Notifications
You must be signed in to change notification settings - Fork 87
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
Error while running background job ExpireGroupVersions (with groupfolders 17.0.0). TypeError: VersionsBackend::getVersionFolderForFile(): Argument #1 ($file) must be of type OCP\Files\File, OC\Files\FileInfo given #2964
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Needs testing, but from what I can see in the NC code, In groupfolders/lib/Versions/GroupVersion.php, replace: In groupfolders/lib/Versions/VersionsBackend.php, replace:
Someone who is actually familiar with the codebase here should verify this isn't going to horribly break anything. |
This comment was marked as duplicate.
This comment was marked as duplicate.
@ReimuHakurei |
+1 @baltaner |
same issue here. Applied changes proposed by @ReimuHakurei and it fixes the error. Verified by manually running |
Appling this fix I take another error from logs
|
One was missing: In groupfolders/lib/Versions/GroupVersion.php, replace: |
Error disappeared and the app works correctly. Manually running |
Same context expect on Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-107-generic x86_64); same error encountered. Applied changes proposed by @ReimuHakurei and it fixes the error. Thank you |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Hi @artonge as you've worked on this, can you take a look when possible? Thanks 👍 |
Applied #2989 in my production environment and looks like it fixes the issue. Unsure how to completely veriy, i ran |
Nextcloud 29.0.0 and Nextcloud 29.0.1
The latest groupfolders update (17.0.0) introduces a new bug in the logs.
Reported by @jmechnich at #2935
Have a nice day.
The text was updated successfully, but these errors were encountered: