Nextcloud version: 30.0.1 Nextcloud Hub 9
Operating system and version : 24.04.1 LTS (Noble Numbat)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.58 (Ubuntu)
PHP version (eg, 8.3): PHP 8.3.6 (cli)
The issue you are facing:
I am very sorry to put again this type of error on the table, but i spent many weeks trying to solve my issue… looking for all threads on different forums, but i am completely lost and need some help…
My issue is related to (i think) large files upload but not sure. Setup is:
- NC30 (or 29 before), installed on a LAMP VM running on proxmox.
- Database is on a separate host on proxmox and communication is OK.
- Redis is well configured, Memcache, etc.
- NC is behind a TraefikV3 reverse proxy (on a separate host also on proxmox): secureHeaders are configured (do not know if redirection for cal|carddav is really working though
):
http:
middlewares:
nextcloud-middlewares-secure-headers:
headers:
accessControlMaxAge: 100
sslRedirect: true
stsSeconds: 15552000
stsIncludeSubdomains: true
stsPreload: true
forceSTSHeader: true
customFrameOptionsValue: "SAMEORIGIN"
contentTypeNosniff: true
browserXssFilter: true
referrerPolicy: "no-referrer"
featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';"
customResponseHeaders:
X-Robots-Tag: "noindex,nofollow"
server: ""
nextcloud-redirect:
redirectRegex:
permanent: true
regex: "^/.well-known/(cal|card)dav"
replacement: "/remote.php/dav/"
- PHP/Apache2 are configured with all recommended settings (no memory_limit, upload_max_filesize etc. increased).
THE ISSUE : users cannot transfer large files, or > 100MB files, and have an error either via webinterface or via the app desktop or android/iOS app.
See logs example after.
Is this the first time you’ve seen this error?
No (in my mind, error was here since v29, but i did not have time to resolve it).
Steps to replicate it:
- Install nextcloud (zip) on a LAMP ubuntu 24.04 server (no docker…)
- Configure mysql database (located on a separate host)
- Configure /data folder, using NFS mount, which is located also on a separate host (nas)
The output of your Nextcloud log in Admin > Logging:
For example with tests on upload a file:
Expected filesize of X bytes but read (from Nextcloud client) and wrote (to Nextcloud storage).
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php
Ligne 110
OCA\DAV\Connector\Sabre\File->put()
/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php
Ligne 34
OCA\DAV\Connector\Sabre\Directory->createFile(
"*** sensitive parameters replaced ***"
)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php
Ligne 1098
OCA\DAV\Upload\UploadFolder->createFile(
"*** sensitive parameters replaced ***"
)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php
Ligne 504
Sabre\DAV\Server->createFile(
"*** sensitive parameters replaced ***"
)
/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php
Ligne 89
Sabre\DAV\CorePlugin->httpPut()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php
Ligne 472
Sabre\DAV\Server->emit()
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php
Ligne 43
Sabre\DAV\Server->invokeMethod()
/var/www/nextcloud/apps/dav/lib/Server.php
Ligne 370
OCA\DAV\Connector\Sabre\Server->start()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php
Ligne 19
OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php
Ligne 146
undefinedundefinedrequire_once(
"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"
)
I tried of course increasing chunk_size on my desktop app, still not OK !
And i do not see myself asking full beginner to modify their client configuration.
Another thing that could be helpful is that on the overall view of Paramaters, i still get this warning message :
Certain headers of your instance are not configured correctly. - The HTTP header Strict-Transport-Security is not defined (should be at least 15552000 seconds). For enhanced security, it is recommended to enable HSTS.
→ Whereas it is configured correctly, and headers seem correct (see in Browser Network tab)!
The output of your config.php file in /var/www/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => REDACTED,
'secret' => REDACTED,
'trusted_domains' =>
array (
0 => 'localhost',
1 => REDACTED,
),
'datadirectory' => '/mnt/data',
'dbtype' => 'mysql',
'version' => '30.0.1.2',
'overwrite.cli.url' => REDACTED,
'dbname' => REDACTED,
'dbhost' => REDACTED,
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => REDACTED,
'dbpassword' => REDACTED,
'installed' => true,
'instanceid' => 'ochej6gnkzeo',
'htaccess.RewriteBase' => '/',
'default_phone_region' => REDACTED,
'updater.release.channel' => 'stable',
'debug' => false,
'overwriteprotocol' => 'https',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'timeout' => 1.5,
),
'appstoreenabled' => true,
'appsallowlist' => false,
'appcodechecker' => true,
'logfile' => '/var/log/nextcloud/nextcloud.log',
'logtimezone' => REDACTED,
'log_rotate_size' => 104857600,
'enable_previews' => true,
'preview_concurrency_new' => 4,
'preview_concurrency_all' => 8,
'preview_max_memory' => 1024,
'preview_max_x' => 1024,
'preview_max_y' => 768,
'preview_max_scale_factor' => 1,
'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\\Movie',
6 => 'OC\\Preview\\PDF',
7 => 'OC\\Preview\\MP3',
8 => 'OC\\Preview\\TXT',
9 => 'OC\\Preview\\MarkDown',
),
'activity_expire_days' => 14,
'auth.bruteforce.protection.enabled' => true,
'forbidden_filenames' =>
array (
0 => '.htaccess',
1 => 'Thumbs.db',
2 => 'thumbs.db',
3 => 'desktop.ini',
),
'cron_log' => true,
'filesystem_check_changes' => 0,
'filelocking.enabled' => 'true',
'integrity.check.disabled' => false,
'knowledgebaseenabled' => false,
'quota_include_external_storage' => true,
'skeletondirectory' => '',
'trashbin_retention_obligation' => 'auto, 14',
'maintenance_window_start' => 1,
'trusted_proxies' =>
array (
0 => REDACTED,
),
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => REDACTED,
'mail_domain' => REDACTED,
'mail_smtpport' => REDACTED,
'mail_smtphost' => REDACTED,
'mail_smtpstreamoptions' =>
array (
'ssl' =>
array (
'allow_self_signed' => true,
'verify_peer' => false,
'verify_peer_name' => false,
),
),
'app_install_overwrite' =>
array (
0 => 'workspace',
1 => 'groupfolders',
2 => 'files_mindmap',
3 => 'news',
4 => 'externalportal',
),
'defaultapp' => '',
'maintenance' => false,
'mail_smtptimeout' => 30,
'mail_smtpdebug' => false,
'theme' => '',
'loglevel' => 2,
'default_language' => REDACTED,
'force_language' => REDACTED,
'default_locale' => REDACTED,
'check_for_working_htaccess' => true,
'mail_smtpauth' => 1,
'mail_smtpname' => REDACTED,
'mail_smtppassword' => REDACTED,
'session_lifetime' => '60 * 60 * 24',
'tempdirectory' => '/var/www/nextcloud/data/tmp',
);
The output of your Apache/nginx/system log in /var/log/____
:
If really needed, i can provide!
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
can provide but not publicly!
Can somebody help please?