
OnlyOffice Docker runs successfully, Open As.. > blank website
Not sure how to debug this.
I am running docker image onlyoffice/documentserver-ie:latest and Filerun also runs in Docker on the same machine. Both use Traefik and I can access both succesfully (onlyoffice is accessible via https://office.obelix.cloud
Or via my LAN 192.168.88.10:8001
OnlyOffice shows their welcome page, that I can now start integrating it etc.
I have added the url via FileRun > Settings > Plugins > OnlyOffice
And checked the box to open in new tab.
Now if I right-click any docx file and select OnlyOffice, a blank tab is opened with this url:
https://files.obelix.cloud/?module=custom_actions&action=onlyoffice
How can I debug this?
I also tried with empty cache, even with a clean browser and in a private tab.
Answer

OK I managed to get OnlyOffice to load by changing the plugin URL to https://office.obelix.cloud (I added https://).
But every file I open, I do see the Only Office interface, but always with "Unknown Error". I tried doc and docx files. They do preview normally in FileRun.
The OnlyOffice container log (viewed via Portainer) doesn't show anything about loading a doc.

root@6df63e016b21:/# supervisorctl start all
ds:example: started
So the issue must be with FileRun?

FileRun has been tested only with ONLYOFFICE DocumentServer Community Edition (onlyoffice-documentserver package). It has not been tested with "Integration Edition".

I am just very confused, because the Community edition consists of Onlyoffice-documentserver and also Onlyoffice-communityserver.
Do I need both to work with FileRun?
I just tried Onlyoffice-documentserver.. via localIP it works, but not via https even though I have set it up with Traefik labels just like FileRun (and the Integration Edition).
I will do more testing tomorrow, but it seems DocumentServer does not work well with Traefik(v2).

OK I figured it out. All I need is this: OnlyOffice Document Server. Now I need a way to get it to work wit Traefikv2. When I have a solution I will post it here for future reference.

Got https working successfully with onlyoffice-documentserver: https://office.obelix.cloud
Now when I try to create a new docx via context menu in FileRun or edit an existing doc, I get this message after loading for a while:
Onlyoffice-documentserver docker log. The
checkIpFilter error
Appears during every attempt I try to open a file in OnlyOffice.
Can you please point me in the direction where I should look? Because I don't understand what is going wrong here.
==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2020-10-08T22:12:17.349] [ERROR] nodeJS - dnsLookup error: hostname = files.obelix.cloud
Error: getaddrinfo EAI_AGAIN files.obelix.cloud
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
[2020-10-08T22:12:17.350] [WARN] nodeJS - checkIpFilter error: docId = 12350da9d36507367981;url = https://files.obelix.cloud/wl/?id=7rfVWzZKKOA4F4z6b97TUyorWzCo36UF&action=onlyoffice&save=1
[2020-10-08T22:16:16.449] [ERROR] nodeJS - dnsLookup error: hostname = files.obelix.cloud
Error: getaddrinfo EAI_AGAIN files.obelix.cloud
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
[2020-10-08T22:16:16.449] [WARN] nodeJS - checkIpFilter error: docId = 12350da9d36507367981;url = https://files.obelix.cloud/wl/?id=FWz0eEjhSMQtkM6tcNQSL2qgPsPXXBcn&action=onlyoffice&save=1
[2020-10-08T22:18:00.050] [ERROR] nodeJS - dnsLookup error: hostname = files.obelix.cloud
Error: getaddrinfo EAI_AGAIN files.obelix.cloud
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
[2020-10-08T22:18:00.050] [WARN] nodeJS - checkIpFilter error: docId = 11724430668707367981;url = https://files.obelix.cloud/wl/?id=pWOwBlsIhabARE3Vp10pjP4sOMjRuIHW&action=onlyoffice&save=1
Snippet of my compose:
https://raw.githubusercontent.com/zilexa/Homeserver/master/docker-compose-filerun-docserver.yml
EDIT: I did wget https://files.obelix.cloud
inside console in the OnlyOffice container and it hangs on Resolving files.obelix.cloud (files.obelix.cloud)...
Strangely, although I can access that url just fine remotely and within my LAN, OnlyOffice can't seem to resolve it. No idea how to solve it. Any ideas?

Simply changing the DNS of Onlyoffice in Compose solved it. But now I get another Unknown Error when opening doc or docx files:
In its logfile Onlyoffice complains about onlyoffice TypeError: ic.YJb is not a function Script:
==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2020-10-09T09:03:11.409] [ERROR] nodeJS - changesError: docId = 1397544d805598245930 Error: TypeError: ic.YJb is not a function Script: https://office.obelix.cloud/5.6.5-3/sdkjs/common/libfont/wasm/fonts.js Line: 37:318 userAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0 platform: Linux x86_64 isLoadFullApi: false isDocumentLoadComplete: false StackTrace: @https://office.obelix.cloud/5.6.5-3/sdkjs/common/libfont/wasm/fonts.js:37:318
@https://office.obelix.cloud/5.6.5-3/sdkjs/common/libfont/wasm/fonts.js:37:325
==> /var/log/onlyoffice/documentserver/nginx.error.log <== 2020/10/09 09:05:36 [error] 4693#4693: *37 open() "/var/www/onlyoffice/documentserver/sdkjs/common/libfont/wasm/fonts.js:37:325" failed (2: No such file or directory), client: 172.19.0.11, server: , request: "GET /5.6.5-3/sdkjs/common/libfont/wasm/fonts.js:37:325 HTTP/1.1", host: "office.obelix.cloud" 2020/10/09 09:05:36 [error] 4693#4693: *37 open() "/var/www/onlyoffice/documentserver/sdkjs/common/libfont/wasm/fonts.js:37:318" failed (2: No such file or directory), client: 172.19.0.11, server: , request: "GET /5.6.5-3/sdkjs/common/libfont/wasm/fonts.js:37:318 HTTP/1.1", host: "office.obelix.cloud" 2020/10/09 09:10:05 [error] 4693#4693: *38 open() "/var/www/onlyoffice/documentserver/sdkjs/common/libfont/wasm/fonts.js:37:325" failed (2: No such file or directory), client: 172.19.0.11, server: , request: "GET /5.6.5-3/sdkjs/common/libfont/wasm/fonts.js:37:325 HTTP/1.1", host: "office.obelix.cloud" 2020/10/09 09:10:05 [error] 4693#4693: *39 open() "/var/www/onlyoffice/documentserver/sdkjs/common/libfont/wasm/fonts.js:37:318" failed (2: No such file or directory), client: 172.19.0.11, server: , request: "GET /5.6.5-3/sdkjs/common/libfont/wasm/fonts.js:37:318 HTTP/1.1", host: "office.obelix.cloud" 2020/10/09 09:10:05 [error] 4693#4693: *40 open() "/var/www/onlyoffice/documentserver/sdkjs/common/libfont/wasm/fonts.js:37:32" failed (2: No such file or directory), client: 172.19.0.11, server: , request: "GET /5.6.5-3/sdkjs/common/libfont/wasm/fonts.js:37:32 HTTP/1.1", host: "office.obelix.cloud" 2020/10/09 09:10:05 [error] 4693#4693: *41 open() "/var/www/onlyoffice/documentserver/sdkjs/common/libfont/wasm/fonts.js:37:31" failed (2: No such file or directory), client: 172.19.0.11, server: , request: "GET /5.6.5-3/sdkjs/common/libfont/wasm/fonts.js:37:31 HTTP/1.1", host: "office.obelix.cloud" ==> /var/log/onlyoffice/documentserver/metrics/out.log <== Flushing stats at Fri Oct 09 2020 09:12:00 GMT+0000 (Coordinated Universal Time) { counters: { 'statsd.bad_lines_seen': 0, 'statsd.packets_received': 0, 'statsd.metrics_received': 0 }, timers: {}, gauges: {}, timer_data: {}, counter_rates: { 'statsd.bad_lines_seen': 0, 'statsd.packets_received': 0, 'statsd.metrics_received': 0 }, sets: {}, pctThreshold: [ 90 ] }
Something with fonts? But I tried multiple different and simple doc and docx files..

OK completely redid everything, my compose is now nearly identical to the one from github:
https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/docker-compose.yml
Just with added Traefik labels and DNS 1.1.1.1 and my own JWT and domain.
This is the full startup log. I also did a couple of attempts opening documents, no errors are shown in the log, but I still get "Unknown Error".
I opened a ticket with onlyoffice-documentserver. They were helpful but now point to FileRun being the issue here:
https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/299
This is the full log after setting up new container/image. So now I am stuck with an unknown error that is not shown in a logfile.
Waiting for connection to the onlyoffice-postgresql host on port 5432
Waiting for connection to the onlyoffice-postgresql host on port 5432
Waiting for connection to the onlyoffice-postgresql host on port 5432
Waiting for connection to the onlyoffice-rabbitmq host on port 5672
Starting supervisor: supervisord.
* Starting periodic command scheduler cron
[ OK ]
* Starting nginx nginx
[ OK ]
Generating AllFonts.js, please wait...Done
Generating presentation themes, please wait...Done
ds:docservice: stopped
ds:docservice: started
ds:converter: stopped
ds:converter: started
* Reloading nginx configuration nginx
[ OK ]
==> /var/log/onlyoffice/documentserver/converter/err.log <==
==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2020-10-09T10:29:29.535] [WARN] nodeJS - update cluster with 1 workers
[2020-10-09T10:29:29.541] [WARN] nodeJS - worker 303 started.
[2020-10-09T10:29:29.542] [WARN] nodeJS - update cluster with 1 workers
[2020-10-09T10:29:41.295] [WARN] nodeJS - update cluster with 1 workers
[2020-10-09T10:29:41.301] [WARN] nodeJS - worker 361 started.
[2020-10-09T10:29:41.302] [WARN] nodeJS - update cluster with 1 workers
==> /var/log/onlyoffice/documentserver/docservice/err.log <==
==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2020-10-09T10:29:29.696] [WARN] nodeJS - Express server starting...
[2020-10-09T10:29:29.699] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2020-10-09T10:29:29.758] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode
[2020-10-09T10:29:39.957] [WARN] nodeJS - Express server starting...
[2020-10-09T10:29:39.959] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2020-10-09T10:29:39.984] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode
==> /var/log/onlyoffice/documentserver/metrics/err.log <==
==> /var/log/onlyoffice/documentserver/metrics/out.log <==
9 Oct 10:29:29 - [264] reading config file: ./config/config.js
9 Oct 10:29:29 - server is up INFO
==> /var/log/onlyoffice/documentserver/nginx.error.log <==
==> /var/log/onlyoffice/documentserver/spellchecker/err.log <==
==> /var/log/onlyoffice/documentserver/spellchecker/out.log <==
[2020-10-09T10:29:29.385] [WARN] nodeJS - start cluster with 1 workers
[2020-10-09T10:29:29.391] [WARN] nodeJS - worker 293 started.
[2020-10-09T10:29:29.672] [WARN] nodeJS - Express server starting...
[2020-10-09T10:29:29.702] [WARN] nodeJS - Express server listening on port 8080 in production-linux mode
I also do not understand why it is listening to port 8080 as that port is not defined in the default docker-compose on github nor is it in mine. I posted this too in my issue report on github. Note that in my Traefik Labels, I added "oo-header" middlewares but those are just extra, they are not needed. I have the same result when I remove those.
##_____________________ OnlyOffice Document Server [Cloud/Office]
onlyoffice:
image: onlyoffice/documentserver
container_name: onlyoffice
depends_on:
- onlyoffice-postgresql
- onlyoffice-rabbitmq
stdin_open: true
restart: always
tty: true
ports:
- "8889:80"
volumes:
- /var/www/onlyoffice/Data
- /var/log/onlyoffice
- /var/lib/onlyoffice/documentserver/App_Data/cache/files
- /var/www/onlyoffice/documentserver-example/public/files
- /usr/share/fonts
dns: 1.1.1.1
environment:
- JWT_ENABLED="true"
- JWT_SECRET=$ONLYOFFICEJWT
- DB_TYPE=postgres
- DB_HOST=onlyoffice-postgresql
- DB_PORT=5432
- DB_NAME=onlyoffice
- DB_USER=onlyoffice
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
labels:
- traefik.enable=true
- traefik.http.middlewares.onlyoffice-redirect.redirectscheme.scheme=https
- traefik.http.routers.onlyoffice-redirect.entrypoints=web
- traefik.http.routers.onlyoffice-redirect.middlewares=onlyoffice-redirect
- traefik.http.routers.onlyoffice-redirect.rule=Host(`office.$DOMAIN`)
- traefik.http.routers.onlyoffice.entrypoints=websecure
- traefik.http.routers.onlyoffice.rule=Host(`office.$DOMAIN`)
- traefik.http.routers.onlyoffice.tls.certresolver=letsencrypt
- traefik.http.services.onlyoffice.loadbalancer.server.port=80
- traefik.http.middlewares.oo-header.headers.referrerPolicy=no-referrer
- traefik.http.middlewares.oo-header.headers.stsSeconds=31536000
- traefik.http.middlewares.oo-header.headers.forceSTSHeader=true
- traefik.http.middlewares.oo-header.headers.stsPreload=true
- traefik.http.middlewares.oo-header.headers.stsIncludeSubdomains=true
- traefik.http.middlewares.oo-header.headers.browserXssFilter=true
- traefik.http.middlewares.oo-header.headers.customRequestHeaders.X-Forwarded-Proto=https
##____________________ Onlyoffice rabbitmq [CLOUD/Office]
onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq
image: rabbitmq
restart: always
expose:
- '5672'
##____________________ Onlyoffice database [CLOUD/Office]
onlyoffice-postgresql:
container_name: onlyoffice-postgresql
image: postgres:9.5
environment:
- POSTGRES_DB=onlyoffice
- POSTGRES_USER=onlyoffice
- POSTGRES_HOST_AUTH_METHOD=trust
restart: always
expose:
- '5432'
volumes:
- postgresql_data:/var/lib/postgresql
volumes:
postgresql_data:

I have the same problem with the blank site after open a office file.
Tested with OnlyOffice Document Server and OnlyOffice Community Server as a Docker in Unraid.
Has anyone installed successfull OnlyOffice in FileRun?

@cracksilver
SOLVED !!!
https://github.com/ONLYOFFICE/onlyoffice-nextcloud/issues/151#issuecomment-757392562
Customer support service by UserEcho
@cracksilver
SOLVED !!!
https://github.com/ONLYOFFICE/onlyoffice-nextcloud/issues/151#issuecomment-757392562