nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.22k stars 4.05k forks source link

[Bug]: Chunk upload not working since update from 26 to 28.0.5 #45243

Closed 0verEngineer closed 5 months ago

0verEngineer commented 5 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

Since i updated my Nextcloud (docker community image behind Traefik 2 reverse proxy) the upload in the webUI and the client does not work anymore. A Friend of mine has the same problem and he the default zip downloaded package with nginx on Ubuntu

Errors in the nextcloud admin interface look like this:

Here are screenshots from the errors in the browser: web_errors web_network_log

Steps to reproduce

  1. Use 28.0.5
  2. Upload a File (I used a 2.9 gb file)

Expected behavior

Upload should work

Installation method

Community Docker image

Nextcloud Server version

28

Operating system

RHEL/CentOS

PHP engine version

PHP 8.2

Web server

None

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

Configuration report

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.domain.com"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "forwarded_for_headers": "X-Real-Ip",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "28.0.5.1",
        "overwrite.cli.url": "http:\/\/cloud.domain.com",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_phone_region": "DE",
        "loglevel": 0,
        "maintenance": false,
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "app_install_overwrite": [
            "tasks",
            "caniupdate"
        ],
        "theme": "",
        "maintenance_window_start": 2
    }
}

List of activated Apps

Enabled:
  - activity: 2.20.0
  - admin_audit: 1.18.0
  - bruteforcesettings: 2.8.0
  - calendar: 4.7.2
  - checksum: 1.2.4
  - circles: 28.0.0
  - cloud_federation_api: 1.11.0
  - comments: 1.18.0
  - contacts: 5.5.3
  - contactsinteraction: 1.9.0
  - cospend: 1.6.1
  - dashboard: 7.8.0
  - dav: 1.29.1
  - deck: 1.12.2
  - encryption: 2.16.0
  - federatedfilesharing: 1.18.0
  - federation: 1.18.0
  - files: 2.0.0
  - files_external: 1.20.0
  - files_pdfviewer: 2.9.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
  - photos: 2.4.0
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - quota_warning: 1.19.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
  - suspicious_login: 6.0.0
  - systemtags: 1.18.0
  - tasks: 0.15.0
  - text: 3.9.1
  - theming: 2.3.0
  - twofactor_backupcodes: 1.17.0
  - twofactor_totp: 10.0.0-beta.2
  - updatenotification: 1.18.0
  - user_status: 1.8.1
  - viewer: 2.2.0
  - weather_status: 1.8.0
  - workflowengine: 2.10.0
Disabled:
  - files_antivirus: 5.5.0 (installed 5.5.0)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - metadata: 0.19.0 (installed 0.19.0)
  - user_ldap: 1.19.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

No response

skjnldsv commented 5 months ago

502 response code means your webserver timed out, this looks like a setup issue :thinking:

skjnldsv commented 5 months ago

Traefik also had an issue and is fixed since https://github.com/nextcloud/server/issues/44113#issuecomment-2105920727

0verEngineer commented 5 months ago

As i said in my issue, a friend of mine who uses a relatively standard way of hosting Nextcloud with nginx has the same issue and it only happens since i updated

skjnldsv commented 5 months ago

@0verEngineer I understand, thanks for replying! Can you confirm your friend experience the same errors? While the issue might look the same, it might be from different causes :)

0verEngineer commented 5 months ago

@skjnldsv I am sorry, you are correct it is indeed a different issue, this is a screenshot from the error that happens on the instance of my friend: nextcloud_manu_problem

I will check out the traefik stuff when i have some time. Thank you

0verEngineer commented 5 months ago

Traefik downgrade to 10.0.7 did fix the issue.

skjnldsv commented 5 months ago

Thank you for taking the time to check 😊

bugsyb commented 2 months ago

Might be related to maybe readTimeout on Traefik, though it would be more likely in case of migration to v3. I've run into this and setting appropriately (or disabling) readTimeout sorted issue. See this https://github.com/nextcloud/server/issues/37695#issuecomment-2259203772 for example entry for Traefik to fix it, if this is indeed timeout issue - check your logs.