I there,
After many tests, I am asking to you because I can’t get Collabora working with Nextcloud.
Here is my configuration :
Started container with docker-compose :
nextcloud_office:
restart: always
image: collabora/code
container_name: nextcloud_office
ports:
- 9980:9980
cap_add:
- MKNOD
environment:
- domain=cloud.gardelle.info
(Also tried with the command line provided with same result)
I added the following configuration in my nginx conf :
server {
listen 443 ssl;
server_name cloud.gardelle.info;
#[...] cloud.gardelle.info conf
######################
# Collabora specific #
######################
# static files
location ^~ /loleaflet {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Host $http_host;
}
# websockets, download, presentation and image upload
location ^~ /lool {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
}
After adding the collabora connector and the url https://cloud.gardelle.info in the admin pannel (with or without ":443), I got no error while going to he “office” app, but a strange behavior.
When I click on any new document it adds a new blank square instead of a nice looking icon (one blank square per click…).And when I click on that square, I got an error :
Failed to open undefined, file not supported.
And these ones on nexcloud’s log :
Error PHP Undefined index: dir at /nextcloud/apps/richdocuments/controller/documentcontroller.php#289 2016-08-25T09:07:23+00:00
Error PHP Undefined index: filename at /nextcloud/apps/richdocuments/controller/documentcontroller.php#288 2016-08-25T09:07:23+00:00
Error PHP Undefined index: filename at /nextcloud/apps/richdocuments/controller/documentcontroller.php#288 2016-08-25T09:07:23+00:00
I tryed a lot of things, with no result.
My setup is quite simple :
Debian 8 server with :
ngnix 1.11.3 (not dockerized)
docker 1.12.1
3 containers :
Nextcloud
Mariadb
Collabora CODE
I tried a lot of things. for instance:
- Nextcloud not in a container
- Specific sub-domain for colladora with full path redirect to container
- Changing the syntaxt in nginx’s conf (played with “~” “^”, “https” / “http”…)
- Different ports for collabora’s container
- Collabora with Owncloud
All with the same issue… I still suspect that it’s between nginx and collabora’s container, but can’t find any solution. Any idea ?