Hello all,
as i read in bugreports, people already see and tried the new docker-image for collabora.
I try to install this as well and fail. I've tried:
-
installing in docker via
docker pull collabora/code
docker run -t -d -p 9980:9980 -e "domain=localhost" --net host --cap-add MKNOD collabora/code
#advanced for localhost as wrote in nextcloud-manual
-
making folders for nginx:
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;
}
websockets, download, presentation and image upload
location ^~ /lool {
proxy_pass https://localhost:9980/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
-
Moving cert
docker cp 716a4c99ce67:/etc/loolwsd/ca-chain.cert.pem /tmp/
cat /tmp/ca-chain.cert.pem >> /yourown/cloudroot/resources/config/ca-bundle.crt
that's about what was done, now on the richdocuments-part;
the defaultvalue https://localhost:9980 detects the wrong ssl-cert (when you did not the moving-step above) and is able to load the document-raster/mainmenu (which needs a discovery.xml-file, which i get). If i choose a file, it's not able to load any file - load-circle loads infinite long.
this looks other when i choose the servername provided by nginx (in my case https://cloud.energiewandler.ch). it loads the editor partialy and tells me it looses connection and i should try again (a owncloud-message).
a docker logs gives me this for one complete try to open it:
wsd-00031-02 00:48:54.457418 [ client_req_hdl ] Request from 127.0.0.1:35186: GET /hosting/discovery HTTP/1.0 / Host: cloud.energiewandler.ch / Connection: close / User-Agent: ownCloud Server Crawler
wsd-00031-02 00:48:54.457526 [ client_ws_0010 ] Thread started.
wsd-00031-02 00:48:54.463811 [ client_ws_0010 ] Sent discovery.xml successfully.
wsd-00031-02 00:48:54.463996 [ client_ws_0010 ] Thread finished.
wsd-00031-04 00:48:56.411516 [ client_req_hdl ] Request from 127.0.0.1:35192: POST /loleaflet/1.7.2/loleaflet.html?WOPISrc=https%3A%2F%2Fcloud.energiewandler.ch%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F183694&title=Neue%20Kalkulationstabelle.ods&lang=de&closebutton=1&revisionhistory=1 HTTP/1.0 / Host: cloud.energiewandler.ch / Connection: close / Content-Length: 45 / User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 / Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 / Accept-Language: en-US,en;q=0.5 / Accept-Encoding: gzip, deflate, br / Cookie: ocr2mvgsw895b=MayTd5cC5sKD7IwBMy0%2Cb1; oc_sessionPassphrase=1YHaGSQzivHyWujlYqhW%2BdAMJYgq9lwdxb8eNvL10Br9%2FZZXqDZNTcJag4KJ3u3KrVYIn5ofzr16TEjL9Wc16uzXCwuc7%2F6i6Q02vsOhIY%2BpYJYr72OT%2F%2FCYF%2F5XtVKe / Content-Type: application/x-www-form-urlencoded
wsd-00031-04 00:48:56.411790 [ client_req_hdl ] Preprocessing file: /usr/share/loolwsd//loleaflet/dist/loleaflet.html
wsd-00031-02 00:48:58.080141 [ client_req_hdl ] Request from 127.0.0.1:35194: GET //ws/https:/cloud.energiewandler.ch/index.php/apps/richdocuments/wopi/files/183694?access_token=fg2yRz99ABCdTXu5DPbPdG3AgmsxCJBU HTTP/1.0 / Upgrade: websocket / Connection: upgrade / Host: cloud.energiewandler.ch / User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 / Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 / Accept-Language: en-US,en;q=0.5 / Accept-Encoding: gzip, deflate, br / Sec-WebSocket-Version: 13 / Origin: https://cloud.energiewandler.ch / Sec-WebSocket-Extensions: permessage-deflate / Sec-WebSocket-Key: tPlhQFPhi2otDKXK4IqZbg== / Cookie: ocr2mvgsw895b=MayTd5cC5sKD7IwBMy0%2Cb1; oc_sessionPassphrase=1YHaGSQzivHyWujlYqhW%2BdAMJYgq9lwdxb8eNvL10Br9%2FZZXqDZNTcJag4KJ3u3KrVYIn5ofzr16TEjL9Wc16uzXCwuc7%2F6i6Q02vsOhIY%2BpYJYr72OT%2F%2FCYF%2F5XtVKe / Pragma: no-cache / Cache-Control: no-cache
wsd-00031-02 00:48:58.080303 [ client_ws_0011 ] Thread started.
wsd-00031-02 00:48:58.080337 [ client_ws_0011 ] Unknown resource: //ws/https:/cloud.energiewandler.ch/index.php/apps/richdocuments/wopi/files/183694?access_token=fg2yRz99ABCdTXu5DPbPdG3AgmsxCJBU
wsd-00031-02 00:48:58.080401 [ client_ws_0011 ] Thread finished.
the main-failure is this
Unknown resource: //ws/https:/cloud.energiewandler.ch/index.php/apps/richdocuments/wopi/files/183694?access_token=fg2yRz99ABCdTXu5DPbPdG3AgmsxCJBU
so it did not find the adress/"ressource" - but it is the only way (for me) to get ANY reaction out of this daemon (loolwsd)
EDIT: i've tried the url withouth //ws/ . Result:
{"BaseFileName":"Neues Dokument (3).odt","Size":8449,"Version":"0"}
so, this seems to work. EDITEND
Maybe someone has a idea with nginx, forwarding, or may the development on loolwsd is too fast? Or should i free the port 9980 (would need to be in serverplace)?
I've tried to disable, enable and search other nginx-options cause i think the problem is there.. and maybe it's also a missformed url in richtexts? i just could speculate :s
hope, this bugreport will be productive, thanks a lot in advance :)
BIG EDIT:
Problem is solved. This was uncommented and was in the serverpart (for owncloud)
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
Commenting those out is a first workaround.. This flags are from the owncloud-documentation where i share the domain with.
Final lool-location which works for me:
location ^~ /lool {
gzip off;
proxy_pass https://localhost:9980;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
add_header X-Download-Options open;
add_header X-Permitted-Cross-Domain-Policies all;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400;
}
I let the bugreport be since it's may usefull as a documentation which is kind of rare atm. Now i wanna write text! :)))))