Cannot upload large files MacOS VFS

Nextcloud version (eg, 29.0.5): Nextcloud Hub 9 (30.0.0 RC5)
Operating system and version (eg, Ubuntu 24.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): Traefik as reverse proxy
PHP version (eg, 8.3): 8.3

The issue you are facing:

Syncing some larger files in MacOS with the Nextcloud VFS client fails and gives me an Exclamation mark in the cloud in the finder view,
when I hover over it says:
NSFileProviderErrorDomain Error -2005

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

Steps to replicate it:

  1. Start sync of large files
  2. wait
  3. The circle of uploading is filled (like it’s actually being upladed, and then it takes a few seconds and then the exclamation mark comes up.

The output of your Nextcloud log in Admin > Logging:

nothing happens here 

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

<?php
$CONFIG = array (
  'datadirectory' => '/data',
  'default_phone_region' => 'se',
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'dbtype' => 'mysql',
  'version' => '30.0.0.13',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'cloud.domain.com',
    2 => 'cloud.domain2.com',
  ),
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '::1',
    10 => '172.19.0.0/16',
  ),
  'overwritehost' => 'cloud.domain.com',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://cloud.domain.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'nextcloud-mariadb:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'nextcloud-redis',
    'password' => '',
    'port' => 6379,
  ),
  'upgrade.disable-web' => true,
  'app_install_overwrite' =>
  array (
    0 => 'breezedark',
  ),
  'enforce_theme' => '',
  'maintenance_window_start' => 1,
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'mailer-daemon',
  'mail_domain' => '.com',
  'mail_smtphost' => 'mail..com',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '465',
  'mail_smtpname' => 'mailer-daemon@.com',
  'mail_smtppassword' => '',
  'loglevel' => 3,
  'maintenance' => false,
  'allow_local_remote_servers' => true,
  'trashbin_retention_obligation' => 'auto, 30',
  'simpleSignUpLink.shown' => false,
);

The output of your Apache/nginx/system log in /var/log/error.log:

from nginx error log

2024/09/18 12:28:45 [error] 391#391: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.0.10.182, server: _, request: "PUT /remote.php/dav/files/user/sdfsdfsdf.iso HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.domain.com"

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.

no errors except missing whiteboard.svg

My php-local.ini

upload_max_filesize = 16G
post_max_size = 16G
output_buffering = 0
max_input_time = 3600
max_execution_time = 3500
memory_limit = 16G

What can I do?

1 Like
  • What happens when uploading the same file via the Web UI?
  • Are you using Cloudflare?

I can upload through the webui fine, no errors in the nginx error log.

No, not using cloudflare.

I can add that when I try to upload through the client (which seems to use webdav)

this shows in the access log:
10.0.10.182 - user [19/Sep/2024:06:45:08 +0000] “PUT /remote.php/dav/files/user/filename.iso HTTP/2.0” 502 150 “-” “Nextcloud-macOS/FileProviderExt”

Which I guess is a 502 bad gateway… how come?

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