Gentoo Archives: gentoo-user

From: Jean-Baptiste Mestelan <mestelan@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Damaged file in portage cache
Date: Thu, 14 Jun 2007 08:47:36
Message-Id: eaa71e3e0706140142u61fbdfa7i8b150fb269cfe6aa@mail.gmail.com
In Reply to: Re: [gentoo-user] Damaged file in portage cache by Rudmer van Dijk
1 Many thanks for your kind answers.
2
3 I have tried to emerge --metadata, too, and the result is just the same.
4
5 localhost ~ # emerge --metadata
6
7 >>> Updating Portage cache: Traceback (most recent call last):
8 File "/usr/bin/emerge", line 5530, in ?
9 retval = emerge_main()
10 File "/usr/bin/emerge", line 5489, in emerge_main
11 action_metadata(settings, portdb, myopts)
12 File "/usr/bin/emerge", line 4300, in action_metadata
13 eclass_cache=ec, verbose_instance=noise_maker)
14 File "/usr/lib/portage/pym/cache/util.py", line 22, in mirror_cache
15 dead_nodes = dict.fromkeys(trg_cache.keys())
16 File "/usr/lib/portage/pym/cache/template.py", line 95, in keys
17 return tuple(self.iterkeys())
18 File "/usr/lib/portage/pym/cache/flat_hash.py", line 122, in iterkeys
19 st = os.lstat(p)
20 OSError: [Errno 2] No such file or directory:
21 '/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'
22
23
24 I have manually deleted a lot of files from /var/cache/edb/dep, but
25 the offending ones can neither be removed nor renamed. (Was I all
26 right, in manually butchering /var/cache/edb/dep ?) The fact that the
27 remaining files contain strange characters is puzzling, indeed.
28
29
30 I thought some wise list member might correct me in the way I use
31 portage, but I am getting to think that the problem is with the file
32 system, more than with portage ?
33 I'll report a bug (Gentoo bug ?) , if this is more appropriate.
34 Here is my emerge --info, anyhow :
35
36 localhost ~ # emerge --info
37 Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-3.4.6,
38 glibc-2.5-r2, 2.6.17-rt5 i686)
39 =================================================================
40 System uname: 2.6.17-rt5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
41 Gentoo Base System release 1.12.9
42 Timestamp of tree: Thu, 14 Jun 2007 00:20:01 +0000
43 dev-java/java-config: 1.3.7, 2.0.33-r1
44 dev-lang/python: 2.4.4-r4
45 dev-python/pycrypto: 2.0.1-r5
46 sys-apps/sandbox: 1.2.17
47 sys-devel/autoconf: 2.13, 2.61
48 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
49 sys-devel/binutils: 2.16.1-r3
50 sys-devel/gcc-config: 1.3.16
51 sys-devel/libtool: 1.5.22
52 virtual/os-headers: 2.6.17-r2
53 ACCEPT_KEYWORDS="x86"
54 AUTOCLEAN="yes"
55 CBUILD="i686-pc-linux-gnu"
56 CFLAGS="-O2 -march=i686 -pipe"
57 CHOST="i686-pc-linux-gnu"
58 CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
59 /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
60 CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
61 /etc/revdep-rebuild /etc/terminfo"
62 CXXFLAGS="-O2 -march=i686 -pipe"
63 DISTDIR="/usr/portage/distfiles"
64 FEATURES="distlocks metadata-transfer sandbox sfperms strict"
65 GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ "
66 PKGDIR="/usr/portage/packages"
67 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
68 --compress --force --whole-file --delete --delete-after --stats
69 --timeout=180 --exclude=/distfiles --exclude=/local
70 --exclude=/packages --filter=H_**/files/digest-*"
71 PORTAGE_TMPDIR="/var/tmp"
72 PORTDIR="/usr/portage"
73 PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio
74 /usr/portage/local/layman/pro-audio"
75 SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
76 USE="X acl acpi alsa bash-completion berkdb bitmap-fonts cairo cdr cli
77 cracklib crypt cups dbus dri dssi dvd dvdr dvdread eds emboss encode
78 evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk gtk2
79 guile hal howl iconv ipv6 isdnlog jack jackmidi java jpeg kde kerberos
80 lash ldap libg++ mad midi mikmod mozbranding mp3 mpeg mudflap ncurses
81 nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png
82 pppd python qt3 qt3support qt4 quicktime readline reflection ruby sdl
83 session sndfile soundtouch spell spl sse sse2 ssl svg tcpd tiff
84 truetype truetype-fonts type1-fonts unicode vorbis vst win32codecs x86
85 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem
86 bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968
87 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx
88 via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix
89 dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat
90 linear meter mulaw multi null plug rate route share shm softvol"
91 ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
92 LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
93 ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
94 Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
95 LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
96 PORTAGE_RSYNC_EXTRA_OPTS
97
98
99
100
101
102 On 6/14/07, Rudmer van Dijk <rudmer.van.dijk@××××××.nl> wrote:
103 > On Thursday 14 June 2007, Jean-Baptiste Mestelan wrote:
104 > > I cannot emerge --sync my system anymore, as this brings out the
105 >
106 > try running `emerge --metadata` it will restore the portage cache
107 > in /var/cache/edb/dep
108 >
109 > Rudmer
110 >
111 >
112 > > following error :
113 > > >>> Updating Portage cache: Traceback (most recent call last):
114 > >
115 > > File "/usr/bin/emerge", line 5530, in ?
116 > > retval = emerge_main()
117 > > File "/usr/bin/emerge", line 5489, in emerge_main
118 > > action_metadata(settings, portdb, myopts)
119 > > File "/usr/bin/emerge", line 4300, in action_metadata
120 > > eclass_cache=ec, verbose_instance=noise_maker)
121 > > File "/usr/lib/portage/pym/cache/util.py", line 22, in mirror_cache
122 > > dead_nodes = dict.fromkeys(trg_cache.keys())
123 > > File "/usr/lib/portage/pym/cache/template.py", line 95, in keys
124 > > return tuple(self.iterkeys())
125 > > File "/usr/lib/portage/pym/cache/flat_hash.py", line 122, in iterkeys
126 > > st = os.lstat(p)
127 > > OSError: [Errno 2] No such file or directory:
128 > > '/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'
129 > >
130 > >
131 > > So, it looks like the problem is with the content of the directory
132 > > /var/cache/edb/dep/usr/portage/net-misc/
133 > >
134 > > localhost net-misc # cd /var/cache/edb/dep/usr/portage/net-misc/
135 > > localhost net-misc # ls ./ (TAB PRESSED)
136 > > asterisk-chan_capi-0.4.^P_pre1 netprofiles)ims-0.1.0134
137 > > stuNnel-4.15 htbinit^I0.8.5 netstat)nat-1.4.7
138 > > suite3230-3.3.2_p1
139 > > icaclient-9^N0-r1 networkianager-0.6.4_pre20061028
140 > > tightvnc-1.^R.9-r4
141 > > iputils)20060512 sipsak-0.9.^Q
142 > > vmpsd-1.3-r^R
143 > > linUx-identd-1.3-r1 stoje-2.2e
144 > > vnc-4.1^N2-r1
145 > > lksctp-Pools-1.0.4 stone-2^N2c
146 > > memcached-1^N1.13-r1 streamtuner-0.9^Y.99
147 > >
148 > > This shows that the offending file somehow exists (?); but these files
149 > > cannot be accessed, as the ls command shows :
150 > > localhost net-misc # ls
151 > > ls: cannot access vmpsd-1.3-r : No such file or directory
152 > > ls: cannot access streamtuner-0.9 .99: No such file or directory
153 > > ls: cannot access vnc-4.12-⎼1: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
154 > > ┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎻⎼⎺°␋┌␊⎽)␋└⎽-0.1.0134: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
155 > > ┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎽├▒├)┼▒├-1.4.7: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
156 > > <+ more garbage >
157 > >
158 > > Is my filesystem damaged ?
159 > > rm -rf /var/cache/edb/dep/usr/portage/net-misc has no effect on these
160 > > problematic files ; I have executed fsck.ext2 on the filesystem, and
161 > > this reported no error.
162 > >
163 > > Many thanks for your helpful suggestions.
164 >
165 >
166 > --
167 > gentoo-user@g.o mailing list
168 >
169 >
170 éí¢‹¬z¸žÚ(¢¸&j)bž b²

Replies

Subject Author
Re: [gentoo-user] Damaged file in portage cache Rudmer van Dijk <rudmer.van.dijk@××××××.nl>
Re: [gentoo-user] Damaged file in portage cache Alex Schuster <wonko@×××××××××.org>