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?