cs3org / ocm-test-suite

Test suites for protocols a Personal Data Store may support
https://pdsinterop.org/test-suites/
MIT License
0 stars 8 forks source link

Revad-master testing #63

Closed michielbdejong closed 1 year ago

michielbdejong commented 2 years ago

Check if the OCMD tutorial works (including webdav mount) with NC -> reva -> reva -> NC invite flow.

michielbdejong commented 2 years ago

Should actually use the ocmd-error-messages branch of Revad here instead of edge, to make my life easier.

michielbdejong commented 2 years ago

https://serverfault.com/questions/1106694/unable-to-run-apt-update-on-ubuntu-21-10

michielbdejong commented 2 years ago
docker logs meshdir.docker
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module 'node-fetch'

-> fixed with docker run -v /root/ocm-test-suite/ocm-stub:/ocm-stub stub npm install

michielbdejong commented 2 years ago

Next step: It's redirecting to https://meshdir.docker/meshdir?token=&providerDomain=

For that we need:

For that we need:

michielbdejong commented 2 years ago

Sending the invite is fixed now (error messaging for it is not yet!) Error messages to improve:

Next error:

root@ocmhost:~/ocm-test-suite# docker exec -it revanc2.docker /bin/bash
root@508c80c00442:/etc/revad# cd /reva/
root@508c80c00442:/reva# ./cmd/reva/reva -insecure -host=localhost:19000
reva-cli v2.10.0-93-g7a1d06ca (rev-7a1d06ca)
Please use `exit` or `Ctrl-D` to exit this program.
>> login basic
username: marie
password: OK
>> ocm-invite-forward -idp revanc1.docker -token 330cfd04-46ef-450e-ac43-462b199aeca3
error: code=CODE_INTERNAL msg="error forwarding invite:json: error sending post request: Post \"/ocm/invites/accept\": unsupported protocol scheme \"\"" support_trace="8800f603714a6f344f8e22e1116495a5"
>> 
michielbdejong commented 2 years ago
root@ocmhost:~/ocm-test-suite# docker exec -it revanc2.docker /reva/cmd/reva/reva -insecure -host localhost:19000
reva-cli v2.10.0-93-g7a1d06ca (rev-7a1d06ca)
Please use `exit` or `Ctrl-D` to exit this program.
>> login basic
username: marie
password: OK
>> ocm-invite-forward -idp revanc1.docker -token d06891dd-1714-426f-b994-45708d7df95d
error: code=CODE_INTERNAL msg="error forwarding invite:json: error sending accept post request: 401 Unauthorized: {\n  \"code\": \"UNAUTHENTICATED\",\n  \"message\": \"provider not authorized\"\n}" support_trace="5d8399a341296005897524167f05021d"
michielbdejong commented 2 years ago
2022-10-31 14:47:24.766 ERR ../../reva/internal/http/services/ocmd/send.go:119 > sourcePath /home/welcome.txt does not exist on the storage backend pid=7 pkg=rhttp traceid=2ed004ba63c45e43c21fda27f081b2a6
michielbdejong commented 2 years ago

Now running into https://github.com/pondersource/nc-sciencemesh/issues/225 -> will continue with that tomorrow!

michielbdejong commented 2 years ago

Next issue: https://github.com/pondersource/nc-sciencemesh/issues/226

michielbdejong commented 2 years ago

Next: request not handled in the revanc1.docker logs - what does that mean?

glpatcern commented 1 year ago

This was proven to work (as EFSS -> Reva -> EFSS, for both OC and NC) here