Deleted files don't go into the trashbin, they just disappear

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version: 22.2.2
Operating system and version: Raspberry Pi OS
Apache or nginx version: Apache 2.4.25
PHP version: 7.3

The issue you are facing:

  1. A file is deleted, trashbin is empty.
  2. A folder is deleted: trashbin contains the just deleted folder (only the folder, not the files in it contained)

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Create a file
  2. Delete that file
  3. Go to Deleted files
  4. Bin is empty

The output of your Nextcloud log in Admin > Logging:

Nothing is reported in the log

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => 'xyz',
  'secret' => 'xyz',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    11 => 'xyz',
    1 => '192.168.1.2',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    12 => 'xyz',
    3 => 'raspberrypi',
    22 => '192.168.1.2',
    '' => 'raspberrypi',
  ),
  'datadirectory' => '/mnt/ncHD/nxtcd/ncdata',
  'dbtype' => 'mysql',
  'version' => '22.2.2.0',
  'overwrite.cli.url' => 'https://raspberrypi/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xyz',
  'dbpassword' => 'xyz',
  'installed' => true,
  'instanceid' => 'oczcq4nkftre',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'xyz',
  ),
  'tempdirectory' => '/mnt/ncHD/nxtcd/ncdata/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'logfile' => '/mnt/ncHD/nxtcd/ncdata/nextcloud.log',
  'mail_sendmailmode' => 'smtp',
  'loglevel' => '2',
  'log_type' => 'file',
  'trusted_proxies' => 
  array (
    11 => '127.0.0.1',
    13 => 'raspberrypi',
    14 => '',
  ),
  'data-fingerprint' => 'xyz',
);

The output of your Apache/nginx/system log in /var/log/____:

[19/Nov/2021:18:39:36 +0000] "DELETE /remote.php/dav/files/admin/sdfsd.md HTTP/2.0" 204 56 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
[19/Nov/2021:18:39:37 +0000] "GET /index.php/apps/files/ajax/getstoragestats.php HTTP/2.0" 200 185 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
[19/Nov/2021:18:39:37 +0000] "GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/2.0" 200 227 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"