Unable to create new or edit files in Nextcloud with OO

Document Server version: latest release from Docker Hub
Nextcloud reports it as 7.0.0.132
Type of installation of the Document Server (docker, deb/rpm, exe)
OS: docker
Browser version: Firefox & Chromium-based browsers on Linux and MacOS

I’ve installed the documentserver container separately from Nextcloud (also in a container). Nextcloud OO connector is version 7.3.0. All healthchecks work. However, when trying to create a new doc or open an existing, I get an error “An error has occurred while opening the file.”

This is what I see in logs:

2022-02-15T14:53:36.347] [ERROR] nodeJS - changesError: docId = 3431605914 Error: TypeError: this.ek is null Script: https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js Line: 1303:406 userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0 platform: MacIntel isLoadFullApi: true isDocumentLoadComplete: false StackTrace: yd.prototype.jmi@https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:1303:406
getWSProps@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:90:5213
onChangeProtectSheet@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:94:25062
onAppReady@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:94:21277
c@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:11:17730
trigger@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:11:17048
onDocumentContentReady@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:78:26227
onLongActionEnd@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:78:22524
E@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:8:11759
m.bind</n<@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:8:11961
f/<@https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:8:5162
Da.prototype.trigger@https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:927:283
yd.prototype.ne@https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:1161:446
yd.prototype.Ww@https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:1008:392
yd.prototype.Q4d/<@https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:1013:433
qg@https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:551:318
Ha.AscCommon.xwg/<@https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:552:13
error@https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:434:370
ve/zg.onreadystatechange@https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:449:90

Check the browser privacy settings, do not set it to strict.

Thanks. That’s working from outside my network.

For some reason, I’m still getting errors when trying to open/edit from my local network. I’ll see if I can’t sort that out.

[2022-02-16T13:46:37.710] [ERROR] nodeJS - changesError: docId = 1714119388 Error: TypeError: null is not an object (evaluating 'this.Ea.Ua') Script: https://docserver.mydomain.net/7.0.0-132/sdkjs/word/sdk-all-min.js Line: 1060:358 userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15 platform: MacIntel isLoadFullApi: false isDocumentLoadComplete: false StackTrace: @https://docserver.mydomain.net/7.0.0-132/sdkjs/word/sdk-all-min.js:1060:358
@https://docserver.mydomain.net/7.0.0-132/sdkjs/word/sdk-all-min.js:887:237
@https://docserver.mydomain.net/7.0.0-132/sdkjs/word/sdk-all-min.js:885:440
@https://docserver.mydomain.net/7.0.0-132/sdkjs/word/sdk-all-min.js:890:435
qg@https://docserver.mydomain.net/7.0.0-132/sdkjs/word/sdk-all-min.js:549:320
@https://docserver.mydomain.net/7.0.0-132/sdkjs/word/sdk-all-min.js:550:15
error@https://docserver.mydomain.net/7.0.0-132/sdkjs/word/sdk-all-min.js:432:370
@https://docserver.mydomain.net/7.0.0-132/sdkjs/word/sdk-all-min.js:447:92

That’s working from outside my network.

So does the issue persist in your local network only? But when you are working from PC which is not a part of your local network than all things run smoothly?
Probably any firewall or proxy\network setting interrupts traffic between servers in local network. Try to check console browser (‘Network’\’Console’ tabs while you are reproducing the issue in the local network) probably there will be any error entries which can help you to investigate this situation.

I appreciate the response. I still haven’t figured it out. I’ve made a few changes to try to disable any/all incorrect configuration.

Both Nextcloud and OO containers are running on the same host. Both are behind a reverse proxy (Traefik) running on another host. I have configured Traefik according to the documentation I found for OO.

The only real difference between internal and external access is that the external access is proxied via Cloudflare (that works). If I go directly to the reverse proxy because I’m on the internal network, it fails.

This is my current error I’m trying to work past:

[2022-02-17T13:49:59.346] [ERROR] nodeJS - changesError: docId = 3431605914 Error: Uncaught TypeError: Cannot read properties of null (reading 'RX') Script: https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js Line: 1303:439 userAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Safari/537.36 platform: Linux x86_64 isLoadFullApi: true isDocumentLoadComplete: false StackTrace: TypeError: Cannot read properties of null (reading 'RX')
    at yd.jmi (https://docserver.mydomain.net/7.0.0-132/sdkjs/cell/sdk-all-min.js:1303:439)
    at V.i.getWSProps (https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:90:5213)
    at V.i.onChangeProtectSheet (https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:94:25062)
    at V.i.onAppReady (https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:94:21277)
    at c (https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:11:17730)
    at e.trigger (https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:11:17048)
    at V.i.onDocumentContentReady (https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:78:26227)
    at V.i.onLongActionEnd (https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:78:22524)
    at E (https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:8:11759)
    at Da.<anonymous> (https://docserver.mydomain.net/7.0.0-132/web-apps/apps/spreadsheeteditor/main/app.js:8:11961)

Probably the issue is related to Traefik settings. Could you please run a test? Try to add these headers to Traefik:

  - "traefik.http.routers.onlyoffice-documentserver.middlewares=onlyoffice-headers"
   - "traefik.http.middlewares.onlyoffice-headers.headers.customrequestheaders.X-Forwarded-Proto=http"
    - "traefik.http.middlewares.onlyoffice-headers.headers.accessControlAllowOrigin=*"

Or ‘accessControlAllowOriginList’ instead of ‘accessControlAllowOrigin’.
Also please provide us with your Traefik config file.