Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41023 - emerge crashes while trying to search after adding username to portage group
Summary: emerge crashes while trying to search after adding username to portage group
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-09 14:47 UTC by scope
Modified: 2004-02-10 23:32 UTC (History)
2 users (show)

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 scope 2004-02-09 14:47:54 UTC
when i try to do an emerge search on anything as a local user (after adding the user to the portage group) emerge gives python errors

Reproducible: Always
Steps to Reproduce:
1. emerge search <anything>
2.
3.
Actual Results:  
gives: 
 
junk@lizzy etc $ emerge search irc 
 
*** You are not in the portage group. You may experience cache problems 
*** due to permissions preventing the creation of the on-disk cache. 
*** Please add this user to the portage group if you wish to use portage. 
 
Searching...  |Traceback (most recent call last): 
  File "/usr/bin/emerge", line 2327, in ? 
    searchinstance.execute(mysearch) 
  File "/usr/bin/emerge", line 545, in execute 
    if not portage.portdb.xmatch("match-visible",package): 
  File "/usr/lib/portage/pym/portage.py", line 4684, in xmatch 
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey)) 
  File "/usr/lib/portage/pym/portage.py", line 4670, in xmatch 
    myval=self.gvisible(self.visible(self.cp_list(mykey))) 
  File "/usr/lib/portage/pym/portage.py", line 4765, in gvisible 
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"]) 
  File "/usr/lib/portage/pym/portage.py", line 4528, in aux_get 
    mylock = lockfile(mydbkey,unlinkfile=1) 
  File "/usr/lib/portage/pym/portage.py", line 81, in lockfile 
    myfd = os.open(lockfilename, os.O_CREAT|os.O_WRONLY,0660) 
OSError: [Errno 13] Permission denied: '/var/cache/edb/dep//aux_db_key_temp' 
 

Expected Results:  
displayed search results 

junk@lizzy etc $ emerge info 
 
*** You are not in the portage group. You may experience cache problems 
*** due to permissions preventing the creation of the on-disk cache. 
*** Please add this user to the portage group if you wish to use portage. 
 
Portage 2.0.50 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo) 
================================================================= 
System uname: 2.6.1-gentoo i686 AMD Athlon(tm) XP 2400+ 
Gentoo Base System version 1.4.3.13 
Autoconf: sys-devel/autoconf-2.58 
Automake: sys-devel/automake-1.7.7 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo 
ftp://203.16.234.19/pub/gentoo/ ftp://203.16.234.20/pub/gentoo/ 
ftp://ftp.vic.keypoint.com.au http://gentoo.ccccom.com" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" 
USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif 
gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mozilla mpeg 
ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 1 scope 2004-02-09 14:51:35 UTC
according to /etc/group, the user junk is in the portage group as well
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-02-09 16:30:39 UTC
Works fine here.

What are the permissions on /var/cache/edb/dep? Did you add junk to the portage group without re-logging in?
Comment 3 scope 2004-02-09 16:44:18 UTC
when i added the user to the group i relogged in. the permissions on /var/cache/edb/dep are:

drwxrwsr-x  105 root     portage      5272 Feb 10 12:50 dep
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-02-10 23:32:54 UTC
Delete that file as root, or run that operation as root and
the problem should go away.