Iâve been trying to make works Nextcloud & OnlyOffice on the same server for the past few days without success.
Configuration :
Docker with Portainer,
Nextcloud (latest image available),
OnlyOffice (same as Nextcloud),
PostgreSQL (as the db of my nextcloud)
Nginx vanilla (non docker installed)
Everythingâs installed on the same server. (18.04)
My server is a local server, with ALL port opened on my box in order for me to access it from anywhere.
Everything seems to be fine, my nextcloud is working properly as I was able to install it normally. Then, same as my Onlyoffice. When I go on my https://document.domain.something/ (My nextcloud & onlyoffice are both in https) Iâm able to see :
Great, onlyoffice is working normally as well.
Now, when I try to connect my onlyoffice to my nextcloud I have :
**Error onlyoffice HealthcheckRequest on check error: cURL error 28: Connection timed out after 60000 milliseconds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)**
Funny thing is : if I try to connect to my OnlyOffice via another nextcloud on another server, it works ! Iâm able to connect to my onlyoffice and open/create files with it. And If i try using it locally (with my 192.168.x.x:onlyofficeport) itâs working too, but it doesnât when I try it by using my https://domain.something/ .
So far Iâve tried :
looking at logs, but nothing is showing any kind of problem,
reinstalling everything from scratch,
create a new docker network and connecting all of my containers to it, but since thereâre already - connected via bridge this shouldnât be an issue,
Perhaps there is a DNS Rebind issue in the (dhcp) router.
In my Fritz!Box I had to enter all domains that are forwarded to my local network machines in the Tab âNetwork Settingsâ. At the bottom you see DNS Rebind Protection
I just entered the domain names and subdomains, one per line.
So there is a line âcloud.domain.extâ and âoffice.domain.extâ.
Thanks for the answer, sadly, this didnât solved it. Issueâs still here.
It almost seems like itâs not possible to have both (nextcloud and onlyoffice) on one and only one serverâŠ
@syrosh any chance to run my playbook on your side? than you would get what want or your problem is outside your server. or you found a bug in my playbooks. that iâm happy to fix if i can.
please run it on a fresh ubuntu installation. not on the server where you setup your nextcloud. make backups and iâm not responsible. the usual disclaimer.
if you can read ansible/jinja2 you could just go through the playbook file and compare my config to yours.
update:
didnât see this. my playbook would setup traefik as ingress router/reverse proxy. sorry. itâs not exactly your setup.
there is no need for a domain: document.domain.something everything runs on nextcloud.domain.something and there is no need to run documentserver on https. unless someone explains to me why if you run everything on a single machine. for my understanding tls termination is done by traefik(me)/nginx.vanilla(you). the rest of the communication is machine internal only.
If you add the same network to all containers you should be able to address them by the host name whereby the host name is the name of the container.
See attached example.
Thatâs reassuring that youâre getting the same errors to be honest, I was seriously starting to think I was crazy !
Sadly, no, I didnât find anything yetâŠ
Hi,
I had a bug « a bit similar » : I could not save the Onlyoffice app settings in Nextcloud with NC and OO in 2 docker containers in the same machine (network mode bridge). My error message was a bit different : « bad health check » or « error while downloading the document being converted ».
I could resolve it with adding the local IP and Domain names of both nextcloud and only office in the « trusted domains » array in NC config.php : [Onlyoffice] Error while downloading the document file to be converted ou encore ici : https://github.com/ONLYOFFICE/onlyoffice-owncloud/issues/181
So now I can save the settings !
But I still canât open OO documents : when I click on a .docx doc in Files for example it says « onlyoffice unreachable ».
I also found a page that could help : https://api.onlyoffice.com/editors/nextcloud @edvinkuric and @syrosh what did you put in the 3 server fields « external doc server », « internal doc server » and « internal NC server » ? It could help to understand the pb
The problem I ran into was the fact, that the docker container couldnât connect âoutsideâ of its container directly to the host machine due to a DNS âproblemâ with docker.
My solution was the following:
I had to add --add-host=subdomain.domain.com:172.17.0.1 to the docker run command to allow the docker container to connect outside of the container to the âhostâ running nextcloud in my linux.
JWT is set here, but for some reason the JWT token didnât work for me in the Nextcloud backend.
Therefore i just left the JWT Token Password blank i the Nextcloud backend.
172.17.0.1 is the IP address of my host machines âdocker0â interface (for me)
172.17.0.2 is the IP address of the docker containers âeth0â interface (for me)
See https://docs.docker.com/network/network-tutorial-standalone/
It could be that you have a slightly different IP addresses (check with ip a)
Been a while since Iâve tried all this. Decided to try again today,I hopped that there would have been an update of some sort that would have fixed my problem.
Sadly, none of it.