Nextcloud 30.0.4 nextcloud office issues. Works sometimes then it doesn't

Hello,

For some reason Nextcloud functionality just drops out randomly.
I have to ‘redo’ the Nextcloud office install, pick the Built-in CODE again. it’ll say installing? (within Nextcloud - administrator) to get it to work again. it keeps dropping out. I can leave a file open all night, next day i can’t open that same file or any .odt or docx files.

Since i’ve began with Nextcloud, Nextcloud office has been very inconsistent.

  • Slow, it doesn’t matter if i open a 24kb file or 33MB file, it takes about the same amount of time for it to load.
  • Suddenly stops working. No errors that i can find, the server has been idling all day and i even had a file open in my browser, refresh and file won’t open again.

And it starts showing error messages :

Failed to connect to the remote server: cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nc.mwbreur.eu/apps/richdocumentscode/proxy.php?req=/hosting/discovery

From log :

[index] Error: Call to a member function xpath() on false in file '/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php' line 41
	POST /apps/richdocuments/token
	from 192.168.1.1 by Michiel at 30 Dec 2024, 01:28:31

{"reqId":"tqnwvPOef1WnFFyGRpSk","level":3,"time":"2024-12-30T00:28:31+00:00","remoteAddr":"192.168.1.1","user":"Michiel","app":"index","method":"POST","url":"/apps/richdocuments/token","message":"Call to a member function xpath() on false in file '/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php' line 41","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on false in file '/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php' line 41","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":146,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on false","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php","line":24,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->"},{"file":"/var/www/nextcloud/apps/richdocuments/lib/TokenManager.php","line":295,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->"},{"file":"/var/www/nextcloud/apps/richdocuments/lib/Controller/DocumentController.php","line":404,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php","Line":41},"message":"Call to a member function xpath() on false in file '/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php' line 41","exception":[],"CustomMessage":"Call to a member function xpath() on false in file '/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php' line 41"},"id":"6771e9d6087bf"}

while seconds before it just worked.

Seeing the inconsistent issues i’m experiencing i’m starting to wonder if it actually works? Or should i drop nextcloud office and go for the other one?

There are two ways to run Collabora. The primary one is not using the Built-in sidecar app. The sidecar is convenient because it requires no reverse proxy and other changes, but is mostly for testing and tiny environments. It is slower, more fragile, and many things can go wrong since it essentially runs from memory (/tmp in some cases).

The production level way for using Collabora Online with Nextcloud is to run CO/ CODE separately and point Nextcloud Office at it.

Without knowing more about your environment I can’t speak to what the specific issue is in your environment.

Refs:

richdocumentscode

Admin Manual: Installing Office

If using AIO to run your Nextcloud stack, it has support for deploying CODE in a dedicated container already.

1 Like

I run bare metal on Ubuntu 2404.

I’m trying to avoid docker and snap because it gave me more issues then it solved. Think I’ll try that Collabera server. Hope I can run it on the same machine. If not I’ll go for the only office option and see what that does.

I’ll see where it gets me. Now nextcloud office is unreliable and unstable. Running for 1 moment doing nothing the next and spitting out errors.

I also want to get Unifi controller on it also. But that requires some database fiddling since it uses mongodb and not mariadb.

Solved it. installed docker.io, ran certbot for the ssl certs for collabora.host.com to make certs, made a collabora.conf using the example from the guide (Installation guide - Collabora Online in Nextcloud) changed that to point at the /etc/letsencrypt/collabora.host.com/****.pem files.

a2ensite collabora.conf and entered that new host into nextcloud office config.

Wasn’t that hard really. Also it’s WAYYY faster.

Loading a 13.5MB docx file on integrated collabora server - 15 seconds.
Loading a 13.5MB docx file on installed collabora server - ~2 seconds.

Thanks for pointing this out @jtr

This issue is solved/closed.

1 Like

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