Skip to content

Collaboration Wopi with OnlyOffice not working (NixOS) #2180

@pythonpoet

Description

@pythonpoet

OpenCloud is not able to establish connection with OnlyOffice through wopi server

OpenCloud should be able to interface with Only office through a series of microservices.
A description of this can be found here and documentation of environment variables can be found here

Steps to reproduce

  1. As outlined in the first link, OC_ADD_RUN_SERVICES must contain "gateway,app-registry,collaboration"
  2. JWT secret is set with: OC_JWT_SECRET = "whatever";
  3. Configuring end point with:
    COLLABORATION_SERVICE_NAME = "collaboration"; COLLABORATION_APP_NAME = "OnlyOffice"; COLLABORATION_APP_PRODUCT = "OnlyOffice"; COLLABORATION_APP_DESCRIPTION = "Open office documents with OnlyOffice"; COLLABORATION_APP_ICON = "image-edit"; COLLABORATION_APP_ADDR = "http://127.0.0.1:9982"; COLLABORATION_WOPI_SRC = "https://office.youserver.net"; COLLABORATION_WOPI_SECRET = "whatever"; COLLABORATION_APP_INSECURE ="false"; COLLABORATION_APP_PROOF_DISABLE = "true"; COLLABORATION_OO_SECRET = "whatever";

Expected behavior

The service should be able to interface with the Onlyoffice server that runs correctly under
http://127.0.0.1:9982/healthcheck and http://127.0.0.1:9982/hosting/discovery

Actual behavior

Im getting the error {"level":"error","service":"collaboration","error":"rpc error: code = Canceled desc = context canceled","time":"2026-01-19T15:45:25+01:00","message":"AddAppProvider failed"}
Jan 19 15:45:25 bernina opencloud[236697]: {"level":"error","service":"collaboration","error":"rpc error: code = Canceled desc = context canceled","time":"2026-01-19T15:45:25+01:00","message":"AddAppProvider failed"}

I tried the setting using variables that have default values:
MICRO_REGISTRY = "nats-js-kv";
MICRO_REGISTRY_ADDRESS = "127.0.0.1:9233";
OC_REVA_GATEWAY = "127.0.0.1:9142";
COLLABORATION_CS3_GATEWAY = "127.0.0.1:9142";
GATEWAY_GRPC_ADDR = "127.0.0.1:9142";

but only with the same results

Setup

FInd my nix config here

Thank you for your help

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions