How to install Collabora Online Development Edition (CODE)

Thank you for answer!

[root@mail ~]# config show loolwsd
loolwsd=service
    AllowWopiHost=
    VirtualHost=collabora.gtbs.ro
    status=enabled
[root@mail ~]# 

Sorry for late answer, I wasn’t in front of a PC to check my settings…
If your Neth hostname is not the same as your public domain name, you need to set AllowWopiHost to the domain name you use in your browser to connect to Nextcloud.

config setprop loolwsd AllowWopiHost gtbs.ro
signal-event nethserver-collabora-update

If you use port forwarding to your Nextcloud instance, it may help to enable hairpin nat in the firewall settings if you’re testing from internal LAN:

image

You may check /var/log/messages or /var/lib/nethserver/nextcloud/nextcloud.log for more detailed error messages.

Even after I made the settings for WopiHost, it didn’t work.
Following your hint about the host name and the public domain name, I realized that I did not set an alias for collabora.gtbs.ro.
After I seted this alias, it’s working!

Thank you for your help!
Kind regards,
Gabriel

1 Like

@mrmarkuz

I know why I forgot the alias!
The virtual host was created automatically by the nethserver-collaborate package during installation, but not the alias.
When you create a virtual host from GUI, the process create also the alias.

2 Likes

The Collabora integrated server is definitely easier to install and maintain (it is a web application self-contained inside NC) but lacks a lot of features (the most important one being sandboxing each open document).

I will say for “personal” use the NC/Collabora integrated one is sufficient. If you are part of a team using Collabora/LibreOffice Online for production and/or collaboration, I would continue recommending the great job of Markus :slight_smile:

6 Likes

Thank you for the explanation of the differences between the two versions.
As you can see, I already use Markus’s version, NS integration and Markus already helped me.
Indeed, great job of @mrmarkuz !

1 Like

Nethserver: 7.8.
Modules: Webserver, Mail, NextCloud, Webtop5, Firewall, IPS, Thread Shield

I installed Collabora from Software center and get errors.

Current State:

  1. Installation Nexcloud, Webtop5 --> working well integrated

  2. providing vhost with LE- certificate: collabora.dargels.de

  3. alias collabora.dargels.de exists

  4. Configuration.

    config show loolwsd
    loolwsd=service
    AllowWopiHost=nextcloud.dargels.de
    VirtualHost=collabora.dargels.de
    status=enabled

    ~]# netstat -tlpnu | grep loolwsd
    tcp 0 0 127.0.0.1:9980 0.0.0.0:* LISTEN 15578/loolwsd
    tcp 0 0 127.0.0.1:9981 0.0.0.0:* LISTEN 15578/loolwsd

    ~]# systemctl status loolwsd
    ● loolwsd.service - LibreOffice Online WebSocket Daemon
    Loaded: loaded (/usr/lib/systemd/system/loolwsd.service; enabled; vendor preset: disabled)
    Active: active (running) since Sun 2020-11-15 17:51:45 CET; 11min ago
    Main PID: 15578 (loolwsd)
    CGroup: /system.slice/loolwsd.service
    ├─15578 /usr/bin/loolwsd --version --o:sys_template_path=/opt/lool/systemplate --o:child_root_path=/opt/lool/child-roots --o:file_server_root_path=/usr/share/loolwsd
    ├─15749 /usr/bin/loolforkit --losubpath=lo --systemplate=/opt/lool/systemplate --lotemplate=/opt/collaboraoffice6.0 --childroot=/opt/lool/child-roots/ --clientport=9980 --masterport=9981…
    └─16146 /usr/bin/loolforkit --losubpath=lo --systemplate=/opt/lool/systemplate --lotemplate=/opt/collaboraoffice6.0 --childroot=/opt/lool/child-roots/ --clientport=9980 --masterport=9981…

    ~]# httpd -S
    port 80 namevhost collabora.dargels.de (/etc/httpd/conf.d/virtualhosts.conf:273)
    port 443 namevhost collabora.dargels.de (/etc/httpd/conf.d/virtualhosts.conf:218)
    port 443 namevhost collabora.dargels.de (/etc/httpd/conf.d/zz_collabora.conf:9)

    ~]# config show nextcloud
    nextcloud=configuration
    HonorAdStartTls=disabled
    TrustedDomains=dargels.de,nextcloud.dargels.de,collabora.dargels.de,webtop.dargels.de
    VirtualHost=nextcloud.dargels.de
    Wellknown=disabled

  5. result:
    https://collabora.dargels.de/loleaflet/dist/admin/admin.html
    The requested URL /loleaflet/dist/admin/admin.html was not found on this server.

/var/log/httpd/ssl_access_log:
my.ip.here.194 - - [15/Nov/2020:18:32:49 +0100] "-" 408 -

where is the stumbling stone?

Best regards, Marko

no idea anybody? @mrmarkuz?

what i also cannot explain is the lonal name resolution.
dig collabora.dargels.de
collabora.dargels.de. 0 IN A 192.168.10.2

dig nextcloud.dargels.de
nextcloud.dargels.de. 0 IN A 192.168.10.2

dig webtop.dargels.de
webtop.dargels.de. 86400 IN A 45.157.178.109

the subdomains are differently bound to green and red IP-Address.

It seems you defined collabora.dargels.de in the virtualhosts and in the loolwsd entry in config db. It’s only needed in the loolwsd entry in the config db so please delete the vhost.

2 Likes

Thank you Markus, now it works.
I had already suspected it but was not sure.
Inside the Docu for Collabora Online (I know, that’s not the CODE-Version) I found:

Collabora Online requires a dedicated virtual host and it’s only accessible from HTTPS with a valid certificate.
Note: Collabora Online will not be enabled without a dedicated virtual host

I probably still had this in mind when I created the vhost.
Maybe you should put a note in the wiki to not create a dedicated vhost.

1 Like

You can do it yourself too. That’s why it’s a wiki! The more people actively adding and updating the wiki the better. So please do so!
Good practice is to make a note about your changes/additions in the talk section when editing an existing article.

I did it.

Note : Please make sure that no dedicated vhost is set up for Collabora.

1 Like