Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Moving/copying bigger files between external storage fails #32300

Closed
5 of 8 tasks
Oroo9CeL opened this issue May 7, 2022 · 1 comment
Closed
5 of 8 tasks

[Bug]: Moving/copying bigger files between external storage fails #32300

Oroo9CeL opened this issue May 7, 2022 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@Oroo9CeL
Copy link

Oroo9CeL commented May 7, 2022

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

When I move or copy a file from one SMB mount(external storage) to another SMB mount(external storage), only 507912 KB of this file is moved. The process then hangs and does not finish.
Both SMB mounts are on the same samba fileserver (Ubuntu 18.04.6 LTS). It is not a timeout because these 507912 KB are moved/copied quickly. But just not the complete, larger file.

Files smaller than 507912 KB are moved completely without errors.

Steps to reproduce

  1. Upload a file, e.g. a CD ISO image with 700 MB to an SMB external storage.
  2. Move or copy this file to another SMB external storage. The process does not end. The file is not available in the destination directory.
  3. Check the file in the destination directory on the fileserver. The file in the destination directory has only a size of 507912 KB instead of 718856 KB

Expected behavior

The whole file should be moved or copied.

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 7.4

Web server

Apache (supported)

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?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

# sudo -u www-data php occ config:list system
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "24.0.0.12",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "default_phone_region": "DE",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "skeletondirectory": "",
        "ldapUserCleanupInterval": 30,
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false
    }
}

List of activated Apps

Enabled:
  - accessibility: 1.10.0
  - activity: 2.16.0
  - bruteforcesettings: 2.4.0
  - calendar: 3.3.0
  - circles: 24.0.0
  - cloud_federation_api: 1.7.0
  - comments: 1.14.0
  - contactsinteraction: 1.5.0
  - dav: 1.22.0
  - deck: 1.7.0
  - federatedfilesharing: 1.14.0
  - federation: 1.14.0
  - files: 1.19.0
  - files_external: 1.16.1
  - files_pdfviewer: 2.5.0
  - files_rightclick: 1.3.0
  - files_sharing: 1.16.2
  - files_versions: 1.17.0
  - files_videoplayer: 1.13.0
  - firstrunwizard: 2.13.0
  - forms: 2.5.0
  - logreader: 2.9.0
  - lookup_server_connector: 1.12.0
  - nextcloud_announcements: 1.13.0
  - notifications: 2.12.0
  - oauth2: 1.12.0
  - password_policy: 1.14.0
  - photos: 1.6.0
  - polls: 3.6.1
  - privacy: 1.8.0
  - provisioning_api: 1.14.0
  - recommendations: 1.3.0
  - serverinfo: 1.14.0
  - settings: 1.6.0
  - sharebymail: 1.14.0
  - spreed: 14.0.1
  - support: 1.7.0
  - survey_client: 1.12.0
  - systemtags: 1.14.0
  - text: 3.5.1
  - theming: 1.15.0
  - twofactor_backupcodes: 1.13.0
  - updatenotification: 1.14.0
  - user_ldap: 1.14.1
  - user_status: 1.4.0
  - viewer: 1.8.0
  - weather_status: 1.4.0
  - workflowengine: 2.6.0
Disabled:
  - admin_audit
  - dashboard: 7.4.0
  - encryption
  - files_trashbin: 1.14.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Nothing is logged in nextcloud.log or apache error.log when the file is moved/copied.

Additional info

# sudo -u www-data php occ files_external:list
+----------+-------------------+----------+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------+------------------+-------------------+
| Mount ID | Mount Point       | Storage  | Authentication Type                  | Configuration                                                                                                                               | Options                               | Applicable Users | Applicable Groups |
+----------+-------------------+----------+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------+------------------+-------------------+
| 1        | /10_Home          | SMB/CIFS | Log-in credentials, save in database | host: "10.0.0.1", share: "default-school", root: "teachers\/$user", domain: "linuxmuster", show_hidden: false, check_acl: true, timeout: "" | previews: false, enable_sharing: true |                  | teachers          |
| 2        | /10_Students-Home | SMB/CIFS | Log-in credentials, save in database | host: "10.0.0.1", share: "default-school", root: "students", domain: "linuxmuster", show_hidden: false, check_acl: true, timeout: ""        | previews: false, enable_sharing: true | All              |                   |
| 3        | /10_Shares        | SMB/CIFS | Log-in credentials, save in database | host: "10.0.0.1", share: "default-school", root: "share", domain: "linuxmuster", show_hidden: false, check_acl: true, timeout: ""           | previews: false                       | All              |                   |
+----------+-------------------+----------+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------+------------------+-------------------+
@Oroo9CeL Oroo9CeL added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels May 7, 2022
@Oroo9CeL Oroo9CeL changed the title [Bug]: Moving big files between external storage fails [Bug]: Moving/copying bigger files between external storage fails May 16, 2022
@Oroo9CeL
Copy link
Author

Oroo9CeL commented May 16, 2022

This is related to: #31308 (comment)
When I install and enable php-smbclient, I can move files bigger 512 MB between external SMB storage again. So I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

1 participant