I’m trying to get the collabora docker container working with my nextcloud installation. But when I click on a file and it opens the collabora editor I get a message box saying Failed to read document from storage. Please contact your storage server (cloud.example.com) administrator.
I can’t see anything in my nextcloud logs.
This is what I get in the collabora container logs:
wsd-00029-00052 2019-08-25 18:37:50.130004 [ docbroker_004 ] ERR WOPI::CheckFileInfo failed with 302 Found| wsd/Storage.cpp:465
wsd-00029-00052 2019-08-25 18:37:50.130365 [ docbroker_004 ] ERR loading document exception: WOPI::CheckFileInfo failed| wsd/DocumentBroker
.cpp:1158
wsd-00029-00052 2019-08-25 18:37:50.130440 [ docbroker_004 ] ERR Failed to add session to [/index.php/apps/richdocuments/wopi/files/445_oce
n17s5fwwg] with URI [https://cloud.example.com/index.php/apps/richdocuments/wopi/files/445_ocen17s5fwwg?access_token=kqEf2Z
Q9iyAv6pXJR8WlPg3jFsLVcSPx&access_token_ttl=0&permission=edit]: WOPI::CheckFileInfo failed| wsd/DocumentBroker.cpp:1120
wsd-00029-00052 2019-08-25 18:37:50.140574 [ docbroker_004 ] WRN Child session [003b] not found to forward message: load url=https://cloud.
example.com/index.php/apps/richdocuments/wopi/files/445_ocen17s5fwwg?access_token=aaaa&access_t
oken_ttl=0&permission=edit readonly=0 lang=en| wsd/DocumentBroker.cpp:1770
wsd-00029-00052 2019-08-25 18:37:50.178584 [ docbroker_004 ] ERR Invalid or unknown session [003b] to remove.| wsd/DocumentBroker.cpp:1194
wsd-00029-00030 2019-08-25 18:37:51.131901 [ prisoner_poll ] WRN Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cp
p:1795
kit-00049-00031 2019-08-25 18:37:51.131957 [ loolkit ] WRN Kit connection lost without exit arriving from wsd. Setting TerminationFlag| kit
/Kit.cpp:2236
This is my nginx reverse proxy config:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name office.example.com;
# 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;
}
ssl_certificate /etc/letsencrypt/live/example.com-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example.com-0001/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
}
As far as I can tell my nginx settings for nextcloud are working just fine. I’m using nextcloud version 16.0.4.
The only google result for that error is this thread: Collabora nur von einer Cloud aus zu erreichen which (if the broken translation was accurate) says that they had some DNS caching issue. I’m sure I don’t have that as the subdomains I setup haven’t ever pointed to other addresses.
This is what the collabora request for the document looks like:
172.0.0.0 - - [25/Aug/2019:21:06:14 +0200] "GET /index.php/apps/richdocuments/wopi/files/456_ocen17s5fwwg?access_token=aaaa&access_token_ttl=0&permission=edit HTTP/1.1" 302 5 "-" "LOOLWSD WOPI Agent 4.0.5" "-"
I can’t really find anything in nextcloud logs with level 1 (on level 0 I get a ton of messages from https://github.com/paroga/user_discourse)