Can't upload more than 64KB on SMB NC13

Hello

We have two Nextcloud platforms:

production: 12.0.2
tests: 13.0.2

the storage is on SMB with a Netapp AFF200

in 12.0.2 we can copy all files without problem, but in 13.0.2 (web client or apps) can not copy more than 64 kb.

we have this error on 13.0.2

Invalid request for /path/TEST.odg.ocTransferId1014311379.part (FileInUseException)

Nextcloud version : 12.0.2 and 13.0.2
Operating system and version : Debian 9.4
Apache or nginx version : Apache 2.4.25
PHP version : php7.0.30

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

Steps to replicate it:

  1. copy a file (photo, doc, zip …) of more 64 kb on external file in SMB

The output of your Nextcloud log in Admin > Logging:

	Icewind\SMB\Exception\FileInUseException: Invalid request for /PP/TEST.odg.ocTransferId450969251.part (FileInUseException)
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 49: Icewind\SMB\Exception\Exception fromMap(Array, 16, '/PP/TEST.odg.oc...')
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 61: Icewind\SMB\NativeState->handleError('/PP/TEST.odg.oc...')
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 136: Icewind\SMB\NativeState->testResult(false, 'smb //calebasse...')
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php - line 146: Icewind\SMB\NativeState->unlink('smb //calebasse...')
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 274: Icewind\SMB\NativeShare->del('/PP/TEST.odg.oc...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 265: OCA\Files_External\Lib\Storage\SMB->unlink('/PP/TEST.odg.oc...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php - line 112: OC\Files\Storage\Wrapper\Wrapper->unlink('PP/TEST.odg.ocT...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 265: OC\Files\Storage\Wrapper\PermissionsMask->unlink('PP/TEST.odg.ocT...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php - line 288: OC\Files\Storage\Wrapper\Wrapper->unlink('PP/TEST.odg.ocT...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encoding.php - line 324: OC\Files\Storage\Wrapper\Availability->unlink('PP/TEST.odg.ocT...')
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php - line 186: OC\Files\Storage\Wrapper\Encoding->unlink('PP/TEST.odg.ocT...')
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 151: OCA\DAV\Connector\Sabre\File->put(Resource id #23)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096: OCA\DAV\Connector\Sabre\Directory->createFile('TEST.odg', Resource id #23)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525: Sabre\DAV\Server->createFile('files/jonet/Esp...', Resource id #23, NULL)
[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method PUT', Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/apps/dav/lib/Server.php - line 283: Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35: OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 164: require_once('/var/www/nextcl...')
{main}

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 => 'cloud-pp.unicaen.fr',
    1 => '10.14.129.28',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => 'https://cloud-pp.unicaen.fr',
  'dbtype' => 'mysql',
  'version' => '13.0.2.1',
  'dbname' => 'cloud-pp',
  'dbhost' => '********************',
  'dbtableprefix' => 'oc_',
  'dbuser' => '********************',
  'dbpassword' => '********************',
  'logtimezone' => 'Europe/Paris',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'redis-cloud.unicaen.fr',
    'port' => 6379,
  ),
  'auth.bruteforce.protection.enabled' => true,
  'mail_from_address' => '********************',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'unciaen.fr',
  'mail_smtphost' => 'smtp.unicaen.fr',
  'mail_smtpport' => '25',
  'trashbin_retention_obligation' => 'disabled',
  'versions_retention_obligation' => 'disabled',
  'enable_previews' => true,
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'preview_max_scale_factor' => 10,
  'preview_max_filesize_image' => 50,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'preview_office_cl_parameters' => ' --headless --nologo --nofirststartwizard --invisible --norestore --convert-to pdf --outdir ',
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\MP3',
    6 => 'OC\\Preview\\TXT',
    7 => 'OC\\Preview\\MarkDown',
  ),
  'maintenance' => false,
  'loglevel' => 2,
  'updatechecker' => false,
  'integrity.check.disabled' => true,
  'proxy' => 'http://proxy.unicaen.fr:3128',
  'filelocking.enabled' => true,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
);

If you have an idea :wink:
Thank’s

Hey, i got the same issue with Same error log.

Did you fix it ? And if so how did you fix it ? Please let me know :grimacing:

Problem in NC 14.0 still here. Does no one has any ideo how to fix this ?