Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --sync ruins my repository
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
JustAnother
n00b
n00b


Joined: 23 Sep 2016
Posts: 66

PostPosted: Fri Aug 04, 2017 2:22 am    Post subject: emerge --sync ruins my repository Reply with quote

I am installing gentoo on an amd64 desktop, using the desktop profile.

I made a few missteps, but nothing that should cause this.

I ran emerge-webrsync when the guide said to. but I figured I'd hold off
on emerge --sync until I got some things installed.

But when I later ran emerge --sync it deleted just about everything. Huh?
It should have changed relatively few things.

After that the emerge --deep --newuse @world command showed so many
problems I can't figure out what is going on.

emerge --info does not show any obvious problems.

I reran emerge-webrsync and it seemed to rebuild /usr/portage.

emerge --sync stated trashing my repository again so I cut it off with ^c.

Does anybody know what is going on here, and how to fix this? It should work.

Is it possible to run the rsync command manually just to see if things should work?

Thanks
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7127
Location: almost Mile High in the USA

PostPosted: Fri Aug 04, 2017 5:36 am    Post subject: Reply with quote

Which mirror (what IP of machine) is it connecting to when you emerge --sync?

Are you sure it's "ruining" - is actually deleting everything or simply deleting old ebuilds? Deleting some files is normal when rsyncing.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
JustAnother
n00b
n00b


Joined: 23 Sep 2016
Posts: 66

PostPosted: Fri Aug 04, 2017 2:28 pm    Post subject: Update Reply with quote

I think that my first emerge --sync did ruin my package repository. I've seen this operation delete a lot of files in the past, but this one seemed to delete almost everything and add a few things. After that, the usual emerge --update --deep --newuse @world showed an extreme number of very strange output, to the point that there was too much of it to be useful.

Part of the problem is that an installer has to use the primitive tty terminal, which drops things off the screen very easily, forever.

If webrsync grabs an almost-new snapshot, there shouldn't be many changes when emerge --sync is used the first time, I would think.

So I ran emerge-websrync again with the option to use a day-old snapshot. Then emerge seemed to act ok.

I copied /usr/portage to a temp directory. du -hs --inodes said 199K inodes.

Then I ran emerge --sync and there were a lot of deletions, but nothing like before. /usr/portage now
had 166K inodes vs. the old 199K.

Now the above @world update command said there were many builds needed, and built them.

This morning I reran the update command, expecting nothing. Nothing happened. Then I ran emerge --sync, expecting the usual amount of changes after 12 hours. That's what happened. Then I reran the @world update again, and it did nothing, which is probable after 12 hours.

The upshot here is that something did go very wrong at some point, and I somehow got around the problem. It is unclear as to what broke, and what fixed it.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Fri Aug 04, 2017 2:44 pm    Post subject: Reply with quote

So is the problem kind of [solved]? Then, it is good practice to mark it [solved] in the top post of the topic.practise
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13830

PostPosted: Sat Aug 05, 2017 12:16 am    Post subject: Reply with quote

Since you paraphrased away any details, it is unlikely we can diagnose the problem now. Even when on the terminal, you can save output, either by redirecting large runs to a file or by using a terminal multiplexer such as tmux or GNU screen.

It looks like /var/log/emerge.log records servers with which emerge synced. You may be able to find the bad server from there, if you still have that log.
Back to top
View user's profile Send private message
JustAnother
n00b
n00b


Joined: 23 Sep 2016
Posts: 66

PostPosted: Sun Aug 06, 2017 2:06 am    Post subject: Reply with quote

I didn't know about /var/log/emerge.log.

I think my first --sync was to rsync://176.28.50.119/gentoo-portage.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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