Hello,
I was running Onlyoffice in docker container on the NC server fine for a while. However, updates to NC and Onlyoffice broke my setup at some point and Iām trying to fix it for weeks already without success.
I really need some help now.
The Onlyoffice server itself is somewhat running:
But when I try to connect the Onlyoffice app (from NC store) to the Onlyoffice server, I receive the following error message:
Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.)
The browserās network analysis reports this response:
{"documentserver":"https:\/\/office.mydomain.tld\/","documentserverInternal":null,"storageUrl":null,"secret":null,"error":"Error occurred in the document service: Error while downloading the document file to be converted."}
After I couldnāt fix the docker setup, I installed onlyoffice-documentserver package from the Arch User Repository (AUR) and deleted the docker image but still face the exact same issue, that the document file couldnāt be downloaded and converted.
I followed these guides for installation:
https://helpcenter.onlyoffice.com/server/linux/document/linux-installation.aspx
https://wiki.archlinux.org/index.php/Onlyoffice_Documentserver
And this guide to enable HTTPS for the latest Onlyoffice version:
Now with Onlyoffice natively installed I can better check the logs but
/var/log/onlyoffice/documentserver/nginx.error.log
doesnāt report any errors (it writes error messages when I stop the services for testing, however).
In /etc/nginx/includes/onlyoffice-http.conf
docservice is correctly defined as
upstream docservice {
server localhost:8000;
}
and when I run
curl http://127.0.0.1:8000/healthcheck
it returns:
true
Unfortunately, I donāt know the URL to test the document download and conversion.
What I tried so far:
- fix docker setup
- install onlyoffice natively
- set ārejectUnauthorizedā to true in default.json
- disable iptables
- smaller nginx config changes (poking around and guessing - no real idea what to do there)
- find solutions on the Internet by using a search engine
- tried to install nginx-extras, but it seems not available for archlinux
My current setup is:
- NC 15.0.2
- Onlyoffice app version 2.1.2
- onlyoffice-documentserver 5.2.6
- ArchLinux 4.19.15-1-lts
- nginx 1.14.2
- mariaDB 10.1.37 for Nextcloud
- postgresql 11.1 for Onlyoffice
- valid Letsencrypt SSL certificates
- redis 5.0.3
- rabbitmq 3.7.10
- nodejs-lts-carbon 8.15.0
- PHP 7.3.1
Nextcloud log only shows:
{"reqId":"G9Z3yODc","level":3,"time":"2019-01-15T15:40:24+01:00","remoteAddr":"2011:xxxx:xxxx:xxxx:f:1:1:120","user":"ncadmin","app":"PHP","method":"GET","url":"\/settings\/admin\/onlyoffice","message":"count(): Parameter must be an array or an object that implements Countable at \/var\/www\/nextcloud\/apps\/onlyoffice\/templates\/settings.php#64","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko\/20100101 Firefox\/64.0","version":"15.0.2.0"}
{"reqId":"G9Z3yODc","level":3,"time":"2019-01-15T15:40:24+01:00","remoteAddr":"2011:xxxx:xxxx:xxxx:f:1:1:120","user":"ncadmin","app":"PHP","method":"GET","url":"\/settings\/admin\/onlyoffice","message":"implode(): Invalid arguments passed at \/var\/www\/nextcloud\/apps\/onlyoffice\/templates\/settings.php#66","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko\/20100101 Firefox\/64.0","version":"15.0.2.0"}
{"reqId":"Jes0TpEZ","level":3,"time":"2019-01-15T15:40:35+01:00","remoteAddr":"2011:xxxx:xxxx:xxxx:f:1:1:120","user":"ncadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"GetConvertedUri on check error: Error occurred in the document service: Error while downloading the document file to be converted.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko\/20100101 Firefox\/64.0","version":"15.0.2.0"}
I fear I made a stupid mistake somewhere, but I cannot find out where. Any advice how to better debug or how to solve is very much appreciate.
Maybe you can help me here @alexander_onlyoffice?
Thank you very much everybody!