I am currently trying to get Collabora working with my Nextcloud installation, but I am running into some problems.
I installed the official CODE package for Ubuntu 16.04 and added the following to my NGINX ssl vhost:
# static files
location ^~ /loleaflet {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# main websocket
location ~ ^/lool/(.*)/ws$ {
proxy_pass https://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
# download, presentation and image upload
location ~ ^/lool {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# Admin Console websocket
location ^~ /lool/adminws {
proxy_pass https://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
After that I installed the Collabora app in Nextcloud and entered the WOPI URL in the settings.
However, when I try to open a document inside Nextcloud, I only get an internal server error message.
NGINX log shows:
2018/02/04 11:23:04 [error] 370#370: *40 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: foo.bar, request: "GET /hosting/discovery HTTP/1.1", upstream: "https://127.0.0.1:9980/hosting/discovery", host: "foo.bar"
2018/02/04 11:23:04 [warn] 370#370: *40 upstream server temporarily disabled while connecting to upstream, client: XXX.XXX.XXX.XXX, server: foo.bar, request: "GET /hosting/discovery HTTP/1.1", upstream: "https://127.0.0.1:9980/hosting/discovery", host: "foo.bar"
2018/02/04 11:23:04 [error] 370#370: *40 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: foo.bar, request: "GET /hosting/discovery HTTP/1.1", upstream: "https://[::1]:9980/hosting/discovery", host: "foo.bar"
2018/02/04 11:23:04 [warn] 370#370: *40 upstream server temporarily disabled while connecting to upstream, client: XXX.XXX.XXX.XXX, server: foo.bar, request: "GET /hosting/discovery HTTP/1.1", upstream: "https://[::1]:9980/hosting/discovery", host: "foo.bar"
So I suppose it’s a problem with my webserver.
I’ve also created /var/log/loolwsd.log and changed it’s owner to lool but no log is written there.
systemctl status loolwsd also gives some errors, but I don’t know wether they have anything to do with my problem:
loolwsd[718]: kit-00722-00720 10:35:25.916286 [ loolkit ] ERR Failed to install seccomp syscall filter| common/Seccomp.cpp:205
loolwsd[718]: kit-00722-00720 10:35:25.916341 [ loolkit ] ERR LibreOfficeKit security lockdown failed. Exiting.| kit/Kit.cpp:2082
Maybe it’s pretty obvious but can’t seem to find what I’m doing wrong.
Thanks in advance for any advice!