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 21, 2020 11:03 PM in response to DCamaion

But when was that High Sierra first installed on the HDD? Was it before November 11th or after?


All my new installations after Nov 11th are exhibiting the CODESIGNING error, while a High Sierra install done on an old Mac mini last year doesn't show the error. I can't test on the mini to see if it's the updates that cause the problem.


I contacted the Mac technical analysts at my organization and asked them to check; all their High Sierra installs are all working, However, they are all deployments done before September this year. They don't have any new High Sierra installs so were not aware of the issue, and only started root cause analysis a couple of days ago.


Preliminary analysis points to something in how the App Store talks back to the servers. Apparently the operating system and the apps seem fine, but shortly after OS configuration and app installation something changes, but it varies between immediate to up to around an hour when apps stop working.

Nov 23, 2020 2:39 PM in response to sallai32

I haven't heard anything new; just more people experiencing the issue.


PeterPeterPeterPeter on a different related discussion is recommend we post to the following two links.

https://discussions.apple.com/thread/252030900?answerId=253955318022


Please help by reporting to Apple here https://apple.com/feedback

and here https://feedbackassistant.apple.com !


The more reports they get the better because it causes the issue to come to the surface making it more visible in the tons of problem reports Apple gets.

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

Dec 2, 2020 8:56 AM in response to FrancoisQC

And here is a bit more.

  • The SN of "Apple Mac OS Application Signing" is present in version 42
  • The SN of "Apple Mac OS Application Signing" is not present in version 137
  • The SN of "Apple Mac OS Application Signing" is present in version 145 and 146 upgraded from version 42, with respective issuer flag of 0 and 16
  • The SN of "Apple Mac OS Application Signing" is not present in in version 146 upgraded from version 137



So the assumpion of DB upgrade issues seems to be the most probable issue.


It would be nice if Apple could just push a complete copy of a "clean" DB rather than pushing upgrade scripts to it...

Dec 4, 2020 8:55 AM in response to johnno_uk

johnno_uk wrote:


Will Yosemite versions of those two time machine files be compatible with High Sierra? If so, I can transplant her older ones from Time Machine into her current system. 


I'd be reluctant to offer solutions that block updates or run regularly to either clear keys or keep putting a donor database in place automatically as I don't really think it's a good idea to modify a machine in that way, especially somebody else's machine. ... As a get out of jail free card though the App I've been using to get serials easily hasn't failed so far to make a non running app run again just by loading it and dragging the app onto it. https://brockerhoff.net/RB/AppCheckerLite/

It works because this app shows both code signing certificates and App Store receipts and whether they are valid or not plus crucially the way it does that is to call APIs that make trustd make an OCSP request to Apple (this is a online check for just one certificate vs getting a set of bundled updates proactively) which will find the certificates to be good. That good state will hang about for up to 3 hours and so apps can be launched again.

I also don't like those solutions that block updates or run regularly. I've done that to my own machine in the past but then weeks later have to spend an hour doing research to remember how to undo it. No way will I do that to somebody else's computer.


Your explanation of why AppChecker will temporarily fix a non-launching app explains why the same thing happens with What's Your Sign. I'll point out again that WYS also allowed the App Store to download something when I ran it on the App Store app. People who are having trouble with downloads might give that a try.


Thank you so much for your suggestions.

Dec 4, 2020 11:58 AM in response to johnno_uk

I'll watch that video and I do back your theory.

By nature, PKI and its rules, the AIA extension containing an OCSP responder is THE authority to know if a cert has been revoked or not.

If you build an OS that relies on its own mechanism to check for certificate revocation (trustd) rather than having your OS follow PKI rules and hit the OSCP server, then you are walking on eggshells and vulnerable to this type of issue.


This of it. Assuming HS was to rely on OCSP, and OCSP only, if a cert is revoked by mistake one day, the OCSP responder will respond with GOOD the other day and life will go on. Small glitch, small hiccup.


But then if trustd builds and maintains its own source of trustyness rather than looking up the OCSP server, then this home-made source of trustyness can become, well, corrupted.


And maybe Johnno_uk is right, maybe they haven't thought of a use case where a cert could be accidently marked as revoked by an OCSP server one day, and marked as valid the next day.


oops....

Dec 5, 2020 1:02 PM in response to cavenewt

Hi all,


So I have this same issue on an old iMac late 2009 (been trying to fix for couple weeks before reading this thread doh!) - I recently did a clean install when the issue was introduced - I've done multiple clean installs since all with the same result.


One thing I did try today was to install High Sierra in a Virtual Machine (Parallels) - I used the same USB Bootable High Sierra key I previously used on the iMac above. It worked perfectly in the VM using the same Apple ID - all apps downloaded, installed and opened perfectly!


This got me thinking if the issue is Apple somehow links the certificates (via iCloud/keychain) to the hardware? I wonder if removing the iMac from the apple account and doing a clean install again would fix it? (I tried removing the machine from iCloud account and re-signing in but this did not work).


Interesting that it works in the VM but not on the physical machine - any thoughts?









Dec 8, 2020 5:17 AM in response to johnno_uk

Thanks so much to everyone who has worked so hard on this and helped find solutions -- you are amazing!


I posted yesterday before I realized how extensive the thread was, and that there were some solutions (even if temporary) floating around. I was able to get my App Store apps working by replacing the valid.sqlite3 file with the older one, which was very exciting! As of today (day 2) the apps are still launching.


A few questions I'm wondering about:


  1. If I've replaced the valid.sqlite3 file with the older version (as posted by softmusic on p.13 of this thread), is this just temporary -- will it go back to the way it was at some point? Also, will it cause any other problems on the computer?
  2. Does it matter if the hard drive is formatted with HFS+ or APFS? I'm running it on an internal SSD, but I first installed High Sierra on it using a SATA/USB adapter, so it ended up with the HFS+ format. Hope this is okay.
  3. So far I haven't installed the Security Updates from the App Store. With this solution, does it matter if I install those or not?


Many thanks again!

Dec 13, 2020 1:27 PM in response to SunPoppy

That's a sensible question. The answer is that No, the mechanism of phoning home is to ask primarily for news of certificates that have become considered bad. So all apps and their certificates will be considered innocent until proven guilty locally meaning they will keep working at least until they expire which is years away.


The only reason phoning home was needed (to make apps work again) this time was to correct an update where Apple had said their own certificates were bad which was clearly an error.


If you were to have never connected the machine to the Internet then apstore apps copied from a backup say would have worked too because you'd never have gotten the erroneous update.


It was really just the worst time to install High Sierra since it conincided with Apple's blunder.

Nov 18, 2020 11:41 AM in response to GrenadeBait

I just finished a clean installation without connecting to the internet during the initial setup. The first thing I did once I logged into the desktop was disabling automatic updates. Then I connected the computer to the internet and installed iMove, Pixelmator, Tweetbot and they all worked. I restarted the computer several times to check if the downloaded apps would still work and they worked. Then I downloaded Keynote and it didn’t work and when I tried the previously downloaded apps (Pixelmator, iMovie, Tweetbot) they stopped working and gave me the same error again.


Don’t waste your time trying another clean install. We made everything we can and the only solution is Apple fixing this.

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.