Collabora cURL error 28 - built in Collabora CODE not working

Continuing the discussion from Cannot get Collabora Code Built-in to work:

I have the exact same problem:

and the suggested solution is:

What should I be looking for in the curl response? How do I check which IP it wants to connect to? Could my problem be port forwarding? My server is on a local computer.

There is no error in the curl output for the domain specified above.

Thankfull for any help!

/Martin Book

curl -v provides extended output. check collabora integration guide for more details

Thank you! But I have great difficulties understanding that guide because it leaves a lot out and I do not understand how to do many of the things there.

Mainly, I do not understand “client” and “console” in the troubleshooting part. I do get a file, but seems to be HTML instead of an XML file. I do not really know what to look for when it comes to “public hostname” or “right… URL scheme”. This is here:

Then it goes on to tell me to install the richdocuments app. I thought that was done in installation when I checked the box to include Nextcloud office.

The tip about curl -v was really helpful. It seems port 443 is used and since it is already open I think I do not have a port forwarding problem.

I am learning but I am not as well versed in all the lingo and what it means as the rest of you.

Thanks for any help!

I found the part about the built in Nextcloud Office, CODE, and get the following output:

From the first url described in the collabora integration guide under “Nextcloud Office aka…” I got:

    "convert-to":{"available":true},
    "hasMobileSupport":true,
    "hasProxyPrefix":false,
    "hasTemplateSaveAs":false,
    "hasTemplateSource":true

From the second one I got the long list of file types that are mentioned above.

To me it seems all is correct regarding those two URLs

I do not understand how to do the things that are said that one should do with Apache.

How do I do this:

And where do I put this?

Apache reverse proxy config for build-in CODE

I am not on Docker but rather on a normal installation of Nextcloud.

I had no problems with Collabora/Nextcloud Office last time I installed nextcloud in a similar way. Now it is acting up and I do not understand why.

Thanks for any help!

Cordially,
Martin Book

1 Like

Hey @nightcobe just a small heads up, before you drive yourself nuts, like I did :grin:

I used Collabora since at least Nextcloud 28 without any issues.
Since version 30.0.3, I have the same strange issues.
See my other forum post

I also tried to check with the great writeup of @wwe to hunt down the issue.
But no luck.

I also use CODE and these two links

worked perfectly fine, but I still get the curl connection timeouts.

I did not have the knowledge or the time to further troubleshoot this, but just so you are aware that this might be a bug and not a config error on your side.

Hi, @saettel.beifuss0 !

Thanks for the heads up! I sometimes get a pass on the server and I see this:
Screenshot from 2024-12-14 14-23-17

Next time I click “Use the built-in CODE…” it generally gives me the red error below:

Screenshot from 2024-12-14 14-25-59

Did you try to update the Apache reverse proxy config?

I see now that there is a possibility to update to 30.0.4, I am now on 30.0.2 having this issue.

Thanks!

Cordially,
Martin Book

I always get a pass on that page.

I get the curl error 28 in the logs (and it also crashed the apache fpm completely).

I am using NGINX as reverse proxy. The problem also exists on 30.0.4 for me.

Ok. Wondering if my error 28 could be something else, then?

Have you tried the suggestions in the Collabora integration guide for built-in Collabora with NginX?

More worried about my local disk not being read by Nextcloud at the moment. Will wait and see if anyone (@wwe ?) knows if this Collabora thing is a bug or if I should do something else.

Hi, I had a similar probleme with version 30.0.2. In my case, i’ve had a wrong firewall config. I didn’t allow the nextcloud server so open connection to other to my dns server. I over see (to late at the evening) the log entries in my firewall. after add a the new rule, it works.

This sounds great! What was the new rule you set?

All “server” are in the same network segement (vlan)

Default: No server is allow to communicate elsewhere. Everything will be droped

I use unifi network equipment. thats very simple to setup rules

Here my rule
allow nextcloud_server_ip (xx.xx.x1.3) to dns_server_ip(xx.xx.x1.1), revers_proxy_server_ip (xx.xx.x1.2), collabora_server_ip(xx.xx.x1.4)/nextcloud_server_ip (xx.xx.x1.3) connect

Hint: the ip address above are only for easy reading

Thank you for your feedback, @tj200 ! However, I do not understand where you enter these rules. I think you are doing it on the router, but I do not get under what setting you are able to add those rules. Under what heading do you find these rules?

Does this at all help? I updated and in the logs I got this:

Error - Index:
Call to a member function xpath() on false in file ‘/var/www/nextcloud-folder/apps/richdocuments/lib/WOPI/Parser.php’ Line 41.

The line is this, I think:

$result = $discoveryParsed->xpath(sprintf(‘/wopi-discovery/net-zone/app[@name='%s']/action’, $mimetype));

Is something the matter, there?

Thanks!

Cordially,
Martin Book

Jup. Remember, it used to work for over a year.

Not trying to be a dork, but this makes no sense.
If your server are in the same VLAN and subnet, traffic will not even touch your firewall.

1.1 and 1.3 will directly communicate with each other. Even if you wanted to block that with the firewall you could not, since it never touches your firewall. You would have to block that on the switch level.

Maybe Unifi controller firewall rules do some strange shenanigans (I love my Unifi APs, but the Firewall and Switch port management is ridiculous) but in a normal setup you could not block that traffic.

You don’t. See above

1 Like

Any thoughts about my index error?

UPDATE:

Everything regarding Nextcloud Office (CODE) seems to have solved itself. I access documents, spreadsheets, etc. everytime I try now.

However, if there are any new ideas about what could have been the problem I think it would be great to address it, maybe come with suggestions here.

Thanks you, all who tried to help!

Cordially,
Martin Book

UPDATE2:

Unfortunately I was too quick in my hopes that all was good! It works quite a lot of the time but quite often just keeps spinning and does not open the documents.

A solution to this problem would be great!

/Martin Book

I haven’t found out what exactly is causing the errors, but it was always with xlsx files and when some kind of ODF / XML conversion was involved. Maybe that helps you find at least reproducing the error.

Thanks!

However, for me it is really always when I try the status of my Nextcloud CODE. On second attempt it generally gives me a green light.

But when I try to open documents or spreadsheets I can normally open them. Sometimes it loads and loads and then fails.

I start to feel like it is just a bug and has nothing to do with my setup.

Ahh you are talking about admin settings page. I had the same behavior there.