Hi,
Intro
I have some questions to remove « integrity warnings » after upgrade.
nc is on webserver where I only have ftp access (not ssh) where I can’t change php modules or options. occ commands are passed using occweb application.
The Basics
occ support:report command result is
Server configuration detail
Operating system: Linux 6.1.0-0.deb11.7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.20-2~bpo11+1 (2023-04-23) x86_64
Webserver: Apache/2.4.62 (Debian) (fpm-fcgi)
Database: mysql 10.11.6
PHP version: 8.3.19
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, exif, memcache, msgpack, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, rrd, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, memcached, redis, Zend OPcache
Nextcloud version: 31.0.3 - 31.0.3.2
Updated from an older Nextcloud/ownCloud : 30.0.9
Where did you install Nextcloud from: initialy from web installer.
Signing status
{ "core": { "INVALID_HASH": { ".htaccess": { "expected": "11fa1c20bce060406cf3f1dadc2f352fc3366fc1e8f4869c63f14312b14f35637e7823072295f810355527cce160b90463de9108ee9167d439b72a140a858b18", "current": "911257c007aa7f18503800099c9d2c3d5aea8f97f67d910b2e289409bd731789af7b455fa574b92afd2eeceb0dd1f371cf8d2f99901942359290eabda6b04550" }, "core\/js\/mimetypelist.js": { "expected": "83befc51175b6888bc37997804057c6c8a42d7f6acab0f698e00d64b2d3b6b71e43ef4c59086b9cdd5154b0ed86aae1153ea68770b34cc78e446cac6af86d0ac", "current": "f93457a788a2febea3c84c18262b5f4f6075c19fa4611249eb64d8fe6188d1d22feae3c3f3f8bc953e6b0307e74eeccbd4d956b136c54df30fef52d67089a58d" } } }}List of activated apps
```Enabled: - activity: 4.0.0 - app_api: 5.0.2 - bruteforcesettings: 4.0.0 - calendar: 5.2.1 - circles: 31.0.0 - comments: 1.21.0 - contacts: 7.0.5 - contactsinteraction: 1.12.0 - dashboard: 7.11.0 - deck: 1.15.0 - drawio: 3.0.9 - files_downloadlimit: 4.0.0 - files_pdfviewer: 4.0.0 - files_reminders: 1.4.0 - files_sharing: 1.23.1 - files_trashbin: 1.21.0 - files_versions: 1.24.0 - firstrunwizard: 4.0.0 - forms: 5.1.0 - groupfolders: 19.0.4 - logreader: 4.0.0 - mail: 4.3.6 - nextcloud_announcements: 3.0.0 - notes: 4.11.0 - notifications: 4.0.0 - occweb: 0.2.3 - ownpad: 0.12.0 - password_policy: 3.0.0 - photos: 4.0.0-dev.1 - privacy: 3.0.0 - quota_warning: 1.21.0 - recommendations: 4.0.0 - related_resources: 2.0.0 - richdocuments: 8.6.4 - serverinfo: 3.0.0 - sharebymail: 1.21.0 - support: 3.0.0 - survey_client: 3.0.0 - systemtags: 1.21.1 - text: 5.0.0 - updatenotification: 1.21.0 - user_status: 1.11.0 - weather_status: 1.11.0 - webhook_listeners: 1.2.0 - whiteboard: 1.0.5Disabled: - admin_audit: 1.19.0 - encryption: 2.17.0 - federation: 1.20.0 - files_external - files_rightclick: 1.6.0 - spreed: 21.0.2 - suspicious_login: 8.0.0 - twofactor_nextcloud_notification - twofactor_totp - user_ldap```Configuration (config/config.php)
```{ "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "forwarded_for_headers": [ "HTTP_X_FORWARDED_FOR" ], "trusted_domains": [ "nuage.lecasc.org" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "tempdirectory": "***REMOVED SENSITIVE VALUE***", "default_language": "fr", "default_locale": "fr_FR", "default_phone_region": "FR", "enable_previews": true, "trashbin_retention_obligation": "auto, 7", "versions_retention_obligation": "auto, 7", "dbtype": "mysql", "version": "31.0.3.2", "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, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtpport": "587", "mail_sendmailmode": "smtp", "maintenance_window_start": 1, "maintenance": false, "theme": "", "loglevel": 2, "app_install_overwrite": [ "occweb", "openincryptpad", "ownpad" ]}```system
* Erreurs dans le journal: 26 erreurs dans les journaux depuis 5 avril 2025, 17:25:40 * Verrouillage de fichiers transactionnels: La base de données est actuellement utilisée pour les verrous. Afin d'améliorer les performances, veuillez si possible configurer un cache mémoire. * Memcache: Aucun cache mémoire n'a été configuré. Pour améliorer les performances, veuillez configurer un memcache, si disponible. * Espace temporaire disponible: La fonction PHP "disk_free_space" est désactivée, ce qui empêche la vérification de l'espace suffisant dans les répertoires temporaires.security
* Intégrité du code: Certaines fichiers n'ont pas réussi la vérification d'intégrité. List of invalid files… Rescan…php
* opcache PHP: Le module PHP OPcache n'est pas correctement configuré. Le tampon mémoire OPcache est presque plein. Pour vous assurer que tous les scripts peuvent être conservés en cache, il est recommandé de définir la variable "opcache.memory_consumption" de votre fichier de configuration PHP à une valeur supérieure à "128". Le tampon mémoire des chaînes internes OPcache est presque plein. Pour vous assurer que les chaînes répétitives peuvent être mise en cache, il est recommandé de définir la variable "opcache.interned_strings_buffer" de votre fichier de configuration PHP à une valeur supérieure à "8".. * Module PHP Imagick: Le module PHP « imagick » n’a aucun support SVG dans cette instance. Pour une meilleure compatibilité, il est recommandé de l’installer.Problem
After nc upgrade some integrity warning appeared :
Extra files
Some extra files remains in « core/img/filetypes/ » directory
- drawio.svg
- dwb.svg
- pad.svg
- calc.svg
Removing these files solved this warning
Mimetype list
File « core/js/mimetypelist.js » is wrong hash.
Replacing it by extracted file from archive downloaded here didn’t solve the problem.
using occ maintenance:mimetype:update-js
and occ maintenance:mimetype:update-db
have no effect.
htaccess
« .htacces » file is wrong hash. Used to tune web server options, this file differs from unpacked file.
Questions
- Is there a way to get correct « mimetypelist.js » file ?
- How-to tune htaccess rules without integrity warning ?
Thanks,
Luc.