Mimetypelist.js fails integrity check after 29.0.7 update

Just updated my installation to 29.0.7. Did part of the upgrade with the web interface, then used occ upgrade to finish it off. Upon completing the upgrade I get a warning, “Not all files have passed the integrity check”. When I click the link to get the list of files with the issue it tells me that core/js/mimetypelist.js is failing with a bad hash. So, I manually downloaded the archive and replaced my copy of mimetypelist.js with the copy in the archive. Then I thought maybe it was because I had manually applied a patch to fix the issue last release with the server version being wrong in one of the mimetype files, so I backed up the entire web directory, completely replaced it with the contents of the updated web directory, moved my config folder and then reapplied the fresh permissions. The error still appears on the admin overview page. It also gives me a list of “extra files” that it doesn’t recognize, all of them SVG.

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

Based on what I’m seeing in the documentation, and the giant message at the top of the mimetypelist.json file saying it’s generated automatically, I’m guessing that the automatic generation of my mimetypelist.json file is affected by some app I have installed, which causes it to have a different hash than it otherwise would have. But I’m not certain and will continue reading and troubleshooting.

The following is the output displayed when I click the link to “list invalid files”.

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] => 22e69b55fef9f4a60fa60afb7b032e8dfc0311acfc9cba9874945aed50ced549ba08de034224cd3fafd93b7954c95b1ab4fa78ef8049c9443dbfa138651bed0d
                        )

                )

            [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
                        )

                )

        )

)
1 Like

Just manually checked every app currently installed, both enabled and disabled, and they all passed their code integrity check.

Ran:

sudo -u www-data php occ integrity:check-app FOO

The “core” system also passed its code integrity check when scanned from the terminal with:

sudo -u www-data php occ integrity:check-core

Or at the very least, it gave me no output. Could this mean the message in the admin overview page is a false positive or bug of some kind?

So it appears that none of my third party apps are working after the update. I thought it was a little odd that my dashboard looked kinda empty yesterday evening, but I didn’t pay it much mind. Then today I tried to stream some music from my phone, which uses a subsonic compatible app on my phone and the “Music” app for Nextcloud, and it gave me an error. So when I got home I double checked and there are almost no apps listed at the top of my screen, not even “featured” ones like Contacts and Calendar. And when I click the “Apps” menu option to go manage them, a message appears at the top right of the screen that reads:

“An error occurred during the request. Unable to proceed”.

image

I’ve also noticed that several of my apps are not listed under “active” apps, but if I track them down in the app store they have the “disable” button available, as if they’re still installed and enabled.

As an experiment I “disabled” my music app and the button in the store changed to “Download and enable”, as if it wasn’t actually installed to begin with. Upon downloading and installing it, its icon appears at the top of the page and it appears to be working again.

This is the 2nd or 3rd “stable” update in a row that has forced me to start screwing around trying to fix things that worked fine before the update. It’s starting to feel like I’m running Windows or something where the updates break more than they fix.

So I’m having to manually go thru the entire store and check the first few listings of apps that have the disable button showing when in the store mode, click them to see if they show version “0” is installed, then disable and reinstall those apps. I think this may be the source of the error I was getting with regards to files failing their integrity check. There’s some kind of screwiness going on with regard to apps saying they’re installed with version “0”, but they’re not necessarily appearing in the “Your Apps” page so I’m having to hunt them down manually section by section in the store. Once I get all of these taken care of I’ll see if that makes the error message on the admin overview page go away.

Here’s an example of what I meant. I was able to find some of the affected apps in the “Your apps” or “Featured apps” sections, but for a lot of them I’m having to go thru the store and, since apps I have installed appear at the top of the list, check all of the ones that appear with a “disable” button, as if they’re already installed, to see if they report version 0.

I have gone thru and repaired every app that was listed as being version 0 so that I “think” all of the apps I had previously installed are working again.

However, I still get the “Some files have not passed the integrity check” message on the admin overview page.

So it looks like the issue was indeed the corrupted apps. I triggered another manual re-scan of all files (app and core files, not user files) after re-installing all the apps that were listed as version 0 and the error regarding files failing the integrity scan has gone away.

Issue is resolved.

1 Like

Thanks for sharing the all this!

Possibly similar/related:

No problem. I figure the least I can do if I end up fixing my own problem is to document it. Someday somebody else may have this problem and my post here will help them fix it. Or at the very least, some AI will ingest this and regurgitate it to them, hopefully without too much butchering so they can get it fixed, :slight_smile:

And the error is back after updating to Nextcloud 30, which became available today. I’ll poke around and if I can’t figure it out, I’ll make a separate topic about it.

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