Serverinfo page fails on FreeBSD
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Install nextcloud on a FreeBSD jail
- Go to /index.php/settings/admin/serverinfo
- Check for any errors on /index.php/settings/admin/logging
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
Server configuration
Operating system: FreeBSD 12.2-RELEASE-p3 amd64
Web server: nginx
Database: mysql 8.0.23
PHP version: 7.4.16
Nextcloud version: 21.0.0
Updated from an older Nextcloud/ownCloud or fresh install: updated
Nextcloud log (data/nextcloud.log)
Nextcloud log
| Error: Undefined offset: 0 at /usr/local/www/nextcloud/apps/serverinfo/lib/OperatingSystems/FreeBSD.php#171/usr/local/www/nextcloud/apps/serverinfo/lib/OperatingSystems/FreeBSD.php - line 171: OC\Log\ErrorHandler::onError()/usr/local/www/nextcloud/apps/serverinfo/lib/Os.php - line 124: OCA\ServerInfo\OperatingSystems\FreeBSD->getNetworkInterfaces()/usr/local/www/nextcloud/apps/serverinfo/lib/Settings/AdminSettings.php - line 111: OCA\ServerInfo\Os->getNetworkInterfaces()/usr/local/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php - line 138: OCA\ServerInfo\Settings\AdminSettings->getForm()/usr/local/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php - line 83: OCA\Settings\Controller\AdminSettingsController->formatSettings()/usr/local/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php - line 149: OCA\Settings\Controller\AdminSettingsController->getSettings()/usr/local/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php - line 68: OCA\Settings\Controller\AdminSettingsController->getIndexResponse()/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 218: OCA\Settings\Controller\AdminSettingsController->index()/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 127: OC\AppFramework\Http\Dispatcher->executeController()/usr/local/www/nextcloud/lib/private/AppFramework/App.php - line 157: OC\AppFramework\Http\Dispatcher->dispatch()/usr/local/www/nextcloud/lib/private/Route/Router.php - line 302: OC\AppFramework\App::main()/usr/local/www/nextcloud/lib/base.php - line 993: OC\Route\Router->match()/usr/local/www/nextcloud/index.php - line 37: OC::handleRequest()
Raw code:
{"reqId":"8vGtNw3dAxRtHx7acDkc","level":3,"time":"2021-03-25T11:14:52+00:00","remoteAddr":"192.168.90.1","user":"Emanuele","app":"PHP","method":"GET","url":"/index.php/settings/admin/serverinfo","message":{"Exception":"Error","Message":"Undefined offset: 0 at /usr/local/www/nextcloud/apps/serverinfo/lib/OperatingSystems/FreeBSD.php#171","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/apps/serverinfo/lib/OperatingSystems/FreeBSD.php","line":171,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/local/www/nextcloud/apps/serverinfo/lib/Os.php","line":124,"function":"getNetworkInterfaces","class":"OCA\\ServerInfo\\OperatingSystems\\FreeBSD","type":"->"},{"file":"/usr/local/www/nextcloud/apps/serverinfo/lib/Settings/AdminSettings.php","line":111,"function":"getNetworkInterfaces","class":"OCA\\ServerInfo\\Os","type":"->"},{"file":"/usr/local/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":138,"function":"getForm","class":"OCA\\ServerInfo\\Settings\\AdminSettings","type":"->"},{"file":"/usr/local/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":83,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/usr/local/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":149,"function":"getSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/usr/local/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":68,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/usr/local/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/local/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/usr/local/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0","version":"21.0.0.18","id":"605c71284aedf"}
is this similar to this bugreport: https://github.com/nextcloud/serverinfo/issues/270 ?
Appears to have been fixed (see #270 / etc.). I see you ended up over there on that Issue so I'm closing this one out. If incorrect, feel free to comment and I'll reopen.