LaunchDaemon unable to launch and causing messages in log
Hi, When I am trying to Launch my launchdaemon I am getting an error "Bug: launchd_core_logic.c:3011 (23585):0: initgroups(loginname, desired_gid) != -1" and my daemon is not getting launched. Please let me know what is the reason for this error. Thanks Pavan
Pavan, Please provide the property-list file you are using to help us diagnose this further. davez On Sep 11, 2008, at 10:37 AM, pavan kumar wrote:
Hi,
When I am trying to Launch my launchdaemon I am getting an error "Bug: launchd_core_logic.c:3011 (23585):0: initgroups(loginname, desired_gid) != -1" and my daemon is not getting launched. Please let me know what is the reason for this error.
Thanks Pavan _______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
HI Dave, Please find attached the property-list to diagnose further. Basically while installation of my application, we will create a group sysmac. We are not seeing this issue on all machines. On only few machines, we are having this Launchd error occurring. Please help us in resolving this issue. Thanks Pavan On Fri, Sep 12, 2008 at 1:02 AM, Dave Zarzycki <zarzycki@apple.com> wrote:
Pavan,
Please provide the property-list file you are using to help us diagnose this further.
davez
On Sep 11, 2008, at 10:37 AM, pavan kumar wrote:
Hi,
When I am trying to Launch my launchdaemon I am getting an error "Bug: launchd_core_logic.c:3011 (23585):0: initgroups(loginname, desired_gid) != -1" and my daemon is not getting launched. Please let me know what is the reason for this error.
Thanks Pavan _______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
Pavan, Either the group record is missing on the machines in question, or launchd is getting confused by the combination of having the GroupName key without the presence of the UserName key. davez On Sep 12, 2008, at 8:42 AM, pavan kumar wrote:
HI Dave,
Please find attached the property-list to diagnose further. Basically while installation of my application, we will create a group sysmac. We are not seeing this issue on all machines. On only few machines, we are having this Launchd error occurring.
Please help us in resolving this issue.
Thanks Pavan
On Fri, Sep 12, 2008 at 1:02 AM, Dave Zarzycki <zarzycki@apple.com> wrote: Pavan,
Please provide the property-list file you are using to help us diagnose this further.
davez
On Sep 11, 2008, at 10:37 AM, pavan kumar wrote:
Hi,
When I am trying to Launch my launchdaemon I am getting an error "Bug: launchd_core_logic.c:3011 (23585):0: initgroups(loginname, desired_gid) != -1" and my daemon is not getting launched. Please let me know what is the reason for this error.
Thanks Pavan _______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
<com.mycompany.sysmac.MyApp.plist>
Hi Dave, I checked that Group record is available. I used the command "dscl . read /Groups/sysmac" and it has listed the proper information. I did a comparison between the machines where this plist is working and non working machine but I dont see any specific differences otherthan, there are three more groups like com.apple.sharepoint.group.3, com.apple.sharepoint.group.4, com.apple.sharepoint.group.5. But these seems to be linked with the filesharing groups. Can there be any other reasons to get this error? Also could you please tell me what exactly the error mean? Thanks & Regards Pavan On Fri, Sep 12, 2008 at 9:26 PM, Dave Zarzycki <zarzycki@apple.com> wrote:
Pavan, Either the group record is missing on the machines in question, or launchd is getting confused by the combination of having the GroupName key without the presence of the UserName key.
davez
On Sep 12, 2008, at 8:42 AM, pavan kumar wrote:
HI Dave,
Please find attached the property-list to diagnose further. Basically while installation of my application, we will create a group sysmac. We are not seeing this issue on all machines. On only few machines, we are having this Launchd error occurring.
Please help us in resolving this issue.
Thanks Pavan
On Fri, Sep 12, 2008 at 1:02 AM, Dave Zarzycki <zarzycki@apple.com> wrote:
Pavan,
Please provide the property-list file you are using to help us diagnose this further.
davez
On Sep 11, 2008, at 10:37 AM, pavan kumar wrote:
Hi,
When I am trying to Launch my launchdaemon I am getting an error "Bug: launchd_core_logic.c:3011 (23585):0: initgroups(loginname, desired_gid) != -1" and my daemon is not getting launched. Please let me know what is the reason for this error.
Thanks Pavan _______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
<com.mycompany.sysmac.MyApp.plist>
HI Dave, Can you please help us in resolving this issue? Thanks & Regards Pavan On Fri, Sep 12, 2008 at 10:48 PM, pavan kumar <pavankumar4uin@gmail.com>wrote:
Hi Dave,
I checked that Group record is available. I used the command "dscl . read /Groups/sysmac" and it has listed the proper information. I did a comparison between the machines where this plist is working and non working machine but I dont see any specific differences otherthan, there are three more groups like com.apple.sharepoint.group.3, com.apple.sharepoint.group.4, com.apple.sharepoint.group.5. But these seems to be linked with the filesharing groups. Can there be any other reasons to get this error? Also could you please tell me what exactly the error mean?
Thanks & Regards Pavan
On Fri, Sep 12, 2008 at 9:26 PM, Dave Zarzycki <zarzycki@apple.com> wrote:
Pavan, Either the group record is missing on the machines in question, or launchd is getting confused by the combination of having the GroupName key without the presence of the UserName key.
davez
On Sep 12, 2008, at 8:42 AM, pavan kumar wrote:
HI Dave,
Please find attached the property-list to diagnose further. Basically while installation of my application, we will create a group sysmac. We are not seeing this issue on all machines. On only few machines, we are having this Launchd error occurring.
Please help us in resolving this issue.
Thanks Pavan
On Fri, Sep 12, 2008 at 1:02 AM, Dave Zarzycki <zarzycki@apple.com>wrote:
Pavan,
Please provide the property-list file you are using to help us diagnose this further.
davez
On Sep 11, 2008, at 10:37 AM, pavan kumar wrote:
Hi,
When I am trying to Launch my launchdaemon I am getting an error "Bug: launchd_core_logic.c:3011 (23585):0: initgroups(loginname, desired_gid) != -1" and my daemon is not getting launched. Please let me know what is the reason for this error.
Thanks Pavan _______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
<com.mycompany.sysmac.MyApp.plist>
Pavan, Where did we leave off? Maybe Damien, our new launchd maintainer, can find some free time to help you investigate this. davez On Sep 17, 2008, at 8:53 AM, pavan kumar wrote:
HI Dave,
Can you please help us in resolving this issue?
Thanks & Regards Pavan
On Fri, Sep 12, 2008 at 10:48 PM, pavan kumar <pavankumar4uin@gmail.com
wrote: Hi Dave,
I checked that Group record is available. I used the command "dscl . read /Groups/sysmac" and it has listed the proper information. I did a comparison between the machines where this plist is working and non working machine but I dont see any specific differences otherthan, there are three more groups like com.apple.sharepoint.group.3, com.apple.sharepoint.group.4, com.apple.sharepoint.group.5. But these seems to be linked with the filesharing groups. Can there be any other reasons to get this error? Also could you please tell me what exactly the error mean?
Thanks & Regards Pavan
On Fri, Sep 12, 2008 at 9:26 PM, Dave Zarzycki <zarzycki@apple.com> wrote: Pavan,
Either the group record is missing on the machines in question, or launchd is getting confused by the combination of having the GroupName key without the presence of the UserName key.
davez
On Sep 12, 2008, at 8:42 AM, pavan kumar wrote:
HI Dave,
Please find attached the property-list to diagnose further. Basically while installation of my application, we will create a group sysmac. We are not seeing this issue on all machines. On only few machines, we are having this Launchd error occurring.
Please help us in resolving this issue.
Thanks Pavan
On Fri, Sep 12, 2008 at 1:02 AM, Dave Zarzycki <zarzycki@apple.com> wrote: Pavan,
Please provide the property-list file you are using to help us diagnose this further.
davez
On Sep 11, 2008, at 10:37 AM, pavan kumar wrote:
Hi,
When I am trying to Launch my launchdaemon I am getting an error "Bug: launchd_core_logic.c:3011 (23585):0: initgroups(loginname, desired_gid) != -1" and my daemon is not getting launched. Please let me know what is the reason for this error.
Thanks Pavan _______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
<com.mycompany.sysmac.MyApp.plist>
I thought I'd close the loop on this old thread... At 22:48 +0530 12/9/08, pavan kumar wrote:
I did a comparison between the machines where this plist is working and non working machine but I dont see any specific differences otherthan, there are three more groups like com.apple.sharepoint.group.3, com.apple.sharepoint.group.4, com.apple.sharepoint.group.5. But these seems to be linked with the filesharing groups. Can there be any other reasons to get this error? Also could you please tell me what exactly the error mean?
Another developer was experiencing this problem and they opened a DTS tech support incident to get to the bottom of it. <http://developer.apple.com/technicalsupport/index.html> It turns out that this is a bug in the system <rdar://problem/6430085>. You will get this error if you create a launchd property list that specifies a GroupName /and/ InitGroups is true (either explicitly or by default on 10.5 and later) /and/ the root user is in 16 or more groups. When you create a new user via the Accounts preferences panel, we add a sharing group (of the form "com.apple.sharepoint.group.X") for that user. The root user is a member of each sharing group, so adding 5 sharing groups puts root's membership at 16 groups. My initial suggestion for working around this is to add the InitGroups == false property to your launchd property list. This will prevent launchd calling <x-man-page://3/initgroups>, which will prevent the bug. However, you will lose a fix for an obscure corner case related to setuid programs revealed by the UNIX '03 compliance efforts (<rdar://problem/4616864> from <rdar://problem/3960809>). Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
participants (3)
-
Dave Zarzycki
-
pavan kumar
-
Quinn