Pbm : slow upload of 1KB file, in a shared folder

Hello,

I don’t understand why, but my uploads are very slow : > 12s for a text file of 4byte.

My observations :

  • no error in any log file
  • the file encrypted appears on disk quickly (~ 2s) but the web interface react only 10 to 12s after

Other special point, maybe not linked :

  • when I try to delete it, an error log appears :
{"reqId":"Yk6gG9ZEwY59VzNFka90","level":3,"time":"2018-11-12T12:23:08+00:00","remoteAddr":"***.***.***.***","user":"sylvain","app":"PHP","method":"DELETE","url":"\/remote.php\/dav\/files\/sylvain\/_work\/test.txt","message":"fopen(\/home\/nextclouddata\/sylvain\/files_encryption\/keys\/files_trashbin\/files\/test.txt.d1542025387\/OC_DEFAULT_MODULE\/fileKey): failed to open stream: No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.77 Safari\/537.36","version":"14.0.3.0"}

The problem is it search the file to the wrong place, because it’s a shared folder, shared by another user. So th efile exist, but in an other user folder.

Nextcloud version 14.0.3
Operating system and version : Ubuntu 16.04.2 LTS
Apache version : Apache/2.4.18
PHP version : 7.0.32

Is this the first time you’ve seen this error? : Yes, but it’s present on my instance since few weeks.

Steps to replicate it:

  1. drop by your web browser, a little file, on a shared folder with you but not by you

The output of your Nextcloud log in Admin > Logging:

(anything)

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

$CONFIG = array (
  'instanceid' => '***********',
  'passwordsalt' => '************',
  'secret' => '******************',
  'trusted_domains' =>
  array (
    0 => '****************',
  ),
  'datadirectory' => '/home/nextclouddata',
  'overwrite.cli.url' => '***************',
  'dbtype' => 'mysql',
  'version' => '14.0.3.0',
  'dbname' => '******',
  'dbhost' => '127.0.0.1',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '******',
  'dbpassword' => '********',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => false,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '*****',
  'mail_from_address' => '*****',
  'mail_domain' => '*******',
  'mail_smtpport' => '**',
  'mail_smtpname' => '**********',
  'mail_smtppassword' => '*******',
  'loglevel' => 3,
  'default_language' => 'fr',
  'force_language' => 'fr',
  'updater.secret' => '**************',
  'theme' => '',
  'trashbin_retention_obligation' => '15, 30',
  'versions_retention_obligation' => '15, 30',
);

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

(no error)

Thanks for your help

Ok, I’ve found my problem.

For help someone, my real problem is not the upload time, but the fact that the upload never finish.
And why ? My users are manage by LDAP. And I have few users in a wrong state, because they have been synchronize and after deleted on LDAP. So just correct this situation, and all is OK again.

Bye