Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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 Best reply

Posted on Nov 26, 2020 5:44 AM

Hope this helps everyone:

  1. Open a terminal
  2. run the following command
sudo rm -f /Library/Keychains/crls/valid.sqlite3


I haven't tested, but I think a reboot is not even necessary. And this does survive a reboot.


It looks like this file may be used by "trustd". So worse case scenario, this will rebuid trustd's cache, so that should not affect the security of your system.


Enjoy!

Similar questions

447 replies

Nov 25, 2020 3:37 PM in response to Community User

The issue only seems to appear on new clean installs after Nov 11-ish. My org's fleet of Macs still has a lot of high Sierra and none of them are showing this error, but they were all installed before the November 11 period.


You could try installing an App Store app you don't care about to see if the issue affects your installation. On a recent clean High Sierra install none of the App Store apps are working, but on another High Sierra machine with an old installation (patched) the App Store apps are working; we haven't identified why, but it has other problems LOL.

Nov 25, 2020 4:31 PM in response to FrancoisQC

@ FrancoisQC


I tried the codesign extract command on all four of my apps but could not find any extracted certificates. I searched the working directory I used, my home directory, the Contents subdirectory within each app bundle, and the root directory but could not find them. Obviously trying to run the openssl commands gave up "file not found" type errors. So, unless these extracted certificates are being slyly hidden in some other directory, the extraction command may have not extracted anything.


edited for grammar



Nov 26, 2020 5:50 AM in response to softmusic

softmusic, I think you're on to something, but here is a twist.

I have 2 machines that both have High Sierra. Neither one is a recent install of High Sierra, but the problem occurred with an update to 10.13.6. On the Macbook Pro (that doesn't have this problem) I updated to 10.13.6 using the app store updates. With the desktop machine (that has this problem) I downloaded the combo installer/updater and used that to update from an earlier version of High Sierra to 10.13.6.

Nov 26, 2020 6:53 AM in response to FrancoisQC


@FrancoisQC

I instead ran this command

sudo mv /Library/Keychains/crls/valid.sqlite3 /Library/Keychains/crls/valid-***.sqlite3

and a new 0 byte valid.sqlite3 file was immediately created.

ls -l /Library/Keychains/crls/

shows

-rw-r--r-- 1 root wheel 17293312 Nov 24 20:17 valid-***.sqlite3

-rw-r--r-- 1 root wheel 0 Nov 26 07:58 valid.sqlite3

Now we'll see what happens tomorrow morning.


EDIT

lol

The forum won't post the three letters which are doubleyou Tee Eff

Nov 26, 2020 7:10 AM in response to FrancoisQC

We're probably in autopsy territory now, but I wanted to add a data point.


In addition to launch failure, my problem system would not download any iWork apps via the App Store. It would offer me the older compatible versions but then threw up an error message before the actual download started. So I ran What's Your Sign on the App Store app itself (This was in Safe Boot mode, but that probably doesn't matter). Now the downloads are working fine.

Nov 26, 2020 8:39 AM in response to FrancoisQC

I'm not sure if this would be helpful or not, but before deleting the .sqlite3 file I tried downloading Tweetbot 3 for Twitter from the Mac App Store, the app was just updated yesterday so it is not an old app or an old version of the app. When I launched the app it crashed immediately then I deleted .sqlite3 and the app worked, then I restarted the computer and tried launching the app, but it crashed so I removed .sqlite3 again and tried launching the app again and it worked.


So as a temporary solution you can delete .sqlite3 every time you want to run an app that has been downloaded from the Mac App Store.

Nov 26, 2020 8:57 AM in response to FrancoisQC

OK, I'm not a terminal jockey so could you explain this a little more? What does it do?—as long as you leave Terminal open it repeatedly deletes that database?


I need to find some solution for my client, who is non-technical, and which won't require undoing something when Apple finally fixes this. That's why I haven't wanted to try any solutions that involve turning off SIP, or messing with the Hosts file.

Nov 26, 2020 9:22 AM in response to FrancoisQC

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

Nov 26, 2020 9:25 AM in response to cavenewt

@cavenewt: ok. ok. that was just to have a bit of fun.


After I took upon myself to not be lazy, here is the command that will remove the offending revoked certificate from the trustd database:


sudo sqlite3 /Library/Keychains/crls/valid.sqlite3 'delete from serials where hex(serial) = "04CA81F77D5E33F7"'


Now what is left to see is if the certificate serial number will be added back after a reboot.


I'll know soon.


Nov 26, 2020 10:05 AM in response to softmusic

I didn't have any luck with the terminal command (later: my fault, typo). So instead, I opened up the folder using command-shift-G and just dragged the new file into there (after prefixing the old file's name with a couple of xx so it would remain as a backup).


Applications are now launching even after a reboot. Cross fingers.


I am curious what might happen the next time that database is written to — if Apple makes a change, or if another application is downloaded from the App Store…?


But my client wants her computer back so we'll go with this for now! Thank you guys for all your hard work.

Nov 26, 2020 11:15 AM in response to FrancoisQC

FrancoisQC wrote:


I don't want to block OCSP requests by modifying /etc/hosts, this is a bad security practice and does not address the real issue.


Have you tried doing that and disabling SIP like I suggested? It maybe a "bad security practice" but a good practical measure, at least for now. If that proves to be a temporary workaround that works until Apple fixes the issue then what's the grief of having your apps up and running? If it doesn't that's understandable.

Also, modifying hosts by blocking OCSP is not going to do any harm. This protocol is used by the "trustd" process which makes queries every time you open Mac App Store. You may experience issues with MAS connectivity at best but it's not going to compromise your computer and invite hackers to steel your bank account info immediately after you modify hosts and disable SIP.

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 ID.