Skip to content

[Bug]: Can’t delete file locally and in Nextcloud web-interface in Nextcloud 33.0 #58686

@TomD629

Description

@TomD629

⚠️ This issue respects the following points: ⚠️

Bug description

Since migration to Nextcloud 33.00, as in this issue,…

I want to delete a file on the Nextcloud web-userinterface , but I can’t, it says “Delete file action failed ».

But other findings elements :
• The file could be moved on a folder and then the folder removed (no issue)
• Contacts Sync are in error when I add new contact or when I modify one (with client ThunderBird Cardbook or android DavX)

I try for resolution :

  •   occ commands (files:scan --all,  files:cleanup, files:repair-tree, ...)
    
  • Force owner (www-data) and permissions on files and directories (650 and 750)

Control thas phpfpm is running on www-data

Error in nextcloud log
{"reqId":"L4UWLIFl2zlhrvkiV5cr","level":3,"time":"2026-03-03T11:10:39+00:00","remoteAddr":"192.168.1.254","user":"thomas","app":"webdav","method":"DELETE","url":"/remote.php/dav/files/thomas/tst3.txt","scriptName":"/remote.php","message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36","version":"33.0.0.16","exception":{"Exception":"Error","Message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/maps/lib/Service/TracksService.php","line":145,"function":"deleteByFileId","class":"OCA\\Maps\\Service\\TracksService","type":"->"},{"file":"/var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","line":70,"function":"deleteByFile","class":"OCA\\Maps\\Service\\TracksService","type":"->"},{"function":"OCA\\Maps\\Hooks\\{closure}","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Hooks/EmitterTrait.php","line":89,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Hooks/PublicEmitter.php","line":23,"function":"emit","class":"OC\\Hooks\\BasicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Root.php","line":117,"function":"emit","class":"OC\\Hooks\\PublicEmitter","type":"->"},{"function":"emit","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":65,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":93,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":107,"function":"emit","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":85,"function":"delete","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1322,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1194,"function":"runHooks","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":676,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":512,"function":"unlink","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":197,"function":"delete","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":281,"function":"delete","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpDelete","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":427,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":25,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":151,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/maps/lib/Service/TracksService.php","Line":461,"message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()","exception":"{\"class\":\"Error\",\"message\":\"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()\",\"code\":0,\"file\":\"/var/www/nextcloud/apps/maps/lib/Service/TracksService.php:461\",\"trace\":\"#0 /var/www/nextcloud/apps/maps/lib/Service/TracksService.php(145): OCA\\Maps\\Service\\TracksService->deleteByFileId()\\n#1 /var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php(70): OCA\\Maps\\Service\\TracksService->deleteByFile()\\n#2 [internal function]: OCA\\Maps\\Hooks\\FileHooks->OCA\\Maps\\Hooks\\{closure}()\\n#3 /var/www/nextcloud/lib/private/Hooks/EmitterTrait.php(89): call_user_func_array()\\n#4 /var/www/nextcloud/lib/private/Hooks/PublicEmitter.php(23): OC\\Hooks\\BasicEmitter->emit()\\n#5 /var/www/nextcloud/lib/private/Files/Node/Root.php(117): OC\\Hooks\\PublicEmitter->emit()\\n#6 [internal function]: OC\\Files\\Node\\Root->emit()\\n#7 /var/www/nextcloud/lib/private/Files/Node/LazyFolder.php(65): call_user_func_array()\\n#8 /var/www/nextcloud/lib/private/Files/Node/LazyFolder.php(93): OC\\Files\\Node\\LazyFolder->__call()\\n#9 /var/www/nextcloud/lib/private/Files/Node/HookConnector.php(107): OC\\Files\\Node\\LazyFolder->emit()\\n#10 /var/www/nextcloud/lib/private/legacy/OC_Hook.php(85): OC\\Files\\Node\\HookConnector->delete()\\n#11 /var/www/nextcloud/lib/private/Files/View.php(1322): OC_Hook::emit()\\n#12 /var/www/nextcloud/lib/private/Files/View.php(1194): OC\\Files\\View->runHooks()\\n#13 /var/www/nextcloud/lib/private/Files/View.php(676): OC\\Files\\View->basicOperation()\\n#14 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(512): OC\\Files\\View->unlink()\\n#15 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php(197): OCA\\DAV\\Connector\\Sabre\\File->delete()\\n#16 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(281): Sabre\\DAV\\Tree->delete()\\n#17 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\\DAV\\CorePlugin->httpDelete()\\n#18 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\\DAV\\Server->emit()\\n#19 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\\DAV\\Server->invokeMethod()\\n#20 /var/www/nextcloud/apps/dav/lib/Server.php(427): OCA\\DAV\\Connector\\Sabre\\Server->start()\\n#21 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\\DAV\\Server->exec()\\n#22 /var/www/nextcloud/remote.php(151): require_once('...')\\n#23 {main}\"}","CustomMessage":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()"},"id":"69a6c1ea9fc13"}

Steps to reproduce

1.I don’t know how this happened
2.
3.

Expected behavior

  • Database corruption on metadata ?
  • Locks stay in incorrect state ?
  • ?

Nextcloud Server version

33

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

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

Updated from a MINOR version (ex. 32.0.1 to 32.0.2)

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

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "x.x.x.x",
            "x.x.x.y",
            "my1.org",
            "my2.org"
        ],
        "default_language": "fr",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "33.0.0.16",
        "overwrite.cli.url": "https:\/\/d2.ntw.ovh",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpport": "465",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "has_rebuilt_cache": true,
        "theme": "",
        "loglevel": 2,
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false,
        "app_install_overwrite": [
            "files_opds",
            "ocsms",
            "files_texteditor",
            "files_ebookreader",
            "epubreader",
            "geoblocker",
            "maps"
        ],
        "default_phone_region": "FR",
        "preview_max_x": 768,
        "preview_max_y": 768,
        "simpleSignUpLink.shown": false,
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "maintenance_window_start": 1
    }
}

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap33-feedbackbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions