Friday, June 5, 2009

Solved: Could not setup Mach task special port 9: (os/kern) no access

I've noticed, for quite some time, that I've been getting *hundreds* of log messages like this in the Console system log:

6/06/09 8:30:00 AM com.apple.launchd[1] (0x40e8a0.cron[4895]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:30:00 AM com.apple.launchd[1] (0x40e990.cron[4896]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:35:00 AM com.apple.launchd[1] (0x40d960.cron[4929]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:40:00 AM com.apple.launchd[1] (0x40db90.cron[4965]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:45:00 AM com.apple.launchd[1] (0x40e8a0.cron[5009]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:45:00 AM com.apple.launchd[1] (0x40eb30.cron[5010]) Could not setup Mach task special port 9: (os/kern) no access
6/06/09 8:50:00 AM com.apple.launchd[1] (0x40db40.cron[5067]) Could not setup Mach task special port 9: (os/kern) no access


A hint to me should have been that they happened every 5 minutes, and also at every 15 minutes, which coincidentally was when I had backup tasks in my crontab.

I'd searched the internet quite a few times and never found the answer. Finally some results.

So, following those instructions, I've removed those tasks from cron and have used Lingon to make modern launchd equivalents. Learn more technical stuff here.

Launchd is pretty good, and Lingon makes it great.

No comments: