Try the fastest and simplest way to install ONLYOFFICE

Blank Page when opening documents using HTTPS

Questions/problems on Docker

Blank Page when opening documents using HTTPS

Postby relink » Fri May 05, 2017 1:42 am

Ok, I think im on my 10th or so reinstall of only office, and I think I'm almost there this time.

Here is my setup:

unRAID > Ubuntu Server 16.04 > Docker versions of Community, Mail, and Document Servers (all should be the latest)
Community Server is accessible through port 8383
ONLYOFFICE was installed using this guide https://www.linuxbabe.com/linux-server/install-onlyoffice-ubuntu-16-04 , I stopped at the part where the guide went into setting up nginx, and https as I am handling that seperately.

I am using the reverse proxy that is built into my Synology NAS (I believe it is using NGINX as I saw that name on a few error screens while trying to get it setup)
The nas is in my networks DMZ, and port 80, and 443 are open in the Synology Firewall.
the synology also handles my https cert.
I have 2 rules in the reverse proxy setup.
1. goes from my DDNS name on port 443 to my onlyoffice ubuntu VM on port 443
2. goes from my DDNS name on port 80 to my onlyoffice ubuntu VM on port 8383

unRAID handles my DDNS names through a small duckdns docker.

So heres the problem.

1. If I try to access my portal using HTTPS it works fine until I try to open a document, when trying to load any type of office document I get a new tab that has the name, and icon like it should, but the page is just a blank light grey color with no errors or anything. However using Google Chrome I get a little shield icon on the right side of the address bar that when clicked on says "this page is trying to load scripts from unauthenticated sources", if I click "load unsafe scripts" then the editor opens up but now instead of HTTPS being in green, it is crossed out in red. Also now any windows open to my only office server will continue to load with https in red until i close all open onlyoffice tabs and type in the domain name again, then it will load back up with the https in green again.

2. If I use an HTTPS connection in the mobile (iOS) app, everything works as expected

3. if I connect on my local network using the Ubuntu VMs IP address and port 8383, then everything works just as expected.

I believe the problem lies somewhere between the reverse proxy, and the docker network. I have tried running NGINX in a docker, in a linux server, on the same VM as onlyoffice, and now my Synology, and I get the exact same result every time. I would prefer to stick with my Synology if at all possible btw, it makes managing all my other services so much easier.

I really hope that its just a simple noob mistake, I have a wife that's really looking forward to using this thing, I've been at this for nearly 2 weeks.
relink
 
Posts: 25
Joined: Wed May 13, 2015 12:33 pm

Re: Blank Page when opening documents using HTTPS

Postby Maxim » Fri May 05, 2017 7:09 am

Hello relink!
1 Did you run Document Server with HHTPS?
Run Document Server with HTTPS
Put your certs into /app/onlyoffice/DocumentServer/data/certs/
2 Try to check without SSL certs - just to check up OO status, it works or it doesn't work
3 Enter into Community Server container and make a request to the API of Document Server container just to be sure that DS is accessible
wget http://IPaddressOrDomainOfServer/web-ap ... nts/api.js
IPaddressOrDomainOfServer - do not use local ip address, there must be external ip or domain name.
Maxim
 
Posts: 1162
Joined: Tue Oct 11, 2016 2:34 pm

Re: Blank Page when opening documents using HTTPS

Postby relink » Fri May 05, 2017 10:36 am

1. I did not, and for a few reasons (and maybe I'm wrong here), but I've read in numerous posts on the forums here that document server doesn't need to be setup with https because it communicates directly with community server. Also I've read many posits about people having issues with the certs installed into document server. And lastly, isn't that was the reverse proxy I setup is supposed to do?

2. If by this you mean force an HTTP connection to only office in my browser, then yes if I do this everything works as it should.

3. I'm not sure how to do this one just yet, so I'll get back to you on this one.
relink
 
Posts: 25
Joined: Wed May 13, 2015 12:33 pm

Re: Blank Page when opening documents using HTTPS

Postby Maxim » Fri May 05, 2017 2:05 pm

Hello relink!
1 No it;s not right. it works only in local network (not always)
2 to enter into Community Server container you should
Code: Select all
docker ps

using this command we know ID of Community Server container
after use following command
Code: Select all
docker attach [ID of Community Server container]

and
Code: Select all
wget http://ipaddressordomainofserver/web-apps/apps/api/documents/api.js
Maxim
 
Posts: 1162
Joined: Tue Oct 11, 2016 2:34 pm

Re: Blank Page when opening documents using HTTPS

Postby relink » Fri May 05, 2017 4:00 pm

So I tried runn the command you asked me to run ,but when I do it just hangs and does nothing.

Im using Putty to ssh into my server.
I run "sudo docker ps" (I get the id)
then "sudo docker attach #######"

and at this point it just doesnt do anything at all, no output of anykind, I dont even go back to a prompt, it just sits there.
relink
 
Posts: 25
Joined: Wed May 13, 2015 12:33 pm

Re: Blank Page when opening documents using HTTPS

Postby relink » Fri May 05, 2017 6:16 pm

better yet, before we get to far along with trouble shoooting this.

Would it be easier to have document server, and community server on two separate servers? right now they are both running on an Ubuntu Server 16.04 VM, however I would MUCH rather have only office running directly in Docker on my unRAID server. The thing is, they are installed in two separate containers when I run them on unRAID, so I assume they don't have that small virtual network to communicate with each other directly.

I can use Pipework to assign each container its own static IP address. Then use the reverse proxy built into my synology to get everything networked, and using SSL...

I dont have enough experience to know if any of what I just said would work, but it seems plausable, and if it would make things easier, it is definately the way id rather go. I never wanted to run this in a VM to begin with, I just couldnt get it working any other way.
relink
 
Posts: 25
Joined: Wed May 13, 2015 12:33 pm

Re: Blank Page when opening documents using HTTPS

Postby relink » Sat May 06, 2017 9:27 pm

I GOT IT WORKING!!!!!!!!!!!! :mrgreen: :D :D :lol:

Im not 100% sure whats going on here, maybe someone can shed some light on it for me, but it works, and it seems rock solid so far.

Im running it in a Ubuntu Server 16.04 VM on unRAID (KVM)
I installed all ubuntu server updates before starting.

I installed Docker by following the tutorial below:
https://www.linuxbabe.com/linux-server/ ... untu-16-04
However I did not use this tutorial to install ONLYOFFICE.

I used the tutorial below to install ONLYOFFICE:
https://www.digitalocean.com/community/ ... untu-14-04
The only change I made was I changed the self signed certificate time from 1 year to 3 years.
during setup of the email server I used my duckdns.org DDNS name.
I have not tried using mail server at all yet, but I really dont plan on using it anyway.

After that, I could access ONLYOFFICE through my network using the local IP of my Ubuntu VM with HTTPS. I kept all ports at their defaults, so 80, and 443.

I then went into my synology which is already secured using a LetsEncrypt cert, and I added 1 entry to the reverse proxy thats built into the application portal of Synology DSM.

Source
Protocol: HTTPS
Hostname: myOOservername.duckdns.org
Port: 443

Destination
Protocol: HTTPS
Hostname: Ubuntu VM local IP
Port: 443

and BAM! everything worked beautifully! absolutely beautifully!
relink
 
Posts: 25
Joined: Wed May 13, 2015 12:33 pm

Re: Blank Page when opening documents using HTTPS

Postby Maxim » Sun May 07, 2017 6:07 am

Hello relink!
THX God! :D :D :D :D
Maxim
 
Posts: 1162
Joined: Tue Oct 11, 2016 2:34 pm


Return to Docker Version

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron