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

HTTP 500 when trying to open a file in OnlyOffice and Collabora #2840

Closed
coucoulala opened this issue Dec 3, 2021 · 2 comments
Closed

HTTP 500 when trying to open a file in OnlyOffice and Collabora #2840

coucoulala opened this issue Dec 3, 2021 · 2 comments
Assignees
Labels

Comments

@coucoulala
Copy link

coucoulala commented Dec 3, 2021

Describe the bug

I've setup Collabora and OnlyOffice as described here https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_wopi . When I try to open a Document in either OnlyOffice or Collabora an error is thrown. I checked https://ocis.ocis-wopi.released.owncloud.works and the issue exists there as well.

Steps to reproduce

Steps to reproduce the behavior:

  1. Follow the instructions here: https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_wopi .
  2. Upon trying to open either editor an error is thrown.

Expected behavior

The opening of the file in OnlyOffice / Collbora.

Actual behavior

Error.

Setup

Like here https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_wopi but with Authelia as external IDP instead of Keycloack.

ocis    | {"level":"error","service":"storage","pkg":"rgrpc","traceid":"00000000000000000000000000000000","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0","from":"tcp://127.0.0.1:37174","uri":"/cs3.gateway.v1beta1.GatewayAPI/OpenInApp","start":"03/Dec/2021:18:12:38 +0000","end":"03/Dec/2021:18:12:38 +0000","time_ns":22269500,"code":"Unknown","time":"2021-12-03T18:12:38Z","message":"unary"}
ocis    | {"level":"error","service":"storage","pkg":"rhttp","traceid":"00000000000000000000000000000000","error":"rpc error: code = Unknown desc = gateway: error calling findAppProvider: internal error: gateway: user requested app \"OnlyOffice\" and we provided 2 applications","time":"2021-12-03T18:12:38Z","message":"Error contacting the requested application, please use a different one or try again later"}
ocis    | {"level":"error","service":"storage","pkg":"rhttp","traceid":"00000000000000000000000000000000","host":"127.0.0.1","method":"POST","uri":"/app/open?file_id=MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU3OjBmNDA1NzNhLTM0ZTAtNGRiZi1iNGYzLTkyNDYyYjE0NWUwMw==&app_name=OnlyOffice","url":"/app/open?file_id=MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU3OjBmNDA1NzNhLTM0ZTAtNGRiZi1iNGYzLTkyNDYyYjE0NWUwMw==&app_name=OnlyOffice","proto":"HTTP/1.1","status":500,"size":134,"start":"03/Dec/2021:18:12:38 +0000","end":"03/Dec/2021:18:12:38 +0000","time_ns":34513289,"time":"2021-12-03T18:12:38Z","message":"http"}
ocis    | {"level":"error","service":"ocs","count":1,"userid":"f6a18d17-6f1e-4ece-ad98-09d2511d8029","time":"2021-12-03T18:14:16Z","message":"listing groups for user"}
ocis    | {"level":"error","service":"storage","pkg":"rgrpc","traceid":"00000000000000000000000000000000","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0","from":"tcp://127.0.0.1:37174","uri":"/cs3.gateway.v1beta1.GatewayAPI/OpenInApp","start":"03/Dec/2021:18:14:17 +0000","end":"03/Dec/2021:18:14:17 +0000","time_ns":11641688,"code":"Unknown","time":"2021-12-03T18:14:17Z","message":"unary"}
ocis    | {"level":"error","service":"storage","pkg":"rhttp","traceid":"00000000000000000000000000000000","error":"rpc error: code = Unknown desc = gateway: error calling findAppProvider: internal error: gateway: user requested app \"Collabora\" and we provided 0 applications","time":"2021-12-03T18:14:17Z","message":"Error contacting the requested application, please use a different one or try again later"}
ocis    | {"level":"error","service":"storage","pkg":"rhttp","traceid":"00000000000000000000000000000000","host":"127.0.0.1","method":"POST","uri":"/app/open?file_id=MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU3OjBmNDA1NzNhLTM0ZTAtNGRiZi1iNGYzLTkyNDYyYjE0NWUwMw==&app_name=Collabora","url":"/app/open?file_id=MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU3OjBmNDA1NzNhLTM0ZTAtNGRiZi1iNGYzLTkyNDYyYjE0NWUwMw==&app_name=Collabora","proto":"HTTP/1.1","status":500,"size":134,"start":"03/Dec/2021:18:14:17 +0000","end":"03/Dec/2021:18:14:17 +0000","time_ns":16225754,"time":"2021-12-03T18:14:17Z","message":"http"}

Additional context

Add any other context about the problem here.

@wkloucek
Copy link
Contributor

wkloucek commented Dec 6, 2021

Thanks for the report, I'll have a look.

Opening documents on https://ocis.ocis-wopi.latest.owncloud.works/ is perfectly possible (oCIS master), but as you described, it fails on https://ocis.ocis-wopi.released.owncloud.works/ (oCIS 1.15)

@wkloucek wkloucek self-assigned this Dec 6, 2021
@wkloucek
Copy link
Contributor

wkloucek commented Dec 7, 2021

Took me also some time to notice, but the deployment changed. We renamed some variables in 222683d#diff-00f4b53022cf3b58e15026fe6107678c262c84901e8588d044984cf217212019 ( as part of #2811).

So if you use APP_PROVIDER_BASIC_GRPC_ADDR instead of APP_PROVIDER_GRPC_ADDR and APP_PROVIDER_BASIC_EXTERNAL_ADDR instead of APP_PROVIDER_EXTERNAL_ADDR, it also works with oCIS 1.15.0.

@wkloucek wkloucek closed this as completed Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants