Nextcloud 25.0.3: can't download large (<5GB) TAR files on a mac, but same downloads work as ZIP on Windows

Nextcloud version (eg, 25.0.3): 25.0.3
Operating system and version (eg, Ubuntu 20.04): NK
Apache or nginx version (eg, Apache 2.4.25): NK
Mysql: 10.5
PHP version (eg, 7.4): 8.0
Memory limit: 1 GB

Max execution time: 10800

Upload max size: (WebDAV): 10 GB

Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, pdo_sqlite, session, posix, readline, Reflection, standard, SimpleXML, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, cgi-fcgi, apcu, bcmath, exif, gd, gmp, imagick, intl, ldap, memcached, mysqli, pcntl, pdo_mysql, pdo_pgsql, redis, smbclient, sodium, zip, libsmbclient, Zend OPcache

The issue you are facing:

Unable to ascertain if this is a problem with server configuration or a new bug: I have no access to a managed Nextcloud installation config or logs. I wondered if anyone can reproduce the following:

I now can’t download large (<5GB) TAR files on (any) mac browser after selecting multiple folders to download, but same downloads work fine as ZIP if downloading from a Windows machine.

I have multiple folders that added together are over 6GB. If I try downloading with a WINDOWS machine, the generated ZIP file downloads without issues. If I try downloading on a MAC browser, the TAR generated is truncated in size and finishes downloading after a few megabytes, and is obviously corrupted.

If I change my useragent to a windows machine on the same mac, then it will download correctly as a zip. So this seems to be an issue with server-generated tars.

Something has broken either in 25.0.3 or the server config. I can’t work it out and the cloud provider hasn’t been helpful. It would be great if anyone with access to large files on a 25.0.3 instance and a mac (or windows with a mac-browser useragent?) could reproduce this problem with TAR files.

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

Steps to replicate it:

  1. Select multiple folders that add up to something like 6gb or more on the browser on a MAC
  2. Click on download
  3. The subsequent tar file created starts downloading but is tiny and obviously corrupted

The output of your Nextcloud log in Admin > Logging:

No access to any logs or config