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]: Files Versions: Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)"; #41174

Open
6 of 9 tasks
Tracked by #38431
ghost opened this issue Mar 22, 2023 · 38 comments · Fixed by #38800

Comments

@ghost
Copy link

ghost commented Mar 22, 2023

⚠️ 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

Seen this error on Nextcloud 26.0.0

Steps to reproduce

Not sure

Expected behavior

Should not see error in logs

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?

Updated to a major version (ex. 22.2.3 to 23.0.1)

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:

activity: 2.18.0

admin_audit: 1.16.0

bruteforcesettings: 2.6.0

cloud_federation_api: 1.9.0

comments: 1.16.0

contactsinteraction: 1.7.0

dashboard: 7.6.0

dav: 1.25.0

federatedfilesharing: 1.16.0

federation: 1.16.0

files: 1.21.1

files_external: 1.18.0

files_pdfviewer: 2.7.0

files_rightclick: 1.5.0

files_sharing: 1.18.0

files_trashbin: 1.16.0

files_versions: 1.19.1

firstrunwizard: 2.15.0

groupfolders: 14.0.0

hibp_login_check: 0.0.1

impersonate: 1.13.0

integration_youtube: 0.1.3

logreader: 2.11.0

lookup_server_connector: 1.14.0

nextcloud_announcements: 1.15.0

notes: 4.7.1

notifications: 2.14.0

notify_push: 0.6.0

oauth2: 1.14.0

password_policy: 1.16.0

photos: 2.2.0

previewgenerator: 5.2.1

privacy: 1.10.0

provisioning_api: 1.16.0

recommendations: 1.5.0

related_resources: 1.1.0-alpha1

richdocuments: 8.0.0

serverinfo: 1.16.0

settings: 1.8.0

sharebymail: 1.16.0

spreed: 16.0.0

support: 1.9.0

survey_client: 1.14.0

suspicious_login: 4.4.0

systemtags: 1.16.0

text: 3.7.2

theming: 2.1.1

twofactor_admin: 4.1.9

twofactor_backupcodes: 1.15.0

twofactor_email: 2.7.2

twofactor_nextcloud_notification: 3.6.0

twofactor_reminder: 1.0.0

twofactor_totp: 8.0.0-alpha.0

updatenotification: 1.16.0

user_status: 1.6.0

viewer: 1.10.0

weather_status: 1.6.0

workflowengine: 2.8.0 

Disabled:

circles: 26.0.0 (installed 25.0.0)

encryption: 2.14.0

maps: 1.0.0 (installed 1.0.0)

sendent: 1.3.2 (installed 1.3.2)

user_ldap: 1.16.0

Nextcloud Signing status

No response

Nextcloud Logs

{"reqId":"GIiesctCi7CMSZRBcUKn","level":3,"time":"2023-03-22T13:33:47-05:00","remoteAddr":"5.5.5.5","user":"admin","app":"no app in context","method":"POST","url":"/apps/text/session/sync","message":"Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","version":"26.0.0.11","exception":{"Exception":"OCP\\AppFramework\\Db\\DoesNotExistException","Message":"Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","line":361,"function":"findOneQuery","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Db/VersionsMapper.php","line":78,"function":"findEntity","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php","line":242,"function":"findVersionForFileId","class":"OCA\\Files_Versions\\Db\\VersionsMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php","line":106,"function":"post_write_hook","class":"OCA\\Files_Versions\\Listener\\FileEventsListener","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Files_Versions\\Listener\\FileEventsListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":87,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":99,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":118,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":105,"function":"postWrite","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1295,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1223,"function":"runHooks","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":707,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":71,"function":"file_put_contents","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/DocumentService.php","line":367,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Lock/LockManager.php","line":29,"function":"OCA\\Text\\Service\\{closure}","class":"OCA\\Text\\Service\\DocumentService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/text/lib/Service/DocumentService.php","line":371,"function":"runInScope","class":"OC\\Files\\Lock\\LockManager","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/ApiService.php","line":246,"function":"autosave","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Controller/SessionController.php","line":83,"function":"sync","class":"OCA\\Text\\Service\\ApiService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"sync","class":"OCA\\Text\\Controller\\SessionController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":284,"CustomMessage":"--"},"id":"641b4a0c6ae56"}
{"reqId":"hBEiAYASspRYF0DVmzpI","level":3,"time":"2023-03-22T13:32:49-05:00","remoteAddr":"5.5.5.5","user":"admin","app":"no app in context","method":"POST","url":"/apps/text/session/sync","message":"Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","version":"26.0.0.11","exception":{"Exception":"OCP\\AppFramework\\Db\\DoesNotExistException","Message":"Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","line":361,"function":"findOneQuery","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Db/VersionsMapper.php","line":78,"function":"findEntity","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php","line":242,"function":"findVersionForFileId","class":"OCA\\Files_Versions\\Db\\VersionsMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php","line":106,"function":"post_write_hook","class":"OCA\\Files_Versions\\Listener\\FileEventsListener","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Files_Versions\\Listener\\FileEventsListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":87,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":99,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":118,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":105,"function":"postWrite","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1295,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1223,"function":"runHooks","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":707,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":71,"function":"file_put_contents","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/DocumentService.php","line":367,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Lock/LockManager.php","line":29,"function":"OCA\\Text\\Service\\{closure}","class":"OCA\\Text\\Service\\DocumentService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/text/lib/Service/DocumentService.php","line":371,"function":"runInScope","class":"OC\\Files\\Lock\\LockManager","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/ApiService.php","line":246,"function":"autosave","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Controller/SessionController.php","line":83,"function":"sync","class":"OCA\\Text\\Service\\ApiService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"sync","class":"OCA\\Text\\Controller\\SessionController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":284,"CustomMessage":"--"},"id":"641b49d239a4a"}

Additional info

No response

@ghost ghost added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Mar 22, 2023
@szaimen szaimen transferred this issue from nextcloud/server Mar 22, 2023
@juliusknorr
Copy link
Member

juliusknorr commented Mar 22, 2023

This looks more related to files_versions as we just write to a file here.

@artonge Maybe you can have a look since you worked on versions recently?

Error happens at

$currentVersionEntity = $this->versionsMapper->findVersionForFileId($node->getId(), $writeHookInfo['previousNode']->getMtime());

{
  "reqId": "GIiesctCi7CMSZRBcUKn",
  "level": 3,
  "time": "2023-03-22T13:33:47-05:00",
  "remoteAddr": "5.5.5.5",
  "user": "admin",
  "app": "no app in context",
  "method": "POST",
  "url": "/apps/text/session/sync",
  "message": "Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36",
  "version": "26.0.0.11",
  "exception": {
    "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
    "Message": "Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
        "line": 361,
        "function": "findOneQuery",
        "class": "OCP\\AppFramework\\Db\\QBMapper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/files_versions/lib/Db/VersionsMapper.php",
        "line": 78,
        "function": "findEntity",
        "class": "OCP\\AppFramework\\Db\\QBMapper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php",
        "line": 242,
        "function": "findVersionForFileId",
        "class": "OCA\\Files_Versions\\Db\\VersionsMapper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php",
        "line": 106,
        "function": "post_write_hook",
        "class": "OCA\\Files_Versions\\Listener\\FileEventsListener",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php",
        "line": 86,
        "function": "handle",
        "class": "OCA\\Files_Versions\\Listener\\FileEventsListener",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
        "line": 251,
        "function": "__invoke",
        "class": "OC\\EventDispatcher\\ServiceEventListener",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
        "line": 73,
        "function": "callListeners",
        "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
        "line": 87,
        "function": "dispatch",
        "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
        "line": 99,
        "function": "dispatch",
        "class": "OC\\EventDispatcher\\EventDispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/HookConnector.php",
        "line": 118,
        "function": "dispatchTyped",
        "class": "OC\\EventDispatcher\\EventDispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_Hook.php",
        "line": 105,
        "function": "postWrite",
        "class": "OC\\Files\\Node\\HookConnector",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1295,
        "function": "emit",
        "class": "OC_Hook",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1223,
        "function": "runHooks",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 707,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/File.php",
        "line": 71,
        "function": "file_put_contents",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/text/lib/Service/DocumentService.php",
        "line": 367,
        "function": "putContent",
        "class": "OC\\Files\\Node\\File",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Lock/LockManager.php",
        "line": 29,
        "function": "OCA\\Text\\Service\\{closure}",
        "class": "OCA\\Text\\Service\\DocumentService",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/text/lib/Service/DocumentService.php",
        "line": 371,
        "function": "runInScope",
        "class": "OC\\Files\\Lock\\LockManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/text/lib/Service/ApiService.php",
        "line": 246,
        "function": "autosave",
        "class": "OCA\\Text\\Service\\DocumentService",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/text/lib/Controller/SessionController.php",
        "line": 83,
        "function": "sync",
        "class": "OCA\\Text\\Service\\ApiService",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 230,
        "function": "sync",
        "class": "OCA\\Text\\Controller\\SessionController",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 137,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 183,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1055,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
    "Line": 284,
    "CustomMessage": "--"
  },
  "id": "641b4a0c6ae56"
}

@artonge artonge self-assigned this Mar 29, 2023
@juliusknorr juliusknorr added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Apr 24, 2023
@ghost

This comment was marked as outdated.

@artonge
Copy link
Contributor

artonge commented May 25, 2023

Hey @AndyXheli,

I could not reproduce, and I do not want to make potentially false hypothesis on the root cause here.

Were you able to find some reproduction steps?

Seems to be linked to editing a file with the text app.

@solracsf solracsf changed the title [Bug]: OCP\AppFramework\Db\DoesNotExistException: Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)"; [Bug]: Files Versions: Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)"; May 26, 2023
@solracsf solracsf changed the title [Bug]: Files Versions: Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)"; [Bug]: Files Versions: Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)"; May 26, 2023
@solracsf solracsf changed the title [Bug]: Files Versions: Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)"; [Bug]: Files Versions: Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)"; May 26, 2023
@mejo-

This comment was marked as outdated.

@ghost

This comment was marked as outdated.

@mejo-

This comment was marked as outdated.

@camouflage81
Copy link

Have the same issue in Nextcloud version 27.0.1

@larsik78
Copy link

larsik78 commented Sep 6, 2023

Here the same - Nextcloud version 27.0.2

@Orko79
Copy link

Orko79 commented Oct 14, 2023

Same here. Nextcloud version 27.1.2.1

[no app in context] Fehler: OCP\AppFramework\Db\DoesNotExistException: Did expect one result but found none when executing: query "SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)";  at <<closure>>

 0. /var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php line 361
    OCP\AppFramework\Db\QBMapper->findOneQuery()
 1. /var/www/nextcloud/apps/files_versions/lib/Db/VersionsMapper.php line 78
    OCP\AppFramework\Db\QBMapper->findEntity()
 2. /var/www/nextcloud/apps/files_versions/lib/Versions/LegacyVersionsBackend.php line 238
    OCA\Files_Versions\Db\VersionsMapper->findVersionForFileId()
 3. /var/www/nextcloud/apps/files_versions/lib/Versions/VersionManager.php line 153
    OCA\Files_Versions\Versions\LegacyVersionsBackend->updateVersionEntity("*** sensitive parameters replaced ***")
 4. /var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php line 238
    OCA\Files_Versions\Versions\VersionManager->updateVersionEntity("*** sensitive parameters replaced ***")
 5. /var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php line 112
    OCA\Files_Versions\Listener\FileEventsListener->post_write_hook()
 6. /var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php line 86
    OCA\Files_Versions\Listener\FileEventsListener->handle()
 7. /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OC\EventDispatcher\ServiceEventListener->__invoke()
 8. /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
 9. /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 94
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
10. /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 106
    OC\EventDispatcher\EventDispatcher->dispatch()
11. /var/www/nextcloud/lib/private/Files/Node/HookConnector.php line 121
    OC\EventDispatcher\EventDispatcher->dispatchTyped()
12. /var/www/nextcloud/lib/private/legacy/OC_Hook.php line 105
    OC\Files\Node\HookConnector->postWrite()
13. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 472
    OC_Hook::emit()
14. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 398
    OCA\DAV\Connector\Sabre\File->emitPostHooks()
15. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1137
    OCA\DAV\Connector\Sabre\File->put()
16. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 492
    Sabre\DAV\Server->updateFile("*** sensitive parameters replaced ***")
17. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPut()
18. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
19. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
20. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
21. /var/www/nextcloud/apps/dav/lib/Server.php line 365
    Sabre\DAV\Server->exec()
22. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
23. /var/www/nextcloud/remote.php line 172
    require_once("/var/www/nextcl ... p")

PUT /remote.php/dav/files/orko/Dokumente/Notizen/Anleitungen/Linux%20allgemein/ble.sh.md
from 192.168.178.20 by orko at 2023-10-14T04:30:41+02:00

@solracsf solracsf reopened this Oct 28, 2023
@solracsf solracsf transferred this issue from nextcloud/text Oct 28, 2023
@solracsf
Copy link
Member

solracsf commented Oct 28, 2023

@juliushaertl #38800 did not fix this.
Error remains in v26.0.8 and v27.1.3.

This happens while editing a Text app (as originaly reported) file or a OnlyOffice app file (so files that can be edited and saved in real time).

{
  "reqId": "oVNqo84kHYdymDTh7hvg",
  "level": 3,
  "time": "2023-10-28T12:48:56+02:00",
  "remoteAddr": "10.0.0.14",
  "user": "marie",
  "app": "no app in context",
  "method": "POST",
  "url": "/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtYXJpZWFtZWxpZS5lc3RhZ2VyQGFsaXhpb2FjdGl2LmZyIiwib3duZXJJZCI6Ikdyb3VwQWxpeGlvQWN0aXYiLCJmaWxlSWQiOjYyNzg0MTEyLCJmaWxlUGF0aCI6Ii9QYXJ0YWdlIEFsaXhpbyBBY3Rpdi9NaXNzaW9uIE1JUlZPRy9Db2RlcyBIT0dBTi54bHN4Iiwic2hhcmVUb2tlbiI6bnVsbCwiYWN0aW9uIjoidHJhY2sifQ.ZdsRqfaP1TFA3TfKrCACrlilavkpTwz4Y5URl1uAyz0",
  "message": "Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ",
  "userAgent": "--",
  "version": "26.0.8.2",
  "exception": {
    "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
    "Message": "Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
        "line": 362,
        "function": "findOneQuery",
        "class": "OCP\\AppFramework\\Db\\QBMapper",
        "type": "->",
        "args": [
          [
            "OC\\DB\\QueryBuilder\\QueryBuilder"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/files_versions/lib/Db/VersionsMapper.php",
        "line": 78,
        "function": "findEntity",
        "class": "OCP\\AppFramework\\Db\\QBMapper",
        "type": "->",
        "args": [
          [
            "OC\\DB\\QueryBuilder\\QueryBuilder"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php",
        "line": 245,
        "function": "findVersionForFileId",
        "class": "OCA\\Files_Versions\\Db\\VersionsMapper",
        "type": "->",
        "args": [
          62784112,
          1698489757
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php",
        "line": 111,
        "function": "post_write_hook",
        "class": "OCA\\Files_Versions\\Listener\\FileEventsListener",
        "type": "->",
        "args": [
          [
            "OC\\Files\\Node\\File"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php",
        "line": 86,
        "function": "handle",
        "class": "OCA\\Files_Versions\\Listener\\FileEventsListener",
        "type": "->",
        "args": [
          [
            "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
        "line": 251,
        "function": "__invoke",
        "class": "OC\\EventDispatcher\\ServiceEventListener",
        "type": "->",
        "args": [
          [
            "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
          ],
          "OCP\\Files\\Events\\Node\\NodeWrittenEvent",
          [
            "Symfony\\Component\\EventDispatcher\\EventDispatcher"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
        "line": 73,
        "function": "callListeners",
        "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
        "type": "->",
        "args": [
          [
            [
              "Closure"
            ],
            [
              "Closure"
            ],
            [
              "Closure"
            ]
          ],
          "OCP\\Files\\Events\\Node\\NodeWrittenEvent",
          [
            "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
        "line": 94,
        "function": "dispatch",
        "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
        "type": "->",
        "args": [
          [
            "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
          ],
          "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
        "line": 106,
        "function": "dispatch",
        "class": "OC\\EventDispatcher\\EventDispatcher",
        "type": "->",
        "args": [
          "OCP\\Files\\Events\\Node\\NodeWrittenEvent",
          [
            "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/HookConnector.php",
        "line": 121,
        "function": "dispatchTyped",
        "class": "OC\\EventDispatcher\\EventDispatcher",
        "type": "->",
        "args": [
          [
            "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_Hook.php",
        "line": 105,
        "function": "postWrite",
        "class": "OC\\Files\\Node\\HookConnector",
        "type": "->",
        "args": [
          [
            true,
            "/Partage Activ/Mission/Codes.xlsx"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1314,
        "function": "emit",
        "class": "OC_Hook",
        "type": "::",
        "args": [
          "OC_Filesystem",
          "post_write",
          [
            true,
            "/Partage Activ/Mission/Codes.xlsx"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1242,
        "function": "runHooks",
        "class": "OC\\Files\\View",
        "type": "->",
        "args": [
          [
            "update",
            "write"
          ],
          "/Partage Activ/Mission/Codes.xlsx",
          true
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 718,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->",
        "args": [
          "file_put_contents",
          "/GroupActiv/files/Partage Activ/Mission/Codes.xlsx",
          [
            "update",
            "write"
          ],
          null
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/File.php",
        "line": 71,
        "function": "file_put_contents",
        "class": "OC\\Files\\View",
        "type": "->",
        "args": [
          "/GroupActiv/files/Partage Activ/Mission/Codes.xlsx",
          null
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/onlyoffice/controller/callbackcontroller.php",
        "line": 560,
        "function": "putContent",
        "class": "OC\\Files\\Node\\File",
        "type": "->",
        "args": [
          null
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/onlyoffice/controller/callbackcontroller.php",
        "line": 844,
        "function": "OCA\\Onlyoffice\\Controller\\{closure}",
        "class": "OCA\\Onlyoffice\\Controller\\CallbackController",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/onlyoffice/controller/callbackcontroller.php",
        "line": 561,
        "function": "retryOperation",
        "class": "OCA\\Onlyoffice\\Controller\\CallbackController",
        "type": "->",
        "args": [
          [
            "Closure"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Lock/LockManager.php",
        "line": 29,
        "function": "OCA\\Onlyoffice\\Controller\\{closure}",
        "class": "OCA\\Onlyoffice\\Controller\\CallbackController",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/onlyoffice/controller/callbackcontroller.php",
        "line": 566,
        "function": "runInScope",
        "class": "OC\\Files\\Lock\\LockManager",
        "type": "->",
        "args": [
          [
            "OCP\\Files\\Lock\\LockContext"
          ],
          [
            "Closure"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 230,
        "function": "track",
        "class": "OCA\\Onlyoffice\\Controller\\CallbackController",
        "type": "->",
        "args": [
          "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtYXJpZWFtZWxpZS5lc3RhZ2VyQGFsaXhpb2FjdGl2LmZyIiwib3duZXJJZCI6Ikdyb3VwQWxpeGlvQWN0aXYiLCJmaWxlSWQiOjYyNzg0MTEyLCJmaWxlUGF0aCI6Ii9QYXJ0YWdlIEFsaXhpbyBBY3Rpdi9NaXNzaW9uIE1JUlZPRy9Db2RlcyBIT0dBTi54bHN4Iiwic2hhcmVUb2tlbiI6bnVsbCwiYWN0aW9uIjoidHJhY2sifQ.ZdsRqfaP1TFA3TfKrCACrlilavkpTwz4Y5URl1uAyz0",
          [
            "oc6xz1h8l8n2_marie"
          ],
          "1196197979",
          2,
          "http://10.0.0.14:8080/cache/files/data/1196197979_1881/output.xlsx/output.xlsx?md5=wkk4UjlDZbVaEFkI5CSvjw&expires=1698491037&filename=output.xlsx",
          "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiIxMTk2MTk3OTc5Iiwic3RhdHVzIjoyLCJ1cmwiOiJodHRwczovL2Nsb3VkLmFudmVvbC5mci9vbmx5b2ZmaWNlL2NhY2hlL2ZpbGVzL2RhdGEvMTE5NjE5Nzk3OV8xODgxL291dHB1dC54bHN4L291dHB1dC54bHN4P21kNT13a2s0VWpsRFpiVmFFRmtJNUNTdmp3JmV4cGlyZXM9MTY5ODQ5MTAzNyZmaWxlbmFtZT1vdXRwdXQueGxzeCIsImNoYW5nZXN1cmwiOiJodHRwczovL2Nsb3VkLmFudmVvbC5mci9vbmx5b2ZmaWNlL2NhY2hlL2ZpbGVzL2RhdGEvMTE5NjE5Nzk3OV8xODgxL2NoYW5nZXMuemlwL2NoYW5nZXMuemlwP21kNT1sSmNjdmd4S0x6eUE5N0hxeHVpbmtRJmV4cGlyZXM9MTY5ODQ5MTAzNyZmaWxlbmFtZT1jaGFuZ2VzLnppcCIsImhpc3RvcnkiOnsic2VydmVyVmVyc2lvbiI6IjcuNS4wIiwiY2hhbmdlcyI6W3siY3JlYXRlZCI6IjIwMjMtMTAtMjggMTA6NDA6MjciLCJ1c2VyIjp7ImlkIjoib2M2eHoxaDhsOG4yX21hcmllYW1lbGllLmVzdGFnZXJAYWxpeGlvYWN0aXYuZnIiLCJuYW1lIjoiTWFyaWUtQW3DqWxpZSBFU1RBR0VSIn19XX0sInVzZXJzIjpbIm9jNnh6MWg4bDhuMl9tYXJpZWFtZWxpZS5lc3RhZ2VyQGFsaXhpb2FjdGl2LmZyIl0sImFjdGlvbnMiOlt7InR5cGUiOjAsInVzZXJpZCI6Im9jNnh6MWg4bDhuMl9tYXJpZWFtZWxpZS5lc3RhZ2VyQGFsaXhpb2FjdGl2LmZyIn1dLCJsYXN0c2F2ZSI6IjIwMjMtMTAtMjhUMTA6NDI6MTQuMDAwWiIsIm5vdG1vZGlmaWVkIjp0cnVlLCJmaWxldHlwZSI6Inhsc3giLCJpYXQiOjE2OTg0OTAxMzYsImV4cCI6MTY5ODQ5MDQzNn0.khxWRgNu28561dXO7ZJDsES3tHws2hbeESebOVvr4QY",
          [
            "7.5.0",
            [
              [
                "2023-10-28 10:40:27",
                [
                  "oc6xz1h8l8n2_marie",
                  "Marie-Amélie ESTAGER"
                ]
              ]
            ]
          ],
          "https://cloud.anveol.fr/onlyoffice/cache/files/data/1196197979_1881/changes.zip/changes.zip?md5=lJccvgxKLzyA97HqxuinkQ&expires=1698491037&filename=changes.zip",
          null,
          [
            [
              0,
              "oc6xz1h8l8n2_marie"
            ]
          ],
          "xlsx"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 137,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Onlyoffice\\Controller\\CallbackController"
          ],
          "track"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 183,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Onlyoffice\\Controller\\CallbackController"
          ],
          "track"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Onlyoffice\\Controller\\CallbackController",
          "track",
          [
            "OC\\AppFramework\\DependencyInjection\\DIContainer"
          ],
          [
            "onlyoffice.callback.track"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1062,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/apps/onlyoffice/track"
        ]
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
    "Line": 284,
    "CustomMessage": "--"
  },
  "id": "653d03f2f0d8a"
}

@lukaszsobala

This comment was marked as off-topic.

@solracsf

This comment was marked as off-topic.

@ghost
Copy link
Author

ghost commented Dec 21, 2023

Hi all just seen this error on NC 28.0.1 @szaimen can you please update the tag to also reflect 28-feedback

{"reqId":"FgbBuTFpl2rUhudfNB6o","level":3,"time":"2023-12-21T14:48:25-06:00","remoteAddr":"5.7.2.12","user":"admin","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/admin/InstantUpload/Camera/20231221_080234.jpg","message":"Exception thrown: OCP\\AppFramework\\Db\\DoesNotExistException","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.26.0","version":"28.0.1.1","exception":{"Exception":"OCP\\AppFramework\\Db\\DoesNotExistException","Message":"Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","line":361,"function":"findOneQuery","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Db/VersionsMapper.php","line":76,"function":"findEntity","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Versions/LegacyVersionsBackend.php","line":253,"function":"findVersionForFileId","class":"OCA\\Files_Versions\\Db\\VersionsMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Versions/VersionManager.php","line":152,"function":"updateVersionEntity","class":"OCA\\Files_Versions\\Versions\\LegacyVersionsBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php","line":232,"function":"updateVersionEntity","class":"OCA\\Files_Versions\\Versions\\VersionManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php","line":106,"function":"post_write_hook","class":"OCA\\Files_Versions\\Listener\\FileEventsListener","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Files_Versions\\Listener\\FileEventsListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":94,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":106,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":109,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":105,"function":"postWrite","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":479,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":404,"function":"emitPostHooks","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1137,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":492,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","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/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":370,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":283,"CustomMessage":"Exception thrown: OCP\\AppFramework\\Db\\DoesNotExistException"},"id":"6584b457d7e41"}

@INNER-FIRE
Copy link

I manually insert data to oc_maps_photos, and finally the picture appeared on the map。

I achieved this through the following steps.

Log file show Sql no result;

I check this table find it is empty, so I insert some date into the table.

mysql> desc oc_maps_photos;
+------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+-------------+------+-----+---------+----------------+
| id | bigint(20) | NO | PRI | NULL | auto_increment |
| user_id | varchar(64) | NO | MUL | NULL | |
| file_id | bigint(20) | NO | MUL | NULL | |
| lat | double | YES | | NULL | |
| lng | double | YES | | NULL | |
| date_taken | bigint(20) | YES | MUL | NULL | |
+------------+-------------+------+-----+---------+----------------+
insert into oc_maps_photos values (1,"user",5647,30.285132078529003,99.54701185226442,null);

  1. Use filename to get fileid from table oc_filecache

select fileid , path from oc_filecache where name = '5ee282d30ca5cc73.jpg';
+--------+-------------------------------------------------+
| fileid | path |
+--------+-------------------------------------------------+
| 5647 | files/Photos/5ee282d30ca5cc73.jpg |

  1. Lat, Lng are from logfile.

["/Photos/5ee282d30ca5cc73.jpg"],[30.285132078529003],[99.54701185226442]]},

After insert data, the picture appeared on the map.

It seems that no data is inserted after clicking to upload the image.

@Asteliks
Copy link

Asteliks commented Dec 24, 2023

Same here
Server OS: TrueNas Scale
Nextcloud distribution: Truecharts

{"reqId":"LE6LwGXe7WFtA6Ut89Po","level":3,"time":"2023-12-24T22:23:26+01:00","remoteAddr":"85.221.137.70","user":"DEMV","app":"no app in context","method":"MOVE","url":"/remote.php/dav/uploads/DEMV/web-file-upload-875c97ad97a81e42967b4ae699a47b08-1703451766215/.file","message":"Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"27.1.3.2","exception":{"Exception":"OCP\\AppFramework\\Db\\DoesNotExistException","Message":"Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ","Code":0,"Trace":[{"file":"/var/www/html/lib/public/AppFramework/Db/QBMapper.php","line":361,"function":"findOneQuery","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->","args":[["OC\\DB\\QueryBuilder\\QueryBuilder"]]},{"file":"/var/www/html/apps/files_versions/lib/Db/VersionsMapper.php","line":78,"function":"findEntity","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->","args":[["OC\\DB\\QueryBuilder\\QueryBuilder"]]},{"file":"/var/www/html/apps/files_versions/lib/Versions/LegacyVersionsBackend.php","line":238,"function":"findVersionForFileId","class":"OCA\\Files_Versions\\Db\\VersionsMapper","type":"->","args":[271404,"*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/files_versions/lib/Versions/VersionManager.php","line":153,"function":"updateVersionEntity","class":"OCA\\Files_Versions\\Versions\\LegacyVersionsBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/files_versions/lib/Listener/FileEventsListener.php","line":238,"function":"updateVersionEntity","class":"OCA\\Files_Versions\\Versions\\VersionManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/files_versions/lib/Listener/FileEventsListener.php","line":112,"function":"post_write_hook","class":"OCA\\Files_Versions\\Listener\\FileEventsListener","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Files_Versions\\Listener\\FileEventsListener","type":"->","args":[["OCP\\Files\\Events\\Node\\NodeWrittenEvent"]]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[["OCP\\Files\\Events\\Node\\NodeWrittenEvent"],"OCP\\Files\\Events\\Node\\NodeWrittenEvent",["Symfony\\Component\\EventDispatcher\\EventDispatcher"]]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[["Closure"],["Closure"],["Closure"],["Closure"]],"OCP\\Files\\Events\\Node\\NodeWrittenEvent",["OCP\\Files\\Events\\Node\\NodeWrittenEvent"]]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":94,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\Files\\Events\\Node\\NodeWrittenEvent"],"OCP\\Files\\Events\\Node\\NodeWrittenEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":106,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCP\\Files\\Events\\Node\\NodeWrittenEvent",["OCP\\Files\\Events\\Node\\NodeWrittenEvent"]]},{"file":"/var/www/html/lib/private/Files/Node/HookConnector.php","line":121,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\Files\\Events\\Node\\NodeWrittenEvent"]]},{"file":"/var/www/html/lib/private/legacy/OC_Hook.php","line":105,"function":"postWrite","class":"OC\\Files\\Node\\HookConnector","type":"->","args":[["/zdjecia/2022/2022.06 - Różne/20220605_112011.mp4"]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":472,"function":"emit","class":"OC_Hook","type":"::","args":["OC_Filesystem","post_write",["/zdjecia/2022/2022.06 - Różne/20220605_112011.mp4"]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":398,"function":"emitPostHooks","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[true]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php","line":149,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":307,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":133,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->","args":[["OCA\\DAV\\Upload\\FutureFile"],["OCA\\DAV\\Connector\\Sabre\\Directory"],"*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":163,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/DEMV/web-file-upload-875c97ad97a81e42967b4ae699a47b08-1703451766215/.file","files/DEMV/zdjecia/2022/2022.06 - Różne/20220605_112011.mp4"]},{"file":"/var/www/html/apps/dav/lib/Upload/ChunkingPlugin.php","line":94,"function":"move","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/DEMV/web-file-upload-875c97ad97a81e42967b4ae699a47b08-1703451766215/.file","files/DEMV/zdjecia/2022/2022.06 - Różne/20220605_112011.mp4"]},{"file":"/var/www/html/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/DEMV/web-file-upload-875c97ad97a81e42967b4ae699a47b08-1703451766215/.file","files/DEMV/zdjecia/2022/2022.06 - Różne/20220605_112011.mp4"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/DEMV/web-file-upload-875c97ad97a81e42967b4ae699a47b08-1703451766215/.file","files/DEMV/zdjecia/2022/2022.06 - Różne/20220605_112011.mp4"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":603,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["beforeMove",["uploads/DEMV/web-file-upload-875c97ad97a81e42967b4ae699a47b08-1703451766215/.file","files/DEMV/zdjecia/2022/2022.06 - Różne/20220605_112011.mp4"]]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[["Sabre\\HTTP\\Request"],["Sabre\\HTTP\\Response"]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:MOVE",[["Sabre\\HTTP\\Request"],["Sabre\\HTTP\\Response"]]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[["Sabre\\HTTP\\Request"],["Sabre\\HTTP\\Response"]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":172,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/public/AppFramework/Db/QBMapper.php","Line":283,"CustomMessage":"--"},"id":"6588a14ed101c"}

@colonelm
Copy link

colonelm commented Jan 3, 2024

Facing same issue Nextcloud (27.1.4) ; Versions - 1.20.0; Group folders 15.3.2
(It is related to Group Folder and Version as user files there is no issues)

The entries are not created in oc_files_versions for corresponding entries in oc_filescache in the case of group folder.

[webdav] Error: OCP\AppFramework\Db\DoesNotExistException: Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)"; at <>

@hujiko
Copy link

hujiko commented Jan 19, 2024

I have the same in 28.0.1 and I was wondering:

As far as I understood, this happens, when a file exists, but does not have any entry in the versions table. (So I assume the expected state is, that every file existing has at least 1 version record?)

Until this is fixed, is there maybe a workaround possible, like:

  • scanning all files
  • checking, if they have a version entry
  • if not: Create one

Just, so that I / we can keep the error log clean / tidy to be able to spot unexpected errors?

@camouflage81
Copy link

I no longer have this issue (NC 28.0.5).
Has it been fixed?

@alphasixtyfive
Copy link

I no longer have this issue (NC 28.0.5). Has it been fixed?

I still see this on 28.0.5

@svenb1234
Copy link

In my case this happens to pictures that get updated on a client, e.g. tag added, and then that new version gets uploaded to the server.

@rchaconmolero
Copy link

Same problem in 28.0.6.

@alphasixtyfive
Copy link

Still on 29.0.2

@mighty-services
Copy link

same here on nextcloud v29.0.4 in a docker-deployment. I am NOT using the Nextcloud AIO docker repo, but the normal docker repo.
Since several people have issues with it, I don't think the repo itself is to blame. I don't get any error besides that in my log as well.

@pannal
Copy link

pannal commented Sep 13, 2024

Error still prevalent on v29.0.6.

@joshtrichards
Copy link
Member

Is this only impacting groupfolders? Put another way, are any of you experiencing this not using groupfolders?

@pannal
Copy link

pannal commented Sep 16, 2024

This is impacting my rclone google photos sync to NC. Shouldn't be group folders.

@joshtrichards
Copy link
Member

This is impacting my rclone google photos sync to NC. Shouldn't be group folders.

@pannal Please provide your reproduction steps.

Aside: My gut is telling me there are several ways to trigger this particular problem.

@pannal
Copy link

pannal commented Sep 16, 2024

@pannal Please provide your reproduction steps.

I use rclone to sync google photos to the remote.php/dav/files/USERNAME endpoint. That's the only step to reproduce this. The result are those errors in the log, and I have "0" photos ony my map.

Edit: This is probably related:

Allowed memory size of 536870912 bytes exhausted (tried to allocate 8315776 bytes) at /var/www/html/custom_apps/maps/lib/Helper/ExifGeoData.php#120

@ph818
Copy link

ph818 commented Sep 16, 2024

I am not sure what groupfolders are, but I'm willing to try some troubleshooting steps. My main use case is syncing files between devices, and Instant Upload of photos. Sometimes I send sharing links to other people.

@svenb1234
Copy link

I do not use groupfolders but just a shared folder. The error can be triggered if a metadata change of a photo (tag added by digikam) is synced back to the server.

@vohes
Copy link

vohes commented Sep 24, 2024

Continues with v29.0.7.

Reproducable on to NC-instances: Uploading georef. image files and trying to add them to a map. ( see @pannal )

@Joly0
Copy link

Joly0 commented Nov 4, 2024

Also an issue on v29.0.8
Happens every day at the same time (2:00 in the morning) without me uploading or doing anything (usually sleeping at that time)

@Sieboldianus
Copy link

Sieboldianus commented Nov 14, 2024

For me, this happens with files in a folder managed by git. I have .git/ in my Nextcloud ignore list, but I like to sync the current state of repos´ files to my nextcloud. These logs started happening after upgrading to 29.0.9.

@ghost ghost closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2024
@lukasig

This comment has been minimized.

@joshtrichards joshtrichards reopened this Nov 27, 2024
@come-nc
Copy link
Contributor

come-nc commented Dec 10, 2024

i get the same error running nextcloud-AIO 30.0.2 in docker

core DoesNotExistException Did expect one result but found none when executing: query "SELECT * FROM _PREFIX_forms_v2_formsWHEREid = :dcValue1"; Error while running background job OCA\Forms\BackgroundJob\CleanupUploadedFilesJob (id: 108022, arguments: null)

This is not the same error. This is related to forms app.

@syrus83
Copy link

syrus83 commented Jan 15, 2025

Getting the following error
DoesNotExistException Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)";

version Nextcloud Hub 9 (30.0.4)

@come-nc
Copy link
Contributor

come-nc commented Jan 16, 2025

Getting the following error DoesNotExistException Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)";

version Nextcloud Hub 9 (30.0.4)

Do you have a stacktrace?

@syrus83
Copy link

syrus83 commented Jan 16, 2025

Getting the following error DoesNotExistException Did expect one result but found none when executing: query "SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)";
version Nextcloud Hub 9 (30.0.4)

Do you have a stacktrace?

since ive turned on previews i have a futher 1000+ errors in my log will have to hunt for it

{

{
  "reqId": "0uNJqFZ7d0015dPc4aME",
  "level": 3,
  "time": "2025-01-14T18:00:14+00:00",
  "remoteAddr": "46.149.241.76",
  "user": "admin",
  "app": "no app in context",
  "method": "POST",
  "url": "/remote.php/dav/bulk",
  "message": "Exception thrown: OCP\\AppFramework\\Db\\DoesNotExistException",
  "userAgent": "Mozilla/5.0 (Windows) mirall/3.15.3 (build 20250107) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)",
  "version": "30.0.4.1",
  "exception": {
    "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
    "Message": "Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*files_versions` WHERE (`file_id` = :dcValue1) AND (`timestamp` = :dcValue2)\"; ",
    "Code": 0,
    "Trace": [
      {
        "file": "/public_html/lib/public/AppFramework/Db/QBMapper.php",
        "line": 359,
        "function": "findOneQuery",
        "class": "OCP\\AppFramework\\Db\\QBMapper",
        "type": "->"
      },
      {
        "file": "/public_html/apps/files_versions/lib/Db/VersionsMapper.php",
        "line": 60,
        "function": "findEntity",
        "class": "OCP\\AppFramework\\Db\\QBMapper",
        "type": "->"
      },
      {
        "file": "/public_html/apps/files_versions/lib/Versions/LegacyVersionsBackend.php",
        "line": 254,
        "function": "findVersionForFileId",
        "class": "OCA\\Files_Versions\\Db\\VersionsMapper",
        "type": "->"
      },
      {
        "file": "/public_html/apps/files_versions/lib/Versions/VersionManager.php",
        "line": 129,
        "function": "updateVersionEntity",
        "class": "OCA\\Files_Versions\\Versions\\LegacyVersionsBackend",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/public_html/apps/files_versions/lib/Listener/FileEventsListener.php",
        "line": 211,
        "function": "updateVersionEntity",
        "class": "OCA\\Files_Versions\\Versions\\VersionManager",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/public_html/apps/files_versions/lib/Listener/FileEventsListener.php",
        "line": 84,
        "function": "post_write_hook",
        "class": "OCA\\Files_Versions\\Listener\\FileEventsListener",
        "type": "->"
      },
      {
        "file": "/public_html/lib/private/EventDispatcher/ServiceEventListener.php",
        "line": 68,
        "function": "handle",
        "class": "OCA\\Files_Versions\\Listener\\FileEventsListener",
        "type": "->"
      },
      {
        "file": "/public_html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
        "line": 220,
        "function": "__invoke",
        "class": "OC\\EventDispatcher\\ServiceEventListener",
        "type": "->"
      },
      {
        "file": "/public_html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
        "line": 56,
        "function": "callListeners",
        "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
        "type": "->"
      },
      {
        "file": "/public_html/lib/private/EventDispatcher/EventDispatcher.php",
        "line": 67,
        "function": "dispatch",
        "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
        "type": "->"
      },
      {
        "file": "/public_html/lib/private/EventDispatcher/EventDispatcher.php",
        "line": 79,
        "function": "dispatch",
        "class": "OC\\EventDispatcher\\EventDispatcher",
        "type": "->"
      },
      {
        "file": "public_html/lib/private/Files/Node/HookConnector.php",
        "line": 83,
        "function": "dispatchTyped",
        "class": "OC\\EventDispatcher\\EventDispatcher",
        "type": "->"
      },
      {
        "file": "/public_html/lib/private/legacy/OC_Hook.php",
        "line": 82,
        "function": "postWrite",
        "class": "OC\\Files\\Node\\HookConnector",
        "type": "->"
      },
      {
        "file": "/public_html/lib/private/Files/View.php",
        "line": 1247,
        "function": "emit",
        "class": "OC_Hook",
        "type": "::"
      },
      {
        "file": "/public_html/lib/private/Files/View.php",
        "line": 1179,
        "function": "runHooks",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/public_html/lib/private/Files/View.php",
        "line": 644,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/public_html/lib/private/Files/Node/Folder.php",
        "line": 167,
        "function": "file_put_contents",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "function": "newFile",
        "class": "OC\\Files\\Node\\Folder",
        "type": "->"
      },
      {
        "file": "/public_html/lib/private/Files/Node/LazyFolder.php",
        "line": 64,
        "function": "call_user_func_array"
      },
      {
        "file": "/public_html/lib/private/Files/Node/LazyFolder.php",
        "line": 443,
        "function": "__call",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/public_html/apps/dav/lib/BulkUpload/BulkUploadPlugin.php",
        "line": 75,
        "function": "newFile",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/public_html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpPost",
        "class": "OCA\\DAV\\BulkUpload\\BulkUploadPlugin",
        "type": "->"
      },
      {
        "file": "/public_html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 472,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/public_html/apps/dav/lib/Connector/Sabre/Server.php",
        "line": 43,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": /public_html/apps/dav/lib/Server.php",
        "line": 371,
        "function": "start",
        "class": "OCA\\DAV\\Connector\\Sabre\\Server",
        "type": "->"
      },
      {
        "file": "/public_html/apps/dav/appinfo/v2/remote.php",
        "line": 19,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": /public_html/remote.php",
        "line": 146,
        "args": [
          "/public_html/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/public_html/lib/public/AppFramework/Db/QBMapper.php",
    "Line": 261,
    "CustomMessage": "Exception thrown: OCP\\AppFramework\\Db\\DoesNotExistException"
  },
  "id": "6789086ce9751"
}
}

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

Successfully merging a pull request may close this issue.