SOLVED: Admin Overview not loading after 26.0.2 upgrade "No such file or directory"

Versions

  • Nextcloud version (eg, 20.0.5): 26.0.2
  • Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.0.4.2
  • Apache or nginx version (eg, Apache 2.4.25): 2.4.52
  • PHP version (eg, 7.4): 8.1

The issue
After upgrading from 26.0.1 to 26.0.2 the “Admin Overview” cannot be accessed from Browser anymove. Browser and nextcloud server log errors.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it

  1. Upgrade 26.0.1 to 26.0.2
  2. Login as user with Admin priviledges
  3. Burger menu > Administration settings (here it’s german “Administrationseinstellungen”)
  4. Expected admin overview page does not load, browser shows error (sorry, in German):

Interner Serverfehler
Der Server konnte die Anfrage nicht fertig stellen.
[…]

The output of your nextcloud.log:

{"reqId":"OrZvXebBoRiLlTN0kF1s","level":3,"time":"2023-05-18T19:42:15+00:00","remoteAddr":"185.17.12.106","user":"Henry78","app":"PHP","method":"GET","url":"/settings/admin/overview","message":"require_once(/var/www/nextcloud/apps/integration_discourse/lib/Settings/../../vendor/autoload.php): Failed to open stream: No such file or directory at /var/www/nextcloud/apps/integration_discourse/lib/Settings/Personal.php#12","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"OrZvXebBoRiLlTN0kF1s","level":3,"time":"2023-05-18T19:42:15+00:00","remoteAddr":"185.17.12.106","user":"Henry78","app":"index","method":"GET","url":"/settings/admin/overview","message":"Failed opening required '/var/www/nextcloud/apps/integration_discourse/lib/Settings/../../vendor/autoload.php' (include_path='/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps') in file '/var/www/nextcloud/apps/integration_discourse/lib/Settings/Personal.php' line 12","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0","version":"26.0.1.1","exception":{"Exception":"Exception","Message":"Failed opening required '/var/www/nextcloud/apps/integration_discourse/lib/Settings/../../vendor/autoload.php' (include_path='/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps') in file '/var/www/nextcloud/apps/integration_discourse/lib/Settings/Personal.php' line 12","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"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":1056,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"Error","Message":"Failed opening required '/var/www/nextcloud/apps/integration_discourse/lib/Settings/../../vendor/autoload.php' (include_path='/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps')","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":578,"function":"include"},{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":432,"function":"Composer\\Autoload\\{closure}","class":"Composer\\Autoload\\ClassLoader","type":"::","args":["*** sensitive parameters replaced ***"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"__construct","class":"ReflectionClass","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":155,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":65,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Settings/Manager.php","line":205,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Settings/Manager.php","line":334,"function":"getSettings","class":"OC\\Settings\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Settings/Manager.php","line":295,"function":"getPersonalSettings","class":"OC\\Settings\\Manager","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":111,"function":"getPersonalSections","class":"OC\\Settings\\Manager","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":62,"function":"formatPersonalSections","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":148,"function":"getNavigationParameters","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":68,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","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":183,"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":1056,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/integration_discourse/lib/Settings/Personal.php","Line":12},"CustomMessage":"--"}}
2 Likes

Had a similar issue, not being able to access any settings. Your log points to an issue with “Discourse Integration”. I disabled this app in my apps menu, and I no longer had the “Internal Server Error”. Give that a try and see if it fixes your issue.
Edit: A note, it seems that the latest version of Discourse Integration, 2.0.2, has introduced a bug/regression that breaks the Nextcloud settings panel. I would recommend reporting that but on the git issues for that app, citing your logs.

1 Like

Yes, missed this in the logs at first. I disabled the “Discourse Integration” app, now Admin Overview loads fine.
Thanks for the hint!

1 Like

I would recommend reporting that but on the git issues for that app, citing your logs.

Has this been brought to the attention of the discourse integration developers already? From looking at Issues · nextcloud/integration_discourse · GitHub, I don’t see a corresponding issue there yet.