Cannot move/delete/rename folder and files

Nextcloud version: 25.0.5
Operating system and version: Linux nextcloudpi 5.15.84-v8
Apache or nginx version: Server version: Apache/2.4.56 (Debian)
PHP version: 8.1.14

Any webdav request to move/delete/rename any file or folder ends with a 503 server error.
After renaming from a webdav mount in windows 11, the server in
/var/log/apache2/nc-access.log line says
MOVE /remote.php/dav/files/gilles/Documents/Etude%20SIDAS HTTP/2.0" 503 652 "-" "Microsoft-WebDAV-MiniRedir/10.0.19044
After renaming from “files” web app , the server in
/var/log/apache2/nc-access.log line says
MOVE /remote.php/dav/files/gilles/Documents/Etude%20SIDAS HTTP/2.0" 503 652 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"

The files app in the NC web interface does not work better and ends with a notification like “Unable to rename “FILE XXX””

Is this the first time you’ve seen this error? : Y

Steps to replicate it:

  1. use the “files” NC web app to rename a file or folder

The output of your Nextcloud log in Admin > Logging:

Unfortunalely, no log at levels warning, error, fatal... appear !

My /var/www/nextcloud/config/config.php:

<?php
$CONFIG = array (
  [...]
  'trusted_domains' =>
  array ( [many URLs, IP v4 or v6 addresses]
  ),
  'datadirectory' => '/media/hd3/data',
  'dbtype' => 'mysql',
  'version' => '25.0.5.1',
  'overwrite.cli.url' => 'https://XXX.ovh/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'secret',
  'installed' => true,
  'instanceid' => 'ocwn0g3teaag',
  'filelocking.enabled' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'tempdirectory' => '/media/hd3/data/tmp',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'preview_max_memory' => '4096',
  'preview_max_filesize_image' => '256',
  'jpeg_quality' => '60',
  'forcessl' => true,
  'overwriteprotocol' => 'https',
  'auth.bruteforce.protection.enabled' => false,
  'csrf.optout' =>
  array (
    0 => '/^WebDAVFS/',
    1 => '/^Microsoft-WebDAV-MiniRedir/',
  ),
  'maintenance' => false,
  'theme' => '',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtphost' => 'smtp.XXX',
  'mail_smtpport' => '465',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'XXX',
  'mail_domain' => 'XXX',
  'updater.release.channel' => 'stable',
  'trusted_proxies' =>
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => 'XXX',
[...]
  ),
  'debug' => false,
  'logfile' => '/media/hd3/data/nextcloud.log',
  'loglevel' => 1,
  'data-fingerprint' => '396f49904c922a82d5e2d5b5596dae8f',
);

The output of Apache2 NC log in /var/log/apache2/nc-access.log:

192.168.0.254 - - [15/Apr/2023:21:14:56 +0200] "PROPFIND /remote.php/dav/files/gilles HTTP/2.0" 207 6044 "-" "Microsoft-WebDAV-MiniRedir/10.0.19044"
192.168.0.254 - - [15/Apr/2023:21:14:56 +0200] "PROPFIND /remote.php/dav/files/gilles/Documents/Etude%20SIDAS HTTP/2.0" 207 1335 "-" "Microsoft-WebDAV-MiniRedir/10.0.19044"
192.168.0.254 - - [15/Apr/2023:21:14:56 +0200] "MOVE /remote.php/dav/files/gilles/Documents/Etude%20SIDAS HTTP/2.0" 503 652 "-" "Microsoft-WebDAV-MiniRedir/10.0.19044"
192.168.0.254 - - [15/Apr/2023:21:14:56 +0200] "PROPFIND /remote.php/dav/files/gilles/Documents/Etude%20SIDAS HTTP/2.0" 207 1335 "-" "Microsoft-WebDAV-MiniRedir/10.0.19044"

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

Nothing related to the error...

I’ve some news : the log file “/var/log/php8.1-fpm.log” notices a SIGSEGV error aftery any webdav MOVE request:

[15-Apr-2023 21:51:12] WARNING: [pool www] child 6122 exited on signal 11 (SIGSEGV) after 3030.400055 seconds from start
[15-Apr-2023 21:51:12] NOTICE: [pool www] child 7910 started

Here are my PHP packages listed:

ii  php-common       2:93+0~20221211.45+debian11~1.gbpdb4dcc            all          Common files for PHP packages
ii  php8.1           8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        all          server-side, HTML-embedded scripting language (metapackage)
ii  php8.1-apcu      5.1.22+4.0.11-2+0~20221209.34+debian11~1.gbp2b07cb arm64        APC User Cache for PHP
ii  php8.1-bcmath    8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        Bcmath module for PHP
ii  php8.1-bz2       8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        bzip2 module for PHP
ii  php8.1-cli       8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        command-line interpreter for the PHP scripting language
ii  php8.1-common    8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        documentation, examples and common module for PHP
ii  php8.1-curl      8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        CURL module for PHP
ii  php8.1-fpm       8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        server-side, HTML-embedded scripting language (FPM-CGI binary)
ii  php8.1-gd        8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        GD module for PHP
ii  php8.1-gmp       8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        GMP module for PHP
ii  php8.1-igbinary  3.2.12+2.0.8-2+0~20221210.36+debian11~1.gbp293257  arm64        igbinary PHP serializer
ii  php8.1-imagick   3.7.0-3+0~20221209.38+debian11~1.gbp8a8977         arm64        Provides a wrapper to the ImageMagick library
ii  php8.1-intl      8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        Internationalisation module for PHP
ii  php8.1-ldap      8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        LDAP module for PHP
ii  php8.1-mbstring  8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        MBSTRING module for PHP
ii  php8.1-mysql     8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        MySQL module for PHP
ii  php8.1-opcache   8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        Zend OpCache module for PHP
ii  php8.1-readline  8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        readline module for PHP
ii  php8.1-redis     5.3.7+4.3.0-2+0~20221210.45+debian11~1.gbp99917f   arm64        PHP extension for interfacing with Redis
ii  php8.1-xml       8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        DOM, SimpleXML, XML, and XSL module for PHP
ii  php8.1-zip       8.1.14-2+0~20230113.32+debian11~1.gbp6a972c        arm64        Zip module for PHP

Any idea ?

Hmm, I fixed the problem by clearing the cache of “OPCache” :slight_smile:

source /usr/local/etc/library.sh && clear_opcache

Could someone explain me why this cache had to be cleared ?
Should I put this in a daily or hourly cron job ?