Collabora: Unexpected server error

It is gewtting late here so I will have to give up for today.

Thanks alot for taking your time to try to help me out. I will try again tomorrow - I hope you will have time to help me.

By the way, would it make any sense to delete the server and install anew?

Seems to be a typo line 174 in /etc/coolwsd/coolwsd.xml : can you share it ?

It seems perhaps is because of this block in /etc/coolwsd/coolwsd.xml

    <watermark>
      <opacity desc="Opacity of on-screen watermark from 0.0 to 1.0" type="double" default="0.2"></opacity>
      <text desc="Watermark text to be displayed on the document if entered" type="string"></text>
    </watermark>

Perhaps is it not compatible with Nextcloud version 25 ?? Your Nextcloud version is very outdated… What is the version of the app Nextcloud Office ?

Perhaps try remove or comment this block

<!--     <watermark>
      <opacity desc="Opacity of on-screen watermark from 0.0 to 1.0" type="double" default="0.2"></opacity>
      <text desc="Watermark text to be displayed on the document if entered" type="string"></text>
    </watermark> -->

and restart the service ?

174 <group> # <-- only if needed

That did not work

OK, thanks.

I only have one nextcloud instanse but I access it via several sub-domains. Does the Collabora server consider that as one host (with several entry-urls) or as several hosts (with one entry-url each)?

(Cf. this link)

Remove this # <-- only if needed and try first with the main domain (domain.tld). If it doesn’t work, add your nextcloud hosts with one entry-url each.

<group>
                        <host id="0" desc="Regex pattern of hostname to allow or deny." allow="true">domain.tld</host>
</group>

Or

<group>
                        <host id="0" desc="Regex pattern of hostname to allow or deny." allow="true">domain.tld</host>
</group>

<group>
                        <host id="1" desc="Regex pattern of hostname to allow or deny." allow="true">cloud.domain.tld</host>
</group>
<group>
                        <host id="2" desc="Regex pattern of hostname to allow or deny." allow="true">cloud2.domain.tld</host>
</group>

Does it means is’t aliases you need use ?

If one host is accessible under multiple ip addresses
or names, add them as aliases.

In this case it could perhaps be with aliases ?

 <group>
      <host desc="hostname to allow or deny." allow="true">https://domain.tld:443</host>
      <alias desc="regex pattern of aliasname">https://domain2.tld:443</alias>
      <alias desc="regex pattern of aliasname">https://domain3.tld:443</alias>
   </group>

Or something with the first domain then a subdomain and a aliases ?

            <alias_groups mode="groups">
                <group>
                        <host id="0" desc="Regex pattern of hostname to allow or deny." allow="true">cloud.domain.tld</host>
                </group>

                <group> 
                        <host id="1" desc="Regex pattern of hostname to allow or deny." allow="true">other.cloud.domain.tld</host> 
                        <alias desc="regex pattern of aliasname">https://otherd-other.cloud.tld:443</alias>
                </group>

OK. Now coolwsd service runs again.

But I still cannot open a document in nextcloud.

I think I will delete the collabora server an reinstall it…

I could not even delete the collabora server!

Here is the log: https://paste.yunohost.org/raw/potilixino

Could you test this version ? It should add the ability to use collabora with extra domains :

yunohost app install https://github.com/otm33GH/collabora_ynh/tree/panel_update

Yes, I will do that.

But fist I need to fix another issue - which might a root cause?

When I try to update the yunohost server, I get this message:

“You cannot do this right now because dpkg/APT (the system package managers) seems to be in a broken state… You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a` and/or `sudo dpkg --audit`.“

Running sudo apt install --fix-brokenreturns this:

# sudo apt install --fix-broken
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up coolwsd (25.04.9.4-1) …
chown: cannot access ‘/etc/coolwsd/coolwsd.xml’: No such file or directory
dpkg: error processing package coolwsd (–configure):
installed coolwsd package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of code-brand:
code-brand depends on coolwsd (>= 1.6.10); however:
Package coolwsd is not configured yet.

dpkg: error processing package code-brand (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
coolwsd
code-brand
E: Sub-process /usr/bin/dpkg returned an error code (1)

OK, even I was told that I cannot delete my collabora server it is actually deleted.

But coolwsd is still a problæem, cf. the above log.

Can I delete anything related to coolwsd?

I would try this : sudo dpkg --purge coolwsd code-brand

That worked. Thanks.

It works - for the main url but not for the extra domains.

If it gets to work, it is super cool with how to add extra domains.

Should I fill in the allow list for WOPI rewuests?

Could you restart coolwsd and retry ? systemctl restart coolwsd
I realize that merging with current conf_panel, I didn’t paste the restart coolwsd command.

I tried, but no change.

I just tried at my admin users home folder. That should be ok, right?