0

We have an Ubuntu Server 18.04 LTS machine running a Nextcloud instance on Apache via a Vhost. This Nextcloud installation is located at /var/www/nextcloud and only allows connecting via HTTPS on port 443: connections via HTTP on port 80 get automatically redirected thanks to the configuration setup by certbot-auto; hence, ports 80 and 443 are being listened on already by Apache.

We use Nextcloud for file sharing and collaboration. Since I wanted to allow users to edit documents directly (without downloading them, editing and reuploading), I decided to install the ONLYOFFICE Document Server, to integrate it into Nextcloud. Nextcloud only allows ONLYOFFICE integration if the server uses SSL (it prevents you from connecting if you type in an http:// address), so I set it up via Docker, to ease installation and to prevent conflicts between Apache and nginx.

Now, I chose 8080 as port for HTTP and 44380 as port for HTTPS, so I started the container with:

sudo docker run -i -t -d -p 8080:80 -p 44380:443 --restart=always -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver 

I additionally created symlinks to my existant Let's Encrypt certificate and key, so when I renew them with certbot for Nextcloud, they also get renewed for ONLYOFFICE.

When I try to connect to http://[serveraddress]:8080 (where [serveraddress] is the address of my server), I correctly get shown this:

ONLYOFFICE Configuration Wizard

But when I connect to https://[serveraddress]:44380, my browser says it couldn't connect (check Internet connection, firewall, try to restart router etc.)

How do I diagnose and hopefully fix this issue?

1 Answer 1

0

If we understood it right, you want to use ONLYOFFICE Document Server to be able to edit your files from Nextcloud.

Now, I chose 8080 as port for HTTP and 44380 as port for HTTPS, so I started the container with:

docker run -i -t -d -p 8080:80 -p 44380:443 -v /opt/onlyoffice/Data/var/www/onlyoffice/Data onlyoffice/communityserver

First of all we can see that you installed ONLYOFFICE Community Server instead of the Document Server. Please follow this link to find an instruction on how to install Document Server with Docker.

You will also need to generate own SSL certificates for the Document Server to make it work on HTTPS. You can find the instruction in the same article above.

13
  • Hi! Welcome to SE. Could you please complete the answer with the relevant parts of the linked page? A mere link doesn't serve as an answer here, and precious information could easily be removed or URL may be modified, causing a broken link to take place. Commented Jul 2, 2018 at 12:37
  • Also, I already have Certs Commented Jul 2, 2018 at 12:40
  • Please specify if you have installed ONLYOFFICE Document Server, as Community Server is another product, which does not have editors included. Commented Jul 3, 2018 at 10:38
  • yes. After running sudo docker run -i -t -d -p 44380:443 --resta rt=always -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffi ce/Data onlyoffice/documentserver Commented Jul 3, 2018 at 12:10
  • 1
    I still get the error "Unable to connect" Commented Jul 3, 2018 at 12:11

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.