NotPermittedException from groupfolders in log every hour

Hello,
I get an error in the log every hour that seems to reference groupfolders.
Using Nextcloud 16.0.5 and groupfolders 4.1.4
Here is the error that recurs every hour in the logs:
[core] Error: OCP\Files\NotPermittedException: at <>

0. /var/www/vhosts/mysiteurl.com/httpdocs/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 71
   OC\Files\Node\File->delete()
1. /var/www/vhosts/mysiteurl.com/httpdocs/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 57
   OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireFolder({id: 2,mount_poi ... e})
2. /var/www/vhosts/mysiteurl.com/httpdocs/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php line 40
   OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireAll()
3. /var/www/vhosts/mysiteurl.com/httpdocs/lib/private/BackgroundJob/Job.php line 61
   OCA\GroupFolders\BackgroundJob\ExpireGroupVersions->run(null)
4. /var/www/vhosts/mysiteurl.com/httpdocs/lib/private/BackgroundJob/TimedJob.php line 55
   OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
5. /var/www/vhosts/mysiteurl.com/httpdocs/cron.php line 123
   OC\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

I have tried removing and re-installing groupfolders and that did not resolve the issue.
How can I fix this?
Thanks,
Ari

For the first line in your log, I wonder if this is happening when one of your users attempts to delete a file/folder? I’ve noticed on my end that some users assigned to a group folder (even though they have all the permissions) are still unable to delete files/folders. And upon inspecting the logs, I see something similar to what you’ve posted.

Interesting.
in our case, it occurs exactly at the bottom of every hour, 24x7.
But if you are getting a similar error then it sounds like this is not an isolated problem.

Hi
I am getting the same issue on my setup also
running
Ubuntu 18.04
nextcloud 16.0.5.1

OCP\Files\NotPermittedException: 
/var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php - line 71:

OC\Files\Node\File->delete()

/var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php - line 57:

OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireFolder({ id: 1,moun ... e})

/var/www/nextcloud/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php - line 40:

OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireAll()

/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 61:

OCA\GroupFolders\BackgroundJob\ExpireGroupVersions->run(null)

/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 55:

OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

/var/www/nextcloud/cron.php - line 123:

OC\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

Any pointers in the right direction would be helpful.

Thanks

Same problem on Ubuntu 18.04 nextcloud 17.0.1

[core] Error: OCP\Files\NotPermittedException: at <>

  1. /var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 71
    OC\Files\Node\File->delete()
  2. /var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 57
    OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireFolder({id: 6,mount_poi … e})
  3. /var/www/nextcloud/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php line 40
    OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireAll()
  4. /var/www/nextcloud/lib/private/BackgroundJob/Job.php line 61
    OCA\GroupFolders\BackgroundJob\ExpireGroupVersions->run(null)
  5. /var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php line 55
    OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
  6. /var/www/nextcloud/cron.php line 124
    OC\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

Still getting the same error after updating to 16.0.6 this morning

Same problem with nextcloud 17.0.2 and groupfolder 5.0.5

The cron job can’t delete old files stored by version app in group folders

Agree, same here on 17.0.2.1