Skip to content

[Bug]: Deadlock when Deleting shared files inside shared folder #36328

Closed

Description

@solracsf

⚠️ 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.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

When user B deletes files inside a shared folder shared by User A with multiple users (not only User B), Deadlocks are trown.

Steps to reproduce

While Redis is used for Locking, and MariaDB has READ-COMMITTED set:

  1. Delete several files/folders inside folders shared with multiple (>10 users)

Expected behavior

No Deadlocks

Installation method

Community Manual installation with Archive

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MariaDB

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

None

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

No response

List of activated Apps

Enabled:
  - accessibility: 1.10.0
  - activity: 2.16.0
  - cloud_federation_api: 1.7.0
  - comments: 1.14.0
  - contactsinteraction: 1.5.0
  - dav: 1.22.0
  - federatedfilesharing: 1.14.0
  - federation: 1.14.0
  - files: 1.19.0
  - files_pdfviewer: 2.5.0
  - files_rightclick: 1.3.0
  - files_sharing: 1.16.2
  - files_trashbin: 1.14.0
  - files_versions: 1.17.0
  - files_videoplayer: 1.13.0
  - forms: 2.5.1
  - impersonate: 1.11.0
  - keeweb: 0.6.10
  - logreader: 2.9.0
  - lookup_server_connector: 1.12.0
  - notifications: 2.12.1
  - notify_push: 0.5.0
  - oauth2: 1.12.0
  - onlyoffice: 7.5.8
  - password_policy: 1.14.0
  - provisioning_api: 1.14.0
  - settings: 1.6.0
  - sharebymail: 1.14.0
  - socialsharing_email: 2.5.0
  - systemtags: 1.14.0
  - theming: 1.15.0
  - twofactor_backupcodes: 1.13.0
  - user_saml: 5.1.2
  - viewer: 1.8.0
  - workflowengine: 2.6.0

Activity

  1. added
    0. Needs triage
    on Jan 24, 2023
  2. obel1x commented on Feb 16, 2023

    @obel1x

    two things: the first is a problematic recalculation done each filechange by nextcloud. currently there is no solution.

    @solracsf
    second thing: maybe you want to try #6899 (comment) to see if this would reduce deadlocks for you too?

  3. solracsf commented on Apr 21, 2023

    @solracsf
    MemberAuthor

    Marked as fixed as per #37820

  4. obel1x commented on May 2, 2023

    @obel1x

    just left a comment to this here to explain why this happes imo: #29985 (comment)
    currently not fixed, but maybe will with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions