Fixed websocket connection error#363
Conversation
|
Thanks for the fix! My intention with running on port 443 was to secure the connection. With this fix it will be plain HTTP, right? I mean in this case I won't even need to generate a SSL script (right?) as the connection is insecure anyway? |
|
Hi @enoch85, in this case you connection already insecure between proxy server (apache) and the documentserver. Now there aren't any process that listen to 443 inside the documentserver container. So you don't need to setup SSL on ONLYOFFICE Document Server, just set up it through the apache server. |
|
@agolybev For instance, here we use wss: https://github.com/nextcloud/vm/blob/master/apps/collabora.sh#L239 Any suggestions on how to make that happen here as well? |
|
Ok, first you should turn SSL on inside the Document Server. See here how to do it. |
|
You can also skip proxing http traffic to Document Server, if you sure than you wouldn't have such traffiic to the Document Server. It just need to redirect http to https. |
|
Since that is a bit more advanced, let's merge this and do the SSL stuff in another PR. Also @agolybev , could you please backport this to the PostgreSQL branch? Thank you very much! |
|
Hi @enoch85, |
|
@agolybev True. |
|
Are there any updates on the OnlyOffice Document server issues and having to restart Docker to get the Document Server is Running screen? I am still getting this on the latest Nextcloud VM even after recently installing with latest scripts. If I restart Docker I get the Document Server Is Running with the green check mark. I am also still not able to get this to work in Nextcloud even after the Document server is running. I get Error when trying to connect, bad request or timeout after clicking save using Document Server Editing Address https://office.domain.com/. I have tried the advanced options as well with no success. Any help would be greatly appreciated:) Proxy Error The proxy server received an invalid response from an upstream server. Reason: Error reading from remote server Apache/2.4.29 (Ubuntu) Server at office.domain.com Port 443 |
|
@johnczer You need to restart the service, or the whole VM to get it to work. Last time I tested it worked. |
|
Ok, so what would these settings be because I am not able to connect to Document Service from Nextcloud. Thanks! ONLYOFFICE Document Service Location specifies the address of the server with the document services installed. Please change the '' for the server address in the below line. Document Editing Service address Advanced server settings Document Editing Service address for internal requests from the server Server address for internal requests from the Document Editing Service |
|
@johnczer I think yo would get better help in the forums: https://help.nextcloud.com |
|
Daniel,
This was actually more related to a firewall on my network than the VM in this particular case. Also, is there a way to install older VMs like the 13.0 that I purchased in 2/18 with Ubuntu 16.04? I have tried but it looks like it is trying to pull the newer scripts and doesn’t go through the install correctly.
|
|
@johnczer OK, usally it's the firewall and issues ends up here because "I did everything right, but it's still not working" :) No, there is no way to get the current VM to work with 16.04. I did save the older scripts in @techandme repo though. But why do you want something that is old? |
|
In this particular case it was something I didn’t have to do with the older VM and in order to get the OnlyOffice Document server to connect to Nextcloud I had to create a Proxy rule in the firewall. This resolution was like finding a needle in a pile of needles. I discovered that it would work behind a simple router so that lead me to trying several different things on the firewall.
I guess since the old VM just worked with regards to Docker not having to be restarted is why I wanted to set up the older one but I hear you. Eventually I would need to upgrade. I still have a working older 13.0 VM but I expanded the drive to 100Gigs and wished I only expanded it to 50Gigs.
|
Well, since nothing changed in the scripts since the old version, could it be that you updated your firewall FW and now needed to add that particular rule for it to pass the requests?
It has always been a fact that it needs to be restarted, maybe not always but in most cases. Anyway, glad it's working! 👍 |
|
I know and I think maybe because of Apache being a proxy…? It did work like a charm but I wished I hadn’t spent 100 hours to figure it out. Whenever this happens I think about how many attempts it took Thomas Edison to make a light bulb and if were easy I wouldn’t have learned as much. I guess that is how we get sharper☺
Thanks for all of your hard work Daniel!
|
|
Oh, and by the way I do have that older VM and I have never once had to restart Docker or create a proxy rule-it works and has worked every single time!
Is there a way to shrink the volume from 100Gigs to 50Gigs since I am putting my Nextcloud data in another share location?
|
Lol, yeah :D
Yes you can. Just google: "shrink vmdk" or something like that.
Thanks! Appreciated! |
|
Hi Daniel,
Is there a reason why I shouldn’t install the OnlyOffice Community Server on this Nextcloud VM, alongside the Document Server? I was just curious as to whether you have tried it already or not.
I have had some great progress on getting everything to work behind my Sophos UTM, which is not well documented online. But after much time and effort I have everything working great. I did not want to chance the above without checking with you first, to see what you thought.
|
|
Do what you like. Both Collabora and OnlyOffice should work. It's a matter of taste. :) |
|
Daniel,
I’m sorry, I didn’t mean Collabora Online and OnlyOffice at the same time, on same VM but rather the OnlyOffice full blown Community server which has everything packaged together. The mail, document server and editor all in one. When I installed the OnlyOffice Community server on a Windows Server it appears to have quite a bit more in the GUI. Am I missing something with what gets installed on the VM?
|
|
Not sure what you mean, and sorry but Github is no support forum. I think you will get better answers here. |
|
@johnczer Late answer, but I read your question again and the answer is no, we don't install the "full blown" community server. That's a separate VM distributed by OnlyOffice. Sure, you could install them side by side, but I'm not sure how that would work. The VM scripts installs OnlyOffice "docs" or how you would call it and integrates that into Nextcloud. What else do you need? :) Nextcloud has mail and all that already. |
|
Better late than never; thanks for answering though Daniel. I did gather this when I didn’t get an answer from you and ended up installing the Windows IIS version or OnlyOffice Community Edition and it works just fine with the NextCloud VM integration. Since Docker is still kind of buggy with regards to the RabbitMQ errors and having to restart the Docker service every other time and to use the OnlyOffice iPhone app this made sense to install this way and it’s working great. Thanks again Daniel!
|
|
Glad to hear that you managed to solve it! |
|
Daniel,
I see that you have the store somewhat open; do you have the smaller sized NextCloud VM for Hyper-V available as before?
|
|
Please don't use this PR to chat. Send me an email. The short answer is no, the shop will be online September 1st. |
Fixed issue ONLYOFFICE/DocumentServer#129