Undefined Index Errors after Manual Update to 17.05

Hey there,

I manually updated our instance to 17.05 after I had to restore it via snapshot as I realized that our groupfolders based file structure doesnt work with the via webinterface accesible version 18.04.
Now it occasionally throws a stream of PHP errors, most of the time starting with undefined index errors and the following probably being a result of those.
Is there maybe an indexing related command I should have run after the manual update?

Best
Johannes

Note: Because I read in other threads that undefined index errors in storage may be quota related, I want to note that our instance uses groupfolders only and the quota of all users is set to 0 except the one belonging to the admin which is unlimited

Steps to reproduce

Manual update from 17.0X to 17.05

Expected behaviour

No errors

Actual behaviour

Occasional stream of PHP errors, probably cascading further from Undefined index: all at […]/apps/files_versions/lib/Storage.php#[…] errors (and regarding issuetemplate as well as it seems?)

Server configuration detail

Operating system: Linux 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64

Webserver: Apache (fpm-fcgi)

Database: mysql 10.3.22

PHP version:

7.3.16-1+ubuntu18.04.1+deb.sury.org+1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, intl, json, ldap, exif, mysqli, pdo_mysql, apc, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Phar, libsmbclient, Zend OPcache

Nextcloud version: 17.0.5 - 17.0.5.0

Updated from an older Nextcloud/ownCloud or fresh install: Manual update from 17.0X

Where did you install Nextcloud from: zip from official website

Signing status

Array
(
)

List of activated apps
Enabled:
 - accessibility: 1.3.0
 - admin_audit: 1.7.0
 - bruteforcesettings: 1.6.0
 - calendar: 2.0.3
 - cloud_federation_api: 1.0.0
 - comments: 1.7.0
 - dav: 1.13.0
 - external: 3.4.1
 - federatedfilesharing: 1.7.0
 - federation: 1.7.0
 - files: 1.12.0
 - files_accesscontrol: 1.7.0
 - files_pdfviewer: 1.6.0
 - files_rightclick: 0.15.1
 - files_sharing: 1.9.0
 - files_trashbin: 1.7.0
 - files_versions: 1.10.0
 - files_videoplayer: 1.6.0
 - group_everyone: 0.1.4
 - groupfolders: 5.0.7
 - impersonate: 1.4.0
 - issuetemplate: 0.6.0
 - logreader: 2.2.0
 - lookup_server_connector: 1.5.0
 - metadata: 0.11.1
 - notifications: 2.5.0
 - oauth2: 1.5.0
 - password_policy: 1.7.0
 - polls: 1.3.0
 - privacy: 1.1.0
 - provisioning_api: 1.7.0
 - recommendations: 0.5.0
 - serverinfo: 1.7.0
 - sharebymail: 1.7.0
 - spreed: 7.0.2
 - support: 1.0.1
 - text: 1.1.1
 - theming: 1.8.0
 - theming_customcss: 1.5.0
 - twofactor_backupcodes: 1.6.0
 - updatenotification: 1.7.0
 - viewer: 1.2.0
 - workflowengine: 1.7.0
Disabled:
 - activity
 - encryption
 - files_external
 - firstrunwizard
 - gallery
 - nextcloud_announcements
 - survey_client
 - systemtags
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "17.0.5.0",
    "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "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\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\Movie",
        "OC\\Preview\\PDF",
        "OC\\Preview\\MP3",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown"
    ],
    "filesystem_check_changes": 0,
    "filelocking.enabled": "true",
    "htaccess.RewriteBase": "\/",
    "integrity.check.disabled": false,
    "knowledgebaseenabled": false,
    "logfile": "***REMOVED SENSITIVE VALUE***",
    "loglevel": 2,
    "logtimezone": "Europe\/Berlin",
    "log_rotate_size": 104857600,
    "maintenance": false,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "overwriteprotocol": "https",
    "preview_max_x": 1024,
    "preview_max_y": 768,
    "preview_max_scale_factor": 1,
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0
    },
    "quota_include_external_storage": false,
    "share_folder": "\/Shares",
    "skeletondirectory": "",
    "theme": "",
    "trashbin_retention_obligation": "auto, 7",
    "updater.release.channel": "stable",
    "mail_smtpmode": "smtp",
    "mail_smtpauthtype": "PLAIN",
    "mail_sendmailmode": "smtp",
    "mail_smtpsecure": "tls",
    "mail_smtpauth": 1,
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_template_class": "OCA\\Mail\\EmailTemplate"
}

Are you using external storage, if yes which one: local/smb/sftp/…

Are you using encryption:

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36

Operating system:

Logs

Web server error log
Insert your web server log here 
Nextcloud log
Error	PHP	Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: client-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: client-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59
Error	PHP	Undefined index: client-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59		
Error	PHP	Undefined index: client-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59		
Error	PHP	reset() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#806	
Error	PHP	ksort() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#805	
Error	PHP	count(): Parameter must be an array or an object that implements Countable at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#802
Error	PHP	Invalid argument supplied for foreach() at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781	
Error	PHP	Undefined index: by_file at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781	
Error	PHP	Undefined index: all at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#779
Error	PHP	reset() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#806
Error	PHP	ksort() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#805
Error	PHP	count(): Parameter must be an array or an object that implements Countable at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#802	
Error	PHP	Invalid argument supplied for foreach() at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781	
Error	PHP	Undefined index: by_file at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781		
Error	PHP	Undefined index: all at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#779		
Error	PHP	reset() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#806	
Error	PHP	ksort() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#805	
Error	PHP	count(): Parameter must be an array or an object that implements Countable at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#802	
Error	PHP	Invalid argument supplied for foreach() at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781	
Error	PHP	Undefined index: by_file at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781	
Error	PHP	Undefined index: all at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#779
Error	PHP	reset() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#806
Error	PHP	ksort() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#805
Error	PHP	count(): Parameter must be an array or an object that implements Countable at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#802
Error	PHP	Invalid argument supplied for foreach() at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781	
Error	PHP	Undefined index: by_file at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781	
Error	PHP	Undefined index: all at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#779
Error	PHP	reset() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#806
Error	PHP	ksort() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#805
Error	PHP	count(): Parameter must be an array or an object that implements Countable at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#802
Error	PHP	Invalid argument supplied for foreach() at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781
Error	PHP	Undefined index: by_file at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#781
Error	PHP	Undefined index: all at /var/www/html/nextcloud/apps/files_versions/lib/Storage.php#779
Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...