Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --sync hanging
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
thunderrd
n00b
n00b


Joined: 20 Aug 2010
Posts: 59

PostPosted: Mon Oct 15, 2018 2:57 pm    Post subject: emerge --sync hanging Reply with quote

On my machine, emerge --sync has recently begun to hang for as much as 2 minutes before scrolling the sync list at this point:
Code:
root@Q6600: ~# emerge --sync
>>> Syncing repository 'gentoo' into '/mnt/ext4_STORAGE/usr/portage'...
>>> Starting rsync with rsync://89.238.71.6/gentoo-portage...
>>> Checking server timestamp ...
opening tcp connection to 89.238.71.6 port 873
sending daemon args: --server --sender -vvlWtprze.iLsfxC --timeout=180 --safe-links . gentoo-portage/metadata/timestamp.chk  (7 args)
Welcome to turnstone.gentoo.org / rsync.gentoo.org

Server Address : 89.238.71.6, 2a00:1828:a00d:ffff::6
Contact Name   : mirror-admin@gentoo.org
Hardware       : 16 x Intel(R) Xeon(R) CPU E5530 @ 2.40GHz, 24160MB RAM
Sponsor        : Manitu GmbH, St. Wendel, Germany

Please note: common gentoo-netiquette says you should not sync more
than once a day.  Users who abuse the rsync.gentoo.org rotation
may be added to a temporary ban list.

MOTD autogenerated by update-rsync-motd on Tue Jan  2 08:34:00 UTC 2018

receiving incremental file list
delta-transmission disabled for local transfer or --whole-file
timestamp.chk
             32 100%   31.25kB/s    0:00:00 (xfr#1, to-chk=0/1)

rsync[19712] (receiver) heap statistics:
  arena:         311296   (bytes from sbrk)
  ordblks:            2   (chunks not in use)
  smblks:             0
  hblks:              1   (chunks from mmap)
  hblkhd:        266240   (bytes from mmap)
  allmem:        577536   (bytes from sbrk + mmap)
  usmblks:            0
  fsmblks:            0
  uordblks:      265760   (bytes used)
  fordblks:       45536   (bytes free)
  keepcost:       43520   (bytes in releasable chunk)

rsync[19709] (generator) heap statistics:
  arena:         311296   (bytes from sbrk)
  ordblks:            2   (chunks not in use)
  smblks:             0
  hblks:              0   (chunks from mmap)
  hblkhd:             0   (bytes from mmap)
  allmem:        311296   (bytes from sbrk + mmap)
  usmblks:            0
  fsmblks:            0
  uordblks:      176576   (bytes used)
  fordblks:      134720   (bytes free)
  keepcost:      132704   (bytes in releasable chunk)

Number of files: 1 (reg: 1)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 1
Total file size: 32 bytes
Total transferred file size: 32 bytes
Literal data: 32 bytes
Matched data: 0 bytes
File list size: 41
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 601
Total bytes received: 132

sent 601 bytes  received 132 bytes  209.43 bytes/sec
total size is 32  speedup is 0.04                           <-------SYNC halts here


Here the machine stops, with extremely heavy disk activity, for between 1 and 2 minutes before continuing with the sync.

What does emerge --sync do at the sent/received/total size/speedup lines? I have portage built with -rsync-verify, so it can't be that.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Tue Oct 16, 2018 8:56 am    Post subject: Reply with quote

Please read this and hopefully it can help
https://wiki.gentoo.org/wiki/Project:Portage/Sync#Operation

From the looks of it the sync is not running at all.

When you sync to this folder, have you assigned the correct permissions for portage to be able to read and write to that folder?
Quote:
>>> Syncing repository 'gentoo' into '/mnt/ext4_STORAGE/usr/portage'...


Also, since the delta-sync is turned off did you make any prior attempts somewhere in the configuration files to adapt the sync method.

Try emerge-webrsync to see what it does instead? I don't recall whether that command is meant to be run as root.
Back to top
View user's profile Send private message
thunderrd
n00b
n00b


Joined: 20 Aug 2010
Posts: 59

PostPosted: Tue Oct 16, 2018 2:32 pm    Post subject: Reply with quote

No, the sync definitely runs, it just pauses at the point I indicated. After a couple of minutes, the packages scroll away as normal. This is an old installation of Gentoo, I've been with it for 12 years, so I can say with confidence that it works. Directory permissions are correct.

This pausing at the indicated point is recent new behavior, and I don't know what the disk activity is at that point.

That wiki page you gave me seems to indicate that the default emerge --sync and eix-sync behaviors have changed as recently as August 30. Perhaps that is related to this issue. I'll have to dig deeper.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Fri Oct 19, 2018 8:33 am    Post subject: Reply with quote

To try a solution of a possibly different angle, since I do recall a while ago there were some problems I had similar with sync being sluggish and it turned out to be with the verification process, so at least to fix the situation on my PC I disabled the rsync-verification use flag in portage and that seemed to help.

Have you been able to try using a different sync method for now. Git, can be used I think
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