* bug#17786: group specified in `build-users-group' does not exist
@ 2014-06-15 17:02 Tomas Cech
2014-06-16 7:48 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Tomas Cech @ 2014-06-15 17:02 UTC (permalink / raw)
To: 17786
[-- Attachment #1: Type: text/plain, Size: 754 bytes --]
Hi,
I'm fighting with guix building:
guix package: error: build failed: the group `"guix-builders"' specified in
`build-users-group' does not exist
# grep guix /etc/passwd
guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
guix-builder2:x:62:479:Guix builder 2:/var/empty:/sbin/nologin
guix-builder3:x:63:479:Guix builder 3:/var/empty:/sbin/nologin
guix-builder4:x:64:479:Guix builder 4:/var/empty:/sbin/nologin
guix-builder5:x:65:479:Guix builder 5:/var/empty:/sbin/nologin
# grep guix /etc/group
guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
Nothing seems to be obviously wrong, but guix ends with this error.
Trying
# su guix-builder1
works as well.
Any ideas?
Best regards,
Tomas Cech
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17786: group specified in `build-users-group' does not exist
2014-06-15 17:02 bug#17786: group specified in `build-users-group' does not exist Tomas Cech
@ 2014-06-16 7:48 ` Ludovic Courtès
[not found] ` <20140616084220.GE5647@venom>
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2014-06-16 7:48 UTC (permalink / raw)
To: Tomas Cech; +Cc: 17786
Hello,
Tomas Cech <tcech@suse.cz> skribis:
> guix package: error: build failed: the group `"guix-builders"' specified in
> `build-users-group' does not exist
>
> # grep guix /etc/passwd
> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
> guix-builder2:x:62:479:Guix builder 2:/var/empty:/sbin/nologin
> guix-builder3:x:63:479:Guix builder 3:/var/empty:/sbin/nologin
> guix-builder4:x:64:479:Guix builder 4:/var/empty:/sbin/nologin
> guix-builder5:x:65:479:Guix builder 5:/var/empty:/sbin/nologin
> # grep guix /etc/group
> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>
> Nothing seems to be obviously wrong, but guix ends with this error.
Hmm, what does “getent group guix-builders” return?
And “getent passwd guix-builder1”?
How did you create the accounts?
Thanks for the report,
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17786: group specified in `build-users-group' does not exist
[not found] ` <20140616084220.GE5647@venom>
@ 2014-06-16 11:53 ` Ludovic Courtès
[not found] ` <87ha3lcbqz.fsf@gnu.org>
1 sibling, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2014-06-16 11:53 UTC (permalink / raw)
To: Tomas Cech; +Cc: 17786
Tomas Cech <tcech@suse.cz> skribis:
> On Mon, Jun 16, 2014 at 09:48:39AM +0200, Ludovic Courtès wrote:
>>Hello,
>>
>>Tomas Cech <tcech@suse.cz> skribis:
>>
>>> guix package: error: build failed: the group `"guix-builders"' specified in
>>> `build-users-group' does not exist
>>>
>>> # grep guix /etc/passwd
>>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
>>> guix-builder2:x:62:479:Guix builder 2:/var/empty:/sbin/nologin
>>> guix-builder3:x:63:479:Guix builder 3:/var/empty:/sbin/nologin
>>> guix-builder4:x:64:479:Guix builder 4:/var/empty:/sbin/nologin
>>> guix-builder5:x:65:479:Guix builder 5:/var/empty:/sbin/nologin
>>> # grep guix /etc/group
>>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>>>
>>> Nothing seems to be obviously wrong, but guix ends with this error.
>>
>>Hmm, what does “getent group guix-builders” return?
>>And “getent passwd guix-builder1”?
>
> # getent group guix-builders
> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
> # getent passwd guix-builder1
> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
So that’s all good.
The daemon simply does that (build.cc):
--8<---------------cut here---------------start------------->8---
/* Get the members of the build-users-group. */
struct group * gr = getgrnam(settings.buildUsersGroup.c_str());
if (!gr)
throw Error(format("the group `%1%' specified in `build-users-group' does not exist")
% settings.buildUsersGroup);
--8<---------------cut here---------------end--------------->8---
Can you try getgrnam("guix-builders") in C or some other language (from
Guile: (getgrnam "guix-builders")) ?
Does it make a difference if nscd is stopped or restarted?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17786: group specified in `build-users-group' does not exist
[not found] ` <87ha3lcbqz.fsf@gnu.org>
@ 2014-06-16 20:42 ` Tomas Cech
2014-06-17 9:57 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Tomas Cech @ 2014-06-16 20:42 UTC (permalink / raw)
To: Ludovic Courtès
[-- Attachment #1: Type: text/plain, Size: 2199 bytes --]
On Mon, Jun 16, 2014 at 01:52:36PM +0200, Ludovic Courtès wrote:
>Tomas Cech <tcech@suse.cz> skribis:
>
>> On Mon, Jun 16, 2014 at 09:48:39AM +0200, Ludovic Courtès wrote:
>>>Hello,
>>>
>>>Tomas Cech <tcech@suse.cz> skribis:
>>>
>>>> guix package: error: build failed: the group `"guix-builders"' specified in
>>>> `build-users-group' does not exist
>>>>
>>>> # grep guix /etc/passwd
>>>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
>>>> guix-builder2:x:62:479:Guix builder 2:/var/empty:/sbin/nologin
>>>> guix-builder3:x:63:479:Guix builder 3:/var/empty:/sbin/nologin
>>>> guix-builder4:x:64:479:Guix builder 4:/var/empty:/sbin/nologin
>>>> guix-builder5:x:65:479:Guix builder 5:/var/empty:/sbin/nologin
>>>> # grep guix /etc/group
>>>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>>>>
>>>> Nothing seems to be obviously wrong, but guix ends with this error.
>>>
>>>Hmm, what does “getent group guix-builders” return?
>>>And “getent passwd guix-builder1”?
>>
>> # getent group guix-builders
>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>> # getent passwd guix-builder1
>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
>
>So that’s all good.
>
>The daemon simply does that (build.cc):
>
>--8<---------------cut here---------------start------------->8---
> /* Get the members of the build-users-group. */
> struct group * gr = getgrnam(settings.buildUsersGroup.c_str());
> if (!gr)
> throw Error(format("the group `%1%' specified in `build-users-group' does not exist")
> % settings.buildUsersGroup);
>--8<---------------cut here---------------end--------------->8---
>
>Can you try getgrnam("guix-builders") in C or some other language (from
>Guile: (getgrnam "guix-builders")) ?
scheme@(guile-user)> (getgrnam "guix-builders")
$2 = #("guix-builders" "x" 479 ("guix-builder1" "guix-builder2" "guix-builder3" "guix-builder4" "guix-builder5"))
>Does it make a difference if nscd is stopped or restarted?
No, it behaves the same with or without running nscd.
Thanks,
Tomas
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17786: group specified in `build-users-group' does not exist
2014-06-16 20:42 ` Tomas Cech
@ 2014-06-17 9:57 ` Ludovic Courtès
2014-06-17 10:04 ` Tomas Cech
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2014-06-17 9:57 UTC (permalink / raw)
To: Tomas Cech; +Cc: 17786
Hello,
Please keep 17786@debbugs.gnu.org Cc’d.
Tomas Cech <tcech@suse.cz> skribis:
> On Mon, Jun 16, 2014 at 01:52:36PM +0200, Ludovic Courtès wrote:
>>Tomas Cech <tcech@suse.cz> skribis:
>>
>>> On Mon, Jun 16, 2014 at 09:48:39AM +0200, Ludovic Courtès wrote:
>>>>Hello,
>>>>
>>>>Tomas Cech <tcech@suse.cz> skribis:
>>>>
>>>>> guix package: error: build failed: the group `"guix-builders"' specified in
>>>>> `build-users-group' does not exist
>>>>>
>>>>> # grep guix /etc/passwd
>>>>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
>>>>> guix-builder2:x:62:479:Guix builder 2:/var/empty:/sbin/nologin
>>>>> guix-builder3:x:63:479:Guix builder 3:/var/empty:/sbin/nologin
>>>>> guix-builder4:x:64:479:Guix builder 4:/var/empty:/sbin/nologin
>>>>> guix-builder5:x:65:479:Guix builder 5:/var/empty:/sbin/nologin
>>>>> # grep guix /etc/group
>>>>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>>>>>
>>>>> Nothing seems to be obviously wrong, but guix ends with this error.
>>>>
>>>>Hmm, what does “getent group guix-builders” return?
>>>>And “getent passwd guix-builder1”?
>>>
>>> # getent group guix-builders
>>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>>> # getent passwd guix-builder1
>>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
>>
>>So that’s all good.
>>
>>The daemon simply does that (build.cc):
>>
>>--8<---------------cut here---------------start------------->8---
>> /* Get the members of the build-users-group. */
>> struct group * gr = getgrnam(settings.buildUsersGroup.c_str());
>> if (!gr)
>> throw Error(format("the group `%1%' specified in `build-users-group' does not exist")
>> % settings.buildUsersGroup);
>>--8<---------------cut here---------------end--------------->8---
>>
>>Can you try getgrnam("guix-builders") in C or some other language (from
>>Guile: (getgrnam "guix-builders")) ?
>
> scheme@(guile-user)> (getgrnam "guix-builders")
> $2 = #("guix-builders" "x" 479 ("guix-builder1" "guix-builder2" "guix-builder3" "guix-builder4" "guix-builder5"))
Then there’s something weird: Guile’s getgrnam directly corresponds to
libc’s getgrnam(3), which is what guix-daemon uses in the snippet above.
Oh, I see the error message you gave above reads:
the group `"guix-builders"'
Note the extra double quotes.
Could it be that the script that launches guix-daemon does something
that amounts to:
guix-daemon '--build-users-group="guix-builders"'
That is, it leaves the double quotes as is in the argument?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17786: group specified in `build-users-group' does not exist
2014-06-17 9:57 ` Ludovic Courtès
@ 2014-06-17 10:04 ` Tomas Cech
2014-06-17 11:45 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Tomas Cech @ 2014-06-17 10:04 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 17786
[-- Attachment #1: Type: text/plain, Size: 2922 bytes --]
Hello,
On Tue, Jun 17, 2014 at 11:57:16AM +0200, Ludovic Courtès wrote:
>Hello,
>
>Please keep 17786@debbugs.gnu.org Cc’d.
>
>Tomas Cech <tcech@suse.cz> skribis:
>
>> On Mon, Jun 16, 2014 at 01:52:36PM +0200, Ludovic Courtès wrote:
>>>Tomas Cech <tcech@suse.cz> skribis:
>>>
>>>> On Mon, Jun 16, 2014 at 09:48:39AM +0200, Ludovic Courtès wrote:
>>>>>Hello,
>>>>>
>>>>>Tomas Cech <tcech@suse.cz> skribis:
>>>>>
>>>>>> guix package: error: build failed: the group `"guix-builders"' specified in
>>>>>> `build-users-group' does not exist
>>>>>>
>>>>>> # grep guix /etc/passwd
>>>>>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
>>>>>> guix-builder2:x:62:479:Guix builder 2:/var/empty:/sbin/nologin
>>>>>> guix-builder3:x:63:479:Guix builder 3:/var/empty:/sbin/nologin
>>>>>> guix-builder4:x:64:479:Guix builder 4:/var/empty:/sbin/nologin
>>>>>> guix-builder5:x:65:479:Guix builder 5:/var/empty:/sbin/nologin
>>>>>> # grep guix /etc/group
>>>>>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>>>>>>
>>>>>> Nothing seems to be obviously wrong, but guix ends with this error.
>>>>>
>>>>>Hmm, what does “getent group guix-builders” return?
>>>>>And “getent passwd guix-builder1”?
>>>>
>>>> # getent group guix-builders
>>>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>>>> # getent passwd guix-builder1
>>>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
>>>
>>>So that’s all good.
>>>
>>>The daemon simply does that (build.cc):
>>>
>>>--8<---------------cut here---------------start------------->8---
>>> /* Get the members of the build-users-group. */
>>> struct group * gr = getgrnam(settings.buildUsersGroup.c_str());
>>> if (!gr)
>>> throw Error(format("the group `%1%' specified in `build-users-group' does not exist")
>>> % settings.buildUsersGroup);
>>>--8<---------------cut here---------------end--------------->8---
>>>
>>>Can you try getgrnam("guix-builders") in C or some other language (from
>>>Guile: (getgrnam "guix-builders")) ?
>>
>> scheme@(guile-user)> (getgrnam "guix-builders")
>> $2 = #("guix-builders" "x" 479 ("guix-builder1" "guix-builder2" "guix-builder3" "guix-builder4" "guix-builder5"))
>
>Then there’s something weird: Guile’s getgrnam directly corresponds to
>libc’s getgrnam(3), which is what guix-daemon uses in the snippet above.
>
>Oh, I see the error message you gave above reads:
>
> the group `"guix-builders"'
>
>Note the extra double quotes.
>
>Could it be that the script that launches guix-daemon does something
>that amounts to:
>
> guix-daemon '--build-users-group="guix-builders"'
>
>That is, it leaves the double quotes as is in the argument?
It seems to be that case. Thank you and sorry for the noise...
Best regards,
Tomas
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17786: group specified in `build-users-group' does not exist
2014-06-17 10:04 ` Tomas Cech
@ 2014-06-17 11:45 ` Ludovic Courtès
0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2014-06-17 11:45 UTC (permalink / raw)
To: Tomas Cech; +Cc: 17786
close 17786
tags 17786 notabug
thanks
Tomas Cech <tcech@suse.cz> skribis:
> On Tue, Jun 17, 2014 at 11:57:16AM +0200, Ludovic Courtès wrote:
>>Hello,
>>
>>Please keep 17786@debbugs.gnu.org Cc’d.
>>
>>Tomas Cech <tcech@suse.cz> skribis:
>>
>>> On Mon, Jun 16, 2014 at 01:52:36PM +0200, Ludovic Courtès wrote:
>>>>Tomas Cech <tcech@suse.cz> skribis:
>>>>
>>>>> On Mon, Jun 16, 2014 at 09:48:39AM +0200, Ludovic Courtès wrote:
>>>>>>Hello,
>>>>>>
>>>>>>Tomas Cech <tcech@suse.cz> skribis:
>>>>>>
>>>>>>> guix package: error: build failed: the group `"guix-builders"' specified in
>>>>>>> `build-users-group' does not exist
>>>>>>>
>>>>>>> # grep guix /etc/passwd
>>>>>>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
>>>>>>> guix-builder2:x:62:479:Guix builder 2:/var/empty:/sbin/nologin
>>>>>>> guix-builder3:x:63:479:Guix builder 3:/var/empty:/sbin/nologin
>>>>>>> guix-builder4:x:64:479:Guix builder 4:/var/empty:/sbin/nologin
>>>>>>> guix-builder5:x:65:479:Guix builder 5:/var/empty:/sbin/nologin
>>>>>>> # grep guix /etc/group
>>>>>>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>>>>>>>
>>>>>>> Nothing seems to be obviously wrong, but guix ends with this error.
>>>>>>
>>>>>>Hmm, what does “getent group guix-builders” return?
>>>>>>And “getent passwd guix-builder1”?
>>>>>
>>>>> # getent group guix-builders
>>>>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-builder4,guix-builder5
>>>>> # getent passwd guix-builder1
>>>>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin
>>>>
>>>>So that’s all good.
>>>>
>>>>The daemon simply does that (build.cc):
>>>>
>>>>--8<---------------cut here---------------start------------->8---
>>>> /* Get the members of the build-users-group. */
>>>> struct group * gr = getgrnam(settings.buildUsersGroup.c_str());
>>>> if (!gr)
>>>> throw Error(format("the group `%1%' specified in `build-users-group' does not exist")
>>>> % settings.buildUsersGroup);
>>>>--8<---------------cut here---------------end--------------->8---
>>>>
>>>>Can you try getgrnam("guix-builders") in C or some other language (from
>>>>Guile: (getgrnam "guix-builders")) ?
>>>
>>> scheme@(guile-user)> (getgrnam "guix-builders")
>>> $2 = #("guix-builders" "x" 479 ("guix-builder1" "guix-builder2" "guix-builder3" "guix-builder4" "guix-builder5"))
>>
>>Then there’s something weird: Guile’s getgrnam directly corresponds to
>>libc’s getgrnam(3), which is what guix-daemon uses in the snippet above.
>>
>>Oh, I see the error message you gave above reads:
>>
>> the group `"guix-builders"'
>>
>>Note the extra double quotes.
>>
>>Could it be that the script that launches guix-daemon does something
>>that amounts to:
>>
>> guix-daemon '--build-users-group="guix-builders"'
>>
>>That is, it leaves the double quotes as is in the argument?
>
> It seems to be that case. Thank you and sorry for the noise...
OK, good to know.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-06-17 11:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-15 17:02 bug#17786: group specified in `build-users-group' does not exist Tomas Cech
2014-06-16 7:48 ` Ludovic Courtès
[not found] ` <20140616084220.GE5647@venom>
2014-06-16 11:53 ` Ludovic Courtès
[not found] ` <87ha3lcbqz.fsf@gnu.org>
2014-06-16 20:42 ` Tomas Cech
2014-06-17 9:57 ` Ludovic Courtès
2014-06-17 10:04 ` Tomas Cech
2014-06-17 11:45 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).