Skip to content
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

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
Labels
0. Needs triage Issues that need to be triaged bug

Comments

@vasyugan
Copy link

vasyugan commented May 29, 2024

How to use GitHub

  • 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

  1. have groupfolders installed
  2. upgrade NC to major release 29
  3. 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) `

@vasyugan vasyugan added bug 0. Needs triage Issues that need to be triaged labels May 29, 2024
@solracsf
Copy link
Member

Duplicate of #2964

@solracsf solracsf marked this as a duplicate of #2964 May 29, 2024
@solracsf solracsf closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Issues that need to be triaged bug
Projects
None yet
Development

No branches or pull requests

2 participants