I've been running gentoo for years now, and every time I go to --sync,
it's really a painful process.
The process can take *very* before you find out if it succeeded or not.
I try different repos.conf servers - one works for a while, then
doesn't, then later, the new one doesn't work anymore and the old one
works again.
I've asked here about it multiple times and get the answers
- "I don't have a problem"
- "just change the server"
- "keep trying"
It can take several hours before it finally works
It seems like a time-out problem. Or maybe a memory problem ... In any case, it doesn't seem like it ought to be difficult to at least know
what the problem is.
Or?
I've been running gentoo for years now, and every time I go to --sync,
it's really a painful process.
The process can take *very* before you find out if it succeeded or not.
I try different repos.conf servers - one works for a while, then
doesn't, then later, the new one doesn't work anymore and the old one
works again.
I've asked here about it multiple times and get the answers
- "I don't have a problem"
- "just change the server"
- "keep trying"
It can take several hours before it finally works
It seems like a time-out problem. Or maybe a memory problem ... In any case, it doesn't seem like it ought to be difficult to at least know
what the problem is.
Or?
I've been running gentoo for years now, and every time I go to --sync,
it's really a painful process.
The process can take *very* before you find out if it succeeded or not.
I try different repos.conf servers - one works for a while, then
doesn't, then later, the new one doesn't work anymore and the old one
works again.
I've been running gentoo for years now, and every time I go to --sync,...
it's really a painful process.
The process can take *very* [long] before you find out if it succeeded or not.
It can take several hours before it finally works
It seems like a time-out problem. Or maybe a memory problem ... In any case, it doesn't seem like it ought to be difficult to at least know
what the problem is.
Or?
Sonntag, 31. Juli 2022 21:51:
I've been running gentoo for years now, and every time I go to --sync,
it's really a painful process.
The process can take *very* [long] before you find out if it succeeded or not.
...
It can take several hours before it finally works
Use a tool like atop to get some info about the throughput
of your network connection. Something like "ss -ntp" might
show interesting info about the state of the connection
between your machine and the server, too.
You might have problems with DNS name resolution or your
box patiently trying to establish an IPv6 connection when
your internet connection is IPv4 only.
But switching to git, like Neil said, does make things faster.
FWIW, my config file reads like this:
# cat /etc/portage/repos.conf/gentoo.conf
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo.git
auto-sync = yes
sync-git-verify-commit-signature = yes
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
good luck,
s.
It seems like a time-out problem. Or maybe a memory problem ... In any
case, it doesn't seem like it ought to be difficult to at least know
what the problem is.
Or?
Had a similar issue to the OP, and it turned out to be a flaky internet connection. I switched ISP's and, while sync's still take longer than
I'd like, I don't have the failures, time outs I did before.
/var/portageSyncing repository 'gentoo' into '/var/portage'...
I switched to using git for syncing, from github, and haven't looked
back. It is *much* faster, several times faster syncing from github than using rsync to sync from a local mirror, and github is always there.
On Sunday, 31 July 2022 21:43:12 BST Neil Bothwick wrote:
I switched to using git for syncing, from github, and haven't looked
back. It is *much* faster, several times faster syncing from github than using rsync to sync from a local mirror, and github is always there.
One thing to note, if you do change to git syncing, is that you'll have to delete your entire portage tree: 'rm -r /var/db/repos/portage'. That may
seem
like a bad idea if you're having sync problems, but it isn't really. After that, the sync will take just seconds, as Neil said.
You'll never look back.
--
Regards,
Peter.
I've been running gentoo for years now, and every time I go to --sync,
it's really a painful process.
The process can take *very* before you find out if it succeeded or not.
I try different repos.conf servers - one works for a while, then
doesn't, then later, the new one doesn't work anymore and the old one
works again.
I've asked here about it multiple times and get the answers
- "I don't have a problem"
- "just change the server"
- "keep trying"
It can take several hours before it finally works
It seems like a time-out problem. Or maybe a memory problem ... In any case, it doesn't seem like it ought to be difficult to at least know
what the problem is.
Or?
On 7/31/22 21:51, n952162 wrote:
I've been running gentoo for years now, and every time I go to --sync,
it's really a painful process.
The process can take *very* before you find out if it succeeded or not.
I try different repos.conf servers - one works for a while, then
doesn't, then later, the new one doesn't work anymore and the old one
works again.
I've asked here about it multiple times and get the answers
- "I don't have a problem"
- "just change the server"
- "keep trying"
It can take several hours before it finally works
It seems like a time-out problem. Or maybe a memory problem ... In any case, it doesn't seem like it ought to be difficult to at least know
what the problem is.
Or?
Thanks all, for the various suggestions, I'll try each.
1. It used to be the case the first time you run git it would try to
download GB of commits history and take ages to do so on a slow
connection. The solution used to be to add "EGIT_CLONE_TYPE=shallow"
in your make.conf, but I'm not sure if this is still needed (I don't
use git).
/usr/bin/git clone --depth 1 https://github.com/gentoo-mirror/gentoo .Syncing repository 'gentoo' into '/var/portage'...
[…]
2. These days rsync uses hashes and gpg to check the integrity of
portage and will flag up a warning in case of file tampering, or
corrupt data. As far as I know such a solution doesn't exist with
git.
On 2022-08-01 07:58+0100 Michael <confabulate@kintzios.com> wrote:
[…]
2. These days rsync uses hashes and gpg to check the integrity of
portage and will flag up a warning in case of file tampering, or
corrupt data. As far as I know such a solution doesn't exist with
git.
Verification can be turned on with
sync-git-verify-commit-signature = yes
in repos.conf.[1] This does not seem to be enabled by default.[2]
[1] <https://wiki.gentoo.org/wiki/Project:Portage/Repository_verification#git> [2] <https://wiki.gentoo.org/wiki/Portage_Security#git-mirror_repositories>
I've been running gentoo for years now, and every time I go to --sync,
it's really a painful process.
The process can take *very* before you find out if it succeeded or not.
It can take several hours before it finally works
...
I switched to using git for syncing, from github, and haven't looked
back. It is *much* faster, several times faster syncing from github than using rsync to sync from a local mirror, and github is always there.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 302 |
Nodes: | 16 (0 / 16) |
Uptime: | 96:14:57 |
Calls: | 6,764 |
Calls today: | 2 |
Files: | 12,295 |
Messages: | 5,376,361 |
Posted today: | 1 |