-
Notifications
You must be signed in to change notification settings - Fork 65
Description
Steps to reproduce
- log in to nextcloud and request 'system info' (on system with two networkinterfaces)
- go to logging (in nextcloud webportal)
Expected behaviour
no error should appear in the logging
Actual behaviour
it shows: Error: Undefined offset: 0 at /usr/local/www/owncloud/apps/serverinfo/lib/OperatingSystems/FreeBSD.php#187
the result of parsing this output wrong:
ifconfig | grep base
media: Ethernet autoselect (1000baseT )
media: Ethernet autoselect (1000baseT )
Server configuration
Operating system: FreeBSD 12.2-RELEASE-p1
Web server: hiawatha-10.11
Database: mysql80-server-8.0.22_1
PHP version: PHP 7.4.14
Nextcloud version: 20.0.6
Where did you install Nextcloud from:
List of activated apps:
Enabled:
- accessibility: 1.6.0
- activity: 2.13.4
- admin_audit: 1.10.0
- bruteforcesettings: 2.0.1
- calendar: 2.1.3
- cloud_federation_api: 1.3.0
- contacts: 3.4.3
- contactsinteraction: 1.1.0
- dav: 1.16.2
- external: 3.7.2
- federatedfilesharing: 1.10.2
- federation: 1.10.1
- files: 1.15.0
- files_pdfviewer: 2.0.1
- files_rightclick: 0.17.0
- files_sharing: 1.12.2
- files_trashbin: 1.10.1
- files_versions: 1.13.0
- files_videoplayer: 1.9.0
- firstrunwizard: 2.9.0
- forms: 2.1.0
- logreader: 2.5.0
- lookup_server_connector: 1.8.0
- mail: 1.8.0
- nextcloud_announcements: 1.9.0
- notifications: 2.8.0
- oauth2: 1.8.0
- password_policy: 1.10.1
- privacy: 1.4.0
- provisioning_api: 1.10.0
- recommendations: 0.8.0
- serverinfo: 1.10.0
- settings: 1.2.0
- sharebymail: 1.10.0
- support: 1.3.0
- survey_client: 1.8.0
- systemtags: 1.10.0
- text: 3.1.0
- theming: 1.11.0
- twofactor_backupcodes: 1.9.0
- updatenotification: 1.10.0
- user_status: 1.0.1
- viewer: 1.4.0
- weather_status: 1.0.0
- workflowengine: 2.2.0
Disabled: - announcementcenter
- comments
- dashboard
- encryption
- files_external
- files_trackdownloads
- photos
- user_ldap
Nextcloud configuration:
{
"system": {
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"cloud.bospaling.nl"
],
"debug": false,
"log_type": "file",
"datadirectory": "REMOVED SENSITIVE VALUE",
"dbtype": "mysql",
"version": "20.0.6.1",
"installed": true,
"check_for_working_webdav": false,
"loglevel": 2,
"theme": "",
"maintenance": false,
"secret": "REMOVED SENSITIVE VALUE",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_smtpmode": "smtp",
"mail_domain": "REMOVED SENSITIVE VALUE",
"forcessl": true,
"mail_smtpsecure": "tls",
"trashbin_retention_obligation": "auto",
"appstoreenabled": true,
"appstore.experimental.enabled": true,
"enable_avatars": false,
"updatechecker": true,
"mail_smtpauthtype": "LOGIN",
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "25",
"mail_smtpauth": 1,
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"overwrite.cli.url": "https://cloud.bospaling.nl",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"updater.release.channel": "stable",
"mysql.utf8mb4": true,
"memcache.local": "\OC\Memcache\Redis",
"app_install_overwrite": [
"calendar",
"admin_notifications",
"contacts"
],
"encryption.legacy_format_support": false,
"encryption.key_storage_migrated": false,
"defaultapp": "files",
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"port": 0,
"timeout": 1.5
},
"updater.secret": "REMOVED SENSITIVE VALUE"
}
}
Client configuration
error occurs from multiple os/browser combinations.
Logs
Error: Undefined offset: 0 at /usr/local/www/owncloud/apps/serverinfo/lib/OperatingSystems/FreeBSD.php#187
/usr/local/www/owncloud/apps/serverinfo/lib/OperatingSystems/FreeBSD.php - line 187:
OC\Log\ErrorHandler::onError(8, "Undefined offset: 0", "/usr/local/ ... p", 187, { 0: "And 7 ... }})
/usr/local/www/owncloud/apps/serverinfo/lib/Os.php - line 132:
OCA\ServerInfo\OperatingSystems\FreeBSD->getNetworkInterfaces()
/usr/local/www/owncloud/apps/serverinfo/lib/Settings/AdminSettings.php - line 111:
OCA\ServerInfo\Os->getNetworkInterfaces()
/usr/local/www/owncloud/apps/settings/lib/Controller/CommonSettingsTrait.php - line 141:
OCA\ServerInfo\Settings\AdminSettings->getForm()
/usr/local/www/owncloud/apps/settings/lib/Controller/AdminSettingsController.php - line 83:
OCA\Settings\Controller\AdminSettingsController->formatSettings([ [ OCA\Serv ... ]])
/usr/local/www/owncloud/apps/settings/lib/Controller/CommonSettingsTrait.php - line 152:
OCA\Settings\Controller\AdminSettingsController->getSettings("serverinfo")
/usr/local/www/owncloud/apps/settings/lib/Controller/AdminSettingsController.php - line 68:
OCA\Settings\Controller\AdminSettingsController->getIndexResponse("admin", "serverinfo")
/usr/local/www/owncloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:
OCA\Settings\Controller\AdminSettingsController->index("serverinfo")
/usr/local/www/owncloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:
OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings ... {}, "index")
/usr/local/www/owncloud/lib/private/AppFramework/App.php - line 152:
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings ... {}, "index")
/usr/local/www/owncloud/lib/private/Route/Router.php - line 309:
OC\AppFramework\App::main("OCA\\Settin ... r", "index", OC\AppFramew ... {}, { section: " ... "})
/usr/local/www/owncloud/lib/base.php - line 1008:
OC\Route\Router->match("/settings/admin/serverinfo")
/usr/local/www/owncloud/index.php - line 37:
OC::handleRequest()
Nextcloud log (data/owncloud.log)
Insert your Nextcloud log here