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

Blank page after fresh install on raspberry pi #1354

Closed
Rilnaista opened this issue Jan 20, 2021 · 19 comments
Closed

Blank page after fresh install on raspberry pi #1354

Rilnaista opened this issue Jan 20, 2021 · 19 comments
Labels
OCIS-Fastlane Planned outside of the sprint Type:Bug

Comments

@Rilnaista
Copy link

Rilnaista commented Jan 20, 2021

I had just made a clean install on a clean raspberry pi (2021-01-11-raspios-buster-armhf-lite) full updated / upgraded via

curl https://download.owncloud.com/ocis/ocis/1.0.0/ocis-1.0.0-linux-arm --output ocis

After that I started the service via

-/ocis server

I stopped the service via STRG+C and edited the generated config/identifier-registration.yaml like descibed at https://owncloud.github.io/ocis/deployment/basic-remote-setup/ to access this owncloud from my PC.

clients:
  - id: web
  name: ownCloud web app
  trusted: yes
  insecure: yes
  redirect_uris:
    - https://localhost:9200/
    - https://localhost:9200/oidc-callback.html
    - https://localhost:9200/oidc-silent-redirect.html
    - http://localhost:9100/
    - http://localhost:9100/oidc-callback.html
    - http://localhost:9100/oidc-silent-redirect.html
    - https://owncloud:9200/
    - https://owncloud:9200/oidc-callback.html
    - https://owncloud:9200/oidc-silent-redirect.html
  origins:
    - https://localhost:9200
    - http://localhost:9100
    - https://owncloud:9200

After editing the yml file I started the server with the following command:

PROXY_HTTP_ADDR=0.0.0.0:9200 \ OCIS_URL=https://owncloud:9200 \ PROXY_TRANSPORT_TLS_KEY=./certs/your-host.key \ PROXY_TRANSPORT_TLS_CERT=./certs/your-host.crt \ KONNECTD_TLS=0 \ ./ocis server

I cleared the cache in my browser and typed in the hostname and got a blank screen. I took a look in the console and saw that owncloud tried to load an js-Library from localhost.

2core.bundle.js:18 UserManager.getUser: user not found in storage core.bundle.js:18 JsonService.getJson: network error t.error @ core.bundle.js:18 localhost:9200/.well-known/openid-configuration:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT core.bundle.js:18 Uncaught (in promise) Error: Network Error at XMLHttpRequest.s.onerror (core.bundle.js:18)

I followed all described steps to access own cloud via remote. It didn't work as expected / described. Don't know it there is an bug in the documentation or software.

Hope I provided all needed information to reproduce this error.

@refs
Copy link
Member

refs commented Jan 20, 2021

Hi @Rilnaista thank you for opening an issue!

By having a look at your command, did you replace the dummy text from the docs /certs/your-host.key and /certs/your-host.cert with the generated cert from the first run? After a first run, you should have a path structure such as:

❯ tree
.
├── config
│   └── identifier-registration.yaml
├── ldap.crt
├── ldap.key
├── ocis
├── server.crt
└── server.key

1 directory, 6 files

Resulting in modifying your command to something like:

PROXY_HTTP_ADDR=0.0.0.0:9200 \
OCIS_URL=https://owncloud:9200 \
PROXY_TRANSPORT_TLS_KEY=server.key \
PROXY_TRANSPORT_TLS_CERT=server.crt \
KONNECTD_TLS=0 \
./ocis server

Would you please be able to on a different terminal (with ocis running) run ./ocis list and paste the output here?

@Rilnaista
Copy link
Author

Rilnaista commented Jan 20, 2021

Hi @refs ! Thank you for your quick reply.

I modified the command as you described. But there is no change in the behavior. I get the same error message in my browser javascript / ressources console.

When I run ./ocis list I get this result:

+----------------------+------+
|      EXTENSION       | PID  |
+----------------------+------+
| accounts             | 7340 |
| api                  | 7164 |
| glauth               | 7172 |
| konnectd             | 7178 |
| ocs                  | 7184 |
| onlyoffice           | 7190 |
| proxy                | 7195 |
| registry             | 7166 |
| settings             | 7204 |
| storage-auth-basic   | 7244 |
| storage-auth-bearer  | 7252 |
| storage-frontend     | 7216 |
| storage-gateway      | 7226 |
| storage-home         | 7254 |
| storage-metadata     | 7272 |
| storage-public-link  | 7277 |
| storage-sharing      | 7342 |
| storage-userprovider | 7239 |
| storage-users        | 7256 |
| store                | 7207 |
| thumbnails           | 7287 |
| web                  | 7294 |
| webdav               | 7303 |
+----------------------+------+

I start the fullstack ocis via

PROXY_HTTP_ADDR=0.0.0.0:9200 \
OCIS_URL=https://owncloud:9200 \
PROXY_TRANSPORT_TLS_KEY=./server.key \
PROXY_TRANSPORT_TLS_CERT=./server.crt \
KONNECTD_TLS=0 \
./ocis server

The service comes up and starts the microservices in a row - mostly looks fine, but there are three warnings - are they important?

2021-01-20T17:22:44Z INF runtime ready on localhost:10666 service=runtime
2021-01-20T17:22:49Z INF Using backend backend={"BaseDN":"dc=example,dc=org","Datastore":"accounts","GroupFormat":"ou","Insecure":false,"NameFormat":"cn","SSHKeyAttr":"sshPublicKey","Servers":["https://demo.owncloud.com/apps/graphapi/v1.0"],"UseGraphAPI":true} name=glauth service=glauth verbosity=3
2021-01-20T17:22:49Z INF starting server addr=0.0.0.0:9129 service=glauth transport=debug
2021-01-20T17:22:49Z INF ldap server listening address=0.0.0.0:9125 name=glauth service=glauth verbosity=3
2021-01-20T17:22:49Z INF ldaps server listening address=0.0.0.0:9126 name=glauth service=glauth verbosity=3
2021-01-20 17:22:49  file=v2@v2.9.1/service.go:200 level=info service=registry Starting [service] com.owncloud.registry
2021-01-20 17:22:49  file=grpc/grpc.go:864 level=info service=registry Server [grpc] Listening on [::]:8000
2021-01-20 17:22:49  file=grpc/grpc.go:697 level=info service=registry Registry [mdns] Registering node: com.owncloud.registry-b7676ae7-1b25-472e-8b06-5d51abf04f37
2021-01-20T17:22:49Z INF starting server addr=0.0.0.0:9130 service=konnectd transport=http
2021-01-20T17:22:49Z INF dynamic client registration is enabled service=konnectd



2021-01-20T17:22:49Z WRN missing --encryption-secret parameter, using random encyption secret with 32 bytes service=konnectd
2021-01-20T17:22:49Z WRN missing --signing-private-key parameter, using random 2048 bit signing key alg=PS256 service=konnectd
2021-01-20T17:22:49Z INF Policies service=proxy source=runtime
2021-01-20T17:22:49Z WRN policy-selector not configured. Will always use first policy: 'reva' service=proxy


2021-01-20T17:22:49Z INF starting server addr=0.0.0.0:9200 service=proxy transport=https
2021-01-20T17:22:49Z INF starting server addr=0.0.0.0:9205 service=proxy transport=debug
2021-01-20 17:22:49  file=web/service.go:258 level=info Listening on [::]:9200
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9110 service=ocs transport=http
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9114 service=ocs transport=debug
2021-01-20 17:22:50  file=web/service.go:258 level=info Listening on [::]:9110
2021-01-20 17:22:50  file=api/api.go:285 level=info service=api Registering API Default Handler at /
2021-01-20 17:22:50  file=http/http.go:90 level=info service=api HTTP API Listening on [::]:8080
2021-01-20 17:22:50  file=v2@v2.9.1/service.go:200 level=info service=api Starting [service] com.owncloud.api
2021-01-20 17:22:50  file=grpc/grpc.go:864 level=info service=api Server [grpc] Listening on [::]:43633
2021-01-20 17:22:50  file=grpc/grpc.go:697 level=info service=api Registry [mdns] Registering node: com.owncloud.api-fc85ef1f-b8ec-4ea5-99ef-ef85cbed46aa
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9143 service=storage transport=debug
2021-01-20T17:22:50Z INF registering external service com.owncloud.storage-7f80ea7f-87a9-428a-9c1a-03db81d36e4b@0.0.0.0:9142 service=storage
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-gateway-7f80ea7f-87a9-428a-9c1a-03db81d36e4b.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: authregistry pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: storageregistry pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: gateway pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF grpc server listening at tcp:0.0.0.0:9142 pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9149 service=storage transport=debug
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-auth-bearer-6c224dc2-8c1b-4bc1-bdb7-55cd490deedd.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: authprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF grpc server listening at tcp:0.0.0.0:9148 pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9190 service=settings transport=http
2021-01-20T17:22:50Z INF Continue without config service=onlyoffice
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9220 service=onlyoffice transport=http
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9224 service=onlyoffice transport=debug
2021-01-20 17:22:50  file=web/service.go:258 level=info Listening on [::]:9220
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9191 service=settings transport=grpc
2021-01-20T17:22:50Z INF starting server addr= service=store transport=grpc
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9194 service=settings transport=debug
2021-01-20 17:22:50  file=v2@v2.9.1/service.go:200 level=info Starting [service] com.owncloud.api.settings
2021-01-20 17:22:50  file=grpc/grpc.go:864 level=info Server [grpc] Listening on [::]:9191
2021-01-20 17:22:50  file=web/service.go:258 level=info Listening on [::]:9190
2021-01-20 17:22:50  file=grpc/grpc.go:697 level=info Registry [mdns] Registering node: com.owncloud.api.settings-e64a9a0f-1c40-420c-bd2e-45005ab3f7fd
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9156 service=storage transport=debug
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-home-fa53f444-2b97-4844-b6dc-07baf8dae05a.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: storageprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9179 service=storage transport=debug
2021-01-20T17:22:50Z INF http service enabled: dataprovider@/data pkg=rhttp service=storage
2021-01-20T17:22:50Z INF http server listening at http://0.0.0.0:9155 pkg=rhttp service=storage
2021-01-20T17:22:50Z INF grpc server listening at tcp:0.0.0.0:9154 pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-public-link-b3f86a9f-7b68-4076-b8c1-8aec1172c919.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: publicstorageprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: authprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF grpc server listening at tcp:0.0.0.0:9178 pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9460 service=store transport=debug
2021-01-20 17:22:50  file=v2@v2.9.1/service.go:200 level=info Starting [service] com.owncloud.api.store
2021-01-20 17:22:50  file=grpc/grpc.go:864 level=info Server [grpc] Listening on [::]:38891
2021-01-20 17:22:50  file=grpc/grpc.go:697 level=info Registry [mdns] Registering node: com.owncloud.api.store-048c7f81-bf16-4ecb-af98-fdd02db81afc
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9147 service=storage transport=debug
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-auth-basic-9367bed2-32f0-428b-bb1b-33182f4563b4.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: authprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF grpc server listening at tcp:0.0.0.0:9146 pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9141 service=storage transport=debug
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-frontend-ebfd7bc6-4447-4e0e-85d0-7d976fb8f08b.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF http service enabled: datagateway@/data pkg=rhttp service=storage
2021-01-20T17:22:50Z INF http service enabled: ocdav@/ pkg=rhttp service=storage
2021-01-20T17:22:50Z INF http service enabled: ocs@/ocs pkg=rhttp service=storage
2021-01-20T17:22:50Z INF http middleware enabled: cors pkg=rhttp service=storage
2021-01-20T17:22:50Z INF chaining http middleware cors with priority  200 pkg=rhttp service=storage
2021-01-20T17:22:50Z INF unprotected URL: /status.php pkg=rhttp service=storage
2021-01-20T17:22:50Z INF unprotected URL: /remote.php/dav/public-files pkg=rhttp service=storage
2021-01-20T17:22:50Z INF http server listening at http://0.0.0.0:9140 pkg=rhttp service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9115 service=webdav transport=http
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9119 service=webdav transport=debug
2021-01-20 17:22:50  file=web/service.go:258 level=info Listening on [::]:9115
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9100 service=web transport=http
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9145 service=storage transport=debug
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-userprovider-0df4a64d-cb99-4895-926b-c51eeed7464b.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: userprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF grpc server listening at tcp:0.0.0.0:9144 pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9104 service=web transport=debug
2021-01-20 17:22:50  file=web/service.go:258 level=info Listening on [::]:9100
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9159 service=storage transport=debug
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-users-dd8c933c-6a5d-42f4-a2ac-286250e8fbdf.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: storageprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF grpc server listening at tcp:0.0.0.0:9157 pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF http service enabled: dataprovider@/data pkg=rhttp service=storage
2021-01-20T17:22:50Z INF http server listening at http://0.0.0.0:9158 pkg=rhttp service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9217 service=storage transport=debug
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9185 service=thumbnails transport=grpc
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-metadata-675ddf54-c797-422c-ae4d-d49cdd5e10c7.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF http service enabled: dataprovider@/data pkg=rhttp service=storage
2021-01-20T17:22:50Z INF http server listening at http://0.0.0.0:9216 pkg=rhttp service=storage
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9189 service=thumbnails transport=debug
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: storageprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF grpc server listening at tcp:0.0.0.0:9215 pkg=rgrpc service=storage
2021-01-20 17:22:50  file=v2@v2.9.1/service.go:200 level=info Starting [service] com.owncloud.api.thumbnails
2021-01-20 17:22:50  file=grpc/grpc.go:864 level=info Server [grpc] Listening on [::]:9185
2021-01-20 17:22:50  file=grpc/grpc.go:697 level=info Registry [mdns] Registering node: com.owncloud.api.thumbnails-c7844289-52fd-4d42-be31-9f68071d4f86
2021-01-20T17:22:50Z INF starting server addr=0.0.0.0:9151 service=storage transport=debug
2021-01-20T17:22:50Z INF host info: owncloud service=storage
2021-01-20T17:22:50Z INF running on 4 cpus service=storage
2021-01-20T17:22:50Z INF pidfile saved at: /tmp/revad-storage-sharing-19d725dd-3fd3-4763-b67d-1411ff5feb75.pid pkg=grace service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: usershareprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF rgrpc: grpc service enabled: publicshareprovider pkg=rgrpc service=storage
2021-01-20T17:22:50Z INF grpc server listening at tcp:0.0.0.0:9150 pkg=rgrpc service=storage
2021-01-20T17:22:51Z INF starting server addr=0.0.0.0:9181 service=accounts transport=http
2021-01-20T17:22:51Z INF starting server addr=0.0.0.0:9180 service=accounts transport=grpc
2021-01-20T17:22:51Z INF Reporting settings bundles to settings service service=com.owncloud.api.accounts
2021-01-20 17:22:51  file=web/service.go:258 level=info Listening on [::]:9181
2021-01-20T17:22:51Z INF Successfully registered bundle bundle=2a506de7-99bd-4f0d-994e-c38e72c28fd9 service=accounts
2021-01-20T17:22:51Z INF Successfully added setting to bundle bundle=71881883-1768-46bd-a24d-a356a2afdf7f service=accounts setting=7d81f103-0488-4853-bce5-98dcce36d649
2021-01-20T17:22:51Z INF Successfully added setting to bundle bundle=d7beeea8-8ff4-406b-8fb6-ab2dd81e6b11 service=accounts setting=640e00d2-4df8-41bd-b1c2-9f30a01e0e99
2021-01-20T17:22:51Z INF Successfully added setting to bundle bundle=38071a68-456a-4553-846a-fa67bf5596cc service=accounts setting=ca878636-8b1a-4fae-8282-8617a4c13597
2021-01-20T17:22:51Z INF successfully added permission to bundle bundle=71881883-1768-46bd-a24d-a356a2afdf7f service=accounts setting=8e587774-d929-4215-910b-a317b1e80f73
2021-01-20T17:22:51Z INF successfully added permission to bundle bundle=71881883-1768-46bd-a24d-a356a2afdf7f service=accounts setting=522adfbe-5908-45b4-b135-41979de73245
2021-01-20T17:22:51Z INF successfully added permission to bundle bundle=d7beeea8-8ff4-406b-8fb6-ab2dd81e6b11 service=accounts setting=e03070e9-4362-4cc6-a872-1c7cb2eb2b8e
2021-01-20 17:22:51  file=v2@v2.9.1/service.go:200 level=info Starting [service] com.owncloud.api.accounts
2021-01-20 17:22:51  file=grpc/grpc.go:864 level=info Server [grpc] Listening on [::]:9180
2021-01-20 17:22:51  file=grpc/grpc.go:697 level=info Registry [mdns] Registering node: com.owncloud.api.accounts-2083f93d-40ef-4d95-8090-5fd898accb94
2021-01-20T17:22:54Z INF encryption set up with 32 key size service=konnectd
2021-01-20T17:22:54Z INF ldap server identifier backend set up ldap="ldap://localhost:9125 " service=konnectd
2021-01-20T17:22:54Z INF identifier set up security=A256GCM:A256GCMKW service=konnectd
2021-01-20T17:22:54Z INF using identifier backed identity manager service=konnectd
2021-01-20T17:22:54Z INF identity manager set up claims=["name","family_name","given_name","email","email_verified"] name=ldap scopes=["offline_access","profile","email","konnect/uuid","konnect/raw_sub"] service=konnectd
2021-01-20T17:22:54Z INF set provider signing alg alg=PS256 service=konnectd
2021-01-20T17:22:54Z INF set provider signing key id= method=*jwt.SigningMethodRSAPSS service=konnectd type=*rsa.PrivateKey
2021-01-20T17:22:54Z INF set provider validation key id= service=konnectd type=*rsa.PublicKey
2021-01-20T17:22:54Z INF set provider validation key id=default service=konnectd type=*rsa.PublicKey
2021-01-20T17:22:54Z INF set provider validation key id=default service=konnectd type=*rsa.PublicKey
2021-01-20T17:22:54Z INF oidc token signing default set up alg=PS256 id= method=*jwt.SigningMethodRSAPSS service=konnectd
2021-01-20T17:22:54Z INF starting server addr=0.0.0.0:9134 service=konnectd transport=debug
2021-01-20 17:22:54  file=web/service.go:258 level=info Listening on [::]:9130
2021-01-20 17:22:59.017023 I | http: TLS handshake error from 192.168.190.100:54403: remote error: tls: unknown certificate
2021-01-20 17:22:59.117826 I | http: TLS handshake error from 192.168.190.100:54405: remote error: tls: unknown certificate
2021-01-20 17:22:59.145208 I | http: TLS handshake error from 192.168.190.100:54406: remote error: tls: unknown certificate
2021-01-20T17:22:59Z INF access-log from=192.168.190.100:54407 method=GET path=/settings.js service=proxy
2021-01-20T17:22:59Z INF access-log from=192.168.190.100:54407 method=GET path=/accounts.js service=proxy
2021-01-20 17:23:08.182252 I | http: TLS handshake error from 192.168.190.100:54413: remote error: tls: unknown certificate

@Rilnaista
Copy link
Author

It seems to be a duplicate issue to #1085 but there is no solution documented ...

@refs
Copy link
Member

refs commented Jan 20, 2021

indeed, we solved it internally. Let me fetch the fix and post it later / tomorrow :)

@Rilnaista
Copy link
Author

indeed, we solved it internally. Let me fetch the fix and post it later / tomorrow :)

TY for your assistance! I'll be patient :)

@Aruscha
Copy link

Aruscha commented Jan 26, 2021

I have the same problem

@exalate-issue-sync exalate-issue-sync bot added p3-medium OCIS-Fastlane Planned outside of the sprint labels Jan 26, 2021
@refs
Copy link
Member

refs commented Jan 26, 2021

Hi @Rilnaista, apologies for taking me 5 days to get back to the issue, we've had a busy week. We've had some setbacks with mDNS as a default service registry, so another approach is to use etcd as service registry. An idea to have oCIS running on Pi would be:

  1. Install etcd
  2. Start oCIS with etcd as service registry

Installing etcd

sudo apt-get install etcd

And for some reason, etcd needs some fixes that are described here: etcd-io/etcd#10677 (comment)

which is:

Add the line ETCD_UNSUPPORTED_ARCH=arm at the end of /etc/default/etcd
Create one directory: sudo mkdir -p /var/lib/etcd/default

And finally start the etcd service: either sudo service etcd start or etcd &

Note that this step is not necessary, you could also go for the default mDNS. For that, you need to make sure ahavi-daemon is installed and started but potentially run into firewall issues.

Start oCIS with etcd as service registry

Set MICRO_REGISTRY=etcd:

PROXY_HTTP_ADDR=0.0.0.0:9200 \
OCIS_URL=https://owncloud:9200 \
PROXY_TRANSPORT_TLS_KEY=./server.key \
PROXY_TRANSPORT_TLS_CERT=./server.crt \
MICRO_REGISTRY=etcd \
KONNECTD_TLS=0 \
./ocis server

Sadly I haven't yet been able to entirely reproduce it on my machine since I'm using dockerpi but please give this a go, I'd be happy to hear back from you after trying this out.

@robwil
Copy link

robwil commented Jan 28, 2021

Thank you! Using etcd solved the problem on my Raspberry Pi 4. The exact instructions of what I had to get etcd working on my Pi was closer to what is described at the bottom of this comment (etcd-io/etcd#10677 (comment)) as opposed to the one you linked to -- I think because my Pi uses systemd.

@Aruscha
Copy link

Aruscha commented Jan 29, 2021

So I'm really annoyed by now. I've been trying to get the software up and running for 1 week. The beta version of 1.0.0 reveals at least the webgui.
However, the login button does not work.

As of version 1.0.0 RC1 white screen.
The one described above I have installed
No success

When trying to log in, the developer tools
OpenID does not want to, gives ERR_CONNECTION_REFUSE

Another idea?

@refs
Copy link
Member

refs commented Jan 31, 2021

So I'm really annoyed by now. I've been trying to get the software up and running for 1 week. The beta version of 1.0.0 reveals at least the webgui.
However, the login button does not work.

As of version 1.0.0 RC1 white screen.
The one described above I have installed
No success

When trying to log in, the developer tools
OpenID does not want to, gives ERR_CONNECTION_REFUSE

Another idea?

That's indeed annoying. I will dig into this this week, perhaps the docs are outdated and need a revamp. Will dog into your config and reproduce it on my setup :) we could also debug on a Zoom call if you have the time

@Aruscha
Copy link

Aruscha commented Jan 31, 2021

So I'm really annoyed by now. I've been trying to get the software up and running for 1 week. The beta version of 1.0.0 reveals at least the webgui.
However, the login button does not work.

As of version 1.0.0 RC1 white screen.
The one described above I have installed
No success

When trying to log in, the developer tools
OpenID does not want to, gives ERR_CONNECTION_REFUSE

Another idea?

That's indeed annoying. I will dig into this this week, perhaps the docs are outdated and need a revamp. Will dog into your config and reproduce it on my setup :) we could also debug on a Zoom call if you have the time

I would love to debug with you just is my English disaster :D

@refs
Copy link
Member

refs commented Jan 31, 2021

So I'm really annoyed by now. I've been trying to get the software up and running for 1 week. The beta version of 1.0.0 reveals at least the webgui.
However, the login button does not work.

As of version 1.0.0 RC1 white screen.
The one described above I have installed
No success

When trying to log in, the developer tools
OpenID does not want to, gives ERR_CONNECTION_REFUSE

Another idea?

That's indeed annoying. I will dig into this this week, perhaps the docs are outdated and need a revamp. Will dig into your config and reproduce it on my setup :) we could also debug on a Zoom call if you have the time

I would love to debug with you just is my English disaster :D

And that's perfectly fine! Let me write you tomorrow

This was referenced Jan 31, 2021
@refs
Copy link
Member

refs commented Feb 1, 2021

@Aruscha I tried your setup on my machine and am confident it should work on your Pi when we switch the service registry over to etcd. Did you give that a try? If not, as I said, ping me whenever today and we can jump on a Zoom call and I'll show you around and debug it together :)

@Aruscha
Copy link

Aruscha commented Feb 1, 2021

So for me it runs in a VM or In an LXC CONTAINER
As I said I would like to debug it but I can only speak german
English is a disaster

@refs
Copy link
Member

refs commented Feb 1, 2021

@Aruscha It's okay, I can try my best German :) do you have an email I can send you the zoom link?

@mpolinowski
Copy link

@refs Have you tried running the Docker container?

docker pull owncloud/ocis
docker run --rm -ti -p 9200:9200 owncloud/ocis

The problem there looks the same - if it is the same issue, it can no be specific to @Aruscha setup. I am using an Intel NUC (eq.) with Ubuntu Server 20.10.

@refs
Copy link
Member

refs commented Feb 1, 2021

@refs Have you tried running the Docker container?

docker pull owncloud/ocis
docker run --rm -ti -p 9200:9200 owncloud/ocis

The problem there looks the same - if it is the same issue, it can no be specific to @Aruscha setup. I am using an Intel NUC (eq.) with Ubuntu Server 20.10.

Just tried docker run --rm -ti -p 9200:9200 owncloud/ocis with the latest image and works fine (at least on mac).

It doesn't smell as it is the same issue.

@mpolinowski
Copy link

works fine (at least on mac).

Ok - that is interesting. I thought it was a general issue so I did not try it any further. I ran the Docker image under Windows and there it is starting up.

@refs
Copy link
Member

refs commented Feb 1, 2021

@mpolinowski check the latest update on #1085 for a bit more context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCIS-Fastlane Planned outside of the sprint Type:Bug
Projects
None yet
Development

No branches or pull requests

5 participants