我已经读了几天系统日志文件中的这些错误。
25/11/11 21:31:43,373 com.apple.launchd: (com.apple.launchd.peruser.32697[92747]) getpwuid("32697") failed
25/11/11 21:31:43,374 com.apple.launchd: (com.apple.launchd.peruser.32697[92747]) Exited with code: 1
25/11/11 21:31:43,374 com.apple.launchd: (com.apple.launchd.peruser.32697) Throttling respawn: Will start in 10 seconds
我有OSX Lion 10.7.2。
这些消息每隔几秒钟就会遍历一次,我已经对getpwuid()进行了监视,这似乎是系统调用。
我还阅读了一些有关此问题的超级用户文章:
https : //superuser.com/search?q=com.apple.launchd.peruser,
但在控制台中运行报告的命令并没有给我任何有关如何解决此问题的提示。
我已将此错误的首次出现追溯到11月20日,这是system.log文件的前几行:
Nov 20 17:22:10 MacBook-Pro com.apple.backupd[45360]: Deleted /Volumes/Time Machine/Backups.backupdb/MacBook Pro/2011-11-18-215307 (64.9 MB)
Nov 20 17:22:26 MacBook-Pro com.apple.backupd[45360]: Deleted /Volumes/Time Machine/Backups.backupdb/MacBook Pro/2011-11-18-205448 (88.3 MB)
Nov 20 17:22:26 MacBook-Pro com.apple.backupd[45360]: Post-back up thinning complete: 5 expired backups removed
Nov 20 17:22:28 MacBook-Pro com.apple.backupd[45360]: Backup completed successfully.
Nov 20 17:23:47 MacBook-Pro iCal[45376]: ServerNotifications: Setting delegate to APSD
Nov 20 17:23:47 MacBook-Pro iCal[45376]: ServerNotification: configureService called with nil password
Nov 20 17:23:55 MacBook-Pro iCal[45376]: Subscription request completed
Nov 20 17:28:47 MacBook-Pro com.apple.launchd[1] (com.apple.launchd.peruser.32697[45390]): getpwuid("32697") failed
Nov 20 17:28:47 MacBook-Pro com.apple.launchd[1] (com.apple.launchd.peruser.32697[45390]): Exited with code: 1
Nov 20 17:28:47 MacBook-Pro com.apple.launchd[1] (com.apple.launchd.peruser.32697): Throttling respawn: Will start in 10 seconds
在此之后(确实)有大量此类消息。
有人有提示吗?
的输出是什么
—
丹尼尔·贝克
sudo launchctl bstree -j
,它包含一行com.apple.launchd.peruser.32697
吗?子元素是什么?
touch foo的输出;须藤chown 32697 foo; ls -l foo是:触摸:foo:权限被拒绝,然后:-rw-r--r-- 1 32697工作人员0 Nov 11:55 foo
—
nick2k3
确定,因此您的系统上不存在用户ID。
—
丹尼尔·贝克
launchctl
虽然会很有趣。
touch foo ; sudo chown 32697 foo ; ls -l foo
?