Hi there,
I’m trying to learn docker (well podman on this fedora server) and a bunch of self-hosted apps. So far I’m doing alright, but for some reason I cannot get the onlyoffice documentserver & Nextcloud to work.
Ideally I’d like to be able to connect my desktop apps to the nextcloud server so I can open them on the app and sync them back and have an element of a webUI editor should I not have access to a machine. I’d also like to get the IOS app accessing all of this too…
So I think I need to add the Onlyoffice documentserver to my server running docker, alongside nextcloud with the integration app… for some reason I keep getting the error;
> Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 8.2.2.22)
I’ve tried following all the posts on the forum of editing the default.json etc but can’t seem to get anywhere, I think my issues lies in the fact I’m using NGIX reverse proxy, pihole with local CNAME dns and a bit of cloudflare zero tunnel chucked in for good fun.
I currently have both nextcloud and onlyoffice documentserver running on the same host and I access them on my network following the subdomain’s I’ve attached to them through pihole & reverse proxy. I also have a wildcard SSL cert working too.
I can confirm the onlyoffice document server is up and running as I get the welcome page and I can run the example service and everything runs fine in the browser.
Here’s my podman-compose for my onlyoffice documentserver;
version: ‘2’
services:
onlyoffice-documentserver:
#build:
#context: .
container_name: onlyoffice-documentserver
tty: true
image: onlyoffice/documentserver
depends_on:
- onlyoffice-postgresql
- onlyoffice-rabbitmq
environment:
- DB_TYPE=postgres
- DB_HOST=onlyoffice-postgresql
- DB_PORT=5432
- DB_NAME=onlyoffice
- DB_USER=onlyoffice
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
#- JWT_ENABLED=true
- JWT_SECRET=secret
- JWT_HEADER=AuthorizationJwt
#- JWT_IN_BODY=true
#- ALLOW_PRIVATE_IP_ADDRESS=true
- USE_UNAUTHORIZED_STORAGE=true
ports:
- ‘8007:80’
- ‘4433:443’
stdin_open: true
restart: always
stop_grace_period: 60s
volumes:
- onlyoffice_data:/var/www/onlyoffice/Data
- onlyoffice_data:/var/log/onlyoffice
- onlyoffice_data:/var/lib/onlyoffice/documentserver/App_Data/cache/files
- onlyoffice_data:/var/www/onlyoffice/documentserver-example/public/files
- onlyoffice_data:/usr/share/fontsonlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq
image: rabbitmq
restart: always
expose:
- ‘5672’onlyoffice-postgresql:
container_name: onlyoffice-postgresql
image: postgres:12
environment:
- POSTGRES_DB=onlyoffice
- POSTGRES_USER=onlyoffice
- POSTGRES_HOST_AUTH_METHOD=trust
restart: always
expose:
- ‘5432’
volumes:
- postgresql_data:/var/lib/postgresqlvolumes:
postgresql_data:
onlyoffice_data:
There is a couple of quotes for lines that I’ve been playing with having in or out - but that’s how my compose file is at the moment.
This is my compose file for nextcloud;
version: ‘3’
volumes:
nextcloud:
db:services:
db:
image: mariadb:10.6.20
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nextcloud
- MYSQL_PASSWORD=nextcloud
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
nextcloud:
image: lscr. io/linuxserver/nextcloud:latest
restart: always
ports:
- 8080:80
links:
- db
volumes:
- nextcloud:/var/www/html
- nextcloud:/data
- nextcloud:/config
environment:
- PUID=1000
- PGID=1000
- TZ=GB
- MYSQL_PASSWORD=nextcloud
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS=XXXXX .co.uk
I’ve edited out my actual domain name here.
Here is a copy of the onlyoffice-documentserver log file;
Generating WOPI private key…Done
Generating WOPI public key…Done
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:4: NOTICE: table “doc_callbacks” does not exist, skipping
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:9: NOTICE: function merge_db(pg_catalog.varchar,int2,int8,pg_catalog.timestamp,pg_catalog.varchar,int8,int8) does not exist, skipping
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:10: NOTICE: function merge_db(pg_catalog.varchar,int2,int4,pg_catalog.timestamp,pg_catalog.varchar,int4,int4) does not exist, skipping
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:11: NOTICE: function merge_db(pg_catalog.varchar,int2,int4,pg_catalog.timestamp,int4,int4,text,text) does not exist, skipping
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
Generating js caches, please wait…Done
ds:docservice: stopped
ds:docservice: started
ds:converter: stopped
ds:converter: started
- Reloading nginx configuration nginx
[ OK ]Installing plugins, please wait…Done
- Reloading nginx configuration nginx
[ OK ]==> /var/log/onlyoffice/documentserver/converter/err.log <==
==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2025-01-23T15:11:40.950] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 8; availableParallelism: undefined
[2025-01-23T15:11:40.952] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2025-01-23T15:11:40.960] [WARN] [localhost] [docId] [userId] nodeJS - worker 587 started.
[2025-01-23T15:11:40.961] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 8; availableParallelism: undefined
[2025-01-23T15:11:40.962] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2025-01-23T15:12:06.030] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 8; availableParallelism: undefined
[2025-01-23T15:12:06.032] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2025-01-23T15:12:06.039] [WARN] [localhost] [docId] [userId] nodeJS - worker 750 started.
[2025-01-23T15:12:06.039] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 8; availableParallelism: undefined
[2025-01-23T15:12:06.040] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
==> /var/log/onlyoffice/documentserver/docservice/err.log <==
==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2025-01-23T15:11:41.301] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting…
[2025-01-23T15:11:41.306] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-01-23T15:11:41.307] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-01-23T15:11:41.479] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.2.2. Build: 22
[2025-01-23T15:12:04.355] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting…
[2025-01-23T15:12:04.360] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-01-23T15:12:04.360] [WARN] [localhost] [docId] [userId] nodeJS - notifyLicenseExpiration(): expiration date is not defined
[2025-01-23T15:12:04.529] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.2.2. Build: 22
==> /var/log/onlyoffice/documentserver/nginx.error.log <==
==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2025-01-23T15:14:27.789] [ERROR] [localhost] [check_1081270941] [userId] nodeJS - dnsLookup error: hostname = nextcloud. XXXX. co. uk Error: getaddrinfo ENOTFOUND nextcloud. XXXX .co. uk
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[2025-01-23T15:14:27.789] [ERROR] [localhost] [check_1081270941] [userId] nodeJS - checkIpFilter error:url=http:// nextcloud.XXXX .co .uk/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.HO8yVThljmrKFAiXsGoWMtnWnjfNFj-idymye3GiplM;code:403;
[2025-01-23T15:16:01.569] [ERROR] [localhost] [check_1271295640] [userId] nodeJS - dnsLookup error: hostname = nextcloud .XXXX.co.uk Error: getaddrinfo ENOTFOUND nextcloud .XXXX.co.uk
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[2025-01-23T15:16:01.569] [ERROR] [localhost] [check_1271295640] [userId] nodeJS - checkIpFilter error:url=http:// nextcloud.XXXX. co. uk /apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.HO8yVThljmrKFAiXsGoWMtnWnjfNFj-idymye3GiplM;code:403;
[2025-01-23T15:30:39.581] [ERROR] [localhost] [check_31340955] [userId] nodeJS - dnsLookup error: hostname = nextcloud .XXXX.co.uk Error: getaddrinfo ENOTFOUND nextcloud .XXXX.co.uk
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[2025-01-23T15:30:39.582] [ERROR] [localhost] [check_31340955] [userId] nodeJS - checkIpFilter error:url=http ://nextcloud.XXXX .co. uk/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.HO8yVThljmrKFAiXsGoWMtnWnjfNFj-idymye3GiplM;code:403;
again, I’ve edited the domain out.
I can see a lot of 403 errors at the bottom of the onlyoffice logs, but I can’t for the life of me workout how to fix them.
Is anyone able to help?
Thanks