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

Joined: 19 May 2009 Posts: 58
|
Posted: Mon Dec 20, 2010 9:09 pm Post subject: [SOLVED] IO ERROR while trying to emerge anything... |
|
|
Hi people, i'm trying to emerge any of the current updates, but i always get the following error:
* IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/sys-apps/portage-2.1.9.25
it happens exactly as well on another server, another customer, another location, no relation (but the sysadmin.. ) btw the two servers.
Well, first of all:
| Code: |
[21:43:47]gateway ~ # ls -la /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
-rw-r--r-- 1 root root 0 Dec 20 21:32 /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
[21:44:21]gateway ~ # touch /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
[21:44:24]gateway ~ # ls -la /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
-rw-r--r-- 1 root root 0 Dec 20 21:44 /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
|
Wow... what an IO Error..
Let's try the other server:
| Code: |
[21:46:33] root@gatewaymi:~
# ls -la /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
-rw-r--r-- 1 root root 0 Dec 20 21:33 /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
[21:46:59] root@gatewaymi:~
# touch /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
[21:47:17] root@gatewaymi:~
# ls -la /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
-rw-r--r-- 1 root root 0 Dec 20 21:47 /var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked
|
Other packages?
* IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/sys-devel/m4-1.4.15
* IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/net-misc/openssh-5.6_p1-r2
folder's permissions?
drwxrwxr-x 5 portage portage 4096 Dec 20 21:50 portage
i append complete informations about the ebuild, but i don't think they will be important, there's something else weird going on.
Here's a complete failing build output:
| Code: |
[21:57:24]gateway ~ # emerge -u portage
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-apps/portage-2.1.9.25
* portage-2.1.9.25.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* Package: sys-apps/portage-2.1.9.25
* Repository: gentoo
* Maintainer: dev-portage@gentoo.org
* USE: elibc_glibc ipc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking portage-2.1.9.25.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.1.9.25/work
touch: setting times of `/var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked': No such file or directory
* ERROR: sys-apps/portage-2.1.9.25 failed:
* IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/sys-apps/portage-2.1.9.25
*
* Call stack:
* ebuild.sh, line 2320: Called ebuild_main
* ebuild.sh, line 2227: Called dyn_unpack
* ebuild.sh, line 746: Called die
* The specific snippet of code:
* touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"
*
* If you need support, post the output of 'emerge --info =sys-apps/portage-2.1.9.25',
* the complete build log and the output of 'emerge -pqv =sys-apps/portage-2.1.9.25'.
* The complete build log is located at '/var/log/portage/sys-apps:portage-2.1.9.25:20101220-205733.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.9.25/temp/environment'.
* S: '/var/tmp/portage/sys-apps/portage-2.1.9.25/work/portage-2.1.9.25'
>>> Failed to emerge sys-apps/portage-2.1.9.25, Log file:
>>> '/var/log/portage/sys-apps:portage-2.1.9.25:20101220-205733.log'
* Messages for package sys-apps/portage-2.1.9.25:
* ERROR: sys-apps/portage-2.1.9.25 failed:
* IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/sys-apps/portage-2.1.9.25
*
* Call stack:
* ebuild.sh, line 2320: Called ebuild_main
* ebuild.sh, line 2227: Called dyn_unpack
* ebuild.sh, line 746: Called die
* The specific snippet of code:
* touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"
*
* If you need support, post the output of 'emerge --info =sys-apps/portage-2.1.9.25',
* the complete build log and the output of 'emerge -pqv =sys-apps/portage-2.1.9.25'.
* The complete build log is located at '/var/log/portage/sys-apps:portage-2.1.9.25:20101220-205733.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.9.25/temp/environment'.
* S: '/var/tmp/portage/sys-apps/portage-2.1.9.25/work/portage-2.1.9.25'
[21:57:41]gateway ~ #
|
Here's the output of emerge --info =sys-apps/portage-2.1.9.25
| Code: |
[21:57:41]gateway ~ # emerge --info =sys-apps/portage-2.1.9.25
Portage 2.1.9.24 (hardened/linux/x86, gcc-4.3.4-hardenednopie, glibc-2.11.2-r3, 2.6.18-hardenedsecure i686)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.18-hardenedsecure-i686-Intel-R-_Celeron-R-_CPU_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Mon, 20 Dec 2010 20:15:01 +0000
app-shells/bash: 4.1_p7
dev-lang/python: 2.4.6, 2.5.4-r4, 2.6.6-r1, 3.1.2-r4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13::<unknown repository>, 2.65-r1
sys-devel/automake: 1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 3.3.6-r1::<unknown repository>, 3.4.6-r2::<unknown repository>, 4.1.2, 4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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://rsync1.fi.gentoo.org/gentoo-portage"
USE="acpi bash-completion bindist bzip2 bzlib caps cli cracklib crypt cxx dri ftp gdbm gpm hardened hardenedphp ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pcre perl pic pppd python readline session sse sse2 ssl sysfs urandom x86 xorg 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 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware voodoo" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
Here's the complete build log
| Code: |
[22:02:46]gateway ~ # cat /var/log/portage/sys-apps:portage-2.1.9.25:20101220-205733.log
* Package: sys-apps/portage-2.1.9.25
* Repository: gentoo
* Maintainer: dev-portage@gentoo.org
* USE: elibc_glibc ipc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking portage-2.1.9.25.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.1.9.25/work
touch: setting times of `/var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked': No such file or directory
* ERROR: sys-apps/portage-2.1.9.25 failed:
* IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/sys-apps/portage-2.1.9.25
*
* Call stack:
* ebuild.sh, line 2320: Called ebuild_main
* ebuild.sh, line 2227: Called dyn_unpack
* ebuild.sh, line 746: Called die
* The specific snippet of code:
* touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"
*
* If you need support, post the output of 'emerge --info =sys-apps/portage-2.1.9.25',
* the complete build log and the output of 'emerge -pqv =sys-apps/portage-2.1.9.25'.
* The complete build log is located at '/var/log/portage/sys-apps:portage-2.1.9.25:20101220-205733.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.9.25/temp/environment'.
* S: '/var/tmp/portage/sys-apps/portage-2.1.9.25/work/portage-2.1.9.25'
|
Here's the output of emerge -pqv =sys-apps/portage-2.1.9.25
| Code: |
[22:02:51]gateway ~ # emerge -pqv =sys-apps/portage-2.1.9.25
[ebuild U ] sys-apps/portage-2.1.9.25 [2.1.9.24] USE="(ipc) -build -doc -epydoc -python3 (-selinux)" LINGUAS="-pl"
|
Thanks in advance guys, any kind of help will be highly appreciated!
Marco
Last edited by mlnzigzag on Sat Jan 22, 2011 9:38 am; edited 1 time in total |
|
| Back to top |
|
 |
Hu Watchman

Joined: 06 Mar 2007 Posts: 6827
|
|
| Back to top |
|
 |
dol-sen Developer


Joined: 30 Jun 2002 Posts: 2153 Location: Richmond, BC, Canada
|
|
| Back to top |
|
 |
mlnzigzag n00b

Joined: 19 May 2009 Posts: 58
|
Posted: Wed Jan 19, 2011 9:57 pm Post subject: not a sandbox issue! |
|
|
i don't think it's a sandbox issue, as i did:
| Code: |
[22:38:00][22:38:00]gateway ~ # wget http://tinderbox.dev.gentoo.org/default-linux/x86/sys-apps/sandbox-2.3-r1.tbz2
--2011-01-19 22:41:03-- http://tinderbox.dev.gentoo.org/default-linux/x86/sys-apps/sandbox-2.3-r1.tbz2
Resolving tinderbox.dev.gentoo.org... 140.211.166.181
Connecting to tinderbox.dev.gentoo.org|140.211.166.181|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 127563 (125K) [text/plain]
Saving to: `sandbox-2.3-r1.tbz2'
100%[=========================================================================================================================================>] 127,563 113K/s in 1.1s
2011-01-19 22:41:05 (113 KB/s) - `sandbox-2.3-r1.tbz2' saved [127563/127563]
[22:41:05]gateway ~ # whereis sandbox
[/url]sandbox: /usr/bin/sandbox /etc/sandbox.d /etc/sandbox.conf /usr/share/sandbox
[22:46:12]gateway ~ # sandbox --version
Gentoo path sandbox
version: 2.4
C lib: libc.so.6 (/lib/libc.so.6)
build: Dec 13 2010 20:13:10
contact: sandbox@gentoo.org via http://bugs.gentoo.org/
rtld: next is OK! :D
schizo: no
configured with these options:
--prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib build_alias=i686-pc-linux-gnu host_alias=i686-pc-linux-gnu CFLAGS=-O2 -march=pentium4 -pipe -fomit-frame-pointer LDFLAGS=-Wl,-O1 -Wl,--as-needed CPPFLAGS=
[22:51:14]gateway / # tar xfpj root/sandbox-2.3-r1.tbz2
bzip2: (stdin): trailing garbage after EOF ignored
[22:51:46]gateway / # sandbox -V
Gentoo path sandbox
version: 2.3
C lib: libc.so.6 (/lib/libc.so.6)
build: Oct 6 2010 04:07:11
contact: sandbox@gentoo.org via http://bugs.gentoo.org/
rtld: next is OK! :D
schizo: no
configured with these options:
--prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib build_alias=i686-pc-linux-gnu host_alias=i686-pc-linux-gnu CFLAGS=-O2 -march=i686 LDFLAGS=-Wl,-O1 -Wl,-z,relro CPPFLAGS=
[22:51:53]gateway / # ls -la^C
[22:52:07]gateway / # emerge -u portage
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-apps/portage-2.1.9.25
* portage-2.1.9.25.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* Package: sys-apps/portage-2.1.9.25
* Repository: gentoo
* Maintainer: dev-portage@gentoo.org
* USE: elibc_glibc ipc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking portage-2.1.9.25.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.1.9.25/work
touch: setting times of `/var/tmp/portage/sys-apps/portage-2.1.9.25/.unpacked': No such file or directory
* ERROR: sys-apps/portage-2.1.9.25 failed:
* IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/sys-apps/portage-2.1.9.25
*
* Call stack:
* ebuild.sh, line 2320: Called ebuild_main
* ebuild.sh, line 2227: Called dyn_unpack
* ebuild.sh, line 746: Called die
* The specific snippet of code:
* touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"
*
* If you need support, post the output of 'emerge --info =sys-apps/portage-2.1.9.25',
* the complete build log and the output of 'emerge -pqv =sys-apps/portage-2.1.9.25'.
* The complete build log is located at '/var/log/portage/sys-apps:portage-2.1.9.25:20110119-215216.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.9.25/temp/environment'.
* S: '/var/tmp/portage/sys-apps/portage-2.1.9.25/work/portage-2.1.9.25'
>>> Failed to emerge sys-apps/portage-2.1.9.25, Log file:
>>> '/var/log/portage/sys-apps:portage-2.1.9.25:20110119-215216.log'
* Messages for package sys-apps/portage-2.1.9.25:
* ERROR: sys-apps/portage-2.1.9.25 failed:
* IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/sys-apps/portage-2.1.9.25
*
* Call stack:
* ebuild.sh, line 2320: Called ebuild_main
* ebuild.sh, line 2227: Called dyn_unpack
* ebuild.sh, line 746: Called die
* The specific snippet of code:
* touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"
*
* If you need support, post the output of 'emerge --info =sys-apps/portage-2.1.9.25',
* the complete build log and the output of 'emerge -pqv =sys-apps/portage-2.1.9.25'.
* The complete build log is located at '/var/log/portage/sys-apps:portage-2.1.9.25:20110119-215216.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.9.25/temp/environment'.
* S: '/var/tmp/portage/sys-apps/portage-2.1.9.25/work/portage-2.1.9.25'
[22:52:25][22:52:25]gateway / # |
|
|
| Back to top |
|
 |
pross Apprentice


Joined: 30 Jul 2003 Posts: 156 Location: Ireland
|
|
| Back to top |
|
 |
mlnzigzag n00b

Joined: 19 May 2009 Posts: 58
|
Posted: Fri Jan 21, 2011 9:47 am Post subject: Solved |
|
|
You are a great Man!
here's the touch's hack:
| Code: |
[10:39:28]gateway ~ # mv /bin/touch /bin/oldtouch
`/bin/touch' -> `/bin/oldtouch'
[10:39:29]gateway ~ # echo '#!/bin/sh' > /bin/touch
[10:39:29]gateway ~ # echo 'echo -n >> "$1"' >> /bin/touch
[10:39:29]gateway ~ # chmod +x /bin/touch
|
here's the result:
| Code: |
[10:39:32]gateway ~ # emerge -u portage
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-apps/portage-2.1.9.25
* portage-2.1.9.25.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* Package: sys-apps/portage-2.1.9.25
* Repository: gentoo
* Maintainer: dev-portage@gentoo.org
* USE: elibc_glibc ipc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking portage-2.1.9.25.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.1.9.25/work
>>> Source unpacked in /var/tmp/portage/sys-apps/portage-2.1.9.25/work
>>> Preparing source in /var/tmp/portage/sys-apps/portage-2.1.9.25/work/portage-2.1.9.25 ...
* Setting portage.VERSION to 2.1.9.25 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/portage-2.1.9.25/work/portage-2.1.9.25 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/portage-2.1.9.25/work/portage-2.1.9.25 ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-apps/portage-2.1.9.25
>>> Install portage-2.1.9.25 into /var/tmp/portage/sys-apps/portage-2.1.9.25/image/ category sys-apps
patching file make.conf
Hunk #1 succeeded at 22 (offset -1 lines).
Hunk #2 succeeded at 41 (offset -1 lines).
Hunk #3 succeeded at 124 (offset -1 lines).
>>> Completed installing portage-2.1.9.25 into /var/tmp/portage/sys-apps/portage-2.1.9.25/image/
strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
ecompressdir: bzip2 -9 /usr/share/man
>>> Installing (1 of 1) sys-apps/portage-2.1.9.25
* Compilation and optimization of Python modules placed outside of site-packages directories 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...
>>> No outdated packages were found on your system.
* Regenerating GNU info directory index...
* Processed 6 info files.
[10:41:21][10:41:21]gateway ~ #
|
Even if this is still just a workaround for a >coreutils-8.7, with kernels <2.6.22, as it's ebuild should check for utimensat support in the kernel, and it dosen't. I'm gonna mark it as SOLVED, anyway. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|