State of "Nextcloud Office" in Nextcloud 28.0.1?

I am having trouble understanding if there is an app problem, or if it’s a problem with my setup.

I’m using Nextcloud 28.0.1 on an Ubuntu 22.04 server, using apache 2.4.52, php 8.2. I separately have a Collabora server on a different VM, and that worked great on nextcloud 27.1.5. My nextcloud Office app is 8.3.0.

On the store page at https://apps.nextcloud.com/apps/richdocuments it shows that it supports Nextcloud 28, but if I enable it, I get this error when I go to the files app OR try to click the “Office” link in the administration page:

The jist of the log is the following:

{"reqId":"2Zq54BiX05HgRz5Imlne","level":4,"time":"2024-01-02T21:59:09+00:00","remoteAddr":"10.2.2.212","user":"6c7cc23e-52c9-103b-8e51-0fc031bcb58e","app":"no app in context","method":"GET","url":"/index.phps/","message":"Could not boot 
spreed: Call to undefined method OC\\Server::getEventDispatcher()","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","exception":{"Exception":"Error","Message":"Call to un
defined method OC\\Server::getEventDispatcher()","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/spreed/lib/AppInfo/Application.php","line":173,"function":"registerCollaborationResourceProvider","class":"OCA\\Talk\\AppInfo\\Applicatio
n","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\Talk\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.ph
p","line":434,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":213,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"f
ile":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":125,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/AppInfo/Application.php","line":218,"function":"loadApps","class
":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\DAV\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppMan
ager.php","line":434,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":213,"function":"loadApp","class":"OC\\App\\AppManager","type":"-
>"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":125,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1049,"function":"loadApps","class":"OC_App","type
":"::"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/spreed/lib/AppInfo/Application.php","Line":215,"message":"Could not boot spreed: Call to undef
ined method OC\\Server::getEventDispatcher()","exception":{},"CustomMessage":"Could not boot spreed: Call to undefined method OC\\Server::getEventDispatcher()"}}
{"reqId":"2Zq54BiX05HgRz5Imlne","level":3,"time":"2024-01-02T21:59:09+00:00","remoteAddr":"10.2.2.212","user":"6c7cc23e-52c9-103b-8e51-0fc031bcb58e","app":"index","method":"GET","url":"/index.phps/","message":"Call to undefined method OC
A\\Richdocuments\\AppConfig::getNextcloudUrl() in file '/var/www/nextcloud/apps/richdocuments/lib/Service/InitialStateService.php' line 59","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","v
ersion":"28.0.1.1","exception":{"Exception":"Exception","Message":"Call to undefined method OCA\\Richdocuments\\AppConfig::getNextcloudUrl() in file '/var/www/nextcloud/apps/richdocuments/lib/Service/InitialStateService.php' line 59","Co
de":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,
"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":
"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"Error","Message":"Call to undefined method OCA\\Richdocuments\\AppConfig::getNextclou
dUrl()","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/richdocuments/lib/Listener/LoadViewerListener.php","line":58,"function":"provideCapabilities","class":"OCA\\Richdocuments\\Service\\InitialStateService","type":"->"},{"file":"/va
r/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Richdocuments\\Listener\\LoadViewerListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/Eve
ntDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","
class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":94,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDi
spatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":106,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files/lib/C
ontroller/ViewController.php","line":276,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","clas
s":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file
":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","cl
ass":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","clas
s":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/richdocuments/lib/Service/InitialStateService.php","Line":59},"message":"Call to undefined method OCA\\Richdocuments\\AppConfig::getNextcloudUrl() in file '/var/www/nextcloud/apps/ric
hdocuments/lib/Service/InitialStateService.php' line 59","exception":{},"CustomMessage":"Call to undefined method OCA\\Richdocuments\\AppConfig::getNextcloudUrl() in file '/var/www/nextcloud/apps/richdocuments/lib/Service/InitialStateSer
vice.php' line 59"}}

After a couple of enable/disable cycles, I get this next to the app in my apps list:

So, I’ve searched and I’m not seeing anything specific indicating an issue with this app in 28.0.1, and a lot of the issues I see are with the built in CODE server which I’m not using. I would suspect it’s my configuration, but since I can’t even get to the settings page, I’m stuck. Is there a known issue with this app and Nextcloud 28? Is there something I would have had to do before upgrading, like the settings in the old version have to be reformatted before using this version?

A secondary reboot of the nextcloud server fixed it, not sure if that is useful for anyone else that sees this.

1 Like

Was this just after upgrading to the v28.0.1?

It looks a bit like your web/app server may have been caching bits of the prior version possibly.

I also saw this, which suggests maybe there’s a typo somewhere in your web server configuration (or maybe your .htaccess if you manually modified it or something):

"method":"GET","url":"/index.phps/"

(the extra s doesn’t belong)

Huh, I ran this:

root@sr66-nxt-01:~# grep -R -e "index.phps" /var/www/nextcloud/*
root@sr66-nxt-01:~# grep -r -e "index.phps" /var/www/nextcloud/*
root@sr66-nxt-01:~#

And got nothing. I checked .htaccess, I don’t find anything? It’s working following the reboot, but I can’t find that string anywhere. I’m always looking for things to fix though.