Problem with sync. Server replied: Not Allowed

Dear All,

Nextcloud version (eg, 18.0.2): Tested on 19.0.6.2 and the after update to 20.0.4
Operating system and version : Docker.
Image: nextcloud:latest
Apache : 2.4.38
PHP version : 7.4.13

The issue you are facing:

I have tried to sync a big folder that I currently was able to sync with the owncloud. The Nextcloud is getting stuck on the same folder over and over again. The path is long and has over 150 characters. Ownlcoud has no problems with the folder.

The error message is:
/a/long/…/path - server replied: Not Allowed

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

No, I tested it on two versions of Nextcloud.

Steps to replicate it:

  1. Have a 120GB of data and over 200k files.
  2. Long path names?
  3. Start sync.

The output of your Nextcloud log in Admin > Logging:

https://pastebin.pl/view/fd4e02d8

The output of your config.php:

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'xxxxx',
  'passwordsalt' => 'xxxx,
  'secret' => 'xxxxx',
  'trusted_domains' => 
  array (
    0 => 'xxxx',
    1 => 'xxxx',
    2 => 'xxxx',
    3 => 'xxxx',
    4 => 'xxxx',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '20.0.4.0',
  'overwrite.cli.url' => 'xxxx,
  'dbname' => 'nextcloud',
  'dbhost' => 'mariadb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxx',
  'dbpassword' => 'xxxx',
  'installed' => true,
  'updater.secret' => 'xxxxx',
  'loglevel' => 2,
  'maintenance' => false,
);

The output of your Apache log in /var/log/apache2/:

Logs are empty.

du -h /var/log/apache2/access.log                 
0       /var/log/apache2/access.log 

du -h /var/log/apache2/error.log                  
0       /var/log/apache2/error.log 

du -h /var/log/apache2/other_vhosts_access.log    
0       /var/log/apache2/other_vhosts_access.log