I have set-up two headless VM servers on the same virtualbox host, one as Nextcloud cloud server and another as a OnlyOffice Document server.
I am familiar with the Nextcloud installation and this is a typical default installation. I followed the recommended guide: https://api.onlyoffice.com/editors/owncloud for a docker OO installation.
I am using custom DNS (by editing /etc/hosts) on the same “bridged” LAN and I can ping the the OO server from the NC server and vice versa. All firewalls are disabled. Yet I am getting a Timeout Error: https://imgur.com/qWX6rh9
What do you see, when you access http://documentserver/ in your browser (with hosts resolving to correct server)? Does it show: “Running”?
While Ping only shows that the hardware/ virtual server is reachable, you need to check if the webserver is running and reachable (from the network).
Then I can login and use my document server, however I would like to integrate into my own Nextcloud Cloud server running on another VM. This is how I understood the app guide.
Hi, you are obviously accessing your nextcloud server when entering http://documentserver/.
If you installed onlyoffice for owncloud/ nextcloud, the page for the onlyoffice server should look like this:
I mean you wrote that you created two separate virtual servers, one is running only Nextcloud and the other is running only Onlyoffice, right? So there is actually no way, that the login screen for Onlyoffice is identical to the login screen for Onlyoffice (with the document server version of Onlyoffice there is no login page at all).
It seems http://documentserver/ resolves to the wrong IP address.
I can even demonstrate that I may edit OnlyOffice documents on my Document Server but not on my Cloud Server: https://imgur.com/a/t8DVD
I conclude that the OnlyOffice docker installation is for a complete Cloud Server that includes OnlyOffice Document Server. However I require to install an Office app on my existing Nextcloud Cloud Server.
Please try to enter not only the public address of the document server, as it is shown on your first screenshot, but also internal address of the document server (192.168.200.3) and the internal address of NextCloud (192.168.200.4). Click the “Advanced server settings” to open additional address settings.
Both servers have populated /etc/hosts but I followed your advice to enter IP addresses but there may be a problem because the internal address of my NC Cloud Server is http://192.168.200.4/nextcloud/
I understood that I need to enter these on the NC Cloud Server Admin. I tried all combinations but none of them worked.
Your setup is not really clear. When
192.168.200.3 correctly resolves to documentserver and
192.168.200.4 correctly resolves to cloudserver
and additionally you can login on your Document server (with the Nextcloud login screen) and edit Onlyoffice documents
… then you actually have two Nextcloud installations;
one with Onlyoffice installed and working
another one without Onlyoffice
First of all you should be aware that a server provides services (like a webserver) on specific ports. A webserver runs on port 80 (http) or 443 (https) default and a database will run on port 1521 for example. While only one service can run on a single port, you need to define another port for a second web service for example. Nextcloud AND Onlyoffice are both web services and due to the fact that you see the Nextcloud login screen, when you access the document server, the web service Nextcloud is running on port 80 / 443. This means: Onlyoffice is running on a different port!
Therefor, when you want to use Onlyoffice from another server - like your other cloudserver - you need to define the correct port in the admin section.
So for “Document Editing Service Address” you need to enter http://documentserver:9980 for example. You need to check the correct port first, of course. Actually you should be able to copy the port (the number behind “:” ) in the same admin section from the Nextcloud server which has Onlyoffice running.
Three things you could do then:
use the second Nextcloud installation as a test system for Nextcloud and only the Onlyoffice service is productive for your primary Nextcloud server
uninstall Nextcloud on the document server, while you only use the primary cloudserver as your main NC anyways
if you want to run Onlyoffice and Nextcloud on one server, repeat the same steps on the cloudserver that you did on the documentserver - it obviously worked well there
Starting Nmap 7.12 ( https://nmap.org ) at 2017-11-09 20:32 CET
Nmap scan report for documentserver (192.168.200.3)
Host is up (0.015s latency).
rDNS record for 192.168.200.3: documentserver.example.org
Not shown: 998 closed ports
PORT STATE SERVICE
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.44 seconds
And here is a screenshot of my Admin page of the Documentserver.
As for your suggestions, I already have a production an https NextCloud server (alongside with mariadb and php-redis) that I rely on for backing up. I thought I should try and install a good Office app but it is not essential. I might try the other (non-docker) installation next.