Some files can not be synched or rename, send not exist but exist …

Nextcloud version: _ 20.0.7_
Operating system and version : debian 10 buster
Apache or nginx version : nginx 1.14.2
PHP version (eg, 7.4): _ 7.3.19-1~deb10u1_

My issue

Some specific file can not be synced or renamed. Log show they don’t exist, but they exist. Other files with same character in same directory didn’t have any issue.
Don’t find the reason

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

It happen for this file and for one file before (but i delete directory : no issue after

Steps to replicate it:

Sync a big part (lot of files and lot of data), wait : see issue .
Check online to rename

Log ouput when error

The output of your Nextcloud log in Admin > Logging: partial

{"reqId":"GNwLtETMsrmr3gwnSe2u","level":3,"time":"2021-02-17T08:54:05+00:00","remoteAddr":"192.168.0.231","user":"USER-LDAP-ID","app":"core","method":"MOVE","url":"/remote.php/dav/files/USER-LDAP-ID/Documents/Pro/TheDirectory/151023%20-%20Nouvelle%20rubriqe/Conditions%20g%C3%A9n%C3%A9rales%20de%20vente.pdf","message":"unable to rename, file does not exists : files/Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions g\u00e9n\u00e9rales de vente.pdf","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.93 Safari/537.36","version":"20.0.7.1"}
{"reqId":"GNwLtETMsrmr3gwnSe2u","level":4,"time":"2021-02-17T08:54:05+00:00","remoteAddr":"192.168.0.231","user":"USER-LDAP-ID","app":"webdav","method":"MOVE","url":"/remote.php/dav/files/USER-LDAP-ID/Documents/Pro/TheDirectory/151023%20-%20Nouvelle%20rubriqe/Conditions%20g%C3%A9n%C3%A9rales%20de%20vente.pdf","message":{"Exception":"Sabre\\DAV\\Exception","Message":"Failed to rename /Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions g\u00e9n\u00e9rales de vente.pdf to /Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions generales de vente.pdf","Code":0,"Trace":[{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/Tree.php","line":157,"function":"setName","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->","args":["Conditions generales de vente.pdf"]},{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":641,"function":"move","class":"Sabre\\DAV\\Tree","type":"->","args":["files/USER-LDAP-ID/Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions g\u00e9n\u00e9rales de vente.pdf","files/USER-LDAP-ID/Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions generales de vente.pdf"]},{"file":"/home/www-data/www/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/Server.php","line":474,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:MOVE",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/Server.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/Server.php","line":319,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/home/www-data/www/apps/dav/lib/Server.php","line":332,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/home/www-data/www/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/home/www-data/www/remote.php","line":167,"args":["/home/www-data/www/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/home/www-data/www/apps/dav/lib/Connector/Sabre/Node.php","Line":143,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.93 Safari/537.36","version":"20.0.7.1"}

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

<?php
$CONFIG = array (
  'instanceid' => 'XXXXXXXXXX',
  'passwordsalt' => 'XXXXXXXXXXXXXXXXX',
  'secret' => 'YYYYYYYYYYYYYY',
  'trusted_domains' => 
    array (
      0 => 'nuage.example.org',
    ),
  'datadirectory' => '/home/www-data/data',
  'dbtype' => 'mysql',
  'version' => '20.0.7.1',
  'overwrite.cli.url' => 'https://nuage.example.org',
  'dbname' => 'chenume_nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'dbuser_nextcloud',
  'dbpassword' => 'DbPassword',
  'installed' => true,
  'memcache.local' => '\OC\Memcache\APCu',

  'auto_logout' => true,
  'auth.webauthn.enabled' => false,
  'skeletondirectory' => '',
  'overwrite.cli.url' => 'https://nuage.example.org',

  'remember_login_cookie_lifetime' => 60*60*24,
  //'maintenance' => true,
  //~ 'trashbin_retention_obligation' => 7,

);

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

last PHP error: 12 hour before

nginx access at same time

82.65.222.77 - - [17/Feb/2021:09:15:08 +0000] "GET /ocs/v2.php/apps/user_status/api/v1/user_status HTTP/2.0" 200 176 "-" "Mozilla/5.0 (X11; Gentoo; rv:83.1) Gecko/20100101 Firefox/83.1"
82.65.222.77 - - [17/Feb/2021:09:15:14 +0000] "MOVE /remote.php/dav/files/65cb3cc2-ec62-103a-86f9-d7cce5098ddd/Documents/Pro/TheDirectory/151023%20-%20Nouvelle%20rubriqe/Conditions%20g%C3%A9n%C3%A9rales%20de%20vente.pdf HTTP/2.0" 500 390 "-" "Mozilla/5.0 (X11; Gentoo; rv:83.1) Gecko/20100101 Firefox/83.1"
82.65.222.77 - - [17/Feb/2021:09:15:21 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Gentoo; rv:83.1) Gecko/20100101 Firefox/83.1"

Other log (same file type, same directory)

www-data@belar:~$ ls data/USER-LDAP-ID/files/Documents/Pro/TheDirectory/151023\ -\ Nouvelle\ rubriqe/
'Conditions générales de vente.pdf'   DIFF   FA16060029.pdf   FA16060030.pdf  'Fichier récupéré 1_15 oct 15.pptx'   forum.png   images   nos_tarifs.png   PR1510-0361.pdf   PR1603-0386.pdf   PR1604-0396.pdf
www-data@belar:~$ ls -la data/USER-LDAP-ID/files/Documents/Pro/TheDirectory/151023\ -\ Nouvelle\ rubriqe/
total 6052
drwxr-xr-x+  4 www-data www-data    4096 févr. 12 14:47  .
drwxr-xr-x+ 14 www-data www-data    4096 févr. 12 14:31  ..
-rw-r--r--+  1 www-data www-data  122095 févr. 12 14:16 'Conditions générales de vente.pdf'
drwxr-xr-x+  4 www-data www-data    4096 févr. 12 14:47  DIFF
-rw-r--r--+  1 www-data www-data   23230 févr. 12 14:16  FA16060029.pdf
-rw-r--r--+  1 www-data www-data   24686 févr. 12 14:16  FA16060030.pdf
-rw-r--r--+  1 www-data www-data 4880441 févr. 12 14:16 'Fichier récupéré 1_15 oct 15.pptx'
-rw-r--r--+  1 www-data www-data  976301 févr. 12 14:16  forum.png
drwxr-xr-x+  4 www-data www-data    4096 févr. 12 14:47  images
-rw-r--r--+  1 www-data www-data   62613 févr. 12 14:16  nos_tarifs.png
-rw-r--r--+  1 www-data www-data   23213 févr. 12 14:16  PR1510-0361.pdf
-rw-r--r--+  1 www-data www-data   24918 févr. 12 14:16  PR1603-0386.pdf
-rw-r--r--+  1 www-data www-data   23587 févr. 12 14:16  PR1604-0396.pdf

Try to rename Fichier récupéré 1_15 oct 15.pptx

{"reqId":"GNwLtETMsrmr3gwnSe2u","level":3,"time":"2021-02-17T08:54:05+00:00","remoteAddr":"192.168.0.231","user":"USER-LDAP-ID","app":"core","method":"MOVE","url":"/remote.php/dav/files/USER-LDAP-ID/Documents/Pro/TheDirectory/151023%20-%20Nouvelle%20rubriqe/Conditions%20g%C3%A9n%C3%A9rales%20de%20vente.pdf","message":"unable to rename, file does not exists : files/Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions g\u00e9n\u00e9rales de vente.pdf","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.93 Safari/537.36","version":"20.0.7.1"}
{"reqId":"GNwLtETMsrmr3gwnSe2u","level":4,"time":"2021-02-17T08:54:05+00:00","remoteAddr":"192.168.0.231","user":"USER-LDAP-ID","app":"webdav","method":"MOVE","url":"/remote.php/dav/files/USER-LDAP-ID/Documents/Pro/TheDirectory/151023%20-%20Nouvelle%20rubriqe/Conditions%20g%C3%A9n%C3%A9rales%20de%20vente.pdf","message":{"Exception":"Sabre\\DAV\\Exception","Message":"Failed to rename /Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions g\u00e9n\u00e9rales de vente.pdf to /Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions generales de vente.pdf","Code":0,"Trace":[{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/Tree.php","line":157,"function":"setName","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->","args":["Conditions generales de vente.pdf"]},{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":641,"function":"move","class":"Sabre\\DAV\\Tree","type":"->","args":["files/USER-LDAP-ID/Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions g\u00e9n\u00e9rales de vente.pdf","files/USER-LDAP-ID/Documents/Pro/TheDirectory/151023 - Nouvelle rubriqe/Conditions generales de vente.pdf"]},{"file":"/home/www-data/www/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/Server.php","line":474,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:MOVE",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/Server.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www-data/www/3rdparty/sabre/dav/lib/DAV/Server.php","line":319,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/home/www-data/www/apps/dav/lib/Server.php","line":332,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/home/www-data/www/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/home/www-data/www/remote.php","line":167,"args":["/home/www-data/www/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/home/www-data/www/apps/dav/lib/Connector/Sabre/Node.php","Line":143,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.93 Safari/537.36","version":"20.0.7.1"}

I don’t find any difference on this 2 files ?

Any idea ?