Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45363 - repoman crashes with errors.
Summary: repoman crashes with errors.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All All
: High blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 45466 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-22 02:02 UTC by Spider (RETIRED)
Modified: 2004-07-20 12:19 UTC (History)
5 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 Spider (RETIRED) gentoo-dev 2004-03-22 02:02:02 UTC
I've run emerge regen (no obvious errors) 

We're not in PORTDIR... setting to: /mnt/stuff/TEMP/cvstree/gentoo-x86

RepoMan scours the neighborhood...
Traceback (most recent call last):
  File "/usr/bin/repoman", line 716, in ?
    repoman_settings.regenerate()
  File "/usr/lib/portage/pym/portage.py", line 1392, in regenerate
    self.configdict["auto"]["USE"]=autouse(db[root]["vartree"],use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 1121, in autouse
    myresult=dep_check(mydep,myvartree.dbapi,None,use="no",use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3309, in dep_check
    mylist=flatten(dep_listcleanup(dep_zapdeps(mysplit,mysplit2)))
  File "/usr/lib/portage/pym/portage.py", line 3052, in dep_zapdeps
    myresult=dep_zapdeps(unreduced[x],reduced[x])
  File "/usr/lib/portage/pym/portage.py", line 3038, in dep_zapdeps
    elif myportapi.match(x):
AttributeError: 'NoneType' object has no attribute 'match'
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2004-03-22 02:14:34 UTC
I think it's alredy fixed in 2.0.50-r2.
Can you try it?
Comment 2 Spider (RETIRED) gentoo-dev 2004-03-22 03:50:06 UTC
Just updated, emerge regen again is quite slow this time , and far more verbose (I also removed the var/cache/edb/dep stuff)



Checked, current repoman doesnt crash, however it balks on a lockfile :/
stat64("/var/cache/edb/dep///mnt/stuff/TEMP/cvstree/gentoo-x86/dev-java/blackdown-jre-1.3.1-r9", 0xbfffbca0) = -1 ENOENT (No such file or directory)
futex(0x8067858, FUTEX_WAKE, 1)         = 0
stat64("/var/cache/edb/dep", {st_mode=S_IFDIR|S_ISGID|0775, st_size=6144, ...}) = 0
open("/var/cache/edb/dep//aux_db_key_temp", O_WRONLY|O_CREAT|O_LARGEFILE, 0660) = 6
flock(6, LOCK_EX


I tried to remove the lockfile, using lsof to check that nothing was locking the dirs and so on, then restarted it..   It stalls at the same point. 
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-03-22 17:10:20 UTC
nakano - can you describe the situation that causes the error please?
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-03-22 19:21:50 UTC
Seems this problem is caused the the recent change to:

default-ppc-1.0/virtuals
default-ppc-1.4/virtuals
default-ppc-2004.0/virtuals

The change uses two packages for the virtual which is not supported by the
current stable portage.  In fact, it is explicitly mentioned in the man page
for portage that the virtuals file consists of one virtual and DEPEND atom base pair per line.

I would like these changes reverted until the version of portage that supports this file format is released and stable.
Comment 5 David Holm (RETIRED) gentoo-dev 2004-03-23 02:31:44 UTC
Argh, is there any possibility we could get portage-2.0.50-r2 into stable on ppc instead?
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2004-03-23 03:30:04 UTC
The issue affects all arches - I'm running x86 here - so just rolling out
the new version of portage for ppc wouldn't solve the problem anyhow.  The
change really needs to be backed out.  It would be great if you would do that
as soon as possible.
Comment 7 David Holm (RETIRED) gentoo-dev 2004-03-23 06:20:46 UTC
I'm working on it, but it will take a while as I need to maintain a list of changes so I can put everything back in as soon as >=2.0.50-r2 is stable on all archs... I'm really starting to hate this :(
Comment 8 Grant Goodyear (RETIRED) gentoo-dev 2004-03-23 07:43:53 UTC
*** Bug 45466 has been marked as a duplicate of this bug. ***
Comment 9 Grant Goodyear (RETIRED) gentoo-dev 2004-03-23 07:48:32 UTC
Same flock error.

For what it's worth:

 # emerge info
Portage 2.0.50-r2 (default-x86-1.4, gcc-3.3.3, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.90GHz
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -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.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache cvs sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad maildir mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline scanner sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"

# cat /etc/portage/modules
portdbapi.auxdbmodule="portage_db_anydbm.database"
eclass_cache.dbmodule="portage_db_anydbm.database"
Comment 10 David Holm (RETIRED) gentoo-dev 2004-03-23 18:29:53 UTC
I've backed out most of my changes now. Things should have gone back to normal, please test.
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2004-03-24 12:24:26 UTC
Backing out the change to the profiles/ files fixed things for portage-2.0.50-r1.
I can't comment on the state of portage-2.0.50-r2

Thanks for backing that change out.
Comment 12 Spider (RETIRED) gentoo-dev 2004-03-24 14:23:23 UTC
just what version of portage should I test?
Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2004-03-24 14:34:05 UTC
from carpaski in #gentoo-dev:
Can I get everyone that had problems with portage-2.0.50-r2 to test out portage-2.0.50-r210 for me? Copy -r2's ebuild to -r210.
Comment 14 Spider (RETIRED) gentoo-dev 2004-03-24 15:30:40 UTC
yey!   it works with -r210
Comment 15 Spider (RETIRED) gentoo-dev 2004-03-24 15:35:11 UTC
or... No.
spider@Darkmere> repoman                                                                                                                                   /usr/portage/gnome-base

We're not in PORTDIR... setting to: /mnt/stuff/TEMP/cvstree/gentoo-x86

RepoMan scours the neighborhood...
Traceback (most recent call last):
  File "/usr/bin/repoman", line 652, in ?
    myaux=portage.db["/"]["porttree"].dbapi.aux_get(catdir+"/"+y,allvars,strict=1)
  File "/usr/lib/portage/pym/portage.py", line 4731, in aux_get
    mylock = lockfile(mydbkey,unlinkfile=1)
  File "/usr/lib/portage/pym/portage.py", line 83, 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'
Comment 16 Spider (RETIRED) gentoo-dev 2004-03-24 15:44:08 UTC
scratch comment #15, that was wrong..   It worked in the place that crashed earlier.

And that was a trailing temp/lock file, restarting a "emerge -vup portage" as  root  cleared it out.
Comment 17 Marc Hildebrand (RETIRED) gentoo-dev 2004-03-25 02:23:44 UTC
-r210 works fine here.
Thanks,
Zypher.
Comment 18 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 07:43:10 UTC
The bug has been fixed in 2.0.50-r2/-r4(not -r3)
Comment 19 Masatomo Nakano (RETIRED) gentoo-dev 2004-07-20 12:19:14 UTC
fixed