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 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
Question marked as Top-ranking reply

Nov 26, 2020 5:44 AM in response to FrancoisQC

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!

Nov 25, 2020 2:05 PM in response to FrancoisQC

@ FrancoisQC


Apparently I don't have an issue with High Sierra and App Store apps at the moment (keeping fingers crossed). I rebuilt High Sierra about six months ago from fresh after I installed an SSD to replace the spinner in my Mac mini 4,1 (Core 2 Duo... yes it still works fine).


Per your request I applied the codesign Terminal command to the 'File Spy'.app I installed at the time of the software rebuild. Here's what I got:

Authority=Apple Mac OS Application Signing

Authority=Apple Worldwide Developer Relations Certification Authority

Authority=Apple Root CA


And another for 'Ka-Block!'.app:

Authority=Apple Mac OS Application Signing

Authority=Apple Worldwide Developer Relations Certification Authority

Authority=Apple Root CA


Finally another for 'Magic Lasso'.app:

Authority=Apple Mac OS Application Signing

Authority=Apple Worldwide Developer Relations Certification Authority

Authority=Apple Root CA


oops... found one more, 'The Unarchiver'.app:

Authority=Apple Mac OS Application Signing

Authority=Apple Worldwide Developer Relations Certification Authority

Authority=Apple Root CA


That's it. Those are the only four apps I've installed through the App Store. All of the other non-Apple apps have come from either individual third-party websites or I've installed using MacPorts. At this point, given all the issues High Sierrans have had since the release of Big Sur, I'm not comfortable nor confident in installing App Store apps until such a time when Apple addresses this (if at all, given the impending/actual EOL status of High Sierra).


Hope the info I've provided helps in your research.

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 29, 2020 9:50 AM in response to cavenewt

cavenewt wrote:

Incidentally, here is my exact HS version as reported in the System Report:
macOS 10.13.6 (17G14033)


In case it matters, this is the version number I have since rebuilding my machine in March 2020 and just applying software updates via the command line 'softwareupdate' command: 10.13.6 (17G14042)

Dec 1, 2020 1:53 PM in response to GrenadeBait

For what it is worth, I finally got around to downloading four apps from Mac App store. (As a brief review, I rebuilt my High Sierra install in Feb/Mar 2020 so initially I did not have issues with Mac App store installs/updates.) Those apps were three from Apple (Numbers, Keynote, and Pages) and one from Cutedge (Liya).


To make it short, all four apps installed (for Pages I had to sign out of the App store and sign in again as the download for that errored out four times until I did). While I can launch and use all four apps from the Finder and Dock, the App store does not recognize the fact that they are installed. Neither the Purchase page nor the product page for each of these four apps shows them to be installed.


However, all app store apps installed prior to the Nov 12-ish time frame show as installed in the App store and the Open buttons for each work as expected.


As to the "valid.sqlite3" database, mine is version 145 @ 7.2 MB in size.


[edited for grammar]

Dec 8, 2020 5:49 PM in response to jlhopes22

jlhopes22 wrote:

That's great news! Will that update come down automatically, or is there something we need to do?


I have no idea how I received the new version 147 database but I suspect I got it when I had to reload the OS from the recovery drive earlier today.


While I had hope to not have to touch my seemingly working system, messing around with Android phone app transfer utilities made for macOS left my system in a highly unstable state when I went through the uninstall process for those apps. Sadly, I was not able to Safe Boot so I crossed my fingers and did the OS reload from Recovery. Apparently it all worked AND I got the new updated DB. Previous to the recovery, mine was version 145.


Do I suggest everyone do an OS reload from Recovery? Not unless you really have to I suppose. I haven't yet checked the status of the App Store pages to see if they are now synched with my installed apps but I'll do that later. For now I'm just thankful the recovery went without an issue thus far.

Dec 8, 2020 7:52 PM in response to Community User

Stephen Adams wrote:

I haven't yet checked the status of the App Store pages to see if they are now synched with my installed apps but I'll do that later.


Found the time to play with the App Store and no, the status of apps I installed is not in synch with the Purchased page or individual product page in the App Store app. But, all the apps I did install are working just fine regardless of what the App store shows. :)

Nov 25, 2020 6:38 PM in response to FrancoisQC

ok, so here is another update. After extracting all certs from the .app, and looking at codesign0 (Apple Mac OS Application Signing), the cert does not have a CRLdp, so CRL revocation is not the issue. But it does have a AIA extension which points to the OCSP server at http://ocsp.apple.com/ocsp03-wwdr08.


Using "openssl ocsp" to verify the certificate, the OCSP server responds with a "good" response, meaning the certificate is indeed valid. Looking at the network trace of this OCSP request, we can see that the OCSP response is signed (ok, the response is secure), but extracting the signing certs from the pcap, the cert who signed the response is like this:

    • Common Name: WWDR OCSP Responder MG2
    • Issued by: Apple Worldwide Developer Relations Certificate Authority
      • the one expiring on Feb 7, 2023
    • Valid from: November 4, 2020 at 5:03:29 PM GMT-5:00
    • Valid until: December 16, 2020 at 5:03:29 PM GMT-5:00


This is strangely close to when people seem to have started experiencing issues...


Both the OCSP response signer and its issuer are not in the default System Roots keychain. And manually adding them to the System keychain does not help, the Apple Mac OS Application Signing certificate remains detected as revoked.


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.


Nov 14, 2020 11:58 AM in response to PeterPeterPeterPeter

Since my original post yesterday I have reverted everything to the original state and the problem persists! All software from the App Store does not work. Apps are either improperly installing or they will not run on a vanilla macOS Sierra install!


I also noted that if I click an app's 'install 'button in the App Store the download and install commence and then the button says 'installed', good. However, when I check the applications folder the app is installed but either crashes or does nothing when launched. When I return to the App Store and refresh the page the app button shows 'install' as if it hasn't been installed.


I do not know what has changed. Everything else is working fine including all the Apple software that came with the macOS and all the software I install from the internet. It's as if the App Store app isn't letting the macOS run the apps. To me, it looks like a DRM miscommunication between the App Store and the macOS, because the apps do seem to download and install but the App Store doesn't know it and won't let the macOS launch the app.


I have exhausted almost all my theories in my troubleshooting except one. Maybe there is an issue with my Apple ID and the Apps store in High Sierra so I'm going to restore the Mac back to a default install of High Sierra and have someone else with an Apple ID login to the vanilla macOS and try to download and install apps.

Nov 14, 2020 7:37 PM in response to BDAqua

"...disconnecting from the Internet...!" Madness...!

Is that even a safe thing to do!

What if I can't get it back!

What if the authorities find out! :-D


No seriously, I tried that early on and I observed the same behaviour: some apps crash (excerpt from report below); some apps report they are not properly installed; and some apps do nothing at all.


I'm no expert in reading the crash report but this section of the report suggests the apps do not have or are not getting the appropriate signature to allow them to run in the OS.


Exception Type: EXC_CRASH (Code Signature Invalid)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace CODESIGNING, Code 0x1


Nov 15, 2020 9:32 AM in response to M-Ibrahim

Sounds exactly the same as what I have been observing.


I noted an oddity in the clean install of High Sierra; After the install when it informs that there are updates it applies four updates (if I recall correctly, two are security, one for mobile devices, and I think safari). The two security updates end n 005, and 006. Later after updating 004 appears and and error that it could nor install. I’m just wondering now if the App Store issue is related.


im going to give it another day or so before trying another clean install and update, but I was wondering if anyone with the App Store issue has tried the app installs on a clean High Sierra install without the latest updates?



Nov 15, 2020 9:43 AM in response to GrenadeBait

Exactly the same situation here. After clean installing High Sierra I got the same updates in the App Store. Security update 2020-005 then Security update 2020-006 and after installing those security updates I got the 004 security update error message. I'm not sure if this issue is related to the wide spread issue with Apple servers that happened on Thursday, but if it is the same issue why hasn't it get fixed for us while it got fixed for others?


Did you try disabling Gatekeeper and installing an app from the AppStore?


Open the Terminal app then enter the following command syntax:

sudo spctl --master-disable


if it didn't solve the issue re-enable Gatekeeper run the following command in the Terminal app

sudo spctl --master-enable

Nov 15, 2020 11:22 AM in response to GrenadeBait

I have had the same issue. Had no issues until last Thursday (release of Big Sur). I have wiped my SSD and did a new OS install of High Sierra (10.13.6) but still having the same issue even after all security updates have finished and have been installed. Even tried signing the program myself using Xcode and in terminal I did "sudo codesign --force --deep --sign - /Applications/Application.app". It seemed to have worked momentarily but again, reverted back to the same issue, and some apps continued to not open. Contacted apple support and they clearly weren't aware of the situation, nor could they help me. Definitely something on Apples end. Just hoping they can fix it sometime soon as I do need some of these apps for work and such.

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.