Dear nextcloud support,
I was about to enable Office on my Nextcloud instance. Since I first wanted to test it, I did not install the CODE (Collabora Online Development Edition) yet but instead use one of the Demo servers that were suggested. I chose to connect to lool2.friprogramvarusyndikatet.se, and after that has turned out to be unavailable, I changed to āCollabora Productivity Ltd. ā North California, USAā.
In the logs, I do, however, only see errors from the Finnish server, the US one doesnāt end up in error messages:
{"reqId":"ZcZ780rvhLD7p1UWMJz52AAAAAc","level":3,"time":"2024-02-09T19:25:18+00:00","remoteAddr":"81.221.194.98","user":"nextcloud_admin","app":"richdocuments","method":"GET","url":"/index.php/apps/files/","message":"Failed to fetch the Collabora capabilities endpoint: cURL error "File":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"message":"Failed to fetch the Collabora capabilities endpoint: cURL error 7: Failed connect to lool2.friprogramvarusyndikatet.se:443; Operation now in progress (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://lool2.friprogramvarusyndikatet.se/hosting/capabilities" [...]
Apparently, I shouldnāt have done that, because since the point in time when Iāve chosen the US server, the performance of my Nextcloud installation has drastically degraded to near-unusable (pages sometimes load longer than the defined proxy timeout). After disabling Office, everythingās immediately back to normal, and re-enabling it causes the problem to reappear. The same happens if I uninstall and then reinstall and enable Office - unfortunately the server settings Iāve made seem to be persistent.
I was of course trying to switch back to the default (internal CODE server), but apparently Iām not allowed to do this any longer. All radio buttons are greyed out:
After attempting to disable, remove and re-enable Office for 2-3 times, Nextcloud apparently recognized that this app is causing trouble, and added a warning message on the page settings/apps/app-bundles/richdocuments next to āNextcloud Officeā: āError: This app cannot be enabled because it makes the server unstableā. However, regardless of this message, I still CAN enable it => you should maybe consider changing this message?
I was wondering whether thereās any option to change the default choice of which Collabora instance to use as a configuration parameter in the database or in some settings file? I have not found anything so far. I read about similar issues in the community chat, but didnāt encounter any that fully matches the problem that Iām observing.
Do you already have a guess what could be wrong on my side and/or could suggest me what I should try to do?
My environment
See here (I leave Office switched off for the time being):
https://provelo-sh-cloud.ch/ocs/v2.php/apps/serverinfo/api/v1/info?format=json
More verbose info
Log messages from todayās attempts to disable/re-enable Office (they seem rather random, and I think they just pop up since Nextcloud is so slow that itās nearly unresponsive):
{"reqId":"ZcaEnkwb1zOwdH6KhMXHIAAAAA4","level":4,"time":"2024-02-09T20:01:38+00:00","remoteAddr":"81.221.194.98","user":"nextcloud_admin","app":"notes","method":"GET","url":"/index.php/apps/richdocuments/settings/fonts/Oswald-wght.ttf/overview","message":"Error during app loading: Class \"OCP\\Log\\BeforeMessageLoggedEvent\" not found","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","exception":{"Exception":"Error","Message":"Class \"OCP\\Log\\BeforeMessageLoggedEvent\" not found","Code":0,"Trace":[{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/Log.php","line":151,"function":"log","class":"OC\\Log","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/Log.php","line":340,"function":"error","class":"OC\\Log","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/Log/PsrLoggerAdapter.php","line":59,"function":"logException","class":"OC\\Log","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/AppFramework/Bootstrap/Coordinator.php","line":207,"function":"emergency","class":"OC\\Log\\PsrLoggerAdapter","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/App/AppManager.php","line":434,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/App/AppManager.php","line":213,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/legacy/OC_App.php","line":125,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/base.php","line":1049,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/Log.php","Line":221,"message":"Error during app loading: Class \"OCP\\Log\\BeforeMessageLoggedEvent\" not found","exception":{},"CustomMessage":"Error during app loading: Class \"OCP\\Log\\BeforeMessageLoggedEvent\" not found"}}
{"reqId":"ZcaEn-XaqzLIeV0ChSkabAAAABU","level":3,"time":"2024-02-09T20:01:38+00:00","remoteAddr":"81.221.194.98","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status","message":"OCP\\AppFramework\\QueryException: Could not resolve OC\\Authentication\\Token\\PublicKeyTokenMapper! Class \"OC\\Authentication\\Token\\PublicKeyTokenMapper\" does not exist at /var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/AppFramework/Utility/SimpleContainer.php#114","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"ZcaEn-XaqzLIeV0ChSkabAAAABU","level":3,"time":"2024-02-09T20:01:38+00:00","remoteAddr":"81.221.194.98","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status","message":"include(): Failed opening '/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/composer/composer/../../../lib/private/Authentication/Token/PublicKeyTokenMapper.php' for inclusion (include_path='/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/pear/archive_tar:/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/pear/console_getopt:/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/pear/pear-core-minimal/src:/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/pear/pear_exception:/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/apps') at /var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/composer/composer/ClassLoader.php#576","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"ZcaEnkwb1zOwdH6KhMXHIAAAAA4","level":3,"time":"2024-02-09T20:02:01+00:00","remoteAddr":"81.221.194.98","user":"nextcloud_admin","app":"PHP","method":"GET","url":"/index.php/apps/richdocuments/settings/fonts/Oswald-wght.ttf/overview","message":"include(): Failed opening '/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/composer/composer/../../../lib/public/Log/BeforeMessageLoggedEvent.php' for inclusion (include_path='/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/pear/archive_tar:/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/pear/console_getopt:/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/pear/pear-core-minimal/src:/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/pear/pear_exception:/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/apps') at /var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/composer/composer/ClassLoader.php#576","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","data":{"app":"PHP"}}
I lately also got several seemingly random QueryNotFoundExceptions, e.g.:
QueryNotFoundException Could not resolve OCA\Richdocuments\Listener\LoadViewerListener! Class "OCA\Richdocuments\Listener\LoadViewerListener" does not exist
Any kind of help is warmly welcome!