Undefined error when upload large dimension file

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 smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

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: 28.0.2
Operating system and version: Ubuntu 23.10
Apache or nginx version: Apache 2.4.57
PHP version: 8.2.10

The issue you are facing: I’ve set 16G value for both upload_max_size and post_max_size variables in php.ini file; then I’ve created a new folder and share it through the url in order to allow some collegues to upload specific large files; I’ve uploaded a 350,5 MB file and everything work fine, but If I or a collegue try to upload a file larger than 1 GB a generic “Internal server error” is displayed and the upload doesn’t work

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

The output of your Nextcloud log in Admin > Logging:

{"reqId":"tbyT9Q4IQx5dmoJvztXZ","level":3,"time":"2024-02-09T13:08:57+00:00","remoteAddr":"192.168.1.1","user":"--","app":"no app in context","method":"PUT","url":"/public.php/webdav/Folder/File.zip","message":"Dimensione prevista del file 1960281965 byte, letto (dal client Nextcloud) e scritto (nell'archivio Nextcloud) 0 byte. Potrebbe trattarsi di un problema di rete sul lato d'invio o di un problema di scrittura nell'archivio sul lato server.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36","version":"28.0.2.5","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Dimensione prevista del file 1960281965 byte, letto (dal client Nextcloud) e scritto (nell'archivio Nextcloud) 0 byte. Potrebbe trattarsi di un problema di rete sul lato d'invio o di un problema di scrittura nell'archivio sul lato server.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":148,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php","line":124,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/public.php","line":81,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":301,"message":"Dimensione prevista del file 1960281965 byte, letto (dal client Nextcloud) e scritto (nell'archivio Nextcloud) 0 byte. Potrebbe trattarsi di un problema di rete sul lato d'invio o di un problema di scrittura nell'archivio sul lato server.","exception":{"xdebug_message":"<tr><th align='left' bgcolor='#f57900' colspan=\"5\"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Sabre\\DAV\\Exception\\BadRequest: Dimensione prevista del file 1960281965 byte, letto (dal client Nextcloud) e scritto (nell'archivio Nextcloud) 0 byte. Potrebbe trattarsi di un problema di rete sul lato d'invio o di un problema di scrittura nell'archivio sul lato server. in /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php on line <i>301</i></th></tr>\n<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>\n<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>\n<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0001</td><td bgcolor='#eeeeec' align='right'>358904</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='/var/www/html/nextcloud/public.php' bgcolor='#eeeeec'>.../public.php<b>:</b>0</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.2731</td><td bgcolor='#eeeeec' align='right'>4189784</td><td bgcolor='#eeeeec'>require_once( <font color='#00bb00'>'/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php</font> )</td><td title='/var/www/html/nextcloud/public.php' bgcolor='#eeeeec'>.../public.php<b>:</b>81</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.2806</td><td bgcolor='#eeeeec' align='right'>4236768</td><td bgcolor='#eeeeec'>Sabre\\DAV\\Server->exec(  )</td><td title='/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php' bgcolor='#eeeeec'>.../publicwebdav.php<b>:</b>124</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.2806</td><td bgcolor='#eeeeec' align='right'>4236768</td><td bgcolor='#eeeeec'>Sabre\\DAV\\Server->start(  )</td><td title='/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php' bgcolor='#eeeeec'>.../Server.php<b>:</b>321</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.2806</td><td bgcolor='#eeeeec' align='right'>4236768</td><td bgcolor='#eeeeec'>Sabre\\DAV\\Server->invokeMethod( <span>$request = </span><span>class Sabre\\HTTP\\Request { protected $body = resource(8) of type (Unknown); protected $headers = [&#39;authorization&#39; =&gt; [...], &#39;host&#39; =&gt; [...], &#39;connection&#39; =&gt; [...], &#39;content-length&#39; =&gt; [...], &#39;cache-control&#39; =&gt; [...], &#39;sec-ch-ua&#39; =&gt; [...], &#39;requesttoken&#39; =&gt; [...], &#39;x-oc-mtime&#39; =&gt; [...], &#39;sec-ch-ua-mobile&#39; =&gt; [...], &#39;ocs-apirequest&#39; =&gt; [...], &#39;content-type&#39; =&gt; [...], &#39;accept&#39; =&gt; [...], &#39;user-agent&#39; =&gt; [...], &#39;if-none-match&#39; =&gt; [...], &#39;x-requested-with&#39; =&gt; [...], &#39;content-disposition&#39; =&gt; [...], &#39;sec-ch-ua-platform&#39; =&gt; [...], &#39;origin&#39; =&gt; [...], &#39;sec-fetch-site&#39; =&gt; [...], &#39;sec-fetch-mode&#39; =&gt; [...], &#39;sec-fetch-dest&#39; =&gt; [...], &#39;accept-encoding&#39; =&gt; [...], &#39;accept-language&#39; =&gt; [...], &#39;cookie&#39; =&gt; [...]]; protected $httpVersion = &#39;1.1&#39;; protected $method = &#39;PUT&#39;; protected $url = &#39;/public.php/webdav/Folder/File.zip&#39;; protected $absoluteUrl = &#39;https://cloud.valecloud.tk/public.php/webdav/Folder/File.zip&#39;; protected $baseUrl = &#39;/public.php/webdav/&#39;; protected $postData = []; protected $rawServerData = [&#39;HTTP_AUTHORIZATION&#39; =&gt; &#39;Basic QjY1QkNvOXRLNlFSTDR4Og==&#39;, &#39;modHeadersAvailable&#39; =&gt; &#39;true&#39;, &#39;htaccessWorking&#39; =&gt; &#39;true&#39;, &#39;HTTPS&#39; =&gt; &#39;on&#39;, &#39;SSL_TLS_SNI&#39; =&gt; &#39;cloud.valecloud.tk&#39;, &#39;HTTP_HOST&#39; =&gt; &#39;cloud.valecloud.tk&#39;, &#39;HTTP_CONNECTION&#39; =&gt; &#39;keep-alive&#39;, &#39;CONTENT_LENGTH&#39; =&gt; &#39;1960281965&#39;, &#39;HTTP_CACHE_CONTROL&#39; =&gt; &#39;max-age=0&#39;, &#39;HTTP_SEC_CH_UA&#39; =&gt; &#39;&quot;Not A(Brand&quot;;v=&quot;99&quot;, &quot;Google Chrome&quot;;v=&quot;121&quot;, &quot;Chromium&quot;;v=&quot;121&quot;&#39;, &#39;HTTP_REQUESTTOKEN&#39; =&gt; &#39;u9fmR5sq6ZWlJQuSJWG7yrBO1dXE8nE5T6pnaK4ZuxI=:jaSfAfpNwt7Kbm/YVQbxo+ofjP7rgBhgfv4DKZ1LjSQ=&#39;, &#39;HTTP_X_OC_MTIME&#39; =&gt; &#39;1508278469&#39;, &#39;HTTP_SEC_CH_UA_MOBILE&#39; =&gt; &#39;?0&#39;, &#39;HTTP_OCS_APIREQUEST&#39; =&gt; &#39;true&#39;, &#39;CONTENT_TYPE&#39; =&gt; &#39;application/x-zip-compressed&#39;, &#39;HTTP_ACCEPT&#39; =&gt; &#39;*/*&#39;, &#39;HTTP_USER_AGENT&#39; =&gt; &#39;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36&#39;, &#39;HTTP_IF_NONE_MATCH&#39; =&gt; &#39;*&#39;, &#39;HTTP_X_REQUESTED_WITH&#39; =&gt; &#39;XMLHttpRequest, XMLHttpRequest&#39;, &#39;HTTP_CONTENT_DISPOSITION&#39; =&gt; &#39;attachment; filename=&quot;File.zip&quot;&#39;, &#39;HTTP_SEC_CH_UA_PLATFORM&#39; =&gt; &#39;&quot;Windows&quot;&#39;, &#39;HTTP_ORIGIN&#39; =&gt; &#39;https://cloud.valecloud.tk&#39;, &#39;HTTP_SEC_FETCH_SITE&#39; =&gt; &#39;same-origin&#39;, &#39;HTTP_SEC_FETCH_MODE&#39; =&gt; &#39;cors&#39;, &#39;HTTP_SEC_FETCH_DEST&#39; =&gt; &#39;empty&#39;, &#39;HTTP_ACCEPT_ENCODING&#39; =&gt; &#39;gzip, deflate, br&#39;, &#39;HTTP_ACCEPT_LANGUAGE&#39; =&gt; &#39;it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7&#39;, &#39;HTTP_COOKIE&#39; =&gt; &#39;__Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; oc_sessionPassphrase=xQKM99hRCinw7yYuwgvzTaiNQ6tZLVvciPnWOcSbz5Ue0NGKaiw8QlgXqA0h%2B4WGj1jNGvTDX3MWpKXlQBF2u6JTi5KKRNqGNWJ4Gd4%2BddQ%2Fw0mjV4FokNUfrcpadIcE; ocb6ef5p6zct=sks7pp5231epaqbohs33rg8sk1; nc_username=valerio; nc_token=ETFA2k8xUc6hdxGxs3Rw4joY4Ju20SOU; nc_session_id=sks7pp5231epaqbohs33rg8sk1&#39;, &#39;PATH&#39; =&gt; &#39;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin&#39;, &#39;SERVER_SIGNATURE&#39; =&gt; &#39;&lt;address&gt;Apache/2.4.57 (Ubuntu) Server at cloud.valecloud.tk Port 443&lt;/address&gt;\\n&#39;, &#39;SERVER_SOFTWARE&#39; =&gt; &#39;Apache/2.4.57 (Ubuntu)&#39;, &#39;SERVER_NAME&#39; =&gt; &#39;cloud.valecloud.tk&#39;, &#39;SERVER_ADDR&#39; =&gt; &#39;192.168.1.100&#39;, &#39;SERVER_PORT&#39; =&gt; &#39;443&#39;, &#39;REMOTE_ADDR&#39; =&gt; &#39;192.168.1.1&#39;, &#39;DOCUMENT_ROOT&#39; =&gt; &#39;/var/www/html/nextcloud&#39;, &#39;REQUEST_SCHEME&#39; =&gt; &#39;https&#39;, &#39;CONTEXT_PREFIX&#39; =&gt; &#39;&#39;, &#39;CONTEXT_DOCUMENT_ROOT&#39; =&gt; &#39;/var/www/html/nextcloud&#39;, &#39;SERVER_ADMIN&#39; =&gt; &#39;[no address given]&#39;, &#39;SCRIPT_FILENAME&#39; =&gt; &#39;/var/www/html/nextcloud/public.php&#39;, &#39;REMOTE_PORT&#39; =&gt; &#39;59460&#39;, &#39;GATEWAY_INTERFACE&#39; =&gt; &#39;CGI/1.1&#39;, &#39;SERVER_PROTOCOL&#39; =&gt; &#39;HTTP/1.1&#39;, &#39;REQUEST_METHOD&#39; =&gt; &#39;PUT&#39;, &#39;QUERY_STRING&#39; =&gt; &#39;&#39;, &#39;REQUEST_URI&#39; =&gt; &#39;/public.php/webdav/Folder/File.zip&#39;, &#39;SCRIPT_NAME&#39; =&gt; &#39;/public.php&#39;, &#39;PATH_INFO&#39; =&gt; &#39;/webdav/Folder/File.zip&#39;, &#39;PATH_TRANSLATED&#39; =&gt; &#39;/var/www/html/nextcloud/webdav/Folder/File.zip&#39;, &#39;PHP_SELF&#39; =&gt; &#39;/public.php/webdav/Folder/File.zip&#39;, &#39;PHP_AUTH_USER&#39; =&gt; &#39;B65BCo9tK6QRL4x&#39;, &#39;PHP_AUTH_PW&#39; =&gt; &#39;&#39;, &#39;REQUEST_TIME_FLOAT&#39; =&gt; 1707484136.8256, &#39;REQUEST_TIME&#39; =&gt; 1707484136] }</span>, <span>$response = </span><span>class Sabre\\HTTP\\Response { protected $body = NULL; protected $headers = []; protected $httpVersion = &#39;1.1&#39;; protected $status = 500; protected $statusText = &#39;Internal Server Error&#39; }</span>, <span>$sendResponse = </span>??? )</td><td title='/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php' bgcolor='#eeeeec'>.../Server.php<b>:</b>253</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>0.5068</td><td bgcolor='#eeeeec' align='right'>4647664</td><td bgcolor='#eeeeec'>Sabre\\DAV\\Server->emit( <span>$eventName = </span><span>&#39;method:PUT&#39;</span>, <span>$arguments = </span><span>[0 =&gt; class Sabre\\HTTP\\Request { protected $body = resource(8) of type (Unknown); protected $headers = [...]; protected $httpVersion = &#39;1.1&#39;; protected $method = &#39;PUT&#39;; protected $url = &#39;/public.php/webdav/Folder/File.zip&#39;; protected $absoluteUrl = &#39;https://cloud.valecloud.tk/public.php/webdav/Folder/File.zip&#39;; protected $baseUrl = &#39;/public.php/webdav/&#39;; protected $postData = [...]; protected $rawServerData = [...] }, 1 =&gt; class Sabre\\HTTP\\Response { protected $body = NULL; protected $headers = [...]; protected $httpVersion = &#39;1.1&#39;; protected $status = 500; protected $statusText = &#39;Internal Server Error&#39; }]</span>, <span>$continueCallBack = </span>??? )</td><td title='/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php' bgcolor='#eeeeec'>.../Server.php<b>:</b>472</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>7</td><td bgcolor='#eeeeec' align='center'>0.5068</td><td bgcolor='#eeeeec' align='right'>4647880</td><td bgcolor='#eeeeec'>Sabre\\DAV\\CorePlugin->httpPut( <span>$request = </span><span>class Sabre\\HTTP\\Request { protected $body = resource(8) of type (Unknown); protected $headers = [&#39;authorization&#39; =&gt; [...], &#39;host&#39; =&gt; [...], &#39;connection&#39; =&gt; [...], &#39;content-length&#39; =&gt; [...], &#39;cache-control&#39; =&gt; [...], &#39;sec-ch-ua&#39; =&gt; [...], &#39;requesttoken&#39; =&gt; [...], &#39;x-oc-mtime&#39; =&gt; [...], &#39;sec-ch-ua-mobile&#39; =&gt; [...], &#39;ocs-apirequest&#39; =&gt; [...], &#39;content-type&#39; =&gt; [...], &#39;accept&#39; =&gt; [...], &#39;user-agent&#39; =&gt; [...], &#39;if-none-match&#39; =&gt; [...], &#39;x-requested-with&#39; =&gt; [...], &#39;content-disposition&#39; =&gt; [...], &#39;sec-ch-ua-platform&#39; =&gt; [...], &#39;origin&#39; =&gt; [...], &#39;sec-fetch-site&#39; =&gt; [...], &#39;sec-fetch-mode&#39; =&gt; [...], &#39;sec-fetch-dest&#39; =&gt; [...], &#39;accept-encoding&#39; =&gt; [...], &#39;accept-language&#39; =&gt; [...], &#39;cookie&#39; =&gt; [...]]; protected $httpVersion = &#39;1.1&#39;; protected $method = &#39;PUT&#39;; protected $url = &#39;/public.php/webdav/Folder/File.zip&#39;; protected $absoluteUrl = &#39;https://cloud.valecloud.tk/public.php/webdav/Folder/File.zip&#39;; protected $baseUrl = &#39;/public.php/webdav/&#39;; protected $postData = []; protected $rawServerData = [&#39;HTTP_AUTHORIZATION&#39; =&gt; &#39;Basic QjY1QkNvOXRLNlFSTDR4Og==&#39;, &#39;modHeadersAvailable&#39; =&gt; &#39;true&#39;, &#39;htaccessWorking&#39; =&gt; &#39;true&#39;, &#39;HTTPS&#39; =&gt; &#39;on&#39;, &#39;SSL_TLS_SNI&#39; =&gt; &#39;cloud.valecloud.tk&#39;, &#39;HTTP_HOST&#39; =&gt; &#39;cloud.valecloud.tk&#39;, &#39;HTTP_CONNECTION&#39; =&gt; &#39;keep-alive&#39;, &#39;CONTENT_LENGTH&#39; =&gt; &#39;1960281965&#39;, &#39;HTTP_CACHE_CONTROL&#39; =&gt; &#39;max-age=0&#39;, &#39;HTTP_SEC_CH_UA&#39; =&gt; &#39;&quot;Not A(Brand&quot;;v=&quot;99&quot;, &quot;Google Chrome&quot;;v=&quot;121&quot;, &quot;Chromium&quot;;v=&quot;121&quot;&#39;, &#39;HTTP_REQUESTTOKEN&#39; =&gt; &#39;u9fmR5sq6ZWlJQuSJWG7yrBO1dXE8nE5T6pnaK4ZuxI=:jaSfAfpNwt7Kbm/YVQbxo+ofjP7rgBhgfv4DKZ1LjSQ=&#39;, &#39;HTTP_X_OC_MTIME&#39; =&gt; &#39;1508278469&#39;, &#39;HTTP_SEC_CH_UA_MOBILE&#39; =&gt; &#39;?0&#39;, &#39;HTTP_OCS_APIREQUEST&#39; =&gt; &#39;true&#39;, &#39;CONTENT_TYPE&#39; =&gt; &#39;application/x-zip-compressed&#39;, &#39;HTTP_ACCEPT&#39; =&gt; &#39;*/*&#39;, &#39;HTTP_USER_AGENT&#39; =&gt; &#39;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36&#39;, &#39;HTTP_IF_NONE_MATCH&#39; =&gt; &#39;*&#39;, &#39;HTTP_X_REQUESTED_WITH&#39; =&gt; &#39;XMLHttpRequest, XMLHttpRequest&#39;, &#39;HTTP_CONTENT_DISPOSITION&#39; =&gt; &#39;attachment; filename=&quot;File.zip&quot;&#39;, &#39;HTTP_SEC_CH_UA_PLATFORM&#39; =&gt; &#39;&quot;Windows&quot;&#39;, &#39;HTTP_ORIGIN&#39; =&gt; &#39;https://cloud.valecloud.tk&#39;, &#39;HTTP_SEC_FETCH_SITE&#39; =&gt; &#39;same-origin&#39;, &#39;HTTP_SEC_FETCH_MODE&#39; =&gt; &#39;cors&#39;, &#39;HTTP_SEC_FETCH_DEST&#39; =&gt; &#39;empty&#39;, &#39;HTTP_ACCEPT_ENCODING&#39; =&gt; &#39;gzip, deflate, br&#39;, &#39;HTTP_ACCEPT_LANGUAGE&#39; =&gt; &#39;it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7&#39;, &#39;HTTP_COOKIE&#39; =&gt; &#39;__Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; oc_sessionPassphrase=xQKM99hRCinw7yYuwgvzTaiNQ6tZLVvciPnWOcSbz5Ue0NGKaiw8QlgXqA0h%2B4WGj1jNGvTDX3MWpKXlQBF2u6JTi5KKRNqGNWJ4Gd4%2BddQ%2Fw0mjV4FokNUfrcpadIcE; ocb6ef5p6zct=sks7pp5231epaqbohs33rg8sk1; nc_username=valerio; nc_token=ETFA2k8xUc6hdxGxs3Rw4joY4Ju20SOU; nc_session_id=sks7pp5231epaqbohs33rg8sk1&#39;, &#39;PATH&#39; =&gt; &#39;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin&#39;, &#39;SERVER_SIGNATURE&#39; =&gt; &#39;&lt;address&gt;Apache/2.4.57 (Ubuntu) Server at cloud.valecloud.tk Port 443&lt;/address&gt;\\n&#39;, &#39;SERVER_SOFTWARE&#39; =&gt; &#39;Apache/2.4.57 (Ubuntu)&#39;, &#39;SERVER_NAME&#39; =&gt; &#39;cloud.valecloud.tk&#39;, &#39;SERVER_ADDR&#39; =&gt; &#39;192.168.1.100&#39;, &#39;SERVER_PORT&#39; =&gt; &#39;443&#39;, &#39;REMOTE_ADDR&#39; =&gt; &#39;192.168.1.1&#39;, &#39;DOCUMENT_ROOT&#39; =&gt; &#39;/var/www/html/nextcloud&#39;, &#39;REQUEST_SCHEME&#39; =&gt; &#39;https&#39;, &#39;CONTEXT_PREFIX&#39; =&gt; &#39;&#39;, &#39;CONTEXT_DOCUMENT_ROOT&#39; =&gt; &#39;/var/www/html/nextcloud&#39;, &#39;SERVER_ADMIN&#39; =&gt; &#39;[no address given]&#39;, &#39;SCRIPT_FILENAME&#39; =&gt; &#39;/var/www/html/nextcloud/public.php&#39;, &#39;REMOTE_PORT&#39; =&gt; &#39;59460&#39;, &#39;GATEWAY_INTERFACE&#39; =&gt; &#39;CGI/1.1&#39;, &#39;SERVER_PROTOCOL&#39; =&gt; &#39;HTTP/1.1&#39;, &#39;REQUEST_METHOD&#39; =&gt; &#39;PUT&#39;, &#39;QUERY_STRING&#39; =&gt; &#39;&#39;, &#39;REQUEST_URI&#39; =&gt; &#39;/public.php/webdav/Folder/File.zip&#39;, &#39;SCRIPT_NAME&#39; =&gt; &#39;/public.php&#39;, &#39;PATH_INFO&#39; =&gt; &#39;/webdav/Folder/File.zip&#39;, &#39;PATH_TRANSLATED&#39; =&gt; &#39;/var/www/html/nextcloud/webdav/Folder/File.zip&#39;, &#39;PHP_SELF&#39; =&gt; &#39;/public.php/webdav/Folder/File.zip&#39;, &#39;PHP_AUTH_USER&#39; =&gt; &#39;B65BCo9tK6QRL4x&#39;, &#39;PHP_AUTH_PW&#39; =&gt; &#39;&#39;, &#39;REQUEST_TIME_FLOAT&#39; =&gt; 1707484136.8256, &#39;REQUEST_TIME&#39; =&gt; 1707484136] }</span>, <span>$response = </span><span>class Sabre\\HTTP\\Response { protected $body = NULL; protected $headers = []; protected $httpVersion = &#39;1.1&#39;; protected $status = 500; protected $statusText = &#39;Internal Server Error&#39; }</span> )</td><td title='/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php' bgcolor='#eeeeec'>.../WildcardEmitterTrait.php<b>:</b>89</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>8</td><td bgcolor='#eeeeec' align='center'>0.5121</td><td bgcolor='#eeeeec' align='right'>4651992</td><td bgcolor='#eeeeec'>Sabre\\DAV\\Server->createFile( <span>$uri = </span><span>&#39;Folder/File.zip&#39;</span>, <span>$data = </span><span>resource(8) of type (Unknown)</span>, <span>$etag = </span><span>NULL</span> )</td><td title='/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php' bgcolor='#eeeeec'>.../CorePlugin.php<b>:</b>504</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>9</td><td bgcolor='#eeeeec' align='center'>0.5152</td><td bgcolor='#eeeeec' align='right'>4666144</td><td bgcolor='#eeeeec'>OCA\\DAV\\Connector\\Sabre\\Directory->createFile( <span>$name = </span><span>&#39;File.zip&#39;</span>, <span>$data = </span><span>resource(8) of type (Unknown)</span> )</td><td title='/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php' bgcolor='#eeeeec'>.../Server.php<b>:</b>1098</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>10</td><td bgcolor='#eeeeec' align='center'>0.5276</td><td bgcolor='#eeeeec' align='right'>4677568</td><td bgcolor='#eeeeec'>OCA\\DAV\\Connector\\Sabre\\File->put( <span>$data = </span><span>resource(8) of type (Unknown)</span> )</td><td title='/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php' bgcolor='#eeeeec'>.../Directory.php<b>:</b>148</td></tr>\n"},"CustomMessage":"Dimensione prevista del file 1960281965 byte, letto (dal client Nextcloud) e scritto (nell'archivio Nextcloud) 0 byte. Potrebbe trattarsi di un problema di rete sul lato d'invio o di un problema di scrittura nell'archivio sul lato server."}}

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

<?php
$CONFIG = array (
  'instanceid' => 'XXX',
  'skeletondirectory' => '',
  'default_language' => 'it',
  'default_locate' => 'it',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' => 
  array (
    0 => 'cloud.valecloud.tk',
  ),
  'datadirectory' => '/var/www/html/nextcloud-data',
  'dbtype' => 'mysql',
  'version' => '27.1.6.2',
  'overwrite.cli.url' => 'https://cloud.valecloud.tk',
  'dbname' => 'XXX',
  'dbhost' => 'XXX',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXX',
  'dbpassword' => 'XXX',
  'installed' => true,
  'mail_smtpmode' => 'XXX',
  'mail_smtpsecure' => 'XXX',
  'mail_sendmailmode' => 'XXX',
  'mail_from_address' => 'XXX',
  'mail_domain' => 'XXX',
  'mail_smtphost' => 'XXX',
  'mail_smtpport' => 'XXX',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'XXX',
  'mail_smtppassword' => 'XXX',
  'default_phone_region' => 'IT',
  'app_install_overwrite' => 
  array (
    0 => 'apporder',
    1 => 'documentserver_community',
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);
?>

Please help me!!!

Adjust your Apache LimitRequestBody[1] as described in the documentation. Apache defaults to 1 GiB these days.

[1] Uploading big files > 512MB — Nextcloud latest Administration Manual latest documentation

1 Like

Wonderful… it works!!! :slight_smile:

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.