unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / 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; 6+ 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] 6+ 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; 6+ 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] 6+ 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; 6+ 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] 6+ 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; 6+ 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] 6+ 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
  2 siblings, 1 reply; 6+ 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] 6+ 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
  0 siblings, 0 replies; 6+ 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] 6+ messages in thread

end of thread, other threads:[~2021-01-18 11:15 UTC | newest]

Thread overview: 6+ 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

unofficial mirror of bug-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git