| View previous topic :: View next topic |
| Author |
Message |
hebble n00b

Joined: 25 Mar 2007 Posts: 24
|
Posted: Tue Jul 20, 2010 3:00 am Post subject: emerge failing since power outage [solved] |
|
|
Yesterday I performed an emerge -DNuv world (which, among other packages, was to build KDE 4.4) and I had a power outage.
After restarting the computer, I attempted to re-emerge using the same command and it returned the following error message...
# emerge -pDNuv world
These are the packages that would be merged, in order:
Calculating dependencies... done!
Traceback (most recent call last):
File "/usr/bin/emerge", line 42, in <module>
retval = emerge_main()
File "/usr/lib/portage/pym/_emerge/main.py", line 1410, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/lib/portage/pym/_emerge/actions.py", line 375, in action_build
favorites=favorites)
File "/usr/lib/portage/pym/_emerge/depgraph.py", line 4637, in display
out.write("%s\n" % (myprint,))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 141-143: ordinal not in range(128)
#
Since then, I have re-emerged portage (2.1.8.3), which built and installed correctly except for this message right at the end...
>>> Auto-cleaning packages...
portage: COUNTER for dev-libs/libassuan-2.0.0 was corrupted; resetting to value of 0
portage: COUNTER for dev-libs/libassuan-2.0.0 was corrupted; resetting to value of 0
>>> No outdated packages were found on your system.
I have also deleted /usr/portage except for the distfiles directory - no change
and have run e2fsck over the file system from a gentoo min install disk.
Any thoughts of how to fix this.
Many thank,
CharlesS
emerge --info below....
# emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-Pentium-R-_Dual-Core_CPU_E6300_@_2.80GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 20 Jul 2010 01:15:03 +0000
app-shells/bash: 4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python: 2.5.4-r4, 2.6.4-r1
dev-util/cmake: 2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.18-r3
sys-devel/gcc: 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://mirror.pacific.net.au/linux/Gentoo http://mirror.isp.net.au/ftp/pub/gentoo/ http://mirror.gentoo.gr.jp http://136.186.1.76/gentoo"
LANG="en_GB"
LC_ALL="en_GB"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl alsa arts avi berkdb bzip2 cli cracklib crypt cups cxx dbus doc dri dts dvd dvdread embedded encode foomaticdb fortran gdbm gif gimp gphoto2 gpm gtk hal iconv icu ipv6 jadetex java joystick jpeg jpeg2k kde live matroska mmx mmxext modules mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre perl png ppds pppd python qt3support qt4 readline reflection sdl semantic-desktop session spl sqlite sse sse2 ssl svg sysfs tcpd theora threads tiff truetype unicode usb v4l vorbis x86 xanim xorg xv xvmc zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="sa300" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" RUBY_TARGETS="ruby18" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY _________________ CharlesS
Last edited by hebble on Fri Jul 23, 2010 9:48 am; edited 1 time in total |
|
| Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Jul 20, 2010 3:09 am Post subject: |
|
|
Hi, I had that too last week.
I had to run this :
| Code: |
# emerge -eav world
|
My portage was corrupted. |
|
| Back to top |
|
 |
hebble n00b

Joined: 25 Mar 2007 Posts: 24
|
Posted: Tue Jul 20, 2010 3:58 am Post subject: |
|
|
Thanks for the prompt response.
Just tried emerge -aev world. Results not as hoped...
# emerge -aev world
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-libs/zlib-1.2.3-r1 0 kB
[ebuild U ] media-libs/jpeg-8b [8a] 943 kB
[ebuild R ] virtual/libintl-0 0 kB
.
.
(prob several hundred packages)
.
.
[ebuild R ] net-misc/rsync-3.0.6 USE="acl iconv ipv6 -static -xattr" 0 kB
[ebuild U ] sys-apps/help2man-1.37.1 [1.36.4-r1] USE="nls" 105 kB
Traceback (most recent call last):
File "/usr/bin/emerge", line 42, in <module>
retval = emerge_main()
File "/usr/lib/portage/pym/_emerge/main.py", line 1410, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/lib/portage/pym/_emerge/actions.py", line 312, in action_build
favorites=favorites)
File "/usr/lib/portage/pym/_emerge/depgraph.py", line 4637, in display
out.write("%s\n" % (myprint,))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 141-143: ordinal not in range(128)
#
Not sure if I need to do something else to get this working, or if the prob is different. _________________ CharlesS |
|
| Back to top |
|
 |
champ Tux's lil' helper

Joined: 25 Oct 2006 Posts: 97 Location: Thailand
|
Posted: Tue Jul 20, 2010 4:21 am Post subject: |
|
|
Try resyncing and then run emerge -eav world _________________ "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." - Benjamin Franklin
blog: johnsearth.blogspot.com |
|
| Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Jul 20, 2010 4:36 am Post subject: |
|
|
Maybe try this :
| Code: |
# emerge -av portage
# emerge -eav world
|
|
|
| Back to top |
|
 |
hebble n00b

Joined: 25 Mar 2007 Posts: 24
|
Posted: Tue Jul 20, 2010 4:37 am Post subject: |
|
|
Ran emerge --sync and the update occured without error.
Tried emerge -eav - Same results as before. _________________ CharlesS |
|
| Back to top |
|
 |
hebble n00b

Joined: 25 Mar 2007 Posts: 24
|
Posted: Tue Jul 20, 2010 7:42 am Post subject: |
|
|
Also retried d2_racing's suggestion of re-emerging portage and trying again.
Same result, although the rebuild of portage did not occur totally cleanly....
>>> Original instance of package unmerged safely.
* Compilation and optimization of Python modules for CPython 2.6 ... [ ok ]
*
* For help with using portage please consult the Gentoo Handbook
* at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3
*
>>> Auto-cleaning packages...
portage: COUNTER for dev-libs/libassuan-2.0.0 was corrupted; resetting to value of 0
portage: COUNTER for dev-libs/libassuan-2.0.0 was corrupted; resetting to value of 0
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
#
Does anyone know where libassuan fit into things?
Also tried to re-emerge it and failed.
| Code: |
# emerge -pv1 libassuan
|
Results as before...
These are the packages that would be merged, in order:
Calculating dependencies... done!
Traceback (most recent call last):
File "/usr/bin/emerge", line 42, in <module>
retval = emerge_main()
File "/usr/lib/portage/pym/_emerge/main.py", line 1410, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/lib/portage/pym/_emerge/actions.py", line 375, in action_build
favorites=favorites)
File "/usr/lib/portage/pym/_emerge/depgraph.py", line 4637, in display
out.write("%s\n" % (myprint,))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 141-143: ordinal not in range(128)
#
Any suggestions...
Thanks CharlesS _________________ CharlesS |
|
| Back to top |
|
 |
few Guru

Joined: 03 Mar 2008 Posts: 448
|
Posted: Tue Jul 20, 2010 7:48 am Post subject: |
|
|
| File a bug. libassuan turns up only because some of it's files in the vdb were corrupted. |
|
| Back to top |
|
 |
lxg Veteran


Joined: 12 Nov 2005 Posts: 1019 Location: Aachen, Germany
|
Posted: Tue Jul 20, 2010 8:22 am Post subject: |
|
|
| few wrote: | | File a bug. libassuan turns up only because some of it's files in the vdb were corrupted. |
This is not a bug, this is a local issue. If files got corrupted on his system, why should he file a bug? And against what? _________________ lxg.de – codebits and tech talk |
|
| Back to top |
|
 |
few Guru

Joined: 03 Mar 2008 Posts: 448
|
Posted: Tue Jul 20, 2010 8:40 am Post subject: |
|
|
| lxg wrote: | | This is not a bug, this is a local issue. |
A traceback is always a bug.
| lxg wrote: | | And against what? |
sys-apps/portage |
|
| Back to top |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 9245 Location: beyond the rim
|
Posted: Tue Jul 20, 2010 9:00 am Post subject: |
|
|
| lxg wrote: | | This is not a bug, this is a local issue. If files got corrupted on his system, why should he file a bug? |
At the very least it's a display problem. It's difficult to correct a corrupted file if you don't know which file it is. |
|
| Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Jul 20, 2010 9:40 pm Post subject: |
|
|
| When I had that kind of problem, I had to reinstall from scratch. |
|
| Back to top |
|
 |
hebble n00b

Joined: 25 Mar 2007 Posts: 24
|
Posted: Wed Jul 21, 2010 3:46 am Post subject: |
|
|
I think I've worked out where libassuan comes into the problem.
Reading from /var/log/emerge.log, libassuan was being emerged at the time of the power outage
1279495398: >>> emerge (13 of 356) dev-libs/libassuan-2.0.0 to /
1279495401: === (13 of 356) Cleaning (dev-libs/libassuan-2.0.0::/usr/portage/dev-libs/libassuan/libassuan-2.0.0.ebuild)
1279495401: === (13 of 356) Compiling/Merging (dev-libs/libassuan-2.0.0::/usr/portage/dev-libs/libassuan/libassuan-2.0.0.ebuild)
... never completed.
Suspect it may have been part way through the install.
I'll see if I can determine if this was the case.
Just need to work out how I can clean up libassuan and rebuild. _________________ CharlesS |
|
| Back to top |
|
 |
drescherjm Advocate

Joined: 05 Jun 2004 Posts: 2780 Location: Pittsburgh, PA, USA
|
Posted: Wed Jul 21, 2010 1:09 pm Post subject: |
|
|
I had this years ago. I think you need to find the file with a for dev-libs/libassuan-2.0.0 and set the COUNTER to 0. I thought this was in /var/cache/edb/dep/somepath/dev-libs/libassuan-2.0.0 but I can't seem to find this anymore. Perhaps this is because I have used portage-2.2 for over 2 years.
Uninstalling then reinstalling this one package may also solve the issue. _________________ John
My gentoo overlay
Instructons for overlay |
|
| Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 15521
|
Posted: Thu Jul 22, 2010 2:04 am Post subject: |
|
|
| What filesystem holds /var/db/pkg? This kind of corruption generally should not happen on journaled filesystems. |
|
| Back to top |
|
 |
drescherjm Advocate

Joined: 05 Jun 2004 Posts: 2780 Location: Pittsburgh, PA, USA
|
Posted: Thu Jul 22, 2010 2:09 am Post subject: |
|
|
Thanks. Now I found it.. There should be a file:
/var/db/pkg/dev-libs/libassuan-2.0.0/COUNTER
The contents of this file should be a number which represents the incremental number of the build.
On my system the contents are:
| Code: | jmd0 / # cat /var/db/pkg/dev-libs/libassuan-2.0.0/COUNTER
13867 |
Verify that this count is valid. _________________ John
My gentoo overlay
Instructons for overlay |
|
| Back to top |
|
 |
hebble n00b

Joined: 25 Mar 2007 Posts: 24
|
Posted: Thu Jul 22, 2010 10:09 am Post subject: |
|
|
Looks like I may have fixed it.
I did an
| Code: |
# emerge -C libassuan
|
There was a lot of protests from emerge and I thought from the messages that libassuan was not removed.
I then re-emerged portage and it occured without the previous error message (the one about the COUNTER)
Then I was able to re-emerge libassuan, and now performing emerge -pDNuv world, I get the list of 422 packages still to rebuild.
Looking good, although I wont call it solved quite yet.
Thanks to all who gave help.
Regards, _________________ CharlesS |
|
| Back to top |
|
 |
hebble n00b

Joined: 25 Mar 2007 Posts: 24
|
Posted: Fri Jul 23, 2010 9:45 am Post subject: emerge failing since power outage
<solved> |
|
|
Rebuild almost finished.
I'll call it solved - Thanks all. _________________ CharlesS |
|
| Back to top |
|
 |
|