nextcloud / server

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

[Bug]: Download of some files are stuck #45754

Closed Kev-J closed 1 week ago

Kev-J commented 1 month ago

⚠️ This issue respects the following points: ⚠️

Bug description

Hi,

I've been facing a very strange bug: some files can be downloaded, others don't.

I've tried using the web interface, the Nextcloud Sync app on windows and even mounted a davfs drive on Debian. None of these methods could get me some specific files downloaded.

Thoses files are images, which are shown great in the web interface, but I can't save it on my computer using the "Download" drop down menu.

I have to add that only some files can't be downloaded. Others can.

compose.yml.txt mydomain.conf.txt ssl.conf.txt

Edit: Even some non shared files seems to be affected.

Steps to reproduce

  1. Put some image files in a Nextcloud folder shared with 6 people (me included) as a group

Using Firefox 126.0.1:

  1. Browse to the file using the web interface
  2. Hit "download" from the drop down menu

Using Nextcloud folder mounted by the Nextcloud Windows app OR using the davfs drive on Linux

  1. Browse to the file using the OS file browser
  2. Copy the file to a local folder

Expected behavior

All file can be downloaded in a local folder.

Installation method

Community Docker image

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

None

Web server

Nginx

Database engine version

MariaDB

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

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "upgrade.disable-web": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "[domain.com]"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.1.1",
        "overwrite.cli.url": "https:\/\/[domain.com]",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance_window_start": 3,
        "default_phone_region": "FR",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_smtpauth": 1,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465 ",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "loglevel": 2,
        "overwritewebroot": "\/"
    }
}

List of activated Apps

Enabled:
  - activity: 2.21.1
  - calendar: 4.7.6
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contacts: 6.0.0
  - contactsinteraction: 1.10.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - drawio: 3.0.2
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0
  - files_downloadlimit: 2.0.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - firstrunwizard: 2.18.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - nextcloud_announcements: 1.18.0
  - notes: 4.10.0
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - photos: 2.5.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - richdocuments: 8.4.2
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - spreed: 19.0.1
  - support: 1.12.0
  - survey_client: 1.17.0
  - systemtags: 1.19.0
  - text: 3.10.0
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0
  - encryption: 2.17.0
  - files_external: 1.21.0
  - mail: 3.6.1 (installed 3.6.1)
  - richdocumentscode: 24.4.201
  - suspicious_login: 7.0.0
  - twofactor_totp: 11.0.0-dev
  - user_ldap: 1.20.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

No response

Kev-J commented 1 month ago

And here is the log, it was too long for the form ... logs.txt

joshtrichards commented 1 month ago

Hi @Kev-J: Sorry to hear you're experiencing difficulties. I haven't been able to reproduce this behavior.

What does FF Inspect mode show under the Network tab while downloading?

On the surface, this sounds like a configuration / local environment matter (rather than a bug). I suggest posting your situation on the Community Help Forum (https://help.nextcloud.com) to get some eyes on it from that perspective as well.

There also could be some clues in your Nginx error log and FPM log.

Kev-J commented 1 month ago

Hi @joshtrichards ,

FF inspect gave me a NS_ERROR_NET_PARTIAL_TRANSFER.

Thanks a lot for your hint, I've created a topic in the Community Help Forum (waiting to be moderated).

nginx log's seems ok

86.235.104.210 - - [11/Jun/2024:17:36:40 +0200] "GET /apps/files/api/v1/stats HTTP/2.0" 200 172 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
86.235.104.210 - - [11/Jun/2024:17:36:42 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
86.235.104.210 - [NAME] [11/Jun/2024:17:36:42 +0200] "PROPFIND /remote.php/dav/files/[NAME]/ HTTP/1.1" 207 251 "-" "Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)" "-"
86.235.104.210 - - [11/Jun/2024:17:36:45 +0200] "GET /index.php/apps/files/preview-service-worker.js HTTP/2.0" 200 5337 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
86.235.104.210 - [NAME] [11/Jun/2024:17:37:12 +0200] "GET /ocs/v2.php/apps/user_status/api/v1/user_status?format=json HTTP/1.1" 200 155 "-" "Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)" "-"
86.235.104.210 - [NAME] [11/Jun/2024:17:37:12 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)" "-"
86.235.104.210 - [NAME] [11/Jun/2024:17:37:12 +0200] "PROPFIND /remote.php/dav/files/[NAME]/ HTTP/1.1" 207 251 "-" "Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)" "-"
86.235.104.210 - [NAME] [11/Jun/2024:17:37:42 +0200] "PROPFIND /remote.php/dav/files/[NAME]/ HTTP/1.1" 207 251 "-" "Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)" "-"
86.235.104.210 - - [11/Jun/2024:17:37:45 +0200] "GET /remote.php/dav/files/[NAME]/[PATH_TO_FILE]/DSC_0578.png HTTP/2.0" 200 7723959 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
86.235.104.210 - - [11/Jun/2024:17:37:45 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
86.235.104.210 - - [11/Jun/2024:17:37:45 +0200] "GET /apps/files/api/v1/stats HTTP/2.0" 200 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
86.235.104.210 - - [11/Jun/2024:17:37:45 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
86.235.104.210 - - [11/Jun/2024:17:38:01 +0200] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/2.0" 200 154 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"

As FPM's log

172.27.0.5 -  11/Jun/2024:17:51:33 +0200 "GET /index.php" 200
172.27.0.5 -  11/Jun/2024:17:51:40 +0200 "GET /ocs/v2.php" 304
172.27.0.5 - [NAME] 11/Jun/2024:17:51:42 +0200 "PROPFIND /remote.php" 207
172.27.0.5 -  11/Jun/2024:17:52:10 +0200 "GET /index.php" 200
172.27.0.5 -  11/Jun/2024:17:52:11 +0200 "GET /ocs/v2.php" 304
172.27.0.5 - [NAME] 11/Jun/2024:17:52:12 +0200 "GET /ocs/v2.php" 304
172.27.0.5 - [NAME] 11/Jun/2024:17:52:12 +0200 "GET /ocs/v2.php" 200
172.27.0.5 - [NAME] 11/Jun/2024:17:52:12 +0200 "PROPFIND /remote.php" 207
172.27.0.5 -  11/Jun/2024:17:51:32 +0200 "GET /remote.php" 200
172.27.0.5 - [NAME] 11/Jun/2024:17:52:42 +0200 "PROPFIND /remote.php" 207

Thanks again,

Kevin

nextcloud-command commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.