New error connecting onlyoffice and owncloud


I’ve been using onlyoffice with owncloud for about a year, no issues. Recently noticed documents weren’t opening, stating token error. I probably did something that I can’t remember doing which borked it, but as is the case with not remembering, I don’t remember actually making any changes to container configs (only kept up with image updates).

Steps to reproduce

  1. Set up owncloud in docker container with reverse proxy (working)
  2. Set up onlyoffice in docker container with reverse proxy (working)
  3. In owncloud settings > additional, set ONLYOFFICE Docs address as and Secret as per the local.json which is the same as the output when typing docker exec 45df18b9f6da /var/www/onlyoffice/documentserver/npm/json -f /etc/onlyoffice/documentserver/local.json 'services.CoAuthoring.secret.session.string'
  4. Hit save

Expected behaviour

Owncloud should connect to onlyoffice and allow document editing directly from onlyoffice

Actual behaviour

I get an error Error when trying to connect (URI must be a string or UriInterface) (version which I can’t find replicated when I google.

Server configuration

Operating system:
Docker in DSM (Synology linux)

Web server:


PHP version:

ownCloud version: (see ownCloud admin page)

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):
No errors have been found.

The content of config/config.php:
Github gist = /BackedUpBooty/7c5c69897c00f494dd6c3963af67ce9a

**Are you using external storage, if yes which one:** local

**Are you using encryption:** no

**Are you using an external user-backend, if yes which one:** No

### Client configuration

**Operating system:**

### Logs

#### ownCloud log (data/owncloud.log)
Github gist = /BackedUpBooty/922c622c3e0a3b2d0b5364504d979364


I’ve never seen this error so far. The app config from the provided gist looks ok to me and is similar to a working setup. As you are running ownCloud 10.11 please try to update the OnlyOffice app to the latest release. Compatibility for oC 10.11+ was added in v7.5.4 while you are still using "version": "7.5.3".

This was it. Took me a minute to realise where you were suggesting I update it, but yeah, looks like I hadn’t been keeping up with a few different app updates inside the admin area for OC. Thanks for the quick reply.

1 Like