Problem when try upload more then 512MB or 1GB

Hello all

we have version nextcloud 28.0.7 then no is possible upload nothing file more of 200MB. Trying modify the file php.ini and user.ini but not change. Can every one know how to do in this case because i don’t know that do.

other point like information of PHP version is;

Versão: 8.2.20
Limite de memória: 2 GB
Tempo máximo de execução: 3600
Tamanho máximo para envio: 24,4 GB
Frequência de revalidação do OPcache: 60

thank

Webserver like Apache and Nginx also have Limits for e.g. Post Requests.

What does your web server and PHP log say?

1 Like

hello Mr mritzmann Afertnoon

the file “php.ini” it’s like this like below. exacly it.

; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; PHP: Description of core php.ini directives - Manual
post_max_size = 25000M

; Maximum allowed size for uploaded files.
; https://php.net/upload-max-filesize
upload_max_filesize = 25000M

; max_input_time
; Default Value: -1 (Unlimited)
; Development Value:360 (60 seconds)
; Production Value: 360 (60 seconds)

; Maximum execution time of each script, in seconds
; PHP: Runtime Configuration - Manual
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 30

when we have error message return this message like below.

“erro 413 server replied request entity too large”

Regards,
Christian Reis

Uploading how? Via the Web UI? From one of the official clients? Or via a third-party WebDAV client?

All the official clients (this includes the Web UI) use chunking by default so file size shouldn’t even matter for the most part.

Also, before we all spend time on this: are you using a free level of (or any) Cloudflare by chance?

@jtr

yes. i have the free level at clouflare for make conection with my server nextcloud. it change anything on upload?

Hello Jtr

So,

both on oficial app or web when i try upload anyone file more 512 or 1gb returns erros. displayed Don’t completed upload.

i can show inside our the file php per comlete for more explanation. how i can do?

@jtr
this message error when try upload file.

Erro webdav
Exception Failed to get fileinfo for /web-file-upload-36fa6c67e3848ee6/40
17 de set. de 2024, 17:35:27
Erro webdav
Exception Failed to get fileinfo for /web-file-upload-36fa6c67e3848ee6/39
17 de set. de 2024, 17:35:26
Erro webdav
Exception Failed to get fileinfo for /web-file-upload-36fa6c67e3848ee6/41
17 de set. de 2024, 17:35:26

Yes. It limits your maximum chunk size to <100MB. For the web client, currently that should be fine (it defaults to well under that). So that’s not the cause of your problems there.

For the desktop client, it uses a more aggressive maximum chunk size by default so you’ll need to either disable Cloudflare or - currently - manually adjust your maxChunkSize: Advanced Usage — Nextcloud Client Manual 3.14.0 documentation

This is a different error than I was expecting. :slight_smile:

Please post the entire raw log entry / stack trace (use the three dots menu or directly from your nextcloud.log).

Also, please post the details of your installation, since it appears you did not do so in your original post:

  • config: occ config:list system output
  • installation method

all right thank you so much @jtr by help me with this orientations about the " maxChunkSize" saw documentation yestrday then in my next free day i do the necessary changes on my server.

thank for every one.

ok

i will do. thanks

@jtr

this log Will can help you to understend how my server that?

Skip to main content
2024-09-17.md

Server configuration detail

Operating system: Linux 6.8.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-1 (2024-08-05T16:17Z) x86_64

Webserver: Apache (apache2handler)

Database: mysql 10.11.6

PHP version: 8.2.20

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 28.0.7 - 28.0.7.4

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

List of activated apps
Enabled:
 - bruteforcesettings: 2.8.0
 - circles: 28.0.0
 - cloud_federation_api: 1.11.0
 - comments: 1.18.0
 - dashboard: 7.8.0
 - dav: 1.29.2
 - federatedfilesharing: 1.18.0
 - federation: 1.18.0
 - files: 2.0.0
 - files_reminders: 1.1.0
 - files_sharing: 1.20.0
 - files_trashbin: 1.18.0
 - files_versions: 1.21.0
 - firstrunwizard: 2.17.0
 - logreader: 2.13.0
 - lookup_server_connector: 1.16.0
 - nextcloud_announcements: 1.17.0
 - notifications: 2.16.0
 - oauth2: 1.16.3
 - password_policy: 1.18.0
 - privacy: 1.12.0
 - provisioning_api: 1.18.0
 - recommendations: 2.0.0
 - related_resources: 1.3.0
 - serverinfo: 1.18.0
 - settings: 1.10.1
 - sharebymail: 1.18.0
 - support: 1.11.1
 - survey_client: 1.16.0
 - systemtags: 1.18.0
 - theming: 2.3.0
 - twofactor_backupcodes: 1.17.0
 - updatenotification: 1.18.0
 - user_status: 1.8.1
 - viewer: 2.2.0
 - workflowengine: 2.10.0
Disabled:
 - activity: 2.20.0
 - admin_audit
 - contactsinteraction: 1.9.0
 - encryption: 2.16.0
 - files_external
 - files_pdfviewer: 2.9.0
 - photos: 2.4.0
 - suspicious_login
 - text: 3.9.1
 - twofactor_totp
 - user_ldap
 - weather_status: 1.7.0

Configuration (config/config.php)
{
    "forwarded_for_headers": [
        "HTTP_X_FORWARDED_FOR"
    ],
    "auth.bruteforce.protection.enabled": true,
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "localhost",
        "nextcloud.atitecnica.com.br",
        "172.29.30.39",
        "172.29.30.38",
        "172.29.30.29"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "28.0.7.4",
    "overwrite.cli.url": "http:\/\/localhost",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0
    },
    "filelocking.enabled": true,
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "log_type": "file",
    "logfile": "\/var\/www\/nextcloud-data\/nextcloud.log",
    "loglevel": 3,
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "ssl",
    "mail_sendmailmode": "smtp",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "default_phone_region": "BR",
    "maintenance_window_start": 1,
    "theme": "",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "app.mail.verify-tls-peer": true,
    "enable_integrity_check": false,
    "updater.release.channel": "stable"
}

Cron Configuration: Array
(
[backgroundjobs_mode] => cron
[lastcron] => 1726606802
)

External storages: files_external is disabled

Encryption: no

User-backends:

  • OC\User\Database

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0

(…)
2024-09-17.md (4 KB)
Download

hello everyone

i remake instalation of the nextcloud them that all right now. " Nextcloud Hub 8 (29.0.7)"

i saw that when maked update version return problm with two apps installed then incomapatible apps in my case that it toke wrong. But now all working right.

thank for all

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