* bug#23274: Misleading error message when running guix-daemon as unprivileged user
@ 2016-04-12 1:22 Leo Famulari
2017-12-09 15:28 ` Martin Castillo
0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2016-04-12 1:22 UTC (permalink / raw)
To: 23274
When trying to start the guix-daemon as an unprivileged user, the
following error message is printed:
error: cannot bind to socket `/var/guix/daemon-socket/socket': Address already in use
Would it make sense to try to provide a more helpful error message?
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#23274: Misleading error message when running guix-daemon as unprivileged user
2016-04-12 1:22 bug#23274: Misleading error message when running guix-daemon as unprivileged user Leo Famulari
@ 2017-12-09 15:28 ` Martin Castillo
2017-12-11 9:35 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Martin Castillo @ 2017-12-09 15:28 UTC (permalink / raw)
To: 23274
[-- Attachment #1.1: Type: text/plain, Size: 472 bytes --]
Hi,
“Address already in use” makes me directly think that there is already
another daemon running. Strangely, starting another daemon as root
works. It seems to take the socket from the other daemon away. Is this
intended? Or can two daemons run in parallel without problems?
What is your use case? Do you want to run the daemon us unprivileged
user or did you forget to add sudo?
Martin
--
GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#23274: Misleading error message when running guix-daemon as unprivileged user
2017-12-09 15:28 ` Martin Castillo
@ 2017-12-11 9:35 ` Ludovic Courtès
2017-12-11 13:25 ` Martin Castillo
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2017-12-11 9:35 UTC (permalink / raw)
To: Martin Castillo; +Cc: 23274
Hi Martin,
Martin Castillo <castilma@uni-bremen.de> skribis:
> “Address already in use” makes me directly think that there is already
> another daemon running. Strangely, starting another daemon as root
> works. It seems to take the socket from the other daemon away. Is this
> intended? Or can two daemons run in parallel without problems?
What you’re seeing here is the error return by bind(2) while trying to
bind the listening socket to /var/guix/daemon-socket/socket.
guix-daemon doesn’t try to interpret the error in any way, it just shows
you what the OS reported.
So I’m not sure there’s really an issue here.
WDYT?
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#23274: Misleading error message when running guix-daemon as unprivileged user
2017-12-11 9:35 ` Ludovic Courtès
@ 2017-12-11 13:25 ` Martin Castillo
2017-12-11 16:22 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Martin Castillo @ 2017-12-11 13:25 UTC (permalink / raw)
To: ludo; +Cc: 23274
Hi,
I could have expressed myself more clearly.
> “Address already in use” makes me directly think that there is already
>another daemon running.
This was in response to OP, saying that I don't think that needs to be changed.
The rest was about testing it with root and I (half) expected an error message that explicitly says, that another daemon is already running. If this was right, op would be right. But this is not the case and it seems like it is wanted the way it is.
So yes, there is no problem in my eyes, too. This can be closed.
Martin
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#23274: Misleading error message when running guix-daemon as unprivileged user
2017-12-11 13:25 ` Martin Castillo
@ 2017-12-11 16:22 ` Ludovic Courtès
0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2017-12-11 16:22 UTC (permalink / raw)
To: Martin Castillo; +Cc: 23274-done
Hi Martin,
Martin Castillo <castilma@uni-bremen.de> skribis:
>> “Address already in use” makes me directly think that there is already
>>another daemon running.
>
> This was in response to OP, saying that I don't think that needs to be changed.
>
> The rest was about testing it with root and I (half) expected an error message that explicitly says, that another daemon is already running. If this was right, op would be right. But this is not the case and it seems like it is wanted the way it is.
>
> So yes, there is no problem in my eyes, too. This can be closed.
OK, I had completely misunderstood, thanks for clarifying. Closing!
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-12-11 16:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-12 1:22 bug#23274: Misleading error message when running guix-daemon as unprivileged user Leo Famulari
2017-12-09 15:28 ` Martin Castillo
2017-12-11 9:35 ` Ludovic Courtès
2017-12-11 13:25 ` Martin Castillo
2017-12-11 16:22 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.