Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66468 - impatient users + distfile locks == bad mojo
Summary: impatient users + distfile locks == bad mojo
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-05 16:01 UTC by SpanKY
Modified: 2005-02-28 01:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2004-10-05 16:01:23 UTC
i started to download openoffice-bin and when i saw it was 80 megs and i knew i wanted to reboot shortly, i hit CTRL+C

then i thought, 'well, i have to fix this prob and it will probably take a few minutes, so might as well let it download while i do this ...'

so i ran `emerge openoffice-bin` again

when i came back to that terminal though, nothing had been done !
root@vapier 0 ~ # emerge openoffice-bin   
Calculating dependencies ...done!
>>> emerge (1 of 1) app-office/openoffice-bin-1.1.3 to /
exit>>> Downloading ftp://ftp.ussg.iu.edu/pub/linux/gentoo/distfiles/OOo_1.1.3_LinuxIntel_install.tar.gz
--18:45:19--  ftp://ftp.ussg.iu.edu/pub/linux/gentoo/distfiles/OOo_1.1.3_LinuxIntel_install.tar.gz
           => `/usr/portage/distfiles/OOo_1.1.3_LinuxIntel_install.tar.gz'
Resolving ftp.ussg.iu.edu... 156.56.247.193
Connecting to ftp.ussg.iu.edu[156.56.247.193]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/linux/gentoo/distfiles ... done.
==> PASV ... done.    ==> RETR OOo_1.1.3_LinuxIntel_install.tar.gz ... done.
Length: 80,123,557 (unauthoritative)

 0% [                                               ] 173,336      166.03K/s             root@vapier 0 ~ # emerge openoffice-bin
Calculating dependencies ...done!
>>> emerge (1 of 1) app-office/openoffice-bin-1.1.3 to /

Waiting on (hardlink) lockfile: (one '.' per 3 seconds)
This is a feature to prevent distfiles corruption.
/usr/lib/portage/bin/clean_locks can fix stuck locks.
Lockfile: /usr/portage/distfiles/.locks/OOo_1.1.3_LinuxIntel_install.tar.gz.portage_lockfile
......................................................................................................................................
root@vapier 0 ~ # 

yes, my /usr/portage/distfiles/ is a nfs3 mount:
root@vapier 0 ~ # mount | grep /usr/portage/distfiles
gentoo:/mnt/space/distfiles on /usr/portage/distfiles type nfs (rw,nfsvers=3,retry=11,soft,tcp,intr,rsize=16384,wsize=16384,addr=192.168.0.5)

root@vapier 0 ~ # ls -l /usr/portage/distfiles/.locks/
total 0
-rw-rw----  1 root portage 0 Sep 29 09:36 5.portage_lockfile
-rw-r-----  2 root portage 0 Oct  5 18:41 OOo_1.1.3_LinuxIntel_install.tar.gz.portage_lockfile
-rw-r-----  2 root portage 0 Oct  5 18:41 OOo_1.1.3_LinuxIntel_install.tar.gz.portage_lockfile.hardlock-vapier-5606
-rw-r-----  1 root portage 0 Oct  5 18:41 OOo_1.1.3_LinuxIntel_install.tar.gz.portage_lockfile.hardlock-vapier-5628

Portage 2.0.51_rc7 (default-linux/x86/2004.2, gcc-3.4.2, glibc-2.3.4.20041002-r0, 2.6.9-rc3 i686)
=================================================================
System uname: 2.6.9-rc3 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.6.1
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-pipe -march=pentium4 -O2 -frename-registers -fomit-frame-pointer -mmmx -msse -msse2 -fdelete-null-pointer-checks -funroll-loops -ffast-math -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -march=pentium4 -O2 -frename-registers -fomit-frame-pointer -mmmx -msse -msse2 -fdelete-null-pointer-checks -funroll-loops -ffast-math -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache cvs distlocks noauto noinfo sandbox sfperms sign"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j4"
PKGDIR="/mnt/space/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo/gentoo-portage"
USE="X aalib acl acpi adns alsa apache2 avi bitmap-fonts cdr crypt cscope cups dedicated dga directfb dvd dvdr emu10k1 encode esd fam fbcon flac flash foomaticdb gd gd-external gdbm gif gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 joystick jpeg kde libwww mad maildir mikmod mmx moznocompose moznoirc moznomail mpeg mysql nas ncurses nls nocardbus nptl nptlonly offensive oggvorbis opengl oss pam pdflib perl php pic plotutils png pnp python quicktime readline samba sdl slp snmp socks5 speex spell sse ssl svga tcltk tcpd tiff truetype wavelan x86 xine xml xml2 xmms xprint xv zlib video_cards_nvidia"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-10-05 16:03:57 UTC
READ THEN:

/usr/lib/portage/bin/clean_locks can fix stuck locks.

:-p

We're working on the signal handling so this will clean up
after itself. Not entirely certain why control-c gets propogated
to ebuild.sh instead of being intercepted.
Comment 2 SpanKY gentoo-dev 2004-10-05 16:21:56 UTC
oh, i missed the 'clean_locks' :p

i was just gonna `rm -rf` the lock dir anyways
Comment 3 Brian Harring (RETIRED) gentoo-dev 2005-02-28 01:13:42 UTC
Spanky, see if you can trigger this again please.  It shouldn't be possible (different locking approach).
Re-open if it is please...