Collaboration Wopi with OnlyOffice not working (NixOS) #2237
Replies: 19 comments
-
|
Context cancelled means some component in the middle terminates the connection. Could be that some max request body size or max header length situations are triggered inside your infrastructure. Without further details, that looks to me like infrastructure interfering between the opencloud and the collaboration service. This specific failing request uses grpc not http. |
Beta Was this translation helpful? Give feedback.
-
|
In my case, it works without any problems... |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the suggestions! OC_ADD_RUN_SERVICES = "collaboration"; COLLABORA_DOMAIN = "https://office.example.net";
Now the error i'm getting is it says the address 127.0.0.1:9300 is already in use and then the collaboration server crashes. here are the logs: Find full source code here
|
Beta Was this translation helpful? Give feedback.
-
|
seems that you have two collaboration services started. OC_ADD_RUN_SERVICES = "collaboration" starts the collaboration service in the full stack. If you do that, you do not need an extra container with just the collaboration service. |
Beta Was this translation helpful? Give feedback.
-
… In this case, a reverse proxy for WOPI is not required. WOPI is used for document processing, and a direct reference to the host (if the services are in the same network) is sufficient, more secure, and faster. Only OnlyOffice requires a publicly reachable domain for iframe access.
|
Beta Was this translation helpful? Give feedback.
-
|
Im not running a container. I'm running the barebone binary (3.7.0) with NixOS and so does the OnlyOffice instance. with ss -tulpn I can also see that the port 9300 that claims to be taken belongs to the systemd job that runs the opencloud instance. It appears that the collaboration server has some troubles starting up (app-registry, and gateway are running). |
Beta Was this translation helpful? Give feedback.
-
|
the wopiserver/ route does not work it expects /wopi curl -i https://wopiserver.demo.opencloud.eu/wopi
HTTP/2 418
content-type: text/plain; charset=utf-8
date: Wed, 21 Jan 2026 10:56:34 GMT
x-collaboration-version: 4.1.0
x-content-type-options: nosniff
x-request-id: d44359866f28/VLTBzc6eHV-000029
content-length: 13
I'm a teapot |
Beta Was this translation helpful? Give feedback.
-
|
Currently, I can only access your code via mobile, but I noticed the following: As far as I know, COLLABORATION_ENABLED is not an official environment variable. Please comment out both variables for now. You should also review my configuration and use only the environment variables required for collaboration with the Collaboration service. To avoid issues with the reverse proxy, I suggest accessing the WOPI service locally first. Additionally, the 9300 port should initially be open on all interfaces. Once everything works, we can restrict the settings to the necessary interfaces. |
Beta Was this translation helpful? Give feedback.
-
|
That's strange, i nod get 404 page not found Im using opencloud 3.7.0 -> its not a version error? |
Beta Was this translation helpful? Give feedback.
-
|
I disabled the following:
Still get the same result: |
Beta Was this translation helpful? Give feedback.
-
|
Change the OpenCloud service to listen on port 9200 by setting: If this doesn’t work, I’ll follow up again either tonight or tomorrow. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah i changed this:
It still doesn't work, but beside the collaboration service opencloud works on my system |
Beta Was this translation helpful? Give feedback.
-
|
https is only available via reverse proxy |
Beta Was this translation helpful? Give feedback.
-
|
im using nginx as a reverse proxy, the proxy is correctly configured there is the same behaviour on the local machine: curl -i http://127.0.0.1:9300/wopi/ Als im using a rasperrypi 5 with arch64, that is fully supported right? |
Beta Was this translation helpful? Give feedback.
-
|
That already looks good. So it only comes down to the configuration now. WOPI = http://HOST:9300 My recommendation for the test environment: |
Beta Was this translation helpful? Give feedback.
-
|
Yeah i did those changes but still to the same result. my wopi server still gives a 404
I went through the logs and found some more info: collaboration server successfully binds to the registry: but then get a netlinkrib error: And after that the reboots occure: full logshere Is the netlinkrib error related to the usage of ipv6? Any ideas what causes the issue? |
Beta Was this translation helpful? Give feedback.
-
|
I see..: Here is my complete configuration relating to the Collaboration service. docker-compose: OpenCloud-CSP: NGINX-OnlyOffice: OnlyOffice-Config: This configuration works flawlessly. If this configuration does not work, the issue is, in my opinion, related to something other than OpenCloud or OnlyOffice. -- I hope I was able to help you a little. |
Beta Was this translation helpful? Give feedback.
-
|
@sdamm4z thank you for sharing. I see that you are starting the collaboration service inside the main process. That is a good idea and we made that possible recently. This is importantly for everybody else. It is different to our compose project where we start it separately. |
Beta Was this translation helpful? Give feedback.
-
|
Moving this to Gerneral discussions, we do not support OnlyOffice => not a bug |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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
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.
Beta Was this translation helpful? Give feedback.
All reactions