nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.65k stars 3.99k forks source link

[Bug]: Undefined array key at apps/support/lib/Sections/ServerSection.php #36872

Closed derritter88 closed 1 year ago

derritter88 commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Bug description

I upgrade from PHP 8.0-FPM to 8.1-FPM and yesterday 8.2-FPM + NC 26 Beta 5. Today I checked the logs and found some PHP errors occuring repeatingly within the log:

{"reqId":"VxTWjKToRksyaHFkAdMD","level":3,"time":"2023-02-27T07:02:59+01:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key \"Authentication Type\" at /var/www/cloud/apps/support/lib/Sections/ServerSection.php#298","userAgent":"--","version":"26.0.0.7","data":{"app":"PHP"},"id":"63fc5e693e3e1"}
{"reqId":"VxTWjKToRksyaHFkAdMD","level":3,"time":"2023-02-27T07:02:59+01:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key \"backend\" at /var/www/cloud/apps/support/lib/Sections/ServerSection.php#298","userAgent":"--","version":"26.0.0.7","data":{"app":"PHP"},"id":"63fc5e693e3ea"}
{"reqId":"VxTWjKToRksyaHFkAdMD","level":3,"time":"2023-02-27T07:02:59+01:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key \"smb\" at /var/www/cloud/apps/support/lib/Sections/ServerSection.php#298","userAgent":"--","version":"26.0.0.7","data":{"app":"PHP"},"id":"63fc5e693e3f4"}

But server continues to work and also my external SMB storage is working as expected

Steps to reproduce

  1. Use the NC 26 beta 5
  2. Use PHP 8.2-FPM

Expected behavior

Those error messages shouldn't appear.

Installation method

Community Manual installation with Archive

Operating system

Debian/Ubuntu

PHP engine version

Other

Web server

Apache (supported)

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.hks-projekt.at"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/cloud.hks-projekt.at",
        "dbtype": "pgsql",
        "version": "26.0.0.7",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Vienna",
        "installed": true,
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "dbindex": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "updater.release.channel": "beta",
        "loglevel": 1,
        "appstore.experimental.enabled": true,
        "theme": "",
        "asset-pipeline.enable": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "remember_login_cookie_lifetime": 1296000,
        "session_lifetime": 86400,
        "session_keepalive": true,
        "auto_logout": false,
        "trashbin_retention_obligation": "auto, 30",
        "mysql.utf8mb4": true,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "htaccess.RewriteBase": "\/",
        "maintenance": false,
        "activity_expire_days": 14,
        "auth.bruteforce.protection.enabled": true,
        "blacklisted_files": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "cron_log": true,
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MSOfficeDoc",
            "OC\\Preview\\MSOffice2007",
            "OC\\Preview\\MSOffice2003"
        ],
        "preview_imaginary_url": "http:\/\/192.168.20.70:9000",
        "filesystem_check_changes": 0,
        "integrity.check.disabled": false,
        "knowledgebaseenabled": true,
        "log_rotate_size": 524288000,
        "quota_include_external_storage": false,
        "mail_sendmailmode": "smtp",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2045",
        "jpeg_quality": "60",
        "default_phone_region": "AT",
        "data-fingerprint": "8b23777ea8503893630cf289162a5736",
        "allow_local_remote_servers": true,
        "memcached_options": {
            "14": 50,
            "15": 50,
            "19": 50,
            "20": 50,
            "8": 50,
            "-1001": true,
            "16": true,
            "18": true
        },
        "app_install_overwrite": [
            "drawio",
            "extract",
            "dicomviewer",
            "files_antivirus",
            "cookbook",
            "riotchat",
            "fulltextsearch",
            "fulltextsearch_elasticsearch",
            "files_fulltextsearch",
            "files_fulltextsearch_tesseract",
            "health",
            "talk_matterbridge",
            "onlyoffice",
            "breezedark",
            "files_downloadactivity",
            "workflow_pdf_converter",
            "bookmarks",
            "checksum",
            "metadata",
            "polls",
            "quota_warning",
            "workflow_ocr",
            "ransomware_protection"
        ],
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - activity: 2.18.0
  - admin_audit: 1.16.0
  - bookmarks: 12.0.0
  - bruteforcesettings: 2.6.0
  - calendar: 4.3.0-alpha.1
  - checksum: 1.2.0
  - circles: 26.0.0-beta2
  - cloud_federation_api: 1.9.0
  - collectives: 2.3.0
  - comments: 1.16.0
  - contacts: 5.1.0
  - contactsinteraction: 1.7.0
  - cookbook: 0.10.1
  - dashboard: 7.6.0
  - dav: 1.25.0
  - deck: 1.9.0-beta.1
  - dicomviewer: 1.2.4
  - drawio: 2.1.0
  - extract: 1.3.5
  - federatedfilesharing: 1.16.0
  - federation: 1.16.0
  - files: 1.21.1
  - files_antivirus: 4.0.2
  - files_automatedtagging: 1.16.0
  - files_downloadactivity: 1.15.0
  - files_external: 1.18.0
  - files_fulltextsearch: 25.0.0
  - files_fulltextsearch_tesseract: 25.0.0
  - files_pdfviewer: 2.7.0
  - files_retention: 1.15.0
  - files_rightclick: 1.5.0
  - files_sharing: 1.18.0
  - files_trashbin: 1.16.0
  - files_versions: 1.19.1
  - firstrunwizard: 2.15.0
  - forms: 3.1.0
  - fulltextsearch: 25.0.0
  - fulltextsearch_elasticsearch: 25.0.0
  - groupfolders: 14.0.0
  - health: 1.6.1
  - integration_discourse: 2.0.1
  - integration_dropbox: 1.0.6
  - integration_github: 2.0.0
  - integration_gitlab: 1.0.12
  - integration_mastodon: 2.0.0
  - integration_reddit: 1.0.7
  - integration_twitter: 1.0.5
  - integration_zammad: 2.0.3
  - logreader: 2.11.0
  - lookup_server_connector: 1.14.0
  - mail: 3.0.0-alpha.0
  - maps: 0.2.5
  - metadata: 0.17.0
  - news: 21.0.0-beta1
  - nextcloud_announcements: 1.15.0
  - notes: 4.6.0
  - notifications: 2.14.0
  - oauth2: 1.14.0
  - onlyoffice: 7.6.8
  - password_policy: 1.16.0
  - photos: 2.2.0
  - polls: 4.1.2
  - privacy: 1.10.0
  - provisioning_api: 1.16.0
  - quota_warning: 1.15.0
  - ransomware_protection: 1.14.0
  - recognize: 3.5.0
  - recommendations: 1.5.0
  - related_resources: 1.1.0-alpha1
  - serverinfo: 1.16.0
  - settings: 1.8.0
  - sharebymail: 1.16.0
  - spreed: 16.0.0-beta.1
  - support: 1.9.0
  - survey_client: 1.14.0
  - suspicious_login: 4.4.0
  - systemtags: 1.16.0
  - talk_matterbridge: 1.25.2-1
  - text: 3.7.1
  - theming: 2.1.1
  - twofactor_backupcodes: 1.15.0
  - twofactor_nextcloud_notification: 3.6.0
  - twofactor_totp: 8.0.0-alpha.0
  - twofactor_webauthn: 1.1.1
  - updatenotification: 1.16.0
  - user_ldap: 1.16.0
  - user_status: 1.6.0
  - viewer: 1.10.0
  - weather_status: 1.6.0
  - workflow_ocr: 1.25.4
  - workflow_pdf_converter: 1.10.0
  - workflowengine: 2.8.0
Disabled:
  - breezedark: 25.0.0 (installed 25.0.0)
  - encryption: 2.14.0 (installed 2.7.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

As mentioned above

Additional info

PHP: 8.2-FPM Postgresql: 15

szaimen commented 1 year ago

cc @come-nc @tobiasKaminsky

derritter88 commented 1 year ago

As and additional information - following PHP8.2 packages are installed:

php8.2-apcu/jammy,now 5.1.22+4.0.11-2+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-bcmath/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-bz2/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-cli/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-common/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-curl/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-dev/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-fpm/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-gd/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-gmp/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-http/jammy,now 4.2.3-3+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-igbinary/jammy,now 3.2.13-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-imagick/jammy,now 3.7.0-3+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-imap/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-intl/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-ldap/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-mbstring/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-memcache/jammy,now 8.0+4.0.5.2+3.0.9~20170802.e702b5f9+-8+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-memcached/jammy,now 3.2.0+2.2.0-3+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-msgpack/jammy,now 1:2.2.0~rc2-2+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-mysql/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-opcache/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-pgsql/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-raphf/jammy,now 2.0.1+1.1.2-14+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-readline/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-redis/jammy,now 5.3.7+4.3.0-2+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-smbclient/jammy,now 1.0.6-7+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-xml/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
php8.2-zip/jammy,now 8.2.3-1+ubuntu22.04.1+deb.sury.org+1 amd64  [installiert]
derritter88 commented 1 year ago

Will this be at the next beta release?