Trying configure Nextcloud Office with built-in CODE again

Can you please tell me how to properly diagnose non working Nextcloud Office?

I have updated Nextcloud to latest version 31.0.6 and i am trying configure it again. Nextcloud Office never worked on my server properly. In past i was able open document at least once after Apache was restarted, after some updates of Nextcloud no more.

Every attempt to work with ODT/ODS… document ends with infinitely rotating circle. I did wait more than half hour… (during writing this question)

In log i can see error “Exception Call to a member function xpath() on bool in file ‘/home/example/www/apps/richdocuments/lib/WOPI/Parser.php’ line 41” But i don’t really know what it means. I tried Google it of course, but without good result.

Configuration looks like:

sudo -u apache php ./occ config:list richdocuments
{
    "apps": {
        "richdocuments": {
            "canonical_webroot": "",
            "disable_certificate_verification": "",
            "doc_format": "",
            "enabled": "yes",
            "installed_version": "8.7.1",
            "public_wopi_url": "https:\/\/share.example.com",
            "types": "filesystem,prevent_group_restriction",
            "wopi_allowlist": "localhost,127.0.0.1\/24,xxx.xxx.xxx.xxx",
            "wopi_callback_url": "",
            "wopi_url": "https:\/\/share.example.com\/apps\/richdocumentscode\/proxy.php?req="
        }
    }
}

Website have Let’sEncrypt certificate. IPv4 address xxx.xxx.xxx.xxx is correct address of my server.

In menu “…settings/admin/richdocuments” is selected "Built-In CODE… " but this option cannot be changed. Doesn’t react on mouse clicking.

in menu “…ndex.php/settings/admin/richdocumentscode” is nothing to be set.

So how should i configure it?

I did try remove and reinstall both Apps (packages?), didn’t help.

I did read this GitHub - CollaboraOnline/richdocumentscode: Built-in CODE Server app … no help either.

I did look in “/tmp/coolwsd.*/coolwsd.log”

wsd-30100-30104 2025-06-16 19:57:01.279826 +0200 [ prisoner_poll ] TRC  ppoll start, timeoutMicroS: 64000000 size 1| net/Socket.cpp:534
wsd-30100-30100 2025-06-16 19:57:19.928248 +0200 [ coolwsd ] INF  Waiting for a new child for a max of 20000ms| wsd/COOLWSD.cpp:3705
wsd-30100-30100 2025-06-16 19:57:39.928409 +0200 [ coolwsd ] INF  Waiting for a new child for a max of 20000ms| wsd/COOLWSD.cpp:3705
wsd-30100-30100 2025-06-16 19:57:59.928564 +0200 [ coolwsd ] INF  Waiting for a new child for a max of 20000ms| wsd/COOLWSD.cpp:3705
wsd-30100-30104 2025-06-16 19:58:05.343704 +0200 [ prisoner_poll ] TRC  Poll completed with 0 live polls max (64000000us)(timedout)| net/Socket.cpp:552
wsd-30100-30104 2025-06-16 19:58:05.343806 +0200 [ prisoner_poll ] TRC  #17: Handling poll events of prisoner_poll at index 0 (of 1): 0x0| net/Socket.cpp:705
wsd-30100-30104 2025-06-16 19:58:05.343834 +0200 [ prisoner_poll ] TRC  #17: setupPollFds getPollEvents: 0x1| net/Socket.hpp:1108
wsd-30100-30104 2025-06-16 19:58:05.343848 +0200 [ prisoner_poll ] TRC  ppoll start, timeoutMicroS: 64000000 size 1| net/Socket.cpp:534
wsd-30100-30100 2025-06-16 19:58:19.928691 +0200 [ coolwsd ] INF  Waiting for a new child for a max of 20000ms| wsd/COOLWSD.cpp:3705
wsd-30100-30100 2025-06-16 19:58:39.928843 +0200 [ coolwsd ] INF  Waiting for a new child for a max of 20000ms| wsd/COOLWSD.cpp:3705

Only thing i can see is - something timeouts, but i don’t know what it is and why it is.

Do you please have any idea what should i try?

Another little bit of information - i did try this two commands from file “…/apps/richdocuments/docs/install.md” where is this paragraph:

### Configure the app from the commandline

From a shell running in the Nextcloud root directory, run the following `occ`
commands, substituting the server url you've setup (e.g. "https://office.nextcloud.com"):

        ./occ config:app:set --value ${SERVER_URL} richdocuments wopi_url
        ./occ richdocuments:activate-config

Congratulations, your Nextcloud has Collabora Online Office integrated!

It ended with this error:

Does it mean richdocuments is somehow broken or is it my mistake and configuration error? I don’t understand what i should do next. Removing of apps and installing again doesn’t help.

It shouldn’t work until i have configured HTTP proxy und running docker, right? But i do not want use docker. Is using docker the only way?

Please review Collabora integration guide and other topics tagged collabora-built-in

Can you please be more specific? I did try configure reverse proxy, but i think it is total nonsense, because i want use built-in CODE. So if i understand it correctly, it doesn’t run as process listening on TCP port.

Is it wrong?

Is even possible configure it without docker?

Because i am running webserver on Gentoo i tried search Gentoo specific problems with Nextcloud and i found this Gentoo Forums :: View topic - [SOLVED] Nextcloud + Built-in CODE Server >24.4.502

And it was it - package app-crypt/mit-krb5 was missing on my system. I even found same error which is discussed in that forum, but it was burried deep between many other messages.

After that i kill all defunct processes which was related to Apache & Nextcloud, which wasn’t stopped after i stop Apache itself. And finally i can edit ODT, ODS files in Nextcloud.

It had nothing to do with reverse proxy, nothing to do with Apache configuration…

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.