pondersource / sciencemesh-php

Connect your Nextcloud server to Sciencemesh
MIT License
0 stars 1 forks source link

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

Open michielbdejong opened 1 year ago

michielbdejong commented 1 year ago
>> 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 https://github.com/pondersource/dev-stock/issues/35) but will add that here as soon as i have it.

michielbdejong commented 1 year ago

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 commented 1 year ago

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"}}
redblom commented 1 year ago

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