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

oCIS - some eos set up problems #257

Closed
jesmrec opened this issue May 7, 2020 · 4 comments
Closed

oCIS - some eos set up problems #257

jesmrec opened this issue May 7, 2020 · 4 comments

Comments

@jesmrec
Copy link

jesmrec commented May 7, 2020

The following description is based in the commit f379b270

  1. Cloning ocis -> OK
  2. cd ocis -> OK
  3. make eos-start -> everything is pulled and finally it manages to work. I can open the https://localhost:9200 after accepting the risk of non-secured site

After typing credentials (einstein:relativity) i get the following message:

80758472-f816e900-8b35-11ea-9a6b-4cb2634559d3

Current behaviour: if you give another try, it works. Only failing the first time
Expected: correctly redirected to list of files

the most "scaring" logs are printed during the execution of such action are:

2020-05-07T13:00:47+02:00 WRN core access token not set pkg=rhttp service=reva traceid=402432b4b6b37a1f86dda691705a1854
2020-05-07T13:00:47+02:00 DBG error retrieving credentials error="no basic auth provided" pkg=rhttp service=reva traceid=402432b4b6b37a1f86dda691705a1854
2020-05-07T13:02:00+02:00 WRN Users/jesus/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200427161359-c1549a8110eb/internal/grpc/services/authprovider/authprovider.go:107 > error authenticating user error="authsvc: error in Authenticate: oidc: error getting userinfo: +401 Unauthorized: " pkg=rgrpc service=reva traceid=ee079fb3a86d4ca76ab277513a8107fb
2020-05-07T13:02:00+02:00 INF unary code=OK end="07/May/2020:13:02:00 +0200" from=tcp://[::1]:58222 pkg=rgrpc service=reva start="07/May/2020:13:02:00 +0200" time_ns=7188535 traceid=ee079fb3a86d4ca76ab277513a8107fb uri=/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate user-agent=grpc-go/1.26.0
2020-05-07T13:02:00+02:00 ERR error authenticating credentials to auth provider for type: bearer error="gateway: grpc failed with code CODE_UNAUTHENTICATED" pkg=rgrpc service=reva traceid=ee079fb3a86d4ca76ab277513a8107fb
2020-05-07T13:02:00+02:00 WRN Users/jesus/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200427161359-c1549a8110eb/internal/grpc/services/gateway/authprovider.go:66 >  error="gateway: grpc failed with code CODE_UNAUTHENTICATED" pkg=rgrpc service=reva traceid=ee079fb3a86d4ca76ab277513a8107fb
2020-05-07T13:02:00+02:00 INF unary code=OK end="07/May/2020:13:02:00 +0200" from=tcp://[::1]:58220 pkg=rgrpc service=reva start="07/May/2020:13:02:00 +0200" time_ns=9539429 traceid=ee079fb3a86d4ca76ab277513a8107fb uri=/cs3.gateway.v1beta1.GatewayAPI/Authenticate user-agent=grpc-go/1.26.0
2020-05-07T13:02:00+02:00 ERR error generating access token from credentials error="auth: grpc failed with code CODE_UNAUTHENTICATED" pkg=rhttp service=reva traceid=ee079fb3a86d4ca76ab277513a8107fb
2020-05-07T13:02:00+02:00 WRN http end="07/May/2020:13:02:00 +0200" host=::1 method=GET pkg=rhttp proto=HTTP/1.1 service=reva size=0 start="07/May/2020:13:02:00 +0200" status=401 time_ns=11572946 traceid=ee079fb3a86d4ca76ab277513a8107fb uri=/ocs/v2.php/apps/notifications/api/v1/notifications?format=json url=/ocs/v2.php/apps/notifications/api/v1/notifications?format=json

Tested with Firefox 76.0


Then i reach the list of files and i see:

Screenshot 2020-05-07 at 13 03 40

here i see a bunch of logs pretty similar to the previous ones.

Apart of that, i can not do any action:

Screenshot 2020-05-07 at 13 05 26

Expected: i can do actions, create folders, upload stuff etc...

Checks performed:

user is looking up against glauth:

docker exec -it eos-mgm1 id einstein
uid=20000(einstein) gid=30000(users) groups=30000(users),30001(sailing-lovers),30002(violin-haters),30007(physics-lovers)

with commands, i can create folders with

docker exec -it eos-mgm1 eos mkdir /eos/dockertest/reva/users/e/einstein/testt
docker exec -it eos-mgm1 eos ls -l /eos/dockertest/reva/users/e/einstein
drwxrwsrw+   1 root     root                0 May  7 11:11 testt

but nothing visible on the web client (client issue??)

Tested with Firefox 76.0


The last but not the least affects directly the clients. Please, this is pretty important. Redirection URLs with EOS seems to be hardcoded to localhost, so there is no way to connect from client to server under different IP:

Current Behaviour:

May-07-2020 13-08-22

In regular oCIS it is posible by adding redirect urls with the specific IP. But here, i did not get the way to do the same.

Expected: Clients can complete correctly the authentication/authorization flow by using the IP/name of the server host.

iOS13.4
iPhoneX
ownCloud 1.3.2

@davitol
Copy link
Contributor

davitol commented May 7, 2020

Screenshot 2020-05-07 at 14 12 08

I stumbled upon this error during make eos-start process. I posted here just in case someone also has the same problem. I am using macOS Catalina and Docker version 19.03.8, build afacb8b

@individual-it
Copy link
Member

when I finally get in through phoenix I see the same issue on the webUI and in the log output:

2020-05-14T11:46:10+05:45 INF http end="14/May/2020:11:46:10 +0545" host=127.0.0.1 method=GET pkg=rhttp proto=HTTP/1.1 service=reva size=0 start="14/May/2020:11:46:10 +0545" status=200 time_ns=53144229 traceid=e612e34fa78ed0e2530dd243a0a6a545 uri=/ocs/v2.php/apps/notifications/api/v1/notifications?format=json url=/ocs/v2.php/apps/notifications/api/v1/notifications?format=json
2020-05-14T06:01:19Z ERR home/artur/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200512135421-3aa67e818a8d/internal/grpc/services/storageprovider/storageprovider.go:451 > error stating file: path:"/home"  error="user: lookup username einstein: no such file or directory" pkg=rgrpc service=reva traceid=75cc4e879c0392da5251577301714f0b
2020-05-14T06:01:19Z INF unary code=OK end="14/May/2020:06:01:19 +0000" from=tcp://172.19.0.1:55092 pkg=rgrpc service=reva start="14/May/2020:06:01:09 +0000" time_ns=10013098549 traceid=75cc4e879c0392da5251577301714f0b uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-05-14T11:46:19+05:45 INF unary code=OK end="14/May/2020:11:46:19 +0545" from=tcp://127.0.0.1:36744 pkg=rgrpc service=reva start="14/May/2020:11:46:09 +0545" time_ns=10014547939 traceid=75cc4e879c0392da5251577301714f0b uri=/cs3.gateway.v1beta1.GatewayAPI/Stat user-agent=grpc-go/1.26.0
2020-05-14T11:46:19+05:45 ERR http end="14/May/2020:11:46:19 +0545" host=127.0.0.1 method=PROPFIND pkg=rhttp proto=HTTP/1.1 service=reva size=0 start="14/May/2020:11:46:09 +0545" status=500 time_ns=10083521386 traceid=75cc4e879c0392da5251577301714f0b uri=/remote.php/webdav/ url=/remote.php/webdav/
2020-05-14T11:46:19+05:45 DBG director found path=/ocs/v1.php/cloud/users/einstein policy=reva prefix=/ocs/ routeType=prefix service=proxy
2020-05-14T11:46:19+05:45 WRN core access token not set pkg=rhttp service=reva traceid=d5ee71cef821cb870ae26be736bc0bf7
2020-05-14T11:46:19+05:45 DBG error retrieving credentials error="no basic auth provided" pkg=rhttp service=reva traceid=d5ee71cef821cb870ae26be736bc0bf7
2020-05-14T11:46:19+05:45 DBG credentials obtained from credential strategy: &{Type:bearer ClientID: ClientSecret:eyJhbGciOiJQUzI1NiIsImtpZCI6IiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJwaG9lbml4IiwiZXhwIjoxNTg5NDM2NDg5LCJqdGkiOiJILUFyclFkcmJQS1dpMmNDeDhQUGZlcGhFVGY5VmRlMiIsImlhdCI6MTU4OTQzNTg4OSwiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6OTIwMCIsInN1YiI6Ilh0U2lfbWl5V1NCLXBrdkdueFBvQzVBNGZsaWgwVUNMZ3ZVN2NMd2ptakNLWDdGWW4ySFdrNnJSQ0V1eTJHNXFBeV95TVFjX0ZLOWFORmhVTXJYMnBRQGtvbm5lY3QiLCJrYy5pc0FjY2Vzc1Rva2VuIjp0cnVlLCJrYy5hdXRob3JpemVkU2NvcGVzIjpbIm9wZW5pZCIsInByb2ZpbGUiLCJlbWFpbCJdLCJrYy5pZGVudGl0eSI6eyJrYy5pLmRuIjoiRWluc3RlaW4iLCJrYy5pLmlkIjoiY249ZWluc3RlaW4sb3U9dXNlcnMsZGM9ZXhhbXBsZSxkYz1vcmciLCJrYy5pLnVuIjoiZWluc3RlaW4ifSwia2MucHJvdmlkZXIiOiJpZGVudGlmaWVyLWxkYXAifQ.sBHaeEdY_OlZDI9IdfPl5rkHyn10-JCbaQns-Yz69Nj51_jDBKDY0-48KDLtUr-X7k1Qt1A5Y3f8LMHbVKX-40WEsKGrUfrVun6zETMR5HlxKdgD-yvllQz37t97L3Q_hWeqYMPpb1XwukXdxa_PM5SCIKCZEJmUEA5iR4tlT8OYqCDLM5H0b9fDR6Jbzzr3YQ3pCZiaEO4dT1AE8dF14ARCVpDxKCWyfvrSQFHipFYH2EhNgf4ANMOebl5GNxmcfqXrQMtRykWnZgiwwn_bM5EyCdqQAqfqlO8THFOo0bpqX9vxYS7COk4Jt2wOGfw9PWsVwWOs7pSJZKioKAYjJg} pkg=rhttp service=reva traceid=d5ee71cef821cb870ae26be736bc0bf7

@individual-it
Copy link
Member

doing a basic-auth PROPFIND shows:
curl 'https://localhost:9200/remote.php/webdav/' -k -u einstein:relativity

2020-05-14T06:07:05Z ERR home/artur/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200512135421-3aa67e818a8d/internal/grpc/services/storageprovider/storageprovider.go:451 > error stating file: path:"/home" error="user: lookup username einstein: no such file or directory" pkg=rgrpc service=reva traceid=282372b116b5982ba6fc94b18ddfe74e

@refs
Copy link
Member

refs commented Jan 12, 2021

fixed on previous releases.

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

4 participants