-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Lots of errors "File with id "XXX" has not been found." #938
Comments
I switched for now to "Fatal issues only logging" on the system. But we really should sort this out rather sooner than later as it totally spams ten-thousands of log entries. |
Part of |
Yeah. That has been a hardening against some security issues we had. But the strange thing is: The files in the database do exist. I assume the mounts are not done correctly? |
I also see this at my local instance:
If i can do something to help, please ping me. |
Marking as high, we should fix that before the release. |
owncloud/core#25740 seems related and has reproduction steps. |
I can reproduce and I think I know a 'fix' |
If a shared file is moved to the trash the share entry is still alive. However the sharee can't initialise the share since it is not in the owners dir <user>/files. So check if it is there and if not log a debug and carry on. Fixes #938
PR in #1013 |
Since this exception can be thrown when a shared file is in the trashbin there is no need to spam the log like crazy. Fixes #938
I did test the change, from review perspective everything fine, but does not solve my problem: {"reqId":"7slulmwkbYEtx9KwjcsW","remoteAddr":"127.0.0.1","app":"core","message":"File with id "1413627" has not been found.","level":3,"time":"August 23, 2016 20:47:53","method":"PROPFIND","url":"/remote.php/webdav/","user":"sanny"} maybe unrelated ? this always occurs if the user logs in .. |
mmm then there might be another code path that triggers this then. If you look into your oc_filecache table. Is the file with that id shared with the user sanny? |
Yes it is a shared file that was trashed by the other user (still inside thrash), nevermind - My fault, i was on the master branch and merged manually, maybe something did not work out. I will give feedback soon ... |
Okay, fixed the problem. Thank you! |
Since this exception can be thrown when a shared file is in the trashbin there is no need to spam the log like crazy. Fixes #938
I got this again on 12.0.1, same behaviour. Have not investigated furhter. Reopen? Stacktrace:
|
No - new ticket. ;) |
I got this error in Version 15.0.2 Is ther a workaround ti delete the DB-Entry and get rid of this errounouse files perhaps? OCP\Files\StorageNotAvailableException: File with id "10349" has not been found. OC\Files\Storage\FailedStorage->acquireLock("", 1, OC\Lock\Memc ... {}) /data/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 593: OCA\Files_Sharing\SharedStorage->acquireLock("", 1, OC\Lock\Memc ... {}) /data/nextcloud/lib/private/Files/View.php - line 1923: OC\Files\Storage\Wrapper\Wrapper->acquireLock("", 1, OC\Lock\Memc ... {}) /data/nextcloud/lib/private/Files/View.php - line 2033: OC\Files\View->lockPath("/mgm/files/ ... g", 1, false) /data/nextcloud/lib/private/Files/Node/Node.php - line 366: OC\Files\View->lockFile("/mgm/files/ ... g", 1) /data/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php - line 1119: OC\Files\Node\Node->lock(1) /data/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php - line 685: OCA\Files_Sharing\Controller\ShareAPIController->lock(OC\Files\Node\File {}) /data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 166: OCA\Files_Sharing\Controller\ShareAPIController->getShares("true", "false", "false", OC\Files\Node\File {}, "false") /data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99: OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Sh ... {}, "getShares") /data/nextcloud/lib/private/AppFramework/App.php - line 118: OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Sh ... {}, "getShares") /data/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App::main("OCA\Files_ ... r", "getShares", OC\AppFramew ... {}, { _route: "o ... "}) <> OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "o ... "}) /data/nextcloud/lib/private/Route/Router.php - line 297: call_user_func(OC\AppFramew ... {}, { _route: "o ... "}) /data/nextcloud/ocs/v1.php - line 82: OC\Route\Router->match("/ocsapp/app ... s") /data/nextcloud/ocs/v2.php - line 24: require_once("/data/nextcloud/ocs/v1.php") |
Got this error on ver 17.0.2. |
Just updated cloud.nextcloud.com to the stable10 branch, there are a lot of these two errors repeating:
In the DB:
A find does find those however on the FS:
Also the storage exists:
cc @icewind1991 @schiessle Thoughts?
The text was updated successfully, but these errors were encountered: