all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers
@ 2020-12-17 17:40 Pierre Neidhardt
       [not found] ` <handler.45302.B.16082268462565.ack@debbugs.gnu.org>
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Pierre Neidhardt @ 2020-12-17 17:40 UTC (permalink / raw)
  To: 45302

[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]

I've set up my desktop and laptop to use the new substitute discovery
feature, it's awesome!

However, when I put my desktop to sleep and run a Guix command on my
laptop that requires access to a sbustitute server, I see this:

--8<---------------cut here---------------start------------->8---
$ guix build ncdu
substitute: guix substitute: warning: 10.0.0.5: connection failed: No route to host
substitute: updating substitutes from 'http://ci.guix.gnu.org'... 100.0%
0.0 MB will be downloaded:
   /gnu/store/p70r4maqgh6ghl25h5a99w7sf1jidap8-ncdu-1.15.1
substituting /gnu/store/p70r4maqgh6ghl25h5a99w7sf1jidap8-ncdu-1.15.1...
--8<---------------cut here---------------end--------------->8---

The warning

--8<---------------cut here---------------start------------->8---
substitute: guix substitute: warning: 10.0.0.5: connection failed: No route to host
--8<---------------cut here---------------end--------------->8---

pops up on every download, which adds some 2s delay each time.  This
makes the whole process much slower.

For your information, Avahi does not find my desktop:

--8<---------------cut here---------------start------------->8---
$ sudo avahi-browse -al
Password: 
+ wlp2s0 IPv6 FOO___s MacBook Pro                        _companion-link._tcp local
+ wlp2s0 IPv4 FOO___s MacBook Pro                        _companion-link._tcp local
  C-c C-cGot SIGINT, quitting.
--8<---------------cut here---------------end--------------->8---

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#45302: Acknowledgement (Avahi substitute discovery keeps trying to ping unaccessible servers)
       [not found] ` <handler.45302.B.16082268462565.ack@debbugs.gnu.org>
@ 2020-12-17 18:33   ` Pierre Neidhardt
  0 siblings, 0 replies; 7+ messages in thread
From: Pierre Neidhardt @ 2020-12-17 18:33 UTC (permalink / raw)
  To: 45302

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

I still witness this issue after restarting my laptop.
Looks like Avahi remembers the discovery across restarts.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers
  2020-12-17 17:40 bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers Pierre Neidhardt
       [not found] ` <handler.45302.B.16082268462565.ack@debbugs.gnu.org>
@ 2020-12-22  3:25 ` Maxim Cournoyer
  2020-12-22  9:45   ` Pierre Neidhardt
  2021-01-11 13:24 ` Mathieu Othacehe
  2 siblings, 1 reply; 7+ messages in thread
From: Maxim Cournoyer @ 2020-12-22  3:25 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 45302

Hello,

Pierre Neidhardt <mail@ambrevar.xyz> writes:

> I've set up my desktop and laptop to use the new substitute discovery
> feature, it's awesome!
>
> However, when I put my desktop to sleep and run a Guix command on my
> laptop that requires access to a sbustitute server, I see this:
>
> $ guix build ncdu
> substitute: guix substitute: warning: 10.0.0.5: connection failed: No route to host
> substitute: updating substitutes from 'http://ci.guix.gnu.org'... 100.0%
> 0.0 MB will be downloaded:
>    /gnu/store/p70r4maqgh6ghl25h5a99w7sf1jidap8-ncdu-1.15.1
> substituting /gnu/store/p70r4maqgh6ghl25h5a99w7sf1jidap8-ncdu-1.15.1...
>
>
> The warning
>
> substitute: guix substitute: warning: 10.0.0.5: connection failed: No route to host
>
>
> pops up on every download, which adds some 2s delay each time.  This
> makes the whole process much slower.
>
> For your information, Avahi does not find my desktop:
>
> $ sudo avahi-browse -al
> Password: 
> + wlp2s0 IPv6 FOO___s MacBook Pro                        _companion-link._tcp local
> + wlp2s0 IPv4 FOO___s MacBook Pro                        _companion-link._tcp local
>   C-c C-cGot SIGINT, quitting.

This reminds me of https://issues.guix.gnu.org/30290.  Perhaps if we can
fix that one it'd make this one go away too?.  I was thinking of having
a simple mean to reduce the request attempts on servers down for a long
while, such as entering dead periods (breaks): "I've tried X times, it
doesn't respond, I give up for the next Y minutes"; allowing for X and Y
to be configured via the <guix-publish-configuration> record.

Do you think this would help?

Maxim




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers
  2020-12-22  3:25 ` bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers Maxim Cournoyer
@ 2020-12-22  9:45   ` Pierre Neidhardt
  0 siblings, 0 replies; 7+ messages in thread
From: Pierre Neidhardt @ 2020-12-22  9:45 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 45302

[-- Attachment #1: Type: text/plain, Size: 167 bytes --]

Hi Maxim!

Thanks for the suggestion!
I'm a bit ignorant here, but my guess is that yes, it would help!

Cheers!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers
  2020-12-17 17:40 bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers Pierre Neidhardt
       [not found] ` <handler.45302.B.16082268462565.ack@debbugs.gnu.org>
  2020-12-22  3:25 ` bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers Maxim Cournoyer
@ 2021-01-11 13:24 ` Mathieu Othacehe
  2021-01-18 11:14   ` Pierre Neidhardt
  2021-01-26 10:53   ` Pierre Neidhardt
  2 siblings, 2 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2021-01-11 13:24 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 45302


Hello Pierre,

> I've set up my desktop and laptop to use the new substitute discovery
> feature, it's awesome!

Glad you like it, and sorry for the late answer.

> substitute: guix substitute: warning: 10.0.0.5: connection failed: No route to host

Once your laptop goes to sleep, Avahi should detect that the publish
service is gone and remove it from the cache at
/var/guix/discovery/publish.

I'm having troubles reproducing it at home. Could you please run
"avahi-browse -a" on your desktop, put your laptop to sleep, and check
if the publish server disappears this way:

--8<---------------cut here---------------start------------->8---
- enp7s0f0 IPv6 guix-publish-cervin                           _guix_publish._tcp   local
- enp7s0f0 IPv4 guix-publish-cervin                           _guix_publish._tcp   local
--8<---------------cut here---------------end--------------->8---

Regarding the reboot issue, that's because the cache wasn't cleaned-up,
it should by fixed with: ee94cd265e03d12eeeccf58cbaf74b90008fcd14.

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers
  2021-01-11 13:24 ` Mathieu Othacehe
@ 2021-01-18 11:14   ` Pierre Neidhardt
  2021-01-26 10:53   ` Pierre Neidhardt
  1 sibling, 0 replies; 7+ messages in thread
From: Pierre Neidhardt @ 2021-01-18 11:14 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 45302

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

Hi Mathieu,

sorry, didn't have much time to play with Guix recently.
All I can say is that I haven't experienced the issue lately.
I'm on commit c03875b0361f114634caeb54935fe37a9b7b05af.

I'll try the commands you suggested later.  Thanks for your time!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers
  2021-01-11 13:24 ` Mathieu Othacehe
  2021-01-18 11:14   ` Pierre Neidhardt
@ 2021-01-26 10:53   ` Pierre Neidhardt
  1 sibling, 0 replies; 7+ messages in thread
From: Pierre Neidhardt @ 2021-01-26 10:53 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 45302

[-- Attachment #1: Type: text/plain, Size: 3298 bytes --]

Hi Mathieu,

> Glad you like it, and sorry for the late answer.

No worries! :)

>> substitute: guix substitute: warning: 10.0.0.5: connection failed: No route to host
>
> Once your laptop goes to sleep, Avahi should detect that the publish
> service is gone and remove it from the cache at
> /var/guix/discovery/publish.
>
> I'm having troubles reproducing it at home. Could you please run
> "avahi-browse -a" on your desktop, put your laptop to sleep, and check
> if the publish server disappears this way:
>
> --8<---------------cut here---------------start------------->8---
> - enp7s0f0 IPv6 guix-publish-cervin                           _guix_publish._tcp   local
> - enp7s0f0 IPv4 guix-publish-cervin                           _guix_publish._tcp   local
> --8<---------------cut here---------------end--------------->8---

To be sure we are on the same page, my desktop is the publisher, my
laptop is the client.

From my desktop:

--8<---------------cut here---------------start------------->8---
$ avahi-browse -a
+ enp7s0 IPv6 guix-publish-DESKTOP                                         _guix_publish._tcp   local
+ enp7s0 IPv4 guix-publish-DESKTOP                                         _guix_publish._tcp   local
+     lo IPv4 guix-publish-DESKTOP                                         _guix_publish._tcp   local
+ enp7s0 IPv6 LAPTOP                                                       _ssh._tcp            local
+ enp7s0 IPv6 DESKTOP                                                      _ssh._tcp            local
+ enp7s0 IPv4 LAPTOP                                                       _ssh._tcp            local
+ enp7s0 IPv4 DESKTOP                                                      _ssh._tcp            local
+     lo IPv4 DESKTOP                                                      _ssh._tcp            local
+ enp7s0 IPv6 LAPTOP [2a:81:b6:9b:6b:88]                                   _workstation._tcp    local
+ enp7s0 IPv6 DESKTOP [40:b0:76:0c:8d:47]                                  _workstation._tcp    local
+ enp7s0 IPv4 LAPTOP [2a:81:b6:9b:6b:88]                                   _workstation._tcp    local
+ enp7s0 IPv4 DESKTOP [40:b0:76:0c:8d:47]                                  _workstation._tcp    local
+     lo IPv4 DESKTOP [00:00:00:00:00:00]                                  _workstation._tcp    local
+ enp7s0 IPv6 LAPTOP                                                       _sftp-ssh._tcp       local
+ enp7s0 IPv6 DESKTOP                                                      _sftp-ssh._tcp       local
+ enp7s0 IPv4 LAPTOP                                                       _sftp-ssh._tcp       local
+ enp7s0 IPv4 DESKTOP                                                      _sftp-ssh._tcp       local
+     lo IPv4 DESKTOP                                                      _sftp-ssh._tcp       local
--8<---------------cut here---------------end--------------->8---

The output never changes, regardless of my laptop going to sleep or not.

You said "check if the publish server disappears" but why would it since it's
running on my desktop, which is not put to sleep?

Misunderstanding?  Forgive my ignorance about Avahi! :)

Cheers!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-26 10:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-17 17:40 bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers Pierre Neidhardt
     [not found] ` <handler.45302.B.16082268462565.ack@debbugs.gnu.org>
2020-12-17 18:33   ` bug#45302: Acknowledgement (Avahi substitute discovery keeps trying to ping unaccessible servers) Pierre Neidhardt
2020-12-22  3:25 ` bug#45302: Avahi substitute discovery keeps trying to ping unaccessible servers Maxim Cournoyer
2020-12-22  9:45   ` Pierre Neidhardt
2021-01-11 13:24 ` Mathieu Othacehe
2021-01-18 11:14   ` Pierre Neidhardt
2021-01-26 10:53   ` Pierre Neidhardt

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.