GroupFolders and BackgroundJob: Failed to remove item from trashbin

I observe many messages in nextcloud.log which relate to the GroupFolders application.

{"reqId":"hX9nevWIGDhBGcb636TV","level":3,"time":"2022-08-14T01:01:20+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\GroupFolders\\BackgroundJob\\ExpireGroupTrash, arguments: )","userAgent":"--","version":"24.0.3.2","exception":{"Exception":"Exception","Message":"Failed to remove item from trashbin","Code":0,"Trace":[{"file":"/var/www/owncloud/apps/groupfolders/lib/BackgroundJob/ExpireGroupTrash.php","line":58,"function":"expire","class":"OCA\\GroupFolders\\Trash\\TrashBackend","type":"->"},{"file":"/var/www/owncloud/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\\GroupFolders\\BackgroundJob\\ExpireGroupTrash","type":"->"},{"file":"/var/www/owncloud/lib/public/BackgroundJob/TimedJob.php","line":95,"function":"execute","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/owncloud/cron.php","line":151,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/owncloud/apps/groupfolders/lib/Trash/TrashBackend.php","Line":394,"message":"Error while running background job (class: OCA\\GroupFolders\\BackgroundJob\\ExpireGroupTrash, arguments: )","CustomMessage":"Error while running background job (class: OCA\\GroupFolders\\BackgroundJob\\ExpireGroupTrash, arguments: )"}}

Nextcloud version: 24.0.3
Group Folders: 12.0.1
Operating system and version: Debian 11
Apache: 2.4.54-1~deb11u1
PHP version: 7.4.30

My config.php:

<?php
$CONFIG = array (
  'instanceid' => 'o...d',
  'passwordsalt' => 'R...k',
  'secret' => 'G...C',
  'trusted_domains' => 
  array (
    0 => '***.univ-fcomte.fr',
    1 => '***.***.univ-fcomte.fr',
    2 => '******.univ-fcomte.fr',
    3 => '***-api.univ-fcomte.fr',
    4 => '1xx.2xx.1xx.xx',
  ),
  'default_phone_region' => 'FR',
  'datadirectory' => '/var/www/nextcloud_data',
  'overwrite.cli.url' => 'https://***.univ-fcomte.fr/',
  'dbtype' => 'pgsql',
  'version' => '24.0.3.2',
  'dbname' => '***',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => '***',
  'dbpassword' => '***',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0,
    'dbindex' => 0,
  ),
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => '***',
  'mail_domain' => 'univ-fcomte.fr',
  'mail_smtphost' => '***.univ-fcomte.fr',
  'mail_smtpport' => '25',
  'theme' => '',
  'maintenance' => false,
  'session_lifetime' => 432000,
  'trashbin_retention_obligation' => '30, 60',
  'updatechecker' => false,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => 3,
  'app_install_overwrite' => 
  array (
    0 => 'fulltextsearch',
    1 => 'fulltextsearch_elasticsearch',
    2 => 'user_usage_report',
    3 => 'bookmarks_fulltextsearch',
    4 => 'groupfolders',
  ),
);

no error in /var/log/apache2/error.log

Thanks in advance for any help.

Ernest.

I have a similar error:
Attached the NextCloud log

Some documents I can delete, but some Old ones of + 5 months, I can’t,

[webdav] Error: Exception: Failed to remove item from trashbin at <<closure>>

 0. /var/www/nextcloud/apps/files_trashbin/lib/Trash/TrashManager.php line 68
    OCA\GroupFolders\Trash\TrashBackend->removeItem()
 1. /var/www/nextcloud/apps/files_trashbin/lib/Sabre/AbstractTrash.php line 89
    OCA\Files_Trashbin\Trash\TrashManager->removeItem()
 2. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 179
    OCA\Files_Trashbin\Sabre\AbstractTrash->delete()
 3. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 281
    Sabre\DAV\Tree->delete()
 4. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpDelete()
 5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
 6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
 7. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
 8. /var/www/nextcloud/apps/dav/lib/Server.php line 360
    Sabre\DAV\Server->exec()
 9. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
10. /var/www/nextcloud/remote.php line 171
    require_once("/var/www/nextcl ... p")

DELETE /remote.php/dav/trashbin/ncp/trash/CT%20DA30150002307620226710272.pdf.d1667905359
from 5.161.56.47 by ncp at 2023-04-24T08:01:03+00:00
## Server configuration detail
**Operating system:** Linux 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
**Webserver:** Apache (fpm-fcgi)
**Database:** mysql 10.5.18
**PHP version:** 8.1.10
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, intl, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
**Nextcloud version:** 25.0.5 - 25.0.5.1

I’ve been dragging this problem for several updates.
Happened to someone?