Upload of big (>10GB) files over webdav with curl or over WebUI/App have hangout

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

_**help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothl

 

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): `- installed: true

  • version: 25.0.2.3
  • versionstring: 25.0.2
  • edition:
  • maintenance: false
  • needsDbUpgrade: false
  • productname: Nextcloud
  • extendedSupport: false
    Operating system and version _(eg, Ubuntu 20.04)_:ArchLinux Kernel 6.1.1Apache or nginx version _(eg, Apache 2.4.25)_: nginx version: nginx/1.23.3PHP version _(eg, 7.4)_:PHP 8.1.13 (cli) (built: Dec 12 2022 23:45:33) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.13, Copyright (c), by Zend Technologies
    `

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

  1. NO
  2. curl -u admin:XXX-T tbp.intrution.mp4 https://cloud.xxx.ch/remote.php/dav/files/admin/
  3. The file upload in speed waves that means fullspeed for 5-10 seconds after it a break

The output of your Nextcloud log in Admin > Logging:

{"reqId":"oDyBFlHJp2YW01VtlyEd","level":2,"time":"2022-12-30T18:45:24+00:00","remoteAddr":"2a02:168:a774::1","user":"admin","app":"suspicious_login","method":"PROPFIND","url":"/remote.php/dav/calendars/admin/","message":"Could not predict suspiciousness: No models found","userAgent":"iOS/16.2 (20C65) remindd/1.0","version":"25.0.2.3","data":{"app":"suspicious_login"}}
{"reqId":"Dkku0dVyAOnKH3vW0SC1","level":2,"time":"2022-12-30T18:45:45+00:00","remoteAddr":"2a02:168:a774::1","user":"admin","app":"suspicious_login","method":"OPTIONS","url":"/remote.php/dav/principals/users/admin/","message":"Could not predict suspiciousness: No models found","userAgent":"iOS/16.2 (20C65) dataaccessd/1.0","version":"25.0.2.3","data":{"app":"suspicious_login"}}
{"reqId":"GW3MT3pgJx8c2Qf6HIXb","level":2,"time":"2022-12-30T18:45:46+00:00","remoteAddr":"2a02:168:a774::1","user":"admin","app":"suspicious_login","method":"REPORT","url":"/remote.php/dav/addressbooks/users/admin/contacts/","message":"Could not predict suspiciousness: No models found","userAgent":"iOS/16.2 (20C65) dataaccessd/1.0","version":"25.0.2.3","data":{"app":"suspicious_login"}}
{"reqId":"J9lk56onM0KO8mRL6cU1","level":2,"time":"2022-12-30T18:45:47+00:00","remoteAddr":"2a02:168:a774::1","user":"admin","app":"suspicious_login","method":"PROPFIND","url":"/remote.php/dav/addressbooks/users/admin/z-app-generated--contactsinteraction--recent/","message":"Could not predict suspiciousness: No models found","userAgent":"iOS/16.2 (20C65) dataaccessd/1.0","version":"25.0.2.3","data":{"app":"suspicious_login"}}
{"reqId":"8km7B5Gf0Ubi7BxZtLqJ","level":2,"time":"2022-12-30T20:17:42+00:00","remoteAddr":"2a02:168:a774::1","user":"admin","app":"suspicious_login","method":"PUT","url":"/remote.php/dav/files/admin/tbp.lintrution.mp4","message":"Could not predict suspiciousness: No models found","userAgent":"curl/7.87.0","version":"25.0.2.3","data":{"app":"suspicious_login"}}

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

<?php
$CONFIG = array (
  'datadirectory' => '/home/data/nextcloud/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ),
  ),
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'cloud.xxx.ch',
  ),
  0 => 
  array (
    'trusted_proxies' => 
    array (
      0 => '192.168.1.1',
    ),
    'overwritehost' => 'xxx.ch',
    'overwriteprotocol' => 'http',
  ),
  'overwrite.cli.url' => 'https://cloud.xxx.ch/',
  'htaccess.RewriteBase' => '/',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'dbtype' => 'mysql',
  'version' => '25.0.2.3',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/run/mysqld/mysqld.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxxx',
  'installed' => true,
  'instanceid' => 'XXX',
  'overwriteprotocol' => 'https',
  'theme' => '',
  'loglevel' => 2,
  'auth.bruteforce.protection.enabled' => false,
  'maintenance' => false,
  'integrity.check.disabled' => true,
  'mail_smtpmode' => 'sendmail',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'pipe',
  'mail_from_address' => 'cloud',
  'mail_domain' => 'XXX.ch',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '456',
  'mail_smtpname' => 'Nextcloud',
  'mail_smtppassword' => 'XXX',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'app_install_overwrite' => 
  array (
    0 => 'files_antivirus',
    1 => 'keeporsweep',
    2 => 'flowupload',
    3 => 'hancomoffice',
  ),
  'onlyoffice' => 
  array (
    'verify_peer_off' => true,
  ),
);

Did you check the logs of your webserver? And perhaps of php? If there is a timeout, too much memory usage, …

And there are a few hints in the documentation:

https://docs.nextcloud.com/server/25/admin_manual/configuration_files/big_file_upload_configuration.html#configuring-your-web-server

Your hint was lit :fire: thx