Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --sync error sync.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bagas
Apprentice
Apprentice


Joined: 29 Jun 2018
Posts: 209

PostPosted: Sun Apr 14, 2024 12:54 pm    Post subject: emerge --sync error sync. Reply with quote

Hello.
I don’t use ipv6, I have no use for it!
How to fix problem?

Quote:
# emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ ok ]
>>> Starting rsync with rsync://89.238.71.6/gentoo-portage...
rsync: [Receiver] safe_read failed to read 1 bytes: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(282) [Receiver=3.2.7]
>>> Retrying...


>>> Starting retry 1 of 1 with rsync://[2a00:1828:a00d:ffff::6]/gentoo-portage
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7]
>>> Retrying...
!!! Exhausted addresses for rsync.gentoo.org

Action: sync for repo: gentoo, returned code = 1

_________________
BSD, Linux systems blog
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1896

PostPosted: Sun Apr 14, 2024 2:08 pm    Post subject: Reply with quote

If you don't use IPv6, overall the recommendation is to edit /etc/gai.conf and uncomment the precedence lines. All of them changing the final key to 100 instead of 10 as the example shows.
Back to top
View user's profile Send private message
bagas
Apprentice
Apprentice


Joined: 29 Jun 2018
Posts: 209

PostPosted: Sun Apr 14, 2024 5:36 pm    Post subject: Reply with quote

grknight wrote:
If you don't use IPv6, overall the recommendation is to edit /etc/gai.conf and uncomment the precedence lines. All of them changing the final key to 100 instead of 10 as the example shows.

Thanks.
I did this.
Code:
/etc/gai.conf
precedence ::ffff:0:0/96  100

_________________
BSD, Linux systems blog
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1896

PostPosted: Sun Apr 14, 2024 7:30 pm    Post subject: Reply with quote

You need this to say:
Code:
precedence  ::1/128       50
precedence  ::/0          40
precedence  2002::/16     30
precedence ::/96          20
precedence ::ffff:0:0/96  100

If a single one is uncommented, each key must also be uncommented with a value.
Back to top
View user's profile Send private message
bagas
Apprentice
Apprentice


Joined: 29 Jun 2018
Posts: 209

PostPosted: Mon Apr 15, 2024 8:04 am    Post subject: Reply with quote

grknight wrote:

If a single one is uncommented, each key must also be uncommented with a value.

Code:
precedence  ::1/128       50
precedence  ::/0          40
precedence  2002::/16     30
precedence ::/96          20

Why uncomment them?
_________________
BSD, Linux systems blog
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1896

PostPosted: Mon Apr 15, 2024 12:42 pm    Post subject: Reply with quote

bagas wrote:
grknight wrote:

If a single one is uncommented, each key must also be uncommented with a value.

Code:
precedence  ::1/128       50
precedence  ::/0          40
precedence  2002::/16     30
precedence ::/96          20

Why uncomment them?

Because glibc's getaddressinfo call will not work properly otherwise. The defaults are only in effect if nothing is set at all here for precedence.
Back to top
View user's profile Send private message
bagas
Apprentice
Apprentice


Joined: 29 Jun 2018
Posts: 209

PostPosted: Sat Apr 27, 2024 12:20 pm    Post subject: Reply with quote

grknight wrote:
bagas wrote:
grknight wrote:

If a single one is uncommented, each key must also be uncommented with a value.

Code:
precedence  ::1/128       50
precedence  ::/0          40
precedence  2002::/16     30
precedence ::/96          20

Why uncomment them?

Because glibc's getaddressinfo call will not work properly otherwise. The defaults are only in effect if nothing is set at all here for precedence.

Code:
# emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys via WKD ...                                                                                                                                                          [ ok ]
>>> Starting rsync with rsync://89.238.71.6/gentoo-portage...
rsync: [Receiver] safe_read failed to read 1 bytes: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(282) [Receiver=3.2.7]
>>> Retrying...


>>> Starting retry 1 of 1 with rsync://[2a00:1828:a00d:ffff::6]/gentoo-portage
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7]
>>> Retrying...
!!! Exhausted addresses for rsync.gentoo.org

Action: sync for repo: gentoo, returned code = 1


Code:
# egrep -v '^#|^$' /etc/gai.conf
precedence  ::1/128       50
precedence  ::/0          40
precedence  2002::/16     30
precedence ::/96          20
precedence ::ffff:0:0/96  100

What to do in this case?
_________________
BSD, Linux systems blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum