Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64810 - emerge -s fails for general purpose user, saying 'user must be in portage group', where user IS in porgage group
Summary: emerge -s fails for general purpose user, saying 'user must be in portage gro...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-20 17:37 UTC by Mark
Modified: 2004-09-21 17:09 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 Mark 2004-09-20 17:37:04 UTC
here is an example:
burrito callipygous /usr/portage/net-irc $ emerge -s ngircd

*** 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 2336, 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 4711, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4697, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 4792, in gvisible
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])
  File "/usr/lib/portage/pym/portage.py", line 4542, 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'
burrito callipygous /usr/portage/net-irc $ cat /etc/group |grep portage
portage:x:250:portage,callipygous       

as you can see, the user is in the portage group.

Reproducible: Sometimes
Steps to Reproduce:
1. Make sure user is in the portage group, but not su -'d
2. emerge -s a package 
3. see that it didn't work as desired

Actual Results:  
see above 

Expected Results:  
showed this 
 
Searching... 
[ Results for search key : ngircd ] 
[ Applications found : 1 ] 
 
*  net-irc/ngircd 
      Latest version available: 0.8.0 
      Latest version installed: [ Not Installed ] 
      Size of downloaded files: 260 kB 
      Homepage:    http://arthur.ath.cx/~alex/ngircd/ 
      Description: A IRC server written from scratch. 
      License:     GPL-2 
 

portage version 2.0.50-r11
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-09-20 20:55:07 UTC
what does `id callipygous` say ?
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-09-21 00:23:50 UTC
To further describe the reasoning for the question in the previous comment, linux requires that a user log off and log on again (or executing something like newgrp) for the group change to take effect. It seems like you have not done this..
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-09-21 01:27:24 UTC
got this per mail:

id callipygous says: 
burrito callipygous ~ $ id callipygous
uid=1000(callipygous) gid=100(users) groups=100(users),6(disk),10(wheel),18(audio),19(cdrom),35(games),250(portage)
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-09-21 16:53:07 UTC
Run it as root once. Reopen if you can duplicate.

ls -l /var/cache/edb/dep/aux_db_key_temp

You also did not indicate portage version.
Comment 5 Mark 2004-09-21 17:09:50 UTC
I indicated portage version, here is is again anyway portage version 2.0.50-r11
Seems tho that I had to actually log out and log back in again ... not just open up a new terminal :/
tho I do remember that in previous versions or portage you didn't have to be in the portage group to
emerge -s or -p something, you just couldn't install anything ... oh well.  Thanks