SOLVED Nextcloud says File Not Found using Collabora

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
OK, here is the setup:

I am running TrueNAS Core 12.0-U1.
Here is two iocage jails, both are version 12.2. They are nextcloud and proxy.
proxy is an nginx reverse proxy which handles SSL certificates.
Nextcloud is running behind the proxy, and working fine. Nextcloud is 20.0.5.

I´ve am now trying to get Collabora to work. So, I´ve setup a VM running Ubuntu 16.04-LTS with collabora in a docker container.
The SSL cert for collabora is also on the proxy, and browsing to https://collabora.mydomain.com gives ok. Even from outside my LAN.
https://collabora.mydomain.com/loleaflet/dist/admin/admin.html works too.

I have installed and setup the collabora connector in Nextcloud,which tells me the server https://collabora.mydomain.com is reachable.

BUT, as I click an office document in my Nextcloud web,it tells me:

Code:
Not Found
The requested URL was not found on this server.


The url field says
Code:
https://cloud.mydomain.com/index.php/apps/files/?dir=/Documents&fileid=388234


I clicked a document in the folder Documents and that is what happens.
Same thing if I try to create a new document using the + button and selecting New document or spreadsheet.

Has anyone seen this? I can´t find an error anywhere. Checked logs on Nextcloud, proxy and collabora servers.
 

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
I managed to solve it after a few days on google.
Turns out it all had to do with my docker-compose.yml on my collabora server.

1. I had a spelling error in server_name. Embarrassing but true. When I corrected that, I got an error abour Unauthorized WOPI host.
2. I had domain=office.mydomain.com. BUT, domain should be cloud.mydomain.com, ie the nextcloud server.

Once I got both of thos right, everything worked.
 
Top