Mimetypelist.js fails integrity check (again) after 30.0.0 update

Debian GNU/Linux 12
Nextcloud version: 30.0.0
Apache 2.4.62-1~deb12u1
PHP 8.2+93

I worked thru this problem after updating to 29.0.7. You can read thru that process here:

What ended up being the problem at that time was that several of my apps were listed as being version “0” after updating to 29.0.7, and they weren’t listed in the “Your Apps” page, so I had to manually go thru the app store, highlight all of the apps that were shown as being installed and if it showed its version as “0”, remove and then re-install it.

I had the green check for all of about 24 hours until this morning I got a notification that 30.0.0 had been released to the “stable” update channel. I figured I’d fixed this issue, surely it wouldn’t re-appear. But after updating to NC 30 the issue has re-appeared, except this time none of my apps are listed as being version 0, so I’m not sure if that’s the problem or not. I did however repeat the steps of uninstalling and reinstalling all of the apps for which the updater said “update app FOO from the App Store”, such as calendar and contacts.

image

I also ran some mimetype maintenance tasks with occ:

mimetype:update-db did actually add 1 new mimetype, so I ran update-js, then went to my Admin overview page and clicked the button to “Rescan” to see if the error had been resolved, but it’s still there.

When I click the link for “List of invalid files”, I get the exact same output that I did in my previous post for NC 29.0.7.

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
	- INVALID_HASH
		- core/js/mimetypelist.js
	- EXTRA_FILE
		- core/img/filetypes/off.svg
		- core/img/filetypes/fbx.svg
		- core/img/filetypes/obj.svg
		- core/img/filetypes/brp.svg
		- core/img/filetypes/bim.svg
		- core/img/filetypes/glb.svg
		- core/img/filetypes/3dm.svg
		- core/img/filetypes/3ds.svg
		- core/img/filetypes/igs.svg
		- core/img/filetypes/3mf.svg
		- core/img/filetypes/ply.svg
		- core/img/filetypes/dae.svg
		- core/img/filetypes/step.svg
		- core/img/filetypes/ifc.svg
		- core/img/filetypes/stl.svg
		- core/img/filetypes/fcstd.svg
		- core/img/filetypes/gltf.svg
		- core/img/filetypes/mtl.svg
		- core/img/filetypes/wrl.svg

Raw output
==========
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [core/js/mimetypelist.js] => Array
                        (
                            [expected] => a57779b4957bedf9bac2a5791b27957ca3e2bfe7b91fd641bb0cc56801588e0778610a26141a1393d83d77bc04be67ae625c70a7ad4afb2a7f14cb64c66ee31b
                            [current] => 4cbdf7842ed44cf9120bdfcc6de51f72a8569ecebc1de605e2fe4e19dedd297dfa8ec90daa3dc56b711f5e1da4f085e70506c312107948c06d47291c31cdb014
                        )

                )

            [EXTRA_FILE] => Array
                (
                    [core/img/filetypes/off.svg] => Array
                        (
                            [expected] => 
                            [current] => e97363a4b84c76454db55807517b675c7dd2cb2db8b20f365b55c2b765713f32d38417d902c9b27df079e7353e6556ed6274f37bb5fa96e0f2d3d047be338d0f
                        )

                    [core/img/filetypes/fbx.svg] => Array
                        (
                            [expected] => 
                            [current] => 340cec2b708d4ace6f448eb0cb372abc68c3c58c2879ff8245a1aba56e1f5eac0a4f6b2f1efb0a9057f908b051cd4350b68352a7d2c02ed95aabc2a3cbdcfd14
                        )

                    [core/img/filetypes/obj.svg] => Array
                        (
                            [expected] => 
                            [current] => fdf2a7a0d03ad7c4a5ca741f9d8a5bbe26e298acd2d40a4d17b7faa1dbac811e41b40ed62fd2ef75ffe5c794d042c7752b33625e2200ba4a5f9f99ac694976d7
                        )

                    [core/img/filetypes/brp.svg] => Array
                        (
                            [expected] => 
                            [current] => bb949514375abc470dbd7813b006de031f3455034a574979d0ec6b4a7211ddc3014f1867a60b62d46efeadbadcee0de35e59d5e078c5a05dd3aebf095a8668b2
                        )

                    [core/img/filetypes/bim.svg] => Array
                        (
                            [expected] => 
                            [current] => 78a36c3c4ea6ba23bd89c49a8327e9cac84e34e4598c494a4009c54ffd4329b7100795855dca502f8326231c1aa4d181060f4220152090ba4569dcfbacde05fa
                        )

                    [core/img/filetypes/glb.svg] => Array
                        (
                            [expected] => 
                            [current] => c2b86e36db81b475843fadb739076ec891ddc22acdc13a1aecc07dd8d95f9087b941844be4fc75ea288a3d50459018f9883cdb199a69fd82318047213c2bc450
                        )

                    [core/img/filetypes/3dm.svg] => Array
                        (
                            [expected] => 
                            [current] => 6f67fc6fc65178fc7a433c28b7979ff7d86daf186aed7d786321ee0bf757a3cb7694b2bfee9c770b243274583d64b6c0e98281aea827ca082d945cba5a99786a
                        )

                    [core/img/filetypes/3ds.svg] => Array
                        (
                            [expected] => 
                            [current] => 7bcb3ed089a22ebf427ff9d70ac2897b0e87275a5b07d474173f555c309c1514a5643e48b73d13719684ff393a9ef939744bda869be0e3de4d8a154204eda199
                        )

                    [core/img/filetypes/igs.svg] => Array
                        (
                            [expected] => 
                            [current] => 62811854feedca70914ec769df3e50be0691ba06ece143e5bb82a48eda0bcfd371ea59b1da05cce3a65368cd54d88b699e68601fbf4c62de1794706888f2b46e
                        )

                    [core/img/filetypes/3mf.svg] => Array
                        (
                            [expected] => 
                            [current] => bf87b6e8ff30605a50aaa6d6aeec47149d4ad94c4e23bf6bf14d5d737adab1df5f0c1a76dc4b01d0a8ca1e0522f19cc382f3a70c907a6634962b68a2a1db1ee5
                        )

                    [core/img/filetypes/ply.svg] => Array
                        (
                            [expected] => 
                            [current] => 1a96ccfcb244240b84cd7b9f013719e47802bf724d4a2105946d3bcfccc9d2ce49aa6d3b19a22a20d2f714137f318036faacc34ef86127470a5207ece3c3f28f
                        )

                    [core/img/filetypes/dae.svg] => Array
                        (
                            [expected] => 
                            [current] => 0eff57fe089a3a80ff1ab65d160492504b8d4a05e445ec1da0f8a25da9ecaecabe2e42c012e9f4b918090a11245393714eb1bf99c9d9a75578e0f76858c3a475
                        )

                    [core/img/filetypes/step.svg] => Array
                        (
                            [expected] => 
                            [current] => 135a2bf067c2ea29c4c664f8373df10d59fe9b7b7df3337519942ce67febdb99fb66d3ef602ae84724e38eb43a7574adb7fca4829d0608557d5977765edb606b
                        )

                    [core/img/filetypes/ifc.svg] => Array
                        (
                            [expected] => 
                            [current] => 9637a8ed2e39da747ced1cbe24f9a3c2e39e52a3313c1d3f2390cfb70562ef26fd2c1e7cc66efbd3fb3724e321c24d05dd3c812fe5c6444c78fea22692b51111
                        )

                    [core/img/filetypes/stl.svg] => Array
                        (
                            [expected] => 
                            [current] => 6ad713d7f4ea0548d5cc34af1ac7e6e15518286abb0e3822bf5ec440802ac719c34112d2ec2e5aacd5a99ee1b15910b3c29efb0c95dad683457c52ec5422f459
                        )

                    [core/img/filetypes/fcstd.svg] => Array
                        (
                            [expected] => 
                            [current] => 9cc09dd1b558b2e670c4529bee1b54e8070d95ffbdbb95e2f86e1580a7a4dcbec84041740da58f42de3daccf224c6d47a74648fe70702dae0bca98e0047843a4
                        )

                    [core/img/filetypes/gltf.svg] => Array
                        (
                            [expected] => 
                            [current] => 79f6ab05ac3c3b1b1fcba07ab76d6b7aea3b49cfbb8a01701836f0a91e56217366111b3008998ddc79bcef8aea77830f2c9ca6fa2db78fbffe4b3d8648762dcb
                        )

                    [core/img/filetypes/mtl.svg] => Array
                        (
                            [expected] => 
                            [current] => 2ff4058b67594f2e98d1d951f26adf06ccd1cda8b8c410d89c3e01149ea04af12966a0a707d8e98e7de6f64150c6b1bbc3b29b267469f523e18fec5523dd2daf
                        )

                    [core/img/filetypes/wrl.svg] => Array
                        (
                            [expected] => 
                            [current] => 2bbc7a1f742f46307c6d09df10013252782b7b28a5807e907fc2922adbd94a820b2c02fce8762cfebed0d53f21a14ec81c14933516e0b71316570777be2269e1
                        )

                )

        )

)

So I’m at a loss for what the solution is since none of my apps are reporting version 0 this time around.

Suggestions?

1 Like

Hi,

Please share the list of installed apps (e.g. occ app:list)

Enabled:
  - activity: 3.0.0
  - admin_audit: 1.20.0
  - audioplayer: 3.4.1
  - bookmarks: 15.0.1
  - bruteforcesettings: 3.0.0
  - calendar: 5.0.0
  - camerarawpreviews: 0.8.5
  - circles: 30.0.0-dev
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contacts: 6.1.0
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - deck: 1.14.0
  - dicomviewer: 2.1.2
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_accesscontrol: 1.20.1
  - files_antivirus: 5.5.7
  - files_automatedtagging: 1.20.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_retention: 1.19.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - forms: 4.2.4
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - music: 2.0.1
  - nextcloud_announcements: 2.0.0
  - notes: 4.11.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - phonetrack: 0.8.1
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - qownnotesapi: 24.4.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.0
  - richdocumentscode: 24.4.702
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - socialsharing_email: 3.1.0
  - spreed: 20.0.0
  - support: 2.0.0
  - survey_client: 2.0.0
  - suspicious_login: 8.0.0
  - systemtags: 1.20.0
  - tasks: 0.16.1
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - encryption: 2.18.0
  - files_external: 1.22.0 (installed 1.15.0)
  - twofactor_nextcloud_notification: 4.0.0
  - user_ldap: 1.21.0

Hi,

My theory is that an app is messing around with the mime type definitions. That happens occasionally because Nextcloud has no clean way for 3rdparty apps to extend the definitions. Therefore, I asked you for the apps list.

You are getting a warning for core/img/filetypes/off.svg, etc. because something added files into the core/img/filetypes directory.

I’ve scanned through your apps list, but have no idea where those icons are coming from. Did you try to remove them and they reappeared?

Could you upload your version of core/js/mimetypelist.js?

Thanks for your willingness to help me out, :slight_smile:

mimetypelist.js

/**
* This file is automatically generated
* DO NOT EDIT MANUALLY!
*
* You can update the list of MimeType Aliases in config/mimetypealiases.json
* The list of files is fetched from core/img/filetypes
* To regenerate this file run ./occ maintenance:mimetype:update-js
*/
OC.MimeTypeList={
	aliases: {
    "application/coreldraw": "image",
    "application/epub+zip": "text",
    "application/font-sfnt": "font",
    "application/font-woff": "font",
    "application/gpx+xml": "location",
    "application/gzip": "package/x-generic",
    "application/illustrator": "image",
    "application/javascript": "text/code",
    "application/json": "text/code",
    "application/msaccess": "file",
    "application/msexcel": "x-office/spreadsheet",
    "application/msonenote": "x-office/document",
    "application/mspowerpoint": "x-office/presentation",
    "application/msword": "x-office/document",
    "application/octet-stream": "file",
    "application/postscript": "image",
    "application/rss+xml": "application/xml",
    "application/vnd.android.package-archive": "package/x-generic",
    "application/vnd.excalidraw+json": "whiteboard",
    "application/vnd.lotus-wordpro": "x-office/document",
    "application/vnd.garmin.tcx+xml": "location",
    "application/vnd.google-earth.kml+xml": "location",
    "application/vnd.google-earth.kmz": "location",
    "application/vnd.ms-excel": "x-office/spreadsheet",
    "application/vnd.ms-excel.addin.macroEnabled.12": "x-office/spreadsheet",
    "application/vnd.ms-excel.sheet.binary.macroEnabled.12": "x-office/spreadsheet",
    "application/vnd.ms-excel.sheet.macroEnabled.12": "x-office/spreadsheet",
    "application/vnd.ms-excel.template.macroEnabled.12": "x-office/spreadsheet",
    "application/vnd.ms-fontobject": "font",
    "application/vnd.ms-powerpoint": "x-office/presentation",
    "application/vnd.ms-powerpoint.addin.macroEnabled.12": "x-office/presentation",
    "application/vnd.ms-powerpoint.presentation.macroEnabled.12": "x-office/presentation",
    "application/vnd.ms-powerpoint.slideshow.macroEnabled.12": "x-office/presentation",
    "application/vnd.ms-powerpoint.template.macroEnabled.12": "x-office/presentation",
    "application/vnd.ms-visio.drawing.macroEnabled.12": "application/vnd.visio",
    "application/vnd.ms-visio.drawing": "application/vnd.visio",
    "application/vnd.ms-visio.stencil.macroEnabled.12": "application/vnd.visio",
    "application/vnd.ms-visio.stencil": "application/vnd.visio",
    "application/vnd.ms-visio.template.macroEnabled.12": "application/vnd.visio",
    "application/vnd.ms-visio.template": "application/vnd.visio",
    "application/vnd.ms-word.document.macroEnabled.12": "x-office/document",
    "application/vnd.ms-word.template.macroEnabled.12": "x-office/document",
    "application/vnd.oasis.opendocument.presentation": "x-office/presentation",
    "application/vnd.oasis.opendocument.presentation-template": "x-office/presentation",
    "application/vnd.oasis.opendocument.spreadsheet": "x-office/spreadsheet",
    "application/vnd.oasis.opendocument.spreadsheet-template": "x-office/spreadsheet",
    "application/vnd.oasis.opendocument.text": "x-office/document",
    "application/vnd.oasis.opendocument.text-master": "x-office/document",
    "application/vnd.oasis.opendocument.text-template": "x-office/document",
    "application/vnd.oasis.opendocument.graphics": "x-office/drawing",
    "application/vnd.oasis.opendocument.graphics-template": "x-office/drawing",
    "application/vnd.oasis.opendocument.text-web": "x-office/document",
    "application/vnd.oasis.opendocument.text-flat-xml": "x-office/document",
    "application/vnd.oasis.opendocument.spreadsheet-flat-xml": "x-office/spreadsheet",
    "application/vnd.oasis.opendocument.graphics-flat-xml": "x-office/drawing",
    "application/vnd.oasis.opendocument.presentation-flat-xml": "x-office/presentation",
    "application/vnd.openxmlformats-officedocument.presentationml.presentation": "x-office/presentation",
    "application/vnd.openxmlformats-officedocument.presentationml.slideshow": "x-office/presentation",
    "application/vnd.openxmlformats-officedocument.presentationml.template": "x-office/presentation",
    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "x-office/spreadsheet",
    "application/vnd.openxmlformats-officedocument.spreadsheetml.template": "x-office/spreadsheet",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "x-office/document",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.template": "x-office/document",
    "application/vnd.visio": "x-office/document",
    "application/vnd.wordperfect": "x-office/document",
    "application/x-7z-compressed": "package/x-generic",
    "application/x-bzip2": "package/x-generic",
    "application/x-cbr": "text",
    "application/x-compressed": "package/x-generic",
    "application/x-dcraw": "image",
    "application/x-deb": "package/x-generic",
    "application/x-fictionbook+xml": "text",
    "application/x-font": "font",
    "application/x-gimp": "image",
    "application/x-gzip": "application/gzip",
    "application/x-iwork-keynote-sffkey": "x-office/presentation",
    "application/x-iwork-numbers-sffnumbers": "x-office/spreadsheet",
    "application/x-iwork-pages-sffpages": "x-office/document",
    "application/x-mobipocket-ebook": "text",
    "application/x-perl": "text/code",
    "application/x-photoshop": "image",
    "application/x-php": "text/code",
    "application/x-rar-compressed": "package/x-generic",
    "application/x-tar": "package/x-generic",
    "application/x-tex": "text",
    "application/xml": "text/html",
    "application/yaml": "text/code",
    "application/zip": "package/x-generic",
    "database": "file",
    "httpd/unix-directory": "dir",
    "text/css": "text/code",
    "text/csv": "x-office/spreadsheet",
    "text/html": "text/code",
    "text/x-c": "text/code",
    "text/x-c++src": "text/code",
    "text/x-h": "text/code",
    "text/x-java-source": "text/code",
    "text/x-ldif": "text/code",
    "text/x-python": "text/code",
    "text/x-rst": "text",
    "text/x-shellscript": "text/code",
    "web": "text/code",
    "application/internet-shortcut": "link",
    "application/km": "mindmap",
    "application/x-freemind": "mindmap",
    "application/vnd.xmind.workbook": "mindmap",
    "image/targa": "image/tga",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document.oform": "x-office/form",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxf": "x-office/form-template",
    "image/x-emf": "image/emf"
},
	files: [
    "3dm",
    "3ds",
    "3mf",
    "application",
    "application-pdf",
    "audio",
    "bim",
    "brep",
    "brp",
    "dae",
    "fbx",
    "fcstd",
    "file",
    "folder",
    "folder-drag-accept",
    "folder-encrypted",
    "folder-external",
    "folder-public",
    "folder-shared",
    "folder-starred",
    "font",
    "glb",
    "gltf",
    "ifc",
    "iges",
    "igs",
    "image",
    "link",
    "location",
    "mindmap",
    "mtl",
    "obj",
    "off",
    "package-x-generic",
    "ply",
    "step",
    "stl",
    "stp",
    "text",
    "text-calendar",
    "text-code",
    "text-vcard",
    "video",
    "whiteboard",
    "wrl",
    "x-office-document",
    "x-office-drawing",
    "x-office-form",
    "x-office-form-template",
    "x-office-presentation",
    "x-office-spreadsheet"
],
	themes: []
};

I “think” it may have something to do with the “3D Model Viewer” app. We have a 3D printer and I had installed this app so that if we happened to click on a model within the Nextcloud web interface we could just look at it in the browser.

It was installed pre-update and I noticed that it is no longer listed as installed and when I click “Download and enable” on it in the store, it just sort of hangs and doesn’t do anything. So it could be that it wasn’t properly removed so there are leftover files that haven’t been cleaned up.

Plus these SVG icons kinda sorta look like they would belong to something that deals in 3D models.

image

Upon manually downloading the 3D Model Viewer as an archive and exploring it, look what’s in its img folder. Looks like I’ve found my culprit. Problem I’m having now is that it’s not listed as installed, so I can’t “uninstall” it to remove the files, but it fails to install. I could just manually delete those files in question, but that may or may not clean up any other leftover bits from it being installed previously, such as maybe references in the database, so I’d like to gracefully install it and then uninstall it.

Fixed it. So I managed to get the “3D Model Viewer” app to “install”, but it wouldn’t “enable”, so I just hit “remove”, then purged all of those files it had added to the web root, then rebuilt mimetypelist.js with:

sudo -u www-data php occ maintenance:mimetype:update-js

Then hit the “Rescan” button on the admin overview page and the error has disappeared.

Apologies for blaming Nextcloud when it was actually a 3rd party app screwing around in the web root.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.