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.