Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 111873

Summary: emerge world fails with message errno 13 permission denied.
Product: Gentoo Linux Reporter: Giorgos Akrivas <gakrivas>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Giorgos Akrivas 2005-11-08 06:24:10 UTC
When I try to emerge world, I get a permission denied message. I think it may  
be related to bug 111871, which I submitted.   
    
   
    

Reproducible: Always
Steps to Reproduce:
1.emerge -uDf world 
2. 
3. 
 
Actual Results:  
Calculating world dependencies /Traceback (most recent call last):  
  File "/usr/bin/emerge", line 3112, in ?  
    if not mydepgraph.xcreate(myaction):  
  File "/usr/bin/emerge", line 1424, in xcreate  
    if not self.create(myk,myuse=binpkguseflags):  
  File "/usr/bin/emerge", line 1012, in create  
    if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse):  
  File "/usr/bin/emerge", line 1199, in select_dep  
    myeb_matches = portage.portdb.xmatch("match-visible",x)  
  File "/usr/lib/portage/pym/portage.py", line 5538, in xmatch  
     
myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep=mydep,mykey=mykey))  
  File "/usr/lib/portage/pym/portage.py", line 5524, in xmatch  
    myval=self.gvisible(self.visible(self.cp_list(mykey)))  
  File "/usr/lib/portage/pym/portage.py", line 5622, in gvisible  
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])  
  File "/usr/lib/portage/pym/portage.py", line 5361, in aux_get  
    self.auxdb[mylocation][cat][pkg] = mydata  
  File "/usr/lib/portage/pym/portage_db_template.py", line 85, in __setitem__  
    return self.set_values(key,values)  
  File "/usr/lib/portage/pym/portage_db_flat.py", line 95, in set_values  
    os.rename(update_fp, self.fullpath+key)  
OSError: [Errno 13] Permission denied  
 

Expected Results:  
proceed without errors. 

Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 
2.6.13-gentoo-r5 x86_64) 
================================================================= 
System uname: 2.6.13-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3800+ 
Gentoo Base System version 1.6.13 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.5-r2, 2.4.2 
sys-apps/sandbox:    1.2.12 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=k8 -O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/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/splash /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=k8 -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo  
http://ftp.snt.utwente.nl/pub/os/linux/gentoo 
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.mirror.icd.hu/ 
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo" 
LANG="en_US.utf8" 
LINGUAS="en el" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="amd64 X a52 aalib alsa apache2 arts audiofile avi bash-completion berkdb 
bitmap-fonts bonobo bzip2 cdr crypt cups curl directfb divx4linux dts dv dvd 
dvdread eds emboss encode esd exif expat fam fame fbcon ffmpeg flac foomaticdb 
fortran gdbm ggi gif gimpprint gimprint glut gmp gnome gnutls gpm gstreamer gtk 
gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 jack java jpeg junit kde 
kdeenablefinal lcms libcaca libwww lzw lzw-tiff mad matroska mhash mng mozilla 
mp3 mpeg mysql nas ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss 
pam pcre pdflib perl pic png ppds python qt quicktime readline real recode 
samba sdl spell ssl subtitles symlink tcpd tetex theora tiff truetype 
truetype-fonts type1-fonts udev unicode usb userlocales vorbis xine xinerama 
xml xml2 xmms xpm xv xvid xvmc zlib linguas_en linguas_el userland_GNU 
kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Comment 1 lzap 2005-11-08 06:31:44 UTC
Provide output of these commands:

# whoami

# ls /usr/lib/portage/pym -la
Comment 2 lzap 2005-11-08 06:33:27 UTC
and

# mount
Comment 3 Giorgos Akrivas 2005-11-08 06:42:24 UTC
It seems that my /usr ReiserFS filesystem is corrupted (I have an AMD64 64-bit 
system). Thank you for your time. 
 
whoami  
root  
 
ls /usr/lib/portage/pym -la 
total 850 
drwxr-xr-x  2 root root   1832 &#925;&#959;&#941;  8 12:41 . 
drwxr-xr-x  4 root root     96 &#913;&#973;&#947;  6 16:23 .. 
-rw-r--r--  1 root root   9815 &#925;&#959;&#941;  8 12:40 cvstree.py 
-rw-r--r--  1 root root   9291 &#925;&#959;&#941;  8 12:40 cvstree.pyo 
-rw-r--r--  1 root root  12884 &#925;&#959;&#941;  8 12:40 dcdialog.py 
-rw-r--r--  1 root root  12913 &#925;&#959;&#941;  8 12:40 dcdialog.pyo 
-rw-r--r--  1 root root   6176 &#925;&#959;&#941;  8 12:40 dispatch_conf.py 
-rw-r--r--  1 root root   5472 &#925;&#959;&#941;  8 12:40 dispatch_conf.pyo 
-rw-r--r--  1 root root  22900 &#925;&#959;&#941;  8 12:40 emergehelp.py 
-rw-r--r--  1 root root  22200 &#925;&#959;&#941;  8 12:41 emergehelp.pyo 
-rw-r--r--  1 root root  15220 &#925;&#959;&#941;  8 12:40 getbinpkg.py 
-rw-r--r--  1 root root  15566 &#925;&#959;&#941;  8 12:40 getbinpkg.pyo 
-rw-r--r--  1 root root   4231 &#925;&#959;&#941;  8 12:40 output.py 
-rw-r--r--  1 root root   6123 &#925;&#959;&#941;  8 12:40 output.pyo 
-rw-r--r--  1 root root   3900 &#925;&#959;&#941;  8 12:40 portage_checksum.py 
-rw-r--r--  1 root root   4420 &#925;&#959;&#941;  8 12:40 portage_checksum.pyo 
-rw-r--r--  1 root root   2367 &#925;&#959;&#941;  8 12:40 portage_const.py 
-rw-r--r--  1 root root   1983 &#925;&#959;&#941;  8 12:40 portage_const.pyo 
-rw-r--r--  1 root root   4614 &#925;&#959;&#941;  8 12:40 portage_contents.py 
-rw-r--r--  1 root root   5225 &#925;&#959;&#941;  8 12:40 portage_contents.pyo 
-rw-r--r--  1 root root   2856 &#925;&#959;&#941;  8 12:40 portage_data.py 
-rw-r--r--  1 root root   2894 &#925;&#959;&#941;  8 12:40 portage_data.pyo 
-rw-r--r--  1 root root   1564 &#925;&#959;&#941;  8 12:40 portage_db_anydbm.py 
-rw-r--r--  1 root root   2425 &#925;&#959;&#941;  8 12:40 portage_db_anydbm.pyo 
-rw-r--r--  1 root root   1782 &#925;&#959;&#941;  8 12:40 portage_db_cpickle.py 
-rw-r--r--  1 root root   2781 &#925;&#959;&#941;  8 12:40 portage_db_cpickle.pyo 
-rw-r--r--  1 root root   3062 &#925;&#959;&#941;  8 12:40 portage_db_flat.py 
-rw-r--r--  1 root root   3424 &#925;&#959;&#941;  8 12:40 portage_db_flat.pyo 
-rw-r--r--  1 root root   4301 &#925;&#959;&#941;  8 12:40 portage_db_template.py 
-rw-r--r--  1 root root   6066 &#925;&#959;&#941;  8 12:40 portage_db_template.pyo 
-rw-r--r--  1 root root    861 &#925;&#959;&#941;  8 12:40 portage_db_test.py 
-rw-r--r--  1 root root    751 &#925;&#959;&#941;  8 12:40 portage_db_test.pyo 
-rw-r--r--  1 root root   4893 &#925;&#959;&#941;  8 12:40 portage_dep.py 
-rw-r--r--  1 root root   3838 &#925;&#959;&#941;  8 12:40 portage_dep.pyo 
-rw-r--r--  1 root root   4457 &#925;&#959;&#941;  8 12:40 portage_exception.py 
-rw-r--r--  1 root root   9594 &#925;&#959;&#941;  8 12:40 portage_exception.pyo 
-rw-r--r--  1 root root   5403 &#925;&#959;&#941;  8 12:40 portage_exec.py 
-rw-r--r--  1 root root   5370 &#925;&#959;&#941;  8 12:40 portage_exec.pyo 
-rw-r--r--  1 root root   1630 &#925;&#959;&#941;  8 12:40 portage_file.py 
-rw-r--r--  1 root root   1871 &#925;&#959;&#941;  8 12:40 portage_file.pyo 
-rw-r--r--  1 root root   4918 &#925;&#959;&#941;  8 12:40 portage_gpg.py 
-rw-r--r--  1 root root   4388 &#925;&#959;&#941;  8 12:40 portage_gpg.pyo 
-rw-r--r--  1 root root    846 &#925;&#959;&#941;  8 12:40 portage_localization.py 
-rw-r--r--  1 root root    856 &#925;&#959;&#941;  8 12:40 portage_localization.pyo 
-rw-r--r--  1 root root  10215 &#925;&#959;&#941;  8 12:40 portage_locks.py 
-rw-r--r--  1 root root   9334 &#925;&#959;&#941;  8 12:40 portage_locks.pyo 
-rw-r--r--  1 root root 233683 &#925;&#959;&#941;  8 12:40 portage.py 
-rw-r--r--  1 root root 195429 &#925;&#959;&#941;  8 12:40 portage.pyo 
-rw-r--r--  1 root root   1960 &#925;&#959;&#941;  8 12:40 portage.py.rej 
-rw-r--r--  1 root root  12573 &#925;&#959;&#941;  8 12:40 portage_util.py 
-rw-r--r--  1 root root  13482 &#925;&#959;&#941;  8 12:40 portage_util.pyo 
-rw-r--r--  1 root root  10621 &#925;&#959;&#941;  8 12:40 xpak.py 
-rw-r--r--  1 root root  12227 &#925;&#959;&#941;  8 12:40 xpak.pyo 
  
mount 
/dev/hda7 on / type reiserfs (rw,noatime,notail) 
proc on /proc type proc (rw) 
sysfs on /sys type sysfs (rw) 
udev on /dev type tmpfs (rw,nosuid) 
devpts on /dev/pts type devpts (rw) 
none on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) 
/dev/hda1 on /mnt/windows type ntfs (rw,noatime,utf8) 
/dev/hda9 on /mnt/media_A type vfat (rw,noexec,nosuid,nodev,noatime,utf8) 
/dev/mapper/vg-home on /home type reiserfs (rw,noatime,notail) 
/dev/hda12 on /mnt/media_B type vfat (rw,noexec,nosuid,nodev,noatime,utf8) 
/dev/mapper/vg-opt on /opt type reiserfs (rw,noatime,notail) 
/dev/mapper/vg-tmp on /tmp type reiserfs (rw,noatime,notail) 
/dev/mapper/vg-usr on /usr type reiserfs (rw,noatime,notail) 
/dev/mapper/vg-backup on /.snapshots type reiserfs (rw,noatime,notail) 
/dev/mapper/vg-var on /var type reiserfs (rw,noatime,notail) 
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)