Nextcloud version: 27.1.4
Operating system and version: Ubuntu 22.04.3 LTS
Apache or nginx version: unsure (bundled with snap)
PHP version: unsure (bundled with snap)
The issue you are facing:
Is this the first time you’ve seen this error? Y
Steps to replicate it:
- Used OCC command
sudo nextcloud.occ config:app:set files_trashbin trashbin_retention_obligation --value='auto, 30'
to set trashbin retention policy. - Verified if the above parameter is set successfully using
sudo nextcloud.occ config:list
command. - Ran “update oc_jobs set last_run=0” to database (per Empty trashbin automatically - #16 by apassi)
- Checked if Nextcloud cron jobs are running properly using the
sudo snap logs nextcloud.nextcloud-cron
command. - Trashed files > 30 days old are still in the trash
The output of your Nextcloud log in Admin > Logging:
No relevant logs
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'apps_paths' =>
array (
0 =>
array (
'path' => '/snap/nextcloud/current/htdocs/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
'url' => '/extra-apps',
'writable' => true,
),
),
'supportedDatabases' =>
array (
0 => 'mysql',
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/tmp/sockets/redis.sock',
'port' => 0,
),
'log_type' => 'file',
'logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log',
'logfilemode' => 416,
'passwordsalt' => '[REDACTED]',
'secret' => '[REDACTED]',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '[REDACTED]',
2 => '[REDACTED]',
),
'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
'dbtype' => 'mysql',
'version' => '27.1.4.1',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '[REDACTED]',
'installed' => true,
'instanceid' => '[REDACTED]',
'maintenance' => false,
'loglevel' => 2,
'theme' => '',
'memories.exiftool' => '/var/snap/nextcloud/38457/nextcloud/extra-apps/memories/bin-ext/exiftool-amd64-glibc',
'memories.vod.path' => '/var/snap/nextcloud/38457/nextcloud/extra-apps/memories/bin-ext/go-vod-amd64',
'memories.gis_type' => 1,
'memories.ffmpeg_path' => '/var/snap/nextcloud/bin/ffmpeg',
'memories.ffprobe_path' => '/var/snap/nextcloud/bin/ffprobe',
'ffmpeg' => '/var/snap/nextcloud/bin/ffmpeg',
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\Movie',
1 => 'OC\\Preview\\Image',
),
'memories.vod.ffmpeg' => '/var/snap/nextcloud/bin/ffmpeg',
'memories.vod.ffprobe' => '/var/snap/nextcloud/bin/ffprobe',
'memories.vod.vaapi.low_power' => true,
);