Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]emerge --sync fails
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
nvaert1986
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2019
Posts: 126

PostPosted: Tue Mar 04, 2025 7:43 pm    Post subject: [SOLVED]emerge --sync fails Reply with quote

Hello everyone,

As of today, I'm receiving an error while trying to synchronize the portage. I've already tried 3 times so far and don't want to have problems of getting banned, so I've stopped synchronizing for now, but what could be causing this issue?

Code:

* Verifying /var/db/repos/gentoo/.tmp-unverified-download-quarantine ...!!! Manifest verification failed:
Manifest mismatch for metadata/news/Manifest
  BLAKE2B: expected: 79f2d85d06f6b4771a9f0a5bc795f8bd51fc5fdbf004642805a405e1166056980c9c39918f2dd096fd3bd2be5a50c0662ce54dd7be5a4f00f61ae204ca2923ca, have: 62ece82e70dacd0d0e0a981e848b731f6a772833996623209355d3714b8a6cc264b1d282d88e3e0a5c36e1f32238c6c2bf9b4da590fe0d7680497d9a8e41335f
  SHA512: expected: 5ac458173d1daf09597b5f80fb9b1474a10e5f22d94d6ead448001112d35178496eb225d0f474391dd8520a35413defc26fadd88d538a5a02ce9b29d260e99a7, have: fcd232af92a00763313cfd37bf10968f295a033966c53d7874aa7299674c955cb4744fe8683e3985acde6d3747191d7f724b0e53bf4def4eca1093aa92b141f7
>>> Syncing repository 'steam-overlay' into '/var/db/repos/steam-overlay'...
/usr/bin/git fetch origin --depth 1
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
/usr/bin/git reset --merge refs/remotes/origin/master
=== Sync completed for steam-overlay

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



Last edited by nvaert1986 on Wed Mar 05, 2025 5:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54972
Location: 56N 3W

PostPosted: Wed Mar 05, 2025 11:27 am    Post subject: Reply with quote

nvaert1986,

The normal cause is --syncs not being atomic. If you sync while the server is updating it can be in an indeterminate state.
It's a feature.

However, a retry usually succeeds as the problem only lasts for the copy time.

Did you always get the same server, that would be unusual unless you fixed it yourself as the advertised rsync servers are rotations, you don't actually use them.
They pass you on to a real rsync server 'in rotation'.

Whatever, if the problem persists, make sure to get another server as servers fail too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2801

PostPosted: Wed Mar 05, 2025 12:21 pm    Post subject: Reply with quote

Try another mirror.

Best Regards,
Georgi
Back to top
View user's profile Send private message
nvaert1986
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2019
Posts: 126

PostPosted: Wed Mar 05, 2025 5:42 pm    Post subject: Reply with quote

logrusx wrote:
Try another mirror.

Best Regards,
Georgi


Thanks, this solved my issue. There seems to be a broken mirror in the list (in South Africa). I don't know why it selects the mirror in South Africa to sync, but I specified both the sync mirrors and my rsync mirrors to The Netherlands and it resolved the issue for me. They were not specified before.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2801

PostPosted: Wed Mar 05, 2025 5:56 pm    Post subject: Reply with quote

nvaert1986 wrote:
logrusx wrote:
Try another mirror.

Best Regards,
Georgi


Thanks, this solved my issue. There seems to be a broken mirror in the list (in South Africa). I don't know why it selects the mirror in South Africa to sync, but I specified both the sync mirrors and my rsync mirrors to The Netherlands and it resolved the issue for me. They were not specified before.


Netherlands rulez! I used to use their mirrors too despite being several thousand kilometers away. Now I have a local one.

Best Regards,
Georgi
Back to top
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 687
Location: Ásgarðr

PostPosted: Thu Mar 06, 2025 11:55 am    Post subject: Reply with quote

Interesting,
I have:
Code:
sync-uri = rsync://rsync.gentoo.org/gentoo-portage

and since two weeks or so, it always use a mirror in South Africa. Unfortunately it is slow as hell.
Before that (years..), I would only get NL or DE mirrors (always blazing fast)
I only sync once a day so I'm not sure why it is picked up. (How does it work by the way ? It looks random)
Should I manually set a NL or DE mirror in my gentoo.conf ?


Last edited by sdauth on Thu Mar 06, 2025 12:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2801

PostPosted: Thu Mar 06, 2025 12:00 pm    Post subject: Reply with quote

sdauth wrote:

Should I manually set a NL or DE mirror in my gentoo.conf ?


I have always done that. Always choosing something fast and reasonably close. DE mirrors do not seem to have good connectivity to everywhere but NL ones sure do. Even though they are at least a couple of thousand of kilometers away from me.

Best Regards,
Georgi
Back to top
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 687
Location: Ásgarðr

PostPosted: Thu Mar 06, 2025 12:07 pm    Post subject: Reply with quote

I remember seeing this url at top when sync begins: turnstone.gentoo.org
Is it how the mirror is picked up when using rsync://rsync.gentoo.org/gentoo-portage ?

Well, I'll force the usage of a NL mirror (with rsync.nl.gentoo.org) if it continues to try to sync a mirror 10000km away. :o
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2801

PostPosted: Thu Mar 06, 2025 12:46 pm    Post subject: Reply with quote

sdauth wrote:
I remember seeing this url at top when sync begins: turnstone.gentoo.org
Is it how the mirror is picked up when using rsync://rsync.gentoo.org/gentoo-portage ?


There were threads in the past but they are now berried deep. I think it was round-robin or something. If you want, try to search for it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2801

PostPosted: Thu Mar 06, 2025 12:58 pm    Post subject: Reply with quote

sdauth wrote:
if it continues to try to sync a mirror 10000km away. :o


Actually that might not be right. I think it's worth filing a bug as rsync://rsync.gentoo.org/gentoo-portage is intended to pick a mirror near you, not a very slow one 10k km away from you.

Best Regards,
Georgi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54972
Location: 56N 3W

PostPosted: Thu Mar 06, 2025 1:34 pm    Post subject: Reply with quote

sdauth,

Don't use a single mirror, you will be bitten in the bum when it fails.

/etc/portage/repos.conf/gentoo.conf:
sync-type = rsync
#sync-uri = rsync://rsync.gentoo.org/gentoo-portage
sync-uri = rsync://rsync.europe.gentoo.org/gentoo-portage
points to the European mirror rotation.

There are others for different continents too.

== edit ==

Found it! https://www.gentoo.org/support/rsync-mirrors/
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tvashtar
n00b
n00b


Joined: 13 Feb 2019
Posts: 3

PostPosted: Thu Mar 06, 2025 3:55 pm    Post subject: Reply with quote

Something definitely isn't right. This started happening to me too (I'm located in EU). Meanwhile, mirrorselect correctly picks the best mirror (from a neighboring country).
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