You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Is the New Security Update Working on My Computers?

I have noticed that the XProtect.plist on 2 different computers have never updated since I installed the new Security Update on June 1. I have an Apple Care Product Specialist trying to figure it out.


But, I ran across this (pasted below) today when checking Console, and if anyone can dechiper logs, maybe some independent analysis will tell me why I'm not getting the "MacDefender" scan this security update was supposed to provide (and why the subject .plist has never updated since installing the Security Update on 2 10.6.7 Intel iMacs 4 days ago).


If anyone can dechiper the log and tell me what I might do to correct this problem, kudos!


The log entries (which contain a series of "failed") are:



Version:1.0StartHTML:0000000149EndHTML:0000004433StartFragment:0000000199EndFrag ment:0000004399StartSelection:0000000199EndSelection:00000043996/4/11 8:59:20 AM com.apple.launchd[1] (com.apple.xprotectupdater[39]) Exited with exit code: 255
6/4/11 8:59:24 AM com.apple.notifyd[12] EV_DELETE failed for file watcher 22
6/4/11 8:59:24 AM com.apple.notifyd[12] EV_DELETE failed for file watcher 21
6/4/11 8:59:24 AM com.apple.notifyd[12] EV_DELETE failed for file watcher 20
6/4/11 8:59:24 AM com.apple.notifyd[12] EV_DELETE failed for file watcher 19
6/4/11 8:59:24 AM com.apple.notifyd[12] EV_DELETE failed for file watcher 18
6/4/11 8:59:24 AM com.apple.notifyd[12] EV_DELETE failed for file watcher 17
6/4/11 8:59:24 AM com.apple.notifyd[12] EV_DELETE failed for file watcher 15
6/4/11 8:59:24 AM com.apple.notifyd[12] EV_DELETE failed for file watcher 16
And
6/4/11 12:15:50 PM com.apple.launchd[1] (com.apple.xprotectupdater[39]) Exited with exit code: 255
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 22
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 21
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 20
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 19
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 18
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 17
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 15
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 16
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 30
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 29
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 28
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 27
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 26
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 25
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 23
6/4/11 12:15:54 PM com.apple.notifyd[12] EV_DELETE failed for file watcher 24
6/4/11 12:15:55 PM com.apple.WindowServer[80] Sat Jun 4 12:15:55 {INFO REMOVED}-imac.local WindowServer[80] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
6/4/11 12:16:32 PM com.apple.launchd.peruser.501[126] (com.apple.ReportCrash) Falling back to default Mach exception handler. Could not find: com.apple.ReportCrash.Self
6/4/11 12:16:39 PM com.apple.launchd.peruser.501[126] (com.apple.Kerberos.renew.plist[161]) Exited with exit code: 1
6/4/11 1:03:18 PM System Preferences[222] Could not connect the action resetLocationWarningsSheetOk: to target of class AppleSecurity_Pref
6/4/11 1:03:18 PM System Preferences[222] Could not connect the action resetLocationWarningsSheetCancel: to target of class AppleSecurity_Pref

Posted on Jun 4, 2011 10:29 AM

Reply
177 replies

Jun 10, 2011 6:22 PM in response to MadMacs0

Thanks.


My test at the 24 hour mark failed. I watched the system.log, which seems to be the most informative of the bunch. Nothing. No messages about xprotectupdate. So it would seem that launchd is not doing the repetitive task. I was surprised.


I manually did the update by toggling the checkbox in System Preferences/Security. Now at version 10, as you said.

Jun 10, 2011 7:44 PM in response to baltwo

baltwo wrote:

Apparently, the updaters broken ...

It seems that it is for some users but not others, as reported in this MacWorld article. It also seems that some users need to use sudo for the terminal command but other don't. For me, permissions are set to -rwxr-xr-x for the XProtectUpdater executable & the command seems to work without sudo, perhaps because of that?

Jun 10, 2011 8:30 PM in response to R C-R

R C-R wrote:

It also seems that some users need to use sudo for the terminal command but other don't. For me, permissions are set to -rwxr-xr-x for the XProtectUpdater executable & the command seems to work without sudo, perhaps because of that?

As I commented in the MacWorld article, the problem is not running the updater, anybody can do that. But if the updater finds it needs to update the XProtect.plist with a new set of defs it needs to have write permission to that file which appears to be -rw-r--r--. At that point it will fail if you aren't using sudo.

Jun 11, 2011 12:30 PM in response to steveBinLA

As I noted earlier the system.log has more information to consider. For me it showed that, as others have pointed out here, XProtectUpdater was failing at boot time because the internet connection is offline. Since I am on a wi-fi network (AEBS with DHCP address assignment), I wondered if the problem was that the wi-fi was not established yet when XProtectUpdater runs. So I tried a wired Ethernet connection, rebooted, and then inspected the system.log. No change. The internet connection is still offline when XProtectUpdater runs.


One guess at why the daily update check does not occur is that at boot time when launchd encounters the

com.apple.xprotectupdater.plist entry in the system's LaunchDaemons directory, it tries to execute XProtectUpdater, which cannot find the internet and returns an error code. Consequently I suspect that launchd does not enter XProtectUpdater into a queue for recurring tasks. When XProtectUpdater is run at other times, either from the command line or when the System Preferences/Security checkbox is toggled, then launchd has no access to the xprotectupdater.plist configuration file and so does not create a recurring task. But since the internet connection in online, the update process succeeds.


The mystery to me is why the recurring update succeeds for some people. I wonder if it relates to how their internet connections are made, perhaps not by the default DHCP address assignment but rather by using a manual and fixed IP assignment. My question to those members of the group for whom the daily updates succeed is: how are you connected to the internet?

Jun 11, 2011 1:10 PM in response to steveBinLA

I want to call everybody's attention to a Macworld article http://www.macworld.com/article/160470/2011/06/malware_def_current.html, then read the comments which will lead you to an ongoing forum discussion validating most of the observations we have made and now has added a couple of more things to consider.


There some users who claim that the "Safe Downloads Version" tool that many of us use has caused the loss or corruption of KeyChain data. My own suspicions are that it's the XProtect process that caused this, but it's easier to blame the tool than to suspect the Apple software. Especially when it's not possible to analyze exactly what the tool is doing as it's a "run-only" AppleScript.


Another user just posted:

when a Launch Daemon is set to run with a time interval (such as 86400 seconds or 24 hours), the timer only counts time while the computer is awake. If the computer is only awake for 2 hours a day, it will take 12 days before the next run.To get it to run consistently, the launch daemon plist must specify to run it at a specific time of day. If the compute is asleep at the scheduled run time, it will run as soon as it wakes up.

Although that was not my understanding before now, I can confirm that one of the 24-hour checks that occurred after having put my Mac to sleep for about 6 hours was about 6 hours late. I think this explains a lot of the issues we've been puzzled over.

Jun 11, 2011 1:23 PM in response to steveBinLA

steveBinLA wrote:


One guess at why the daily update check does not occur is that at boot time when launchd encounters the

com.apple.xprotectupdater.plist entry in the system's LaunchDaemons directory, it tries to execute XProtectUpdater, which cannot find the internet and returns an error code. Consequently I suspect that launchd does not enter XProtectUpdater into a queue for recurring tasks. When XProtectUpdater is run at other times, either from the command line or when the System Preferences/Security checkbox is toggled, then launchd has no access to the xprotectupdater.plist configuration file and so does not create a recurring task. But since the internet connection in online, the update process succeeds.

I think you are on to something here. I try to remember to reboot this iMac about once a week to clear the cobwebs, probably far less than any of you. As far as I can determine I haven't had one automatic XProtect run for several days. Although the Launch Daemon is still listed as a process for launchd to watch, I'll bet it's no longer in the queue due to the first manual attempt I made after rebooting. So every time one of us attempts a manual update we stop the automated process.

Jun 11, 2011 2:38 PM in response to MadMacs0

MadMacs0 wrote:


Another user just posted:

when a Launch Daemon is set to run with a time interval (such as 86400 seconds or 24 hours), the timer only counts time while the computer is awake. If the computer is only awake for 2 hours a day, it will take 12 days before the next run.To get it to run consistently, the launch daemon plist must specify to run it at a specific time of day. If the compute is asleep at the scheduled run time, it will run as soon as it wakes up.

Although that was not my understanding before now, I can confirm that one of the 24-hour checks that occurred after having put my Mac to sleep for about 6 hours was about 6 hours late. I think this explains a lot of the issues we've been puzzled over.


You may well be right, but this behavior does conflict with the launchd.plist man page documentation for the StartInterval key:

StartInterval <integer>

This optional key causes the job to be started every N seconds. If the

system is asleep, the job will be started the next time the computer

wakes up. If multiple intervals transpire before the computer is woken,

those events will be coalesced into one event upon wake from sleep.


It would not be the first time that actual operation does not match the documentation.

Jun 11, 2011 2:52 PM in response to MadMacs0

MadMacs0 wrote:


Although the Launch Daemon is still listed as a process for launchd to watch, I'll bet it's no longer in the queue due to the first manual attempt I made after rebooting. So every time one of us attempts a manual update we stop the automated process.


I hope I'm not being dense here, but could you elaborate on where "Launch Daemon is listed as a process for launchd to watch"? I thought launchd was the launch daemon. Is the list shown in Activity Monitor? Or is it shown in the result of a "launchctl list" command? (In my case a 'launchctl list' does not seem to reveal root level repetitive processes, e.g. periodic daily, or show XProtectUpdater.)

Jun 11, 2011 4:27 PM in response to steveBinLA

steveBinLA wrote:

Is the list shown in Activity Monitor? Or is it shown in the result of a "launchctl list" command? (In my case a 'launchctl list' does not seem to reveal root level repetitive processes, e.g. periodic daily, or show XProtectUpdater.)

Sorry to have not been clearer. I should have anticipated some would check for themselves.


In Terminal type "sudo launchctl list" then do a Find for "xprotect" to see if it's loaded into launchd's root processes. If everything was normal about the last run you should see:

- 1 com.apple.xprotectupdater

If you use "sudo launchctl list -x com.apple.xprotectorupdater" it will show the job information output as an XML property list, which I have not yet been able to fully interpret.

Is the New Security Update Working on My Computers?

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