App Store apps do not install properly on a fresh install of High Sierra on internal SSD or HDD

I upgraded my iMac 27-inch Mid-2011 with a 240-GB SSD alongside the existing 2-TB HDD. After the upgrade, I tested and everything worked great using the existing High Sierra system on the 2-TB HDD.


I did a new install of macOS High Sierra from Apple over the internet on to the 240-GB SSD. It was a fast and error-free installation. The iMac started up fast from the SSD and I applied system updates.


I completed all configuration tasks (setup all my preferences and installed all my applications and utilities) and then I ran it like this for a couple of days trying things out.


When it was time to add my App Store apps I ran into a snag. All my purchased apps install but will not run. When I launch them they either generate an error report, or bounce once in the dock, or do nothing at all.


I also tried adding new free apps that were not attached to my account and they behave the same way. So, I did some troubleshooting things like trying a different login and playing with permissions. Nothing works.


I spent an hour today on a support call with Apple and they were not able to figure it out and recommended I take it to for Apple authorized service.


I gave up and reinstalled the operating system on the HDD and to my surprise the same issue is happening on the original drive; that was working just fine!


Has anyone else experienced this? Can I not have two internal drives?

iMac 27″, macOS 10.13

Posted on Nov 13, 2020 11:38 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 26, 2020 9:22 AM

If you delete valid.sqlite3 from an old working High Sierra, app will not launch.

Indeed, valid.sqlite3 from the old working High is much smaller.


New file :

-rw-r--r--  1 root  wheel  17293312 26 nov 16:16 /Library/Keychains/crls/valid.sqlite3


Old file :

-rw-r--r--  1 root  wheel  7794688 26 nov 18:06 /Library/Keychains/crls/valid.sqlite3


So I replaced the new valid.sqlite3 from the new High Sierra with the old valid.sqlite3 from the old High Sierra.

sudo killall -9 trustd; sudo cp /path_to_old_file/valid.sqlite3 /Library/Keychains/crls/valid.sqlite3

It seems to work even after reboot.

Old file, just unzip before copying :

http://www.mediafire.com/file/m2ky3mrnon6jy49/valid.sqlite3.zip/file

Similar questions

447 replies

Nov 28, 2020 11:32 AM in response to FrancoisQC

"hey @caevnewt, looking at the file your provided, the serial number of the "revoked" certificate is not in it. That is probably why things keeps on working. Thanks for sharing though..."


I posted the file because softmusic was asking for a copy of an older one that does work, for comparison purposes. I'm a little puzzled why mine it doesn't get updated with the broken cert, because the one that you edited the bad cert from, appears to get changed by the system after a few days…

Nov 28, 2020 8:27 PM in response to hmg10

It's been reported and observed that this fix does not last the trustd update of the valid.sqlite3 database, and that it does not work for all apps; ie. introducing other errors in some cases.


If possible, please report back to this discussion if:

• it continues to work past a couple days and

• if it works on all apps by indicating percent success.

eg. 90% of apps that sudo codesign --force --deep --sign - /Applications/*.app is applied to work.


Thanks

Nov 29, 2020 2:56 PM in response to cavenewt

Sorry, it is a typo, some bad 'gramnar' and may be out of context


A more correct statement would be...


"We can confirm that the issue as seen on new High Sierra clean installs

done on or after November 11 do not exhibit this specific code signing error."


Now, as for what we were responding to, I can't find it in the discussions; it's gotten kind of messy. The statement therefore out of context doesn't make sense to us either.

Nov 30, 2020 4:41 AM in response to johnno_uk

Fun fact: Even Apple themselves have suggested clearing this db to fix other issues in the past:


https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087725


That might set peoples minds at rest a little with regard to whether fixes are safe etc.


It also suggests that Apple kind of know that this area of the OS can get into a mess also.

Nov 30, 2020 9:07 AM in response to johnno_uk

Johnno, I'm glad you found your way over here from Howard's blog. Thank you so much for your in-depth information. Most of the stuff is way above my pay grade. And I wouldn't get very far with my clients if I just said "buy a new computer and upgraded versions of your $$software." At least not until that's absolutely necessary, which at some point it will be!


Nov 30, 2020 12:44 PM in response to johnno_uk

You can probably switch off the updates with:

sudo defaults write /Library/Preferences/com.apple.security.plist ValidUpdateEnabled -string 0


Also it should be possible to make them look at your own machine with:

sudo defaults write /Library/Preferences/com.apple.security.plist ValidUpdateServer -string localhost


For rapid testing having the updates every minute

sudo defaults write /Library/Preferences/com.apple.security.plist ValidUpdateInterval -int 60


This all presumes High Sierra works near enough the same way as whatever version this code is from which is later by a couple of years.


Nov 30, 2020 3:36 PM in response to johnno_uk

I split up the binary into its components which was 7 binary plists plus the CMS blob.

Here it is as a zip https://drive.google.com/file/d/1l9eUBWrdCobJyNWLKzRBiLUd_4IZGtkC/view?usp=sharing

I haven't taken a look to see what are in the plists yet and and it's late here.


Hopefully we may see something in here. It wouldn't explain why only new installations are clobbered though unless updating from scratch is broken with this particular update presuming this is the one that is being downloaded which it may not be after all as the latest version is https://valid.apple.com/g3/v146 ...


v42 was the number showing in the system cert bundle so probably was the version that was current when the installer was built or that always ships with High Sierra. I have probably wasted my time splitting that up by hand but it will show what the updates look like anyway.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

App Store apps do not install properly on a fresh install of High Sierra on internal SSD or HDD

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.