Upload file via davfs2,dav and webdav

Good afternoon, I’m having a problem with uploading files above 2GB I’m on version 25 nextcloud I’m using debian11 with php-7.4.
This is configuring the information as the manual says, however when trying to upload files via linux using davfs2 or ashampoo backup pro applications placing files of 10 gb and asking to compress the transmission is not done and refused.

initially I apologize for any writing but I’m using google translator for conversation here on the forum.

how is your ##upload_max_filesize = 2048M## set for php?

php -i |grep upload

if using php-fpm7.4

php-fpm7.4 -i |grep upload

also check .user.ini in NEXTCLOUD_INSTALL_DIR

cat /var/www/nextcloud/.user.ini

this value should be big enough for example for 10 Gb I would try 11240M or 10G

php -i |grep upload
file_uploads => On => On
max_file_uploads => 20 => 20
upload_max_filesize => 1000G => 1000G
upload_tmp_dir => no value => no value
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_

cat /var/www/nextcloud/.user.ini
mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset=‘UTF-8’
output_buffering=0

cat /etc/php/7.4/apache2/php.ini | grep upload
; Whether to allow HTTP file uploads.
; PHP: Description of core php.ini directives - Manual
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; PHP: Description of core php.ini directives - Manual
upload_tmp_dir = /media/Dados/tmp
; Maximum allowed size for uploaded files.
; PHP: Description of core php.ini directives - Manual
upload_max_filesize = 1000G
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 60
; Enable upload progress tracking in $_SESSION

this looks good.

what I don’t understand is what you mean

strong text

what compression ? is the 10Gb file not already compressed. With todays internet speed compression is not really required.

what is the error when refused.

You should check the client syslog / dmesg for any size restrictions.

it compresses in .zip I’m not finding the problem terial some command to post the log here because if it were restriction by the size it would not copy via scp or winscp. I’m having problem send dav.

xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:48 -0300] “PUT /remote.php/webdav/teste_BD/dataz/C/Bkp/%5B%5B71052b9f4199329d-unfinished%5D%5D.zip HTTP/1.1” 400 1278 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:48 -0300] “PROPFIND /remote.php/webdav/teste_BD HTTP/1.1” 207 1987 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:49 -0300] “PROPFIND /remote.php/webdav/teste_BD HTTP/1.1” 207 2009 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:49 -0300] “DELETE /remote.php/webdav/teste_BD/dataz/C/Bkp/%5B%5B71052b9f4199329d-unfinished%5D%5D.zip HTTP/1.1” 404 1786 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:50 -0300] “PUT /remote.php/webdav/teste_BD/dataz/C/Bkp/%5B%5B3d3a25605faa2e81-unfinished%5D%5D.zip HTTP/1.1” 201 1657 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:50 -0300] “MOVE /remote.php/webdav/teste_BD/dataz/C/Bkp/%5B%5B3d3a25605faa2e81-unfinished%5D%5D.zip HTTP/1.1” 412 1840 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:51 -0300] “PROPFIND /remote.php/webdav/teste_BD/dataz/C/Bkp HTTP/1.1” 207 3366 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:51 -0300] “MOVE /remote.php/webdav/teste_BD/dataz/C/Bkp/%5B%5B3d3a25605faa2e81-unfinished%5D%5D.zip HTTP/1.1” 204 1603 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:52 -0300] “MOVE /remote.php/webdav/teste_BD/dataz/C/Bkp/%5B%5Bmeta-new%5D%5D.zip HTTP/1.1” 412 1826 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:52 -0300] “PROPFIND /remote.php/webdav/teste_BD/dataz/C/Bkp HTTP/1.1” 207 2982 “-” “-”
xxxxxxxxxxxxxxx - xxxxxxxxxxxxxxx [29/Oct/2022:10:31:53 -0300] “MOVE /remote.php/webdav/teste_BD/dataz/C/Bkp/%5B%5Bmeta-new%5D%5D.zip HTTP/1.1” 204 1613 “-” “-”

\Server",“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:167,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“Line”:297,“message”:“Tamanho de arquivo esperado de 2012424007 bytes mas lido (do cliente Nextcloud) e gravado (no armazenamento Nextcloud) 0 byte. Pode ser um problema de rede no lado de envio ou um problema de grava\u00e7\u00e3o no armazenamento no lado do servidor.”,“exception”:{},“CustomMessage”:“Tamanho de arquivo esperado de 2012424007 bytes mas lido (do cliente Nextcloud) e gravado (no armazenamento Nextcloud) 0 byte. Pode ser um problema de rede no lado de envio ou um problema de grava\u00e7\u00e3o no armazenamento no lado do servidor.”}}

//<?php
$CONFIG = array (
‘trusted_domains’ =>
array (
‘dbtype’ => ‘mysql’,
‘version’ => ‘25.0.0.18’,
‘dbname’ => ‘XXX’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘filelocking.ttl’ => 60000,
‘logtimezone’ => ‘America/Sao_Paulo’,
‘files_external_allow_create_new_local’ => ‘true’,
‘trashbin_retention_obligation’ => ‘0,’,
‘trashbin_purge_limit’ => 1,
‘trashbin_auto_expire’ => true,
‘filelocking.enabled’ => true,
‘default_phone_region’ => ‘BR’,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
),
‘force_language’ => ‘pt_BR’,
‘installed’ => true,
‘mail_domain’ => ‘XXXXXXXXX’,
‘mail_from_address’ => ‘XXXXXXXX’,
‘mail_smtpmode’ => ‘smtp’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_smtpauth’ => 1,
‘mail_smtphost’ => ‘XXXXXXXXXXXXXXXXXX’,
‘mail_smtpport’ => ‘587’,
‘mail_smtpname’ => ‘XXXXXXXXXXXXXXXXXXXXX’,
‘mail_smtppassword’ => ‘XXXXXXXXXXXX’,
‘theme’ => ‘’,
‘loglevel’ => 3,
‘maintenance’ => false,
‘allow_user_to_change_mail_address’ => ‘’,
‘updater.secret’ => ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’,
);
~

I can"t help any further maybe you find help reading this post

or maybe your issue is related to this bug

maybe someone else here can help you

{“reqId”:“Y2EGYP2T1GJpmEZYZdVHpQAAAAM”,“level”:3,“time”:“2022-11-01T08:43:28-03:00”,“remoteAddr”:“xxxxxxxxx”,“user”:“xxxxxxxxxxxxxxxxx”,“app”:“no app in context”,“method”:“PUT”,“url”:“/remote.php/dav/files/xxxxxxxxxxxx/TESTE/data/C/SQLSERVER_BACKUP/%5B%5B6c71abc0e32db520-unfinished%5D%5D”,“message”:“Tamanho de arquivo esperado de 3863257600 bytes mas lido (do cliente Nextcloud) e gravado (no armazenamento Nextcloud) 0 byte. Pode ser um problema de rede no lado de envio ou um problema de grava\u00e7\u00e3o no armazenamento no lado do servidor.”,“userAgent”:“–”,“version”:“25.0.0.18”,“exception”:{“Exception”:“Sabre\DAV\Exception\BadRequest”,“Message”:“Tamanho de arquivo esperado de 3863257600 bytes mas lido (do cliente Nextcloud) e gravado (no armazenamento Nextcloud) 0 byte. Pode ser um problema de rede no lado de envio ou um problema de grava\u00e7\u00e3o no armazenamento no lado do servidor.”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php”,“line”:151,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php”,“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:253,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:321,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:360,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:167,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“Line”:297,“message”:“Tamanho de arquivo esperado de 3863257600 bytes mas lido (do cliente Nextcloud) e gravado (no armazenamento Nextcloud) 0 byte. Pode ser um problema de rede no lado de envio ou um problema de grava\u00e7\u00e3o no armazenamento no lado do servidor.”,“exception”:{},“CustomMessage”:“Tamanho de arquivo esperado de 3863257600 bytes mas lido (do cliente Nextcloud) e gravado (no armazenamento Nextcloud) 0 byte. Pode ser um problema de rede no lado de envio ou um problema de grava\u00e7\u00e3o no armazenamento no lado do servidor.”}}

Apache2