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]: Error: admin_audit: NotFoundException Exception thrown in file write: Exception thrown in file write: #47286

Closed
5 of 8 tasks
Tracked by #5249
ghost opened this issue Aug 16, 2024 · 4 comments · Fixed by #47260 or #48548
Closed
5 of 8 tasks
Tracked by #5249
Labels
1. to develop Accepted and waiting to be taken care of 30-feedback bug feature: admin audit

Comments

@ghost
Copy link

ghost commented Aug 16, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

Seeing a lot of these errors

Steps to reproduce

Updated to NC 30 RC1

Expected behavior

Should no see these errors

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

master

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 28 to 29)

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

No response

Nextcloud Signing status

No response

Nextcloud Logs

{"reqId":"tJUy3YCRffbtke5NMJUZ","level":3,"time":"2024-08-16T11:45:52-05:00","remoteAddr":"","user":"axheli","app":"admin_audit","method":"PUT","url":"/remote.php/dav/files/axheli/Photos/2024/24-08-16%2011-45-39%200605.mov","message":"Exception thrown in file write: ","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/5.5.4","version":"30.0.0.8","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/admin_audit/lib/Actions/Files.php","line":164,"function":"getId","class":"OC\\Files\\Node\\NonExistingFile","type":"->"},{"file":"/var/www/nextcloud/apps/admin_audit/lib/AppInfo/Application.php","line":223,"function":"write","class":"OCA\\AdminAudit\\Actions\\Files","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"OCA\\AdminAudit\\AppInfo\\{closure}","class":"OCA\\AdminAudit\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"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":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":74,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":82,"function":"write","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":412,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":285,"function":"emitPreHooks","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":110,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","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/apps/dav/lib/Server.php","line":366,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":19,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":146,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/NonExistingFile.php","Line":37,"message":"Exception thrown in file write: ","exception":[],"CustomMessage":"Exception thrown in file write: "},"id":"66bf8278bec09"}
{"reqId":"f5BWfe2ixt0lHvCgqK2T","level":3,"time":"2024-08-16T11:45:52-05:00","remoteAddr":"","user":"axheli","app":"admin_audit","method":"PUT","url":"/remote.php/dav/files/axheli/Photos/2024/24-08-16%2011-45-39%200605.heic","message":"Exception thrown in file write: ","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/5.5.4","version":"30.0.0.8","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/admin_audit/lib/Actions/Files.php","line":164,"function":"getId","class":"OC\\Files\\Node\\NonExistingFile","type":"->"},{"file":"/var/www/nextcloud/apps/admin_audit/lib/AppInfo/Application.php","line":223,"function":"write","class":"OCA\\AdminAudit\\Actions\\Files","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"OCA\\AdminAudit\\AppInfo\\{closure}","class":"OCA\\AdminAudit\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"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":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":74,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":82,"function":"write","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":412,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":285,"function":"emitPreHooks","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":110,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","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/apps/dav/lib/Server.php","line":366,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":19,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":146,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/NonExistingFile.php","Line":37,"message":"Exception thrown in file write: ","exception":[],"CustomMessage":"Exception thrown in file write: "},"id":"66bf8278bec2d"}

Additional info

No response

@ghost ghost added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Aug 16, 2024
@kesselb
Copy link
Contributor

kesselb commented Aug 16, 2024

Should be fixed by #47252

@joshtrichards joshtrichards added feature: admin audit 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 Aug 18, 2024
@ghost
Copy link
Author

ghost commented Aug 22, 2024

Still an issue on NC 30 RC2 Looks like #47252 did not fix the issue

{"reqId":"VMxvRaB6CX1cwswRzNmD","level":3,"time":"2024-08-22T15:20:28-05:00","remoteAddr":"","user":"admin","app":"admin_audit","method":"PUT","url":"/remote.php/dav/files/admin/Talk/IMG_2690.jpg","message":"Exception thrown in file write: ","userAgent":"Mozilla/5.0 (iOS) Nextcloud-Talk v19.0.8","version":"30.0.0.10","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":177,"function":"getFileInfo","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/admin_audit/lib/Actions/Files.php","line":166,"function":"getInternalPath","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/admin_audit/lib/AppInfo/Application.php","line":223,"function":"write","class":"OCA\\AdminAudit\\Actions\\Files","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"OCA\\AdminAudit\\AppInfo\\{closure}","class":"OCA\\AdminAudit\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"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":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":74,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":82,"function":"write","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":412,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":285,"function":"emitPreHooks","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":110,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","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/apps/dav/lib/Server.php","line":366,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":19,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":146,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Node.php","Line":90,"message":"Exception thrown in file write: ","exception":[],"CustomMessage":"Exception thrown in file write: "},"id":"66c7ac223242f"}

@SystemKeeper
Copy link
Contributor

Also seeing this with NC 30 RC 2, here's the formatted exception:

{
    "reqId": "vru4my8WRvLgoZfnuBkN",
    "level": 3,
    "time": "2024-08-26T09:07:15+02:00",
    "remoteAddr": "172.30.90.3",
    "user": "<user>",
    "app": "admin_audit",
    "method": "PUT",
    "url": "/remote.php/dav/files/<user>/Talk/Screenshot%202024-08-26%20090402.png",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36",
    "version": "30.0.0.10"
}

...

{
  "Exception": "OCP\\Files\\NotFoundException",
  "Message": "",
  "Code": 0,
  "Trace": [
    {
      "file": "/var/www/nextcloud/lib/private/Files/Node/Node.php",
      "line": 177,
      "function": "getFileInfo",
      "class": "OC\\Files\\Node\\Node",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/apps/admin_audit/lib/Actions/Files.php",
      "line": 166,
      "function": "getInternalPath",
      "class": "OC\\Files\\Node\\Node",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/apps/admin_audit/lib/AppInfo/Application.php",
      "line": 223,
      "function": "write",
      "class": "OCA\\AdminAudit\\Actions\\Files",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
      "line": 230,
      "function": "OCA\\AdminAudit\\AppInfo\\{closure}",
      "class": "OCA\\AdminAudit\\AppInfo\\Application",
      "type": "->",
      "args": [
        "*** sensitive parameters replaced ***"
      ]
    },
    {
      "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": 67,
      "function": "dispatch",
      "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
      "line": 79,
      "function": "dispatch",
      "class": "OC\\EventDispatcher\\EventDispatcher",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/lib/private/Files/Node/HookConnector.php",
      "line": 74,
      "function": "dispatchTyped",
      "class": "OC\\EventDispatcher\\EventDispatcher",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/lib/private/legacy/OC_Hook.php",
      "line": 82,
      "function": "write",
      "class": "OC\\Files\\Node\\HookConnector",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",
      "line": 412,
      "function": "emit",
      "class": "OC_Hook",
      "type": "::"
    },
    {
      "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",
      "line": 285,
      "function": "emitPreHooks",
      "class": "OCA\\DAV\\Connector\\Sabre\\File",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",
      "line": 110,
      "function": "put",
      "class": "OCA\\DAV\\Connector\\Sabre\\File",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
      "line": 1098,
      "function": "createFile",
      "class": "OCA\\DAV\\Connector\\Sabre\\Directory",
      "type": "->",
      "args": [
        "*** sensitive parameters replaced ***"
      ]
    },
    {
      "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
      "line": 504,
      "function": "createFile",
      "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/apps/dav/lib/Server.php",
      "line": 366,
      "function": "start",
      "class": "Sabre\\DAV\\Server",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/apps/dav/appinfo/v2/remote.php",
      "line": 19,
      "function": "exec",
      "class": "OCA\\DAV\\Server",
      "type": "->"
    },
    {
      "file": "/var/www/nextcloud/remote.php",
      "line": 146,
      "args": [
        "/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"
      ],
      "function": "require_once"
    }
  ],
  "File": "/var/www/nextcloud/lib/private/Files/Node/Node.php",
  "Line": 90,
  "message": "Exception thrown in file write: ",
  "exception": {},
  "CustomMessage": "Exception thrown in file write: "
}

@sorbaugh
Copy link
Contributor

sorbaugh commented Oct 1, 2024

cc @come-nc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of 30-feedback bug feature: admin audit
Projects
None yet
5 participants