-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Node for share not found error #24891
Comments
{
"reqId": "X@s8LatSMh1UY@RRHdRuwwAAAIQ",
"level": 3,
"time": "2020-12-29T14:24:48+00:00",
"remoteAddr": "127.0.0.1",
"user": "alex",
"app": "no app in context",
"method": "GET",
"url": "/ocs/v2.php/search/providers/files/search?term=XXXFIXME&from=%2Fcall%2Fpbk83vcj",
"message": {
"Exception": "OCP\\Files\\NotFoundException",
"Message": "Node for share not found, fileid: 139230",
"Code": 0,
"Trace": [
{
"file": "/var/www/vhosts/example.com/www/lib/private/Share20/Share.php",
"line": 236,
"function": "getNode",
"class": "OC\\Share20\\Share",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com.ch/www/apps/files_sharing/lib/SharedStorage.php",
"line": 367,
"function": "getNodeType",
"class": "OC\\Share20\\Share",
"type": "->"
},
{
"function": "getItemType",
"class": "OCA\\Files_Sharing\\SharedStorage",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 507,
"function": "call_user_func_array"
},
{
"file": "/var/www/vhosts/example.com/www/apps/files_sharing/lib/Cache.php",
"line": 183,
"function": "__call",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"function": "search",
"class": "OCA\\Files_Sharing\\Cache",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/Files/View.php",
"line": 1667,
"function": "call_user_func_array"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/Files/View.php",
"line": 1599,
"function": "searchCommon",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/Files/Filesystem.php",
"line": 763,
"function": "search",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/Search/Provider/File.php",
"line": 47,
"function": "search",
"class": "OC\\Files\\Filesystem",
"type": "::"
},
{
"file": "/var/www/vhosts/example.com.ch/www/apps/files/lib/Search/FilesSearchProvider.php",
"line": 120,
"function": "search",
"class": "OC\\Search\\Provider\\File",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/Search/SearchComposer.php",
"line": 162,
"function": "search",
"class": "OCA\\Files\\Search\\FilesSearchProvider",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/core/Controller/UnifiedSearchController.php",
"line": 110,
"function": "search",
"class": "OC\\Search\\SearchComposer",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/AppFramework/Http/Dispatcher.php",
"line": 169,
"function": "search",
"class": "OC\\Core\\Controller\\UnifiedSearchController",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/AppFramework/Http/Dispatcher.php",
"line": 100,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/AppFramework/App.php",
"line": 152,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/lib/private/Route/Router.php",
"line": 308,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/vhosts/example.com/www/ocs/v1.php",
"line": 88,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/vhosts/example.com/www/ocs/v2.php",
"line": 24,
"args": [
"/var/www/vhosts/example.com/www/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/vhosts/example.com/www/lib/private/Share20/Share.php",
"Line": 190,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0",
"version": "20.0.4.0",
"id": "5feb3c308390f"
} |
It seems you have a broken share.
on your database Then you can check what share it is and manually delete it if you feel like it. |
running files:scan didn't fix the issue. the mentioned sql command revealed a shared folder, but deleting this folder didn't help either. the issue might be: user A shares the folder (group Alpha and users B to E in this case). the folder is located in a groupfolder of group Beta, which user belongs to at this time. Later user A gets removed from group Beta. Share is broken, and search for users B to E doesn't work. |
the above mentioned is not the cause. other shares cause problems, without users leaving groups. but leaving the broken share fixes the issues. |
@fhirter in my case there was a file shared to another person and then deleted - before the share was revoked. |
We had this issue. I went in and looked at all the applicable entries in our database with the file_source entry that showed up in our logs. I then went and looked at the files and figured out which file didn't exist anymore, and removed those lines in the database one by one. Search is now working again. Looks like the shares did not get deleted properly when the file was deleted. |
This comment was marked as resolved.
This comment was marked as resolved.
Well it would be good to know which info is needed. I answered all the questions. The issue is not resolved, fiddling with the database can't be the solution. The question is, why are these bad shares happening at all? |
Hi! Thanks for the help everyone! Can you test the patch in #26411 ? :) |
See #26411 |
This happens in latest v22, isn't that commit e198dc1 included?
|
How to use GitHub
Steps to reproduce
Expected behaviour
List of Files, Decks, Talks etc. containing the searchstring should be listet.
Actual behaviour
Everything gets listet except the files. An error ist displayed "an error occured while searching files".
Browser Console shows 404 Error.
Server configuration
Operating system: Linux 3.10.0-1127.8.2.el7.x86_64 x86_64
Web server:
Database: mysql, 5.5.68
PHP version: 7.4.13
Nextcloud version: 20.0.04
Updated from an older Nextcloud/ownCloud or fresh install: updated
Where did you install Nextcloud from:
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: No
Are you using encryption: no
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Chrome 87
Operating system: Ubuntu 20.04, macOS Catalina
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"X@s8LatSMh1UY@RRHdRuwwAAAIQ","level":3,"time":"2020-12-29T14:24:48+00:00","remoteAddr":"127.0.0.1","user":"alex","app":"no app in context","method":"GET","url":"/ocs/v2.php/search/providers/files/search?term=XXXFIXME&from=%2Fcall%2Fpbk83vcj","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"Node for share not found, fileid: 139230","Code":0,"Trace":[{"file":"/var/www/vhosts/example.com/www/lib/private/Share20/Share.php","line":236,"function":"getNode","class":"OC\\Share20\\Share","type":"->"},{"file":"/var/www/vhosts/example.com.ch/www/apps/files_sharing/lib/SharedStorage.php","line":367,"function":"getNodeType","class":"OC\\Share20\\Share","type":"->"},{"function":"getItemType","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/var/www/vhosts/example.com/www/lib/private/Files/Storage/Wrapper/Wrapper.php","line":507,"function":"call_user_func_array"},{"file":"/var/www/vhosts/example.com/www/apps/files_sharing/lib/Cache.php","line":183,"function":"__call","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"function":"search","class":"OCA\\Files_Sharing\\Cache","type":"->"},{"file":"/var/www/vhosts/example.com/www/lib/private/Files/View.php","line":1667,"function":"call_user_func_array"},{"file":"/var/www/vhosts/example.com/www/lib/private/Files/View.php","line":1599,"function":"searchCommon","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.com/www/lib/private/Files/Filesystem.php","line":763,"function":"search","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.com/www/lib/private/Search/Provider/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::"},{"file":"/var/www/vhosts/example.com.ch/www/apps/files/lib/Search/FilesSearchProvider.php","line":120,"function":"search","class":"OC\\Search\\Provider\\File","type":"->"},{"file":"/var/www/vhosts/example.com/www/lib/private/Search/SearchComposer.php","line":162,"function":"search","class":"OCA\\Files\\Search\\FilesSearchProvider","type":"->"},{"file":"/var/www/vhosts/example.com/www/core/Controller/UnifiedSearchController.php","line":110,"function":"search","class":"OC\\Search\\SearchComposer","type":"->"},{"file":"/var/www/vhosts/example.com/www/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"search","class":"OC\\Core\\Controller\\UnifiedSearchController","type":"->"},{"file":"/var/www/vhosts/example.com/www/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/vhosts/example.com/www/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/vhosts/example.com/www/lib/private/Route/Router.php","line":308,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/vhosts/example.com/www/ocs/v1.php","line":88,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/vhosts/example.com/www/ocs/v2.php","line":24,"args":["/var/www/vhosts/example.com/www/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/vhosts/example.com/www/lib/private/Share20/Share.php","Line":190,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0","version":"20.0.4.0","id":"5feb3c308390f"}Browser log
Browser log
The text was updated successfully, but these errors were encountered: