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

'reva permissions not found' when creating datatx share #218

Open
michielbdejong opened this issue Jun 14, 2023 · 3 comments
Open

'reva permissions not found' when creating datatx share #218

michielbdejong opened this issue Jun 14, 2023 · 3 comments

Comments

@michielbdejong
Copy link
Member

>> mkdir /home/five
>> ocm-share-create -grantee einstein -idp mesh.pondersource.com -datatx /home/five
error: code=CODE_INTERNAL msg="Unexpected response code from EFSS API: 500" support_trace="9c60143520327065005b8cdd90cc022f"
am.do https://cloud.pon
dersource.org/index.php/apps/sciencemesh/~einstein/api/ocm/addSentShare {"resourceId":{"storageId":"00000000-0000
-0000-0000-000000000000","opaqueId":"fileid-/home/five"},"name":"five","token":"FrnIeJE8ywYGTiVwUWwBfVncNUXvyOSS"
,"grantee":{"type":"GRANTEE_TYPE_USER","userId":{"idp":"mesh.pondersource.com","opaqueId":"einstein","type":"USER
_TYPE_PRIMARY"}},"owner":{"idp":"https://mesh.pondersource.org/","opaqueId":"einstein"},"creator":{"idp":"https:/
/mesh.pondersource.org/","opaqueId":"einstein"},"ctime":{"seconds":"1686732903","nanos":171464828},"mtime":{"seco
nds":"1686732903","nanos":171464828},"shareType":"SHARE_TYPE_USER","accessMethods":[{"transferOptions":{}}]} pid=
302702 pkg=rgrpc traceid=bfa7fad88e882a1ff6921d49c0adc2db

I don't have the NC error log due to a misconfiguration (see pondersource/dev-stock#35) but will add that here as soon as i have it.

@michielbdejong
Copy link
Member Author

michielbdejong commented Jun 14, 2023

Update: with the latest nc1.docker it's now a 'path not found when statting' error

scrap that, i had restarted the server so the path was actually gone, that was why. now i did another mkdir and back at the 500 error.

@michielbdejong
Copy link
Member Author

The error is this:

{"reqId":"Gc13SBBCf3WAWjgzoPvA","level":3,"time":"2023-06-14T09:11:08+00:00","remoteAddr":"167.99.80.220","user":"--","app":"PHP","method":"POST","url":"/index.php/apps/sciencemesh/~einstein/api/storage/GetMD","message":"Undefined array key \"path\" at /var/www/html/apps/sciencemesh/lib/Controller/RevaController.php#587","userAgent":"Go-http-client/1.1","version":"26.0.0.6","data":{"app":"PHP"}}
{"reqId":"UokjrVF2sEgSpj7FknNh","level":3,"time":"2023-06-14T09:11:08+00:00","remoteAddr":"167.99.80.220","user":"--","app":"index","method":"POST","url":"/index.php/apps/sciencemesh/~einstein/api/ocm/addSentShare","message":"reva permissions not found","userAgent":"Go-http-client/1.1","version":"26.0.0.6","exception":{"Exception":"Exception","Message":"reva permissions not found","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"addSentShare","class":"OCA\\ScienceMesh\\Controller\\OcmController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1033,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/sciencemesh/lib/Controller/OcmController.php","Line":424,"CustomMessage":"--"}}
{"reqId":"UokjrVF2sEgSpj7FknNh","level":3,"time":"2023-06-14T09:11:09+00:00","remoteAddr":"167.99.80.220","user":"--","app":"cssresourceloader","method":"POST","url":"/index.php/apps/sciencemesh/~einstein/api/ocm/addSentShare","message":"Could not find resource core/css/styles.css to load","userAgent":"Go-http-client/1.1","version":"26.0.0.6","data":{"app":"cssresourceloader"}}
{"reqId":"UokjrVF2sEgSpj7FknNh","level":3,"time":"2023-06-14T09:11:09+00:00","remoteAddr":"167.99.80.220","user":"--","app":"cssresourceloader","method":"POST","url":"/index.php/apps/sciencemesh/~einstein/api/ocm/addSentShare","message":"Could not find resource core/css/header.css to load","userAgent":"Go-http-client/1.1","version":"26.0.0.6","data":{"app":"cssresourceloader"}}

@michielbdejong michielbdejong changed the title 500 error when creating datatx share 'reva permissions not found' when creating datatx share Jun 14, 2023
@redblom
Copy link

redblom commented Jun 14, 2023

Which one causes or is the actual problem? Undefined array key \"path\" or reva permissions not found ?

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

No branches or pull requests

2 participants