public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] problem with emerge --sync
@ 2025-01-21 17:53 Jack
  2025-01-21 17:57 ` Filip Kobierski
  0 siblings, 1 reply; 3+ messages in thread
From: Jack @ 2025-01-21 17:53 UTC (permalink / raw
  To: Gentoo User List

I had no problem updating my system two or three days ago, but today  
when I try to update, I get:

>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
Auto packing the repository for optimum performance.
See "git help gc" for manual housekeeping.
Enumerating objects: 175170, done.
Counting objects: 100% (175170/175170), done.
Delta compression using up to 16 threads
Compressing objects: 100% (128856/128856), done.
fatal: unable to read de2a1e7d166bc5b3508bbe91e7bef61324ac3183
fatal: failed to run repack
!!! git gc error in /var/db/repos/gentoo

The sync for all other repositories is fine, and I get the same using  
"eix-sync" "emerge --sync" or "emaint sync"

If I "cd /var/db/repos/gentoo/" and then "git status I get

On branch stable
Your branch and 'origin/stable' have diverged,
and have 1 and 1 different commits each, respectively.
   (use "git pull" if you want to integrate the remote branch with  
yours)

nothing to commit, working tree clean

Doing "git fsck --full" gives me "missing blob  
de2a1e7d166bc5b3508bbe91e7bef61324ac3183:" as well as many dangling  
commits.

I'd love to know what happened, but more important is whether there is  
a way to recover from this, or should I just remove and re-add the  
repository with eselect repository?

Jack


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

* Re: [gentoo-user] problem with emerge --sync
  2025-01-21 17:53 [gentoo-user] problem with emerge --sync Jack
@ 2025-01-21 17:57 ` Filip Kobierski
  2025-01-21 19:35   ` Jack
  0 siblings, 1 reply; 3+ messages in thread
From: Filip Kobierski @ 2025-01-21 17:57 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

Hi,

I am no portage expert but wouldn't
wouldn't
# emerge-webrsync
help here?

If that does not work I would hard reset the branch to HEAD~n commits (until branches converge) and sync again.

Regards
fkobi
-------- Original Message --------
On 1/21/25 18:53, Jack <ostroffjh@users.sourceforge.net> wrote:

>  I had no problem updating my system two or three days ago, but today
>  when I try to update, I get:
>  
>  >>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
>  Auto packing the repository for optimum performance.
>  See "git help gc" for manual housekeeping.
>  Enumerating objects: 175170, done.
>  Counting objects: 100% (175170/175170), done.
>  Delta compression using up to 16 threads
>  Compressing objects: 100% (128856/128856), done.
>  fatal: unable to read de2a1e7d166bc5b3508bbe91e7bef61324ac3183
>  fatal: failed to run repack
>  !!! git gc error in /var/db/repos/gentoo
>  
>  The sync for all other repositories is fine, and I get the same using
>  "eix-sync" "emerge --sync" or "emaint sync"
>  
>  If I "cd /var/db/repos/gentoo/" and then "git status I get
>  
>  On branch stable
>  Your branch and 'origin/stable' have diverged,
>  and have 1 and 1 different commits each, respectively.
>     (use "git pull" if you want to integrate the remote branch with
>  yours)
>  
>  nothing to commit, working tree clean
>  
>  Doing "git fsck --full" gives me "missing blob
>  de2a1e7d166bc5b3508bbe91e7bef61324ac3183:" as well as many dangling
>  commits.
>  
>  I'd love to know what happened, but more important is whether there is
>  a way to recover from this, or should I just remove and re-add the
>  repository with eselect repository?
>  
>  Jack
>  
>


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

* Re: [gentoo-user] problem with emerge --sync
  2025-01-21 17:57 ` Filip Kobierski
@ 2025-01-21 19:35   ` Jack
  0 siblings, 0 replies; 3+ messages in thread
From: Jack @ 2025-01-21 19:35 UTC (permalink / raw
  To: gentoo-user

On 2025.01.21 12:57, Filip Kobierski wrote:
> Hi,
> 
> I am no portage expert but wouldn't
> # emerge-webrsync
> help here?
Unfortunately no, it doesn't work because the sync type is git, not  
rsync or webrsync.

> If that does not work I would hard reset the branch to HEAD~n commits  
> (until branches converge) and sync again.
It's a shallow clone, and git log shows only one commit (from today) so  
I'm not sure, but I've now got "git status" showing no problems, but  
another sync gives the same error again.  For now, I'll wait until I'm  
sure there are new commits to the tree and try again then (or tomorrow.)

> Regards
> fkobi
> -------- Original Message --------
> On 1/21/25 18:53, Jack <ostroffjh@users.sourceforge.net> wrote:
> 
> >  I had no problem updating my system two or three days ago, but  
> today
> >  when I try to update, I get:
> >
> >  >>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
> >  Auto packing the repository for optimum performance.
> >  See "git help gc" for manual housekeeping.
> >  Enumerating objects: 175170, done.
> >  Counting objects: 100% (175170/175170), done.
> >  Delta compression using up to 16 threads
> >  Compressing objects: 100% (128856/128856), done.
> >  fatal: unable to read de2a1e7d166bc5b3508bbe91e7bef61324ac3183
> >  fatal: failed to run repack
> >  !!! git gc error in /var/db/repos/gentoo
> >
> >  The sync for all other repositories is fine, and I get the same  
> using
> >  "eix-sync" "emerge --sync" or "emaint sync"
> >
> >  If I "cd /var/db/repos/gentoo/" and then "git status I get
> >
> >  On branch stable
> >  Your branch and 'origin/stable' have diverged,
> >  and have 1 and 1 different commits each, respectively.
> >     (use "git pull" if you want to integrate the remote branch with
> >  yours)
> >
> >  nothing to commit, working tree clean
> >
> >  Doing "git fsck --full" gives me "missing blob
> >  de2a1e7d166bc5b3508bbe91e7bef61324ac3183:" as well as many dangling
> >  commits.
> >
> >  I'd love to know what happened, but more important is whether  
> there is
> >  a way to recover from this, or should I just remove and re-add the
> >  repository with eselect repository?
> >
> >  Jack
> >
> >
> 
> 



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

end of thread, other threads:[~2025-01-21 19:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-21 17:53 [gentoo-user] problem with emerge --sync Jack
2025-01-21 17:57 ` Filip Kobierski
2025-01-21 19:35   ` Jack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox