You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError OCA\GroupFolders\Versions\VersionsBackend::getVersionFolderForFile(): Argument #1 ($file) must be of type OCP\Files\File, OC\Files\FileInfo
#2973
Closed
vasyugan opened this issue
May 29, 2024
· 1 comment
Please use the 👍 reaction to show that you are affected by the same issue.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
Steps to reproduce
have groupfolders installed
upgrade NC to major release 29
wait for some cron runs
Expected behaviour
Tell us what should happen
No error
Actual behaviour
Tell us what happens instead
error in log file, see below
Server configuration
Operating system:
Ubuntu 20.04 LTS
Web server:
Nginx
Database:
Mariadb
PHP version:
8.1
Nextcloud version:
29.0.1
Group folders version:
17.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
updated
Where did you install Nextcloud from:
tar.gz
Are you using external storage, if yes which one: local/s3/smb/sftp/...
no.
Are you using encryption:
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...
none
Client configuration
Browser:
Firefox
Operating system:
Debian GNU/Linux
Logs
Web server error log
Web server error log
n/a (error in cronjob, not while serving a webpage)
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"***","level":3,"time":"2024-05-29T09:14:03+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions (id: 69, arguments: null)","userAgent":"--","version":"29.0.1.1","exception":{"Exception":"TypeError","Message":"OCA\\GroupFolders\\Versions\\VersionsBackend::getVersionFolderForFile(): Argument #1 ($file) must be of type OCP\\Files\\File, OC\\Files\\FileInfo given, called in /var/www/***/cloud.***.***/apps/groupfolders/lib/Versions/VersionsBackend.php on line 92","Code":0,"Trace":[{"file":"/var/www/***/cloud.***.***/apps/groupfolders/lib/Versions/VersionsBackend.php","line":92,"function":"getVersionFolderForFile","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->"},{"file":"/var/www/***/cloud.***.***/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":81,"function":"getVersionsForFile","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->"},{"file":"/var/www/***/cloud.***.***/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":60,"function":"expireFolder","class":"OCA\\GroupFolders\\Versions\\GroupVersionsExpireManager","type":"->"},{"file":"/var/www/***/cloud.***.***/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php","line":43,"function":"expireAll","class":"OCA\\GroupFolders\\Versions\\GroupVersionsExpireManager","type":"->"},{"file":"/var/www/***/cloud.***.***/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions","type":"->"},{"file":"/var/www/***/cloud.***.***/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/***/cloud.***.***/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/***/cloud.***.***/cron.php","line":176,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/***/cloud.***.***/apps/groupfolders/lib/Versions/VersionsBackend.php","Line":78,"message":"Error while running background job OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions (id: 69, arguments: null)","exception":[],"CustomMessage":"Error while running background job OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions (id: 69, arguments: null)"},"id":"6656f7f1c9284"}
Browser log
Browser log
``
n/a (error in cronjob, not while serving a webpage) `
The text was updated successfully, but these errors were encountered:
How to use GitHub
Steps to reproduce
Expected behaviour
Tell us what should happen
No error
Actual behaviour
Tell us what happens instead
error in log file, see below
Server configuration
Operating system:
Ubuntu 20.04 LTS
Web server:
Nginx
Database:
Mariadb
PHP version:
8.1
Nextcloud version:
29.0.1
Group folders version:
17.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
updated
Where did you install Nextcloud from:
tar.gz
Are you using external storage, if yes which one: local/s3/smb/sftp/...
no.
Are you using encryption:
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...
none
Client configuration
Browser:
Firefox
Operating system:
Debian GNU/Linux
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
``
n/a (error in cronjob, not while serving a webpage) `
The text was updated successfully, but these errors were encountered: