I followed the instructions - but couldn't completely empty the trash after reboot. Some of the files were "in use". Can provide a list if important.
I tried to do the app store / purchase / upgrade even though not all the files had been deleted and got a different failure error message from the earlier one. AppStore prompted me for my AppleID and password then after a short wait (<10 seconds) the error dialog appeared: "The server gave an error during download: 503 Service Unavailable. Service Unavailable". Cancel / Retry buttons.
The var/log/install.log from the time of reboot to this error message appearing is below.
Clicking on "retry" gives the same error message after <10 seconds but no new entries in var/log/install.log
Could the error message at Jul 15 20:04:07 regarding a "certificate error" be the root cause?
Jul 15 19:53:01 HAL-MacMini installd[3977]: PackageKit: Removing client PKInstallDaemonClient pid=4209, uid=502 (/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/s toredownloadd)
Jul 15 19:53:01 HAL-MacMini installd[3977]: PackageKit: Removing client PKInstallDaemonClient pid=6719, uid=502 (/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/s toreassetd)
Jul 15 19:53:01 HAL-MacMini softwareupdated[4206]: Removing client SUUpdateServiceClient pid=4209, uid=502, installAuth=YES rights=(system.install.apple-software, system.install.apple-software.standard-user), transactions=1 (/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/s toredownloadd)
Jul 15 19:53:01 HAL-MacMini softwareupdated[4206]: Removing client SUUpdateServiceClient pid=6719, uid=502, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/s toreassetd)
Jul 15 19:54:21 HAL-MacMini softwareupdate_notify_agent[63460]: Running for LoginDone
Jul 15 19:54:21 HAL-MacMini softwareupdate_notify_agent[63460]: AssertionMgr: Take com.apple.softwareupdate.NotifyAgentAssertion assertion with type BackgroundTask for pid 63460
Jul 15 19:54:21 HAL-MacMini softwareupdated[4206]: Adding client SUUpdateServiceClient pid=63460, uid=502, installAuth=NO rights=(), transactions=0 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_notify_agent)
Jul 15 19:54:21 HAL-MacMini softwareupdate_notify_agent[63460]: Notifying with params: {
UpdateNotificationsOnly = 1;
}
Jul 15 19:54:21 HAL-MacMini softwareupdate_notify_agent[63460]: appstoreupdateagent notified
Jul 15 19:54:21 HAL-MacMini softwareupdate_notify_agent[63460]: AssertionMgr: Cancel com.apple.softwareupdate.NotifyAgentAssertion assertion for pid 63460
Jul 15 19:54:21 HAL-MacMini softwareupdated[4206]: Removing client SUUpdateServiceClient pid=63460, uid=502, installAuth=NO rights=(), transactions=0 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_notify_agent)
Jul 15 19:54:21 HAL-MacMini softwareupdated[4206]: Adding client SUUpdateServiceClient pid=63464, uid=502, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/s toreassetd)
Jul 15 19:54:22 HAL-MacMini softwareupdated[4206]: Failed to write state: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “com.apple.SoftwareUpdate.SUUpdateServiceDaemon.state”." UserInfo=0x7fed2fc60fe0 {NSURL=com.apple.SoftwareUpdate.SUUpdateServiceDaemon.state -- file:///, NSUserStringVariant=Folder, NSUnderlyingError=0x7fed2ae76210 "The operation couldn’t be completed. Operation not permitted"}
Jul 15 19:56:22 HAL-MacMini softwareupdate_firstrun_tasks[72]: swscan.apple.com is available: TRUE
Jul 15 19:56:22 HAL-MacMini softwareupdated[170]: softwareupdated: Starting with build 10.10.4 (14E46)
Jul 15 19:56:23 HAL-MacMini softwareupdated[170]: Adding client SUUpdateServiceClient pid=72, uid=200, installAuth=NO rights=(), transactions=0 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_firstrun_tasks)
Jul 15 19:56:23 HAL-MacMini softwareupdated[170]: BackgroundActivity: Activity check-in with Interval 21600
Jul 15 19:56:23 HAL-MacMini softwareupdated[170]: Removing client SUUpdateServiceClient pid=72, uid=200, installAuth=NO rights=(), transactions=0 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_firstrun_tasks)
Jul 15 19:57:38 HAL-MacMini softwareupdate_notify_agent[611]: Running for LoginDone
Jul 15 19:57:38 HAL-MacMini softwareupdate_notify_agent[611]: AssertionMgr: Take com.apple.softwareupdate.NotifyAgentAssertion assertion with type BackgroundTask for pid 611
Jul 15 19:57:38 HAL-MacMini softwareupdated[170]: Adding client SUUpdateServiceClient pid=611, uid=502, installAuth=NO rights=(), transactions=0 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_notify_agent)
Jul 15 19:57:38 HAL-MacMini softwareupdate_notify_agent[611]: Notifying with params: {
UpdateNotificationsOnly = 1;
}
Jul 15 19:57:38 HAL-MacMini softwareupdate_notify_agent[611]: appstoreupdateagent notified
Jul 15 19:57:38 HAL-MacMini softwareupdate_notify_agent[611]: AssertionMgr: Cancel com.apple.softwareupdate.NotifyAgentAssertion assertion for pid 611
Jul 15 19:57:38 HAL-MacMini softwareupdated[170]: Removing client SUUpdateServiceClient pid=611, uid=502, installAuth=NO rights=(), transactions=0 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_notify_agent)
Jul 15 19:57:38 HAL-MacMini softwareupdated[170]: Adding client SUUpdateServiceClient pid=614, uid=502, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/s toreassetd)
Jul 15 20:04:05 HAL-MacMini softwareupdated[170]: Adding client SUUpdateServiceClient pid=852, uid=502, installAuth=NO rights=(), transactions=0 (/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.W ebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent)
Jul 15 20:04:05 HAL-MacMini softwareupdated[170]: Scan for changed products with previous 0 updates:
Jul 15 20:04:05 HAL-MacMini softwareupdated[170]: SoftwareUpdate: Scan for client pid 170 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdated)
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: SoftwareUpdate: elapsed scan time = 0.4
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: SoftwareUpdate: Error encountered in scan: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “swscan.apple.com” which could put your confidential information at risk." UserInfo=0x7fe55842fd20 {_kCFStreamErrorDomainKey=3, NSLocalizedRecoverySuggestion=Make sure you're connected to the Internet, and then try again., _kCFStreamErrorCodeKey=-9808, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “swscan.apple.com” which could put your confidential information at risk., SUErrorRelatedCode=SUErrorCodeScanCatalogNotFound, NSErrorFailingURLKey=https://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-l ion-snowleopard-leopard.merged-1.sucatalog, NSErrorFailingURLStringKey=https://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-l ion-snowleopard-leopard.merged-1.sucatalog, NSErrorClientCertificateStateKey=0}
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: Scan got error The certificate for this server is invalid. You might be connecting to a server that is pretending to be “swscan.apple.com” which could put your confidential information at risk.
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: Ramped updates marked
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: Failed to write state: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “com.apple.SoftwareUpdate.SUUpdateServiceDaemon.state”." UserInfo=0x7fe558612a30 {NSURL=com.apple.SoftwareUpdate.SUUpdateServiceDaemon.state -- file:///, NSUserStringVariant=Folder, NSUnderlyingError=0x7fe558602a90 "The operation couldn’t be completed. Operation not permitted"}
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: Scan for changed products with previous 0 updates:
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: SoftwareUpdate: Scan for client pid 170 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdated)
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: SoftwareUpdate: elapsed scan time = 0.4
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: SoftwareUpdate: Error encountered in scan: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “swscan.apple.com” which could put your confidential information at risk." UserInfo=0x7fe558534940 {_kCFStreamErrorDomainKey=3, NSLocalizedRecoverySuggestion=Make sure you're connected to the Internet, and then try again., _kCFStreamErrorCodeKey=-9808, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “swscan.apple.com” which could put your confidential information at risk., SUErrorRelatedCode=SUErrorCodeScanCatalogNotFound, NSErrorFailingURLKey=https://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-l ion-snowleopard-leopard.merged-1.sucatalog, NSErrorFailingURLStringKey=https://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-l ion-snowleopard-leopard.merged-1.sucatalog, NSErrorClientCertificateStateKey=0}
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: Scan got error The certificate for this server is invalid. You might be connecting to a server that is pretending to be “swscan.apple.com” which could put your confidential information at risk.
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: Ramped updates marked
Jul 15 20:04:06 HAL-MacMini softwareupdated[170]: Failed to write state: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “com.apple.SoftwareUpdate.SUUpdateServiceDaemon.state”." UserInfo=0x7fe55852ed60 {NSURL=com.apple.SoftwareUpdate.SUUpdateServiceDaemon.state -- file:///, NSUserStringVariant=Folder, NSUnderlyingError=0x7fe558513fe0 "The operation couldn’t be completed. Operation not permitted"}
Jul 15 20:04:07 HAL-MacMini softwareupdated[170]: Adding client SUUpdateServiceClient pid=860, uid=0, installAuth=NO rights=(), transactions=0 (/usr/sbin/softwareupdate)
Jul 15 20:04:07 HAL-MacMini softwareupdated[170]: SoftwareUpdate: Scan for client pid 170 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdated)
Jul 15 20:04:07 HAL-MacMini softwareupdated[170]: SoftwareUpdate: elapsed scan time = 0.4
Jul 15 20:04:07 HAL-MacMini softwareupdated[170]: SoftwareUpdate: Error encountered in scan: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “swscan.apple.com” which could put your confidential information at risk." UserInfo=0x7fe5584166d0 {_kCFStreamErrorDomainKey=3, NSLocalizedRecoverySuggestion=Make sure you're connected to the Internet, and then try again., _kCFStreamErrorCodeKey=-9808, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “swscan.apple.com” which could put your confidential information at risk., SUErrorRelatedCode=SUErrorCodeScanCatalogNotFound, NSErrorFailingURLKey=https://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-l ion-snowleopard-leopard.merged-1.sucatalog, NSErrorFailingURLStringKey=https://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-l ion-snowleopard-leopard.merged-1.sucatalog, NSErrorClientCertificateStateKey=0}
Jul 15 20:04:07 HAL-MacMini softwareupdated[170]: Scan got error The certificate for this server is invalid. You might be connecting to a server that is pretending to be “swscan.apple.com” which could put your confidential information at risk.
Jul 15 20:04:07 HAL-MacMini softwareupdated[170]: Removing client SUUpdateServiceClient pid=860, uid=0, installAuth=NO rights=(), transactions=0 (/usr/sbin/softwareupdate)
Jul 15 20:04:13 HAL-MacMini installd[863]: installd: Starting
Jul 15 20:04:13 HAL-MacMini installd[863]: installd: uid=0, euid=0
Jul 15 20:04:13 HAL-MacMini installd[863]: PackageKit: Adding client PKInstallDaemonClient pid=614, uid=502 (/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/s toreassetd)
Jul 15 20:04:13 HAL-MacMini storeassetd[614]: SUAppStoreUpdateController: authorize
Jul 15 20:04:13 HAL-MacMini installd[863]: PackageKit: Adding client PKInstallDaemonClient pid=170, uid=200 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdated)