Closed mmaridev closed 3 years ago
@mmaridev : are there any news on this?
same issue here. Using dockered version too
greets
Thanks for reporting this issue. The logs report something in wsd/LOOLWSD.cpp:2412
, so that is Collabora/LibreOffice and not Moodle. I suppose that the people over there will be able to provide more help.
Anyway, what is Collabora/LOOL 7.x? Where did you get the Docker image from, and which one did you use specifically? After all, I believe Collabora celebrated the launch of 4.2 only recently (https://twitter.com/CollaboraOffice/status/1314120873520005120) and LibreOffice Online seems to be at 6.2 (https://hub.docker.com/r/cibsoftware/libreoffice-online/tags). Any details on your setup would be greatly appreciated in order to narrow it down! Thanks :)
@Dagefoerde thanx for responding....
here you see my docker-compose.yml ---> this is working with several nexcloud instances fine....but moodle not ehh
That's the image for libreoffice 7.0, docker image is based on work of https://wiki.documentfoundation.org/Development/BuildingOnline
services:
frontproxy:
restart: always
image: jwilder/nginx-proxy
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "certs-volume:/etc/nginx/certs:ro"
- "/etc/nginx/vhost.d"
- "/usr/share/nginx/html"
nginx-letsencrypt-companion:
restart: always
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- "certs-volume:/etc/nginx/certs"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
volumes_from:
- "frontproxy"
collabora:
image: kratzersmz/libreoffice-online:7-0-2020-08-18
restart: unless-stopped
hostname: office.domain.de
environment:
- username=admin1
- password=MenschMeier
- domain=cloud.domain.de|cloud.domain2.de|cloud.domain3.de
- VIRTUAL_HOST=office.domain.de
- LETSENCRYPT_HOST=office.domain.de
- LETSENCRYPT_EMAIL=webmaster@office.domain.de
- extra_params=--o:ssl.enable=false --o:ssl.termination=true
networks:
- frontproxy_default
- default
networks:
frontproxy_default:
external: true
volumes:
certs-volume:
Well, perhaps it's an issue with the development build of LibreOffice 7.0, but that's hard to tell. LibreOffice developers would probably know more. As a start you could try building a more recent version of LibreOffice Online and test against that.
I notice one other thing. The error log of the original post states this URL (excerpt):
ERR Unknown resource: /lool/https%3A%2F%2Fmoodle.domain.tld%2Fmod%2Fcollabora%2Fcallback.php%2Fwopi
Note how a LibreOffice Online URL is mixed with an (encoded) Moodle URL. So perhaps LibreOffice Online misinterprets the callback URL and uses it as a relative one instead of as an absolute one? Or maybe the callback URLs are not defined well; you could check the plugin settings in Moodle.
... if you are as curious as I am, could you please try the following (before following up on my other ideas):
in /mod/collabora/classes/collabora.php
, could you please change this line:
to this line (the only change is adding false
):
$wopisrc = $callbackurl->out(false).'/wopi/files/'.$fileid;
And then let us know whether something changes, and whether these errors still appear in the log? Thanks!
@Dagefoerde : Thanks for your reply. I'm using the hosted version of moodle by belwue. I do not have access to files of collabora moodle plugin....
I'm try to compile lool 6.4, and telling you if its working or not......
@kratzersmz 6.4 should work, we're currently using it in prod. I'll answer tomorrow about the PHP part, sorry.
@kratzersmz What image is your docker image based on? Recently I tried the official image libreoffice/online:master without any problems.
@grabs: based on lool 7, removed some limitations.....I'll grab the official images and give it a try...
thanks for replying
@kratzersmz got it working with online a9d8a533
and LOKit bc99794
compiled 8/10/2020. Upgraded the Collaborative document mod to the latest version and it's now working.
@mmaridev good to read that 👍 May there are other users with the same problem. Could you be a bit more specific on what docker-images (name, version) you took to get it running? Thank you very much!
The build is done via the procedure mentioned here https://wiki.documentfoundation.org/Development/BuildingOnline . My build was executed on October, 8 so any later version should work too. If not, let me know. I'll check with online dev team the commits that came after that date.
@mmaridev : thanks for sharing your knowledge...is your build of lool 7.x as docker container online available?
I'm closing this now because there doesn't seem to be a problem with the plugin itself.
Currently testing with version 7.0 and apparently not working.
That's the log from Docker: