Security & setup warnings :: INVALID_HASH core/js/mimetypelist.js

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 26 Winter (33.0.0)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Alma9
  • Web server and version (e.g, Apache 2.4.25):
    • httpd-2.4.62-7.el9_7.3.x86_64
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • no reverse proxy
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • after major version update
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal/Archive
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

i keep seeing this:

[root@isscloud ~]# run_occ integrity:check-core

INVALID_HASH:

core/js/mimetypelist.js:

expected: cb945c6402e12d9e7d42d0359acf95a6e9a9b0c1f3bd8528f598a7fb1694e5ae34c80cf44ef6c8901eac1bfdd152de3315fc7eac007efee0f33f09ed3e518b6a

current: aae4144b8e0cd02180fd16f090cc7e7e5adc54b98963a14e4ab272ee3847f70ebece4f2dc658fb367bf84ae55926c4e9c938256a6a0801911300b53998b3f30f

i tried to fix with:
[root@isscloud filetypes]# run_occ maintenance:mimetype:update-db --repair-filecache
Updated 2 filecache rows for mimetype “application/x-bin”
Updated 64 filecache rows for mimetype “application/x-bzip2”
Updated 356 filecache rows for mimetype “text/x-c”
Updated 5 filecache rows for mimetype “text/css”
Updated 49 filecache rows for mimetype “text/csv”
Updated 12 filecache rows for mimetype “application/msword”
Updated 23 filecache rows for mimetype “application/vnd.openxmlformats-officedocument.wordprocessingml.document”
Updated 2 filecache rows for mimetype “application/postscript”
Updated 11991 filecache rows for mimetype “application/gzip”
Updated 5 filecache rows for mimetype “text/html”
Updated 11 filecache rows for mimetype “image/jpeg”
Updated 69 filecache rows for mimetype “image/jpeg”
Updated 12 filecache rows for mimetype “application/javascript”
Updated 1 filecache rows for mimetype “application/json”
Updated 19 filecache rows for mimetype “application/vnd.oasis.opendocument.presentation”
Updated 10 filecache rows for mimetype “application/vnd.oasis.opendocument.spreadsheet”
Updated 18 filecache rows for mimetype “application/vnd.oasis.opendocument.text”
Updated 5 filecache rows for mimetype “application/x-php”
Updated 1 filecache rows for mimetype “application/vnd.ms-powerpoint”
Updated 1 filecache rows for mimetype “application/vnd.ms-powerpoint”
Updated 1 filecache rows for mimetype “application/vnd.openxmlformats-officedocument.presentationml.slideshow”
Updated 89 filecache rows for mimetype “application/vnd.ms-powerpoint”
Updated 5 filecache rows for mimetype “application/vnd.openxmlformats-officedocument.presentationml.presentation”
Updated 2 filecache rows for mimetype “application/x-rar-compressed”
Updated 3 filecache rows for mimetype “text/x-shellscript”
Updated 1 filecache rows for mimetype “image/svg+xml”
Updated 3 filecache rows for mimetype “application/x-tar”
Updated 98 filecache rows for mimetype “application/vnd.ms-excel”
Updated 15 filecache rows for mimetype “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”
Updated 2 filecache rows for mimetype “application/xml”
Updated 11991 filecache rows for mimetype “application/x-gzip”
Updated 8 filecache rows for mimetype “application/x-xz”
Updated 1 filecache rows for mimetype “application/x-xz”
Added 0 new mimetypes
Updated 24875 filecache rows

but the problem remained

Steps to replicate it (hint: details matter!):

  1. It appeared after update

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

i have no log entries (i cleaned up the log after update)

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

it is not related to web interface

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

[root@isscloud ~]# run_occ config:list system 
{
    "system": {
        "maintenance": false,
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "serverid": 999,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "version": "33.0.0.16",
        "overwrite.cli.url": "https:\/\/isscloud.spacescience.ro",
        "trusted_domains": [
            "localhost",
            "isscloud.spacescience.ro",
            "46.243.114.245"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "htaccess.RewriteBase": "\/",
        "dbtype": "mysql",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "default_language": "en",
        "default_locale": "ro",
        "default_phone_region": "RO",
        "default_timezone": "Europe\/Bucharest",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "allow_local_remote_servers": true,
        "trashbin_retention_obligation": "30,90",
        "log_type": "file",
        "logfile": "\/var\/log\/nextcloud.log",
        "logfile_audit": "\/var\/log\/nextcloud_audit.log",
        "loglevel": 3,
        "loglevel_frontend": 2,
        "logtimezone": "Europe\/Bucharest",
        "defaultapp": "dashboard,files",
        "enable_previews": false,
        "maintenance_window_start": 1,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0,
            "read_timeout": 0,
            "user": "",
            "password": "***REMOVED SENSITIVE VALUE***",
            "dbindex": 0
        },
        "sharing.enable_mail_link_password_expiration": false,
        "sharing.mail_link_password_expiration_interval": 3600,
        "tempdirectory": "\/nextcloud\/tmp",
        "updatedirectory": "\/nextcloud\/update",
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpport": "587",
        "mail_smtpauth": true,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [],
        "theme": "",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": false,
                "verify_peer": true,
                "verify_peer_name": true
            }
        }
    }
}

Apps

The output of occ app:list (if possible).

[root@isscloud ~]# run_occ app:list 
Enabled:
  - activity: 6.0.0-dev.0
  - admin_audit: 1.23.0
  - announcementbanner: 2.1.0
  - announcementcenter: 7.3.0
  - approval: 3.2.0
  - bruteforcesettings: 6.0.0-dev.0
  - calendar: 6.2.1
  - calendar_resource_management: 0.11.0
  - circles: 33.0.0
  - cloud_federation_api: 1.17.0
  - comments: 1.23.0
  - contacts: 8.4.1
  - contactsinteraction: 1.14.1
  - dashboard: 7.13.0
  - dav: 1.36.0
  - deck: 1.17.0
  - drawio: 4.2.3
  - event_update_notification: 2.8.0
  - external: 8.0.0
  - federatedfilesharing: 1.23.0
  - files: 2.5.0
  - files_accesscontrol: 4.0.0
  - files_automatedtagging: 4.0.0
  - files_downloadlimit: 5.1.0-dev.0
  - files_external: 1.25.1
  - files_lock: 33.0.1
  - files_pdfviewer: 6.0.0-dev.0
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - files_zip: 2.3.0
  - firstrunwizard: 6.0.0-dev.0
  - flow_notifications: 4.0.0
  - forms: 5.2.5
  - fulltextsearch: 33.0.0
  - group_default_quota: 0.1.14
  - groupfolders: 21.0.6
  - groupquota: 0.2.4
  - integration_github: 3.2.2
  - integration_gitlab: 4.0.0
  - intros: 1.2.1
  - logcleaner: 1.3.4
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - mail: 5.7.3
  - nextcloud_announcements: 5.0.0
  - notes: 4.13.0
  - notifications: 6.0.0
  - notify_push: 1.3.1
  - oauth2: 1.21.0
  - ownershiptransfer: 1.4.0
  - password_policy: 5.0.0-dev.0
  - passwords: 2026.2.20
  - photos: 6.0.0-dev.0
  - privacy: 5.0.0-dev.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - quota_warning: 1.23.0
  - recommendations: 6.0.0-dev.0
  - registration: 2.9.0
  - richdocuments: 10.1.0
  - serverinfo: 5.0.0-dev.0
  - settings: 1.16.0
  - sharebymail: 1.23.0
  - sharereview: 2.1.0
  - spreed: 23.0.1
  - support: 5.0.0
  - survey_client: 5.0.0-dev.0
  - suspicious_login: 11.0.0-dev.0
  - systemtags: 1.23.0
  - tables: 2.0.1
  - tasks: 0.17.1
  - text: 7.0.0-dev.3
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0-dev.0
  - updatenotification: 1.23.0
  - user_status: 1.13.0
  - user_usage_report: 4.0.0
  - viewer: 6.0.0-dev.0
  - weather_status: 1.13.0
  - webhook_listeners: 1.5.0
  - workflow_script: 4.0.0
  - workflowengine: 2.15.0
Disabled:
  - app_api: 33.0.0 (installed 32.0.0)
  - bookmarks: 16.1.3 (installed 16.1.3)
  - encryption: 2.21.0
  - federation: 1.23.0 (installed 1.20.0)
  - related_resources: 4.0.0-dev.0 (installed 1.5.0)
  - twofactor_nextcloud_notification: 7.0.0 (installed 6.0.0-dev.0)
  - user_ldap: 1.24.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.
1 Like

I have the same problem since the update from 32.0.6 to 33.0.1:

Actually i solved this by removing the extra files, and then taking (and replacing) the mimetypelist.js from the github