public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Damaged file in portage cache
@ 2007-06-14  0:49 Jean-Baptiste Mestelan
  2007-06-14  4:59 ` Philip Webb
  2007-06-14  5:59 ` Rudmer van Dijk
  0 siblings, 2 replies; 10+ messages in thread
From: Jean-Baptiste Mestelan @ 2007-06-14  0:49 UTC (permalink / raw
  To: gentoo-user

Hello.

I cannot emerge --sync my system anymore, as this brings out the
following error :
>>> Updating Portage cache:      Traceback (most recent call last):
  File "/usr/bin/emerge", line 5530, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5489, in emerge_main
    action_metadata(settings, portdb, myopts)
  File "/usr/bin/emerge", line 4300, in action_metadata
    eclass_cache=ec, verbose_instance=noise_maker)
  File "/usr/lib/portage/pym/cache/util.py", line 22, in mirror_cache
    dead_nodes = dict.fromkeys(trg_cache.keys())
  File "/usr/lib/portage/pym/cache/template.py", line 95, in keys
    return tuple(self.iterkeys())
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 122, in iterkeys
    st = os.lstat(p)
OSError: [Errno 2] No such file or directory:
'/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'


So, it looks like the problem is with the content of the directory
/var/cache/edb/dep/usr/portage/net-misc/

localhost net-misc # cd /var/cache/edb/dep/usr/portage/net-misc/
localhost net-misc # ls ./ (TAB PRESSED)
asterisk-chan_capi-0.4.^P_pre1    netprofiles)ims-0.1.0134          stuNnel-4.15
htbinit^I0.8.5                    netstat)nat-1.4.7
suite3230-3.3.2_p1
icaclient-9^N0-r1                 networkianager-0.6.4_pre20061028
tightvnc-1.^R.9-r4
iputils)20060512                  sipsak-0.9.^Q
vmpsd-1.3-r^R
linUx-identd-1.3-r1               stoje-2.2e
vnc-4.1^N2-r1
lksctp-Pools-1.0.4                stone-2^N2c
memcached-1^N1.13-r1              streamtuner-0.9^Y.99

This shows that the offending file somehow exists (?); but these files
cannot be accessed, as the ls command shows :
localhost net-misc # ls
ls: cannot access vmpsd-1.3-r\x12: No such file or directory
ls: cannot access streamtuner-0.9\x19.99: No such file or directory
ls: cannot access vnc-4.12-⎼1: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎻⎼⎺°␋┌␊⎽)␋└⎽-0.1.0134: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎽├▒├)┼▒├-1.4.7: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
<+ more garbage >

Is my filesystem damaged ?
rm -rf /var/cache/edb/dep/usr/portage/net-misc has no effect on these
problematic files ; I have executed fsck.ext2 on the filesystem, and
this reported no error.

Many thanks for your helpful suggestions.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Damaged file in portage cache
  2007-06-14  0:49 [gentoo-user] Damaged file in portage cache Jean-Baptiste Mestelan
@ 2007-06-14  4:59 ` Philip Webb
  2007-06-14  7:19   ` Kent Fredric
  2007-06-14  5:59 ` Rudmer van Dijk
  1 sibling, 1 reply; 10+ messages in thread
From: Philip Webb @ 2007-06-14  4:59 UTC (permalink / raw
  To: gentoo-user

070614 Jean-Baptiste Mestelan wrote:
> I cannot emerge --sync , as this brings out the following error :
>   Updating Portage cache:      Traceback (most recent call last):
-- snip --
>   OSError: [Errno 2] No such file or directory:
>   '/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'
> it looks like the problem is with the content of the directory
>  /var/cache/edb/dep/usr/portage/net-misc/
>   localhost net-misc # cd /var/cache/edb/dep/usr/portage/net-misc/
>   localhost net-misc # ls ./ (TAB PRESSED)
>   asterisk-chan_capi-0.4.^P_pre1    netprofiles)ims-0.1.0134          
>   stuNnel-4.15
>   htbinit^I0.8.5                    netstat)nat-1.4.7
>   suite3230-3.3.2_p1
>   icaclient-9^N0-r1                 networkianager-0.6.4_pre20061028
>   tightvnc-1.^R.9-r4
>   iputils)20060512                  sipsak-0.9.^Q
>   vmpsd-1.3-r^R
>   linUx-identd-1.3-r1               stoje-2.2e
>   vnc-4.1^N2-r1
>   lksctp-Pools-1.0.4                stone-2^N2c
>   memcached-1^N1.13-r1              streamtuner-0.9^Y.99
 
There are some strange characters in the file names.
After my latest sync at 070609 2232 my corresponding dir contains eg

  vmpsd-1.3            vnc-4.1.2
  vmpsd-1.3-r1         vnc-4.1.2-r1
  vmpsd-1.3-r2         vnc-4.1.2-r2
  vmpsd-1.3-r3         vnc-4.1.2-r3

Try renaming the files to replace '^R' etc by what looks correct.
I can e-mail you the full dir list, if I have your personal e-ddress.

-- 
========================,,============================================
SUPPORT     ___________//___,  Philip Webb : purslow@chass.utoronto.ca
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT    `-O----------O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Damaged file in portage cache
  2007-06-14  0:49 [gentoo-user] Damaged file in portage cache Jean-Baptiste Mestelan
  2007-06-14  4:59 ` Philip Webb
@ 2007-06-14  5:59 ` Rudmer van Dijk
  2007-06-14  8:42   ` Jean-Baptiste Mestelan
  1 sibling, 1 reply; 10+ messages in thread
From: Rudmer van Dijk @ 2007-06-14  5:59 UTC (permalink / raw
  To: gentoo-user

On Thursday 14 June 2007, Jean-Baptiste Mestelan wrote:
> I cannot emerge --sync my system anymore, as this brings out the

try running `emerge --metadata` it will restore the portage cache 
in /var/cache/edb/dep

	Rudmer


> following error :
> >>> Updating Portage cache:      Traceback (most recent call last):
>
>   File "/usr/bin/emerge", line 5530, in ?
>     retval = emerge_main()
>   File "/usr/bin/emerge", line 5489, in emerge_main
>     action_metadata(settings, portdb, myopts)
>   File "/usr/bin/emerge", line 4300, in action_metadata
>     eclass_cache=ec, verbose_instance=noise_maker)
>   File "/usr/lib/portage/pym/cache/util.py", line 22, in mirror_cache
>     dead_nodes = dict.fromkeys(trg_cache.keys())
>   File "/usr/lib/portage/pym/cache/template.py", line 95, in keys
>     return tuple(self.iterkeys())
>   File "/usr/lib/portage/pym/cache/flat_hash.py", line 122, in iterkeys
>     st = os.lstat(p)
> OSError: [Errno 2] No such file or directory:
> '/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'
>
>
> So, it looks like the problem is with the content of the directory
> /var/cache/edb/dep/usr/portage/net-misc/
>
> localhost net-misc # cd /var/cache/edb/dep/usr/portage/net-misc/
> localhost net-misc # ls ./ (TAB PRESSED)
> asterisk-chan_capi-0.4.^P_pre1    netprofiles)ims-0.1.0134         
> stuNnel-4.15 htbinit^I0.8.5                    netstat)nat-1.4.7
> suite3230-3.3.2_p1
> icaclient-9^N0-r1                 networkianager-0.6.4_pre20061028
> tightvnc-1.^R.9-r4
> iputils)20060512                  sipsak-0.9.^Q
> vmpsd-1.3-r^R
> linUx-identd-1.3-r1               stoje-2.2e
> vnc-4.1^N2-r1
> lksctp-Pools-1.0.4                stone-2^N2c
> memcached-1^N1.13-r1              streamtuner-0.9^Y.99
>
> This shows that the offending file somehow exists (?); but these files
> cannot be accessed, as the ls command shows :
> localhost net-misc # ls
> ls: cannot access vmpsd-1.3-r\x12: No such file or directory
> ls: cannot access streamtuner-0.9\x19.99: No such file or directory
> ls: cannot access vnc-4.12-⎼1: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
> ┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎻⎼⎺°␋┌␊⎽)␋└⎽-0.1.0134: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
> ┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎽├▒├)┼▒├-1.4.7: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
> <+ more garbage >
>
> Is my filesystem damaged ?
> rm -rf /var/cache/edb/dep/usr/portage/net-misc has no effect on these
> problematic files ; I have executed fsck.ext2 on the filesystem, and
> this reported no error.
>
> Many thanks for your helpful suggestions.


--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Damaged file in portage cache
  2007-06-14  4:59 ` Philip Webb
@ 2007-06-14  7:19   ` Kent Fredric
  0 siblings, 0 replies; 10+ messages in thread
From: Kent Fredric @ 2007-06-14  7:19 UTC (permalink / raw
  To: gentoo-user

On 6/14/07, Philip Webb <purslow@sympatico.ca> wrote:
> 070614 Jean-Baptiste Mestelan wrote:
> > I cannot emerge --sync , as this brings out the following error :
> >   Updating Portage cache:      Traceback (most recent call last):
> -- snip --
> >   OSError: [Errno 2] No such file or directory:
> >   '/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'
> > it looks like the problem is with the content of the directory
> >  /var/cache/edb/dep/usr/portage/net-misc/
> >   localhost net-misc # cd /var/cache/edb/dep/usr/portage/net-misc/
> >   localhost net-misc # ls ./ (TAB PRESSED)
> >   asterisk-chan_capi-0.4.^P_pre1    netprofiles)ims-0.1.0134
> >   stuNnel-4.15
> >   htbinit^I0.8.5                    netstat)nat-1.4.7
> >   suite3230-3.3.2_p1
> >   icaclient-9^N0-r1                 networkianager-0.6.4_pre20061028
> >   tightvnc-1.^R.9-r4
> >   iputils)20060512                  sipsak-0.9.^Q
> >   vmpsd-1.3-r^R
> >   linUx-identd-1.3-r1               stoje-2.2e
> >   vnc-4.1^N2-r1
> >   lksctp-Pools-1.0.4                stone-2^N2c
> >   memcached-1^N1.13-r1              streamtuner-0.9^Y.99
>

emerge --info

then re-open this bug... oh wait..ML: ..

( just to make sure its not some eschoteric kernel / gcc combination
,.. I had a mate who had something really go south  on ext3 where he
could write to a  folder as if it were  a file  ... and needless to
say, it broke things bad, ... it broke things and made him lose stuff
)

-- 
Kent
ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x|
print "enNOSPicAMreil kdrtf@gma.com"[(2*x)..(2*x+1)]}'
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Damaged file in portage cache
  2007-06-14  5:59 ` Rudmer van Dijk
@ 2007-06-14  8:42   ` Jean-Baptiste Mestelan
  2007-06-14  9:00     ` Rudmer van Dijk
  2007-06-14 13:10     ` Alex Schuster
  0 siblings, 2 replies; 10+ messages in thread
From: Jean-Baptiste Mestelan @ 2007-06-14  8:42 UTC (permalink / raw
  To: gentoo-user

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8; format=flowed, Size: 7441 bytes --]

Many thanks for your kind answers.

I have tried to emerge --metadata, too, and the result is just the same.

localhost ~ # emerge --metadata

>>> Updating Portage cache:      Traceback (most recent call last):
  File "/usr/bin/emerge", line 5530, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5489, in emerge_main
    action_metadata(settings, portdb, myopts)
  File "/usr/bin/emerge", line 4300, in action_metadata
    eclass_cache=ec, verbose_instance=noise_maker)
  File "/usr/lib/portage/pym/cache/util.py", line 22, in mirror_cache
    dead_nodes = dict.fromkeys(trg_cache.keys())
  File "/usr/lib/portage/pym/cache/template.py", line 95, in keys
    return tuple(self.iterkeys())
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 122, in iterkeys
    st = os.lstat(p)
OSError: [Errno 2] No such file or directory:
'/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'


I have manually deleted a lot of files from  /var/cache/edb/dep, but
the offending ones can  neither be removed nor renamed. (Was I all
right, in manually butchering /var/cache/edb/dep ?) The fact that the
remaining files contain strange characters is puzzling, indeed.


I thought some wise list member might correct me in the way I use
portage, but I am getting to think that the problem is with the file
system, more than with portage ?
I'll report a bug (Gentoo bug ?) , if this is more appropriate.
Here is my emerge --info, anyhow :

localhost ~ # emerge --info
Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-3.4.6,
glibc-2.5-r2, 2.6.17-rt5 i686)
=================================================================
System uname: 2.6.17-rt5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 14 Jun 2007 00:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ "
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --delete-after --stats
--timeout=180 --exclude=/distfiles --exclude=/local
--exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio
/usr/portage/local/layman/pro-audio"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb bitmap-fonts cairo cdr cli
cracklib crypt cups dbus dri dssi dvd dvdr dvdread eds emboss encode
evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk gtk2
guile hal howl iconv ipv6 isdnlog jack jackmidi java jpeg kde kerberos
lash ldap libg++ mad midi mikmod mozbranding mp3 mpeg mudflap ncurses
nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png
pppd python qt3 qt3support qt4 quicktime readline reflection ruby sdl
session sndfile soundtouch spell spl sse sse2 ssl svg tcpd tiff
truetype truetype-fonts type1-fonts unicode vorbis vst win32codecs x86
xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem
bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968
fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx
via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix
dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat
linear meter mulaw multi null plug rate route share shm softvol"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS





On 6/14/07, Rudmer van Dijk <rudmer.van.dijk@casema.nl> wrote:
> On Thursday 14 June 2007, Jean-Baptiste Mestelan wrote:
> > I cannot emerge --sync my system anymore, as this brings out the
>
> try running `emerge --metadata` it will restore the portage cache
> in /var/cache/edb/dep
>
>         Rudmer
>
>
> > following error :
> > >>> Updating Portage cache:      Traceback (most recent call last):
> >
> >   File "/usr/bin/emerge", line 5530, in ?
> >     retval = emerge_main()
> >   File "/usr/bin/emerge", line 5489, in emerge_main
> >     action_metadata(settings, portdb, myopts)
> >   File "/usr/bin/emerge", line 4300, in action_metadata
> >     eclass_cache=ec, verbose_instance=noise_maker)
> >   File "/usr/lib/portage/pym/cache/util.py", line 22, in mirror_cache
> >     dead_nodes = dict.fromkeys(trg_cache.keys())
> >   File "/usr/lib/portage/pym/cache/template.py", line 95, in keys
> >     return tuple(self.iterkeys())
> >   File "/usr/lib/portage/pym/cache/flat_hash.py", line 122, in iterkeys
> >     st = os.lstat(p)
> > OSError: [Errno 2] No such file or directory:
> > '/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'
> >
> >
> > So, it looks like the problem is with the content of the directory
> > /var/cache/edb/dep/usr/portage/net-misc/
> >
> > localhost net-misc # cd /var/cache/edb/dep/usr/portage/net-misc/
> > localhost net-misc # ls ./ (TAB PRESSED)
> > asterisk-chan_capi-0.4.^P_pre1    netprofiles)ims-0.1.0134
> > stuNnel-4.15 htbinit^I0.8.5                    netstat)nat-1.4.7
> > suite3230-3.3.2_p1
> > icaclient-9^N0-r1                 networkianager-0.6.4_pre20061028
> > tightvnc-1.^R.9-r4
> > iputils)20060512                  sipsak-0.9.^Q
> > vmpsd-1.3-r^R
> > linUx-identd-1.3-r1               stoje-2.2e
> > vnc-4.1^N2-r1
> > lksctp-Pools-1.0.4                stone-2^N2c
> > memcached-1^N1.13-r1              streamtuner-0.9^Y.99
> >
> > This shows that the offending file somehow exists (?); but these files
> > cannot be accessed, as the ls command shows :
> > localhost net-misc # ls
> > ls: cannot access vmpsd-1.3-r : No such file or directory
> > ls: cannot access streamtuner-0.9 .99: No such file or directory
> > ls: cannot access vnc-4.12-⎼1: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
> > ┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎻⎼⎺°␋┌␊⎽)␋└⎽-0.1.0134: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
> > ┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎽├▒├)┼▒├-1.4.7: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
> > <+ more garbage >
> >
> > Is my filesystem damaged ?
> > rm -rf /var/cache/edb/dep/usr/portage/net-misc has no effect on these
> > problematic files ; I have executed fsck.ext2 on the filesystem, and
> > this reported no error.
> >
> > Many thanks for your helpful suggestions.
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>
éí¢‹¬z¸\x1ežÚ(¢¸&j)bž	b²

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Damaged file in portage cache
  2007-06-14  8:42   ` Jean-Baptiste Mestelan
@ 2007-06-14  9:00     ` Rudmer van Dijk
  2007-06-14 12:27       ` Jean-Baptiste Mestelan
  2007-06-14 13:10     ` Alex Schuster
  1 sibling, 1 reply; 10+ messages in thread
From: Rudmer van Dijk @ 2007-06-14  9:00 UTC (permalink / raw
  To: gentoo-user

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 2195 bytes --]

On Thursday 14 June 2007, Jean-Baptiste Mestelan wrote:
> Many thanks for your kind answers.
>
> I have tried to emerge --metadata, too, and the result is just the same.
>
> localhost ~ # emerge --metadata
>
> >>> Updating Portage cache:      Traceback (most recent call last):
>
>   File "/usr/bin/emerge", line 5530, in ?
>     retval = emerge_main()
>   File "/usr/bin/emerge", line 5489, in emerge_main
>     action_metadata(settings, portdb, myopts)
>   File "/usr/bin/emerge", line 4300, in action_metadata
>     eclass_cache=ec, verbose_instance=noise_maker)
>   File "/usr/lib/portage/pym/cache/util.py", line 22, in mirror_cache
>     dead_nodes = dict.fromkeys(trg_cache.keys())
>   File "/usr/lib/portage/pym/cache/template.py", line 95, in keys
>     return tuple(self.iterkeys())
>   File "/usr/lib/portage/pym/cache/flat_hash.py", line 122, in iterkeys
>     st = os.lstat(p)
> OSError: [Errno 2] No such file or directory:
> '/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'
> 
> I have manually deleted a lot of files from  /var/cache/edb/dep, but
> the offending ones can  neither be removed nor renamed. (Was I all
> right, in manually butchering /var/cache/edb/dep ?) The fact that the
> remaining files contain strange characters is puzzling, indeed.
> 
> I thought some wise list member might correct me in the way I use
> portage, but I am getting to think that the problem is with the file
> system, more than with portage ?

hmm, then it really looks like your filesystem is screwed...

what filesystem are you using?
and have you tried to do a fsck on it?


> I'll report a bug (Gentoo bug ?) , if this is more appropriate.

I don't think it is useful, the problem is clearly not in portage but on your 
filesystem. on the other hand if your filesystem is damaged through use of 
portage...


> Here is my emerge --info, anyhow :
<snip>
> gentoo-user@gentoo.org mailing list
>
> éí¢‹¬z¸\x1ežÚ(¢¸&j)bž	b²

hmm, this is not suppost to be there...


you really should be backing up your valuable data and checking your 
haddrive/filesystem for errors.


	Rudmer
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Damaged file in portage cache
  2007-06-14  9:00     ` Rudmer van Dijk
@ 2007-06-14 12:27       ` Jean-Baptiste Mestelan
  2007-06-14 13:28         ` Rudmer van Dijk
  0 siblings, 1 reply; 10+ messages in thread
From: Jean-Baptiste Mestelan @ 2007-06-14 12:27 UTC (permalink / raw
  To: gentoo-user

On 6/14/07, Rudmer van Dijk <rudmer.van.dijk@casema.nl> wrote:
> hmm, then it really looks like your filesystem is screwed...
>
> what filesystem are you using?
> and have you tried to do a fsck on it?

It is ext3 filesystem ; I have executed fsck on it, which reported no errors.
It looks like the fs is out of sync with itself : some files are
listed, which do not really exist.

Better backup that data, and prepare for re-installing the system
soon, I suppose.

Thanks for support.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Damaged file in portage cache
  2007-06-14  8:42   ` Jean-Baptiste Mestelan
  2007-06-14  9:00     ` Rudmer van Dijk
@ 2007-06-14 13:10     ` Alex Schuster
  2007-06-14 13:59       ` Jean-Baptiste Mestelan
  1 sibling, 1 reply; 10+ messages in thread
From: Alex Schuster @ 2007-06-14 13:10 UTC (permalink / raw
  To: gentoo-user

Jean-Baptiste Mestelan writes:

> I have manually deleted a lot of files from  /var/cache/edb/dep, but
> the offending ones can  neither be removed nor renamed. (Was I all
> right, in manually butchering /var/cache/edb/dep ?) The fact that the
> remaining files contain strange characters is puzzling, indeed.

How did you try to remove them? You might need to use the inode mumber to 
remove them, althouh I think a rm -r should work, too. See 
<http://www.cyberciti.biz/tips/delete-remove-files-with-inode-number.html>.

Did you force the fsck with -f?

Can you mv the dep directory to another name, and re-create it with 
emerge --metadata?

	Alex

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Damaged file in portage cache
  2007-06-14 12:27       ` Jean-Baptiste Mestelan
@ 2007-06-14 13:28         ` Rudmer van Dijk
  0 siblings, 0 replies; 10+ messages in thread
From: Rudmer van Dijk @ 2007-06-14 13:28 UTC (permalink / raw
  To: gentoo-user

On Thursday 14 June 2007, Jean-Baptiste Mestelan wrote:
> On 6/14/07, Rudmer van Dijk <rudmer.van.dijk@casema.nl> wrote:
> > hmm, then it really looks like your filesystem is screwed...
> >
> > what filesystem are you using?
> > and have you tried to do a fsck on it?
>
> It is ext3 filesystem ; I have executed fsck on it, which reported no
> errors. It looks like the fs is out of sync with itself : some files are
> listed, which do not really exist.
>
> Better backup that data, and prepare for re-installing the system
> soon, I suppose.

well, re-installation is not necessary: you can tar the contents of the 
affected partition, umount partition, re-create the filesystem and then untar 
the backup (do not forget to use --preserve-permissions).

if it is your root partition you need a live-cd or installation-cd to 
accomplish this.


	Rudmer
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Damaged file in portage cache
  2007-06-14 13:10     ` Alex Schuster
@ 2007-06-14 13:59       ` Jean-Baptiste Mestelan
  0 siblings, 0 replies; 10+ messages in thread
From: Jean-Baptiste Mestelan @ 2007-06-14 13:59 UTC (permalink / raw
  To: gentoo-user

On 6/14/07, Alex Schuster <wonko@wonkology.org> wrote:
> Can you mv the dep directory to another name, and re-create it with
> emerge --metadata?

Hey, this worked !!!
I could not touch the files in /var/cache/edb/dep/usr/portage/net-misc/
but I could mv at an above level :
mv /var/cache/edb/dep /var/cache/edb/dep_hopelessly_broken worked all right.
I had not thought of this ; thanks for suggesting :-)

And emerge --metadata worked now ! very happy !
I will try to fsck -f the offending filesys, now.

Thank you, Alex.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-06-14 14:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-14  0:49 [gentoo-user] Damaged file in portage cache Jean-Baptiste Mestelan
2007-06-14  4:59 ` Philip Webb
2007-06-14  7:19   ` Kent Fredric
2007-06-14  5:59 ` Rudmer van Dijk
2007-06-14  8:42   ` Jean-Baptiste Mestelan
2007-06-14  9:00     ` Rudmer van Dijk
2007-06-14 12:27       ` Jean-Baptiste Mestelan
2007-06-14 13:28         ` Rudmer van Dijk
2007-06-14 13:10     ` Alex Schuster
2007-06-14 13:59       ` Jean-Baptiste Mestelan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox