Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 164057

Summary: sys-cluster/util-vserver-0.30.212-r1 - uild vserver template does not work
Product: Gentoo Linux Reporter: Karel Hala <stripe>
Component: [OLD] ServerAssignee: Gentoo VPS Team (OBSOLETE) <vserver-devs+disabled>
Status: RESOLVED REMIND    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Karel Hala 2007-01-27 15:25:13 UTC
Tried to build a new guest with util-vserver-0.30.212-r1. Output is as follows

>>> Adding shared /usr/portage to fstab ...
>>> Checking init-style ... sysv
!!! The init-style you specified is not supported for Gentoo
!!! Please use one of: plain, gentoo
Unsupported packaging method: application/empty (application/x-bzip2)

There is evidently problem with mime resolving the right decompressor. However I  have app-misc/mime-types-5, app-arch/tar-1.16-r2 and app-arch/bzip2-1.0.3-r6 installed.

Reproducible: Always

Steps to Reproduce:
1. vserver temp build --hostname temp --context 102 -m template -- -d gentoo -t /vservers/stage3-i686-20060317.tar.bz2
2. Nothing found around google and mailinglists
3.

Actual Results:  
Can build the skeleton and the vserver host manually but it is so much editing.

Expected Results:  
run through

Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17-vs2.0.2.1-gentoo i686)
=================================================================
System uname: 2.6.17-vs2.0.2.1-gentoo i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.6
Last Sync: Sat, 27 Jan 2007 08:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -ftracer -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe -ftracer -fomit-frame-pointer"
DISTDIR="/usr/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer notitles sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://gentoo.suchdol.czf ftp://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.sh.cvut.cz/MIRRORS/gentoo http://gentoo.oregonstate.edu http://gentoo.inode.at http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="cs en"
MAKEOPTS="-j3"
PKGDIR="/usr/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=180"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.suchdol.czf/gentoo-portage"
USE="x86 acl acpi berkdb bitmap-fonts bzip2 bzlib caps cli cracklib crypt dlloader dri elibc_glibc fortran gd gdbm gpm hardened iconv input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog kernel_linux libg++ linguas_cs linguas_en mime mmx ncurses nls nptl nptlonly ntpl ntplonly pam pcre perl pie png ppds pppd pwdb python readline reflection samba session snmp sockets spl sse ssl tcpd truetype-fonts type1-fonts udev unicode usb userland_GNU xml xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2007-01-27 22:23:35 UTC
this is a known problem, file somehow identifies the tarball as empty, there is no known fix currently
Comment 2 Karel Hala 2007-01-28 11:09:18 UTC
Hmmh, interesting...

I have just repacked the tarball to tar.gz which makes this to work. Output is as follows:

>>> Adding shared /usr/portage to fstab ...
>>> Checking init-style ... sysv
!!! The init-style you specified is not supported for Gentoo
!!! Please use one of: plain, gentoo
>>> Fixing default runlevel scripts ...
>>> Setting hostname ...
>>> Found baselayout-1.6.14
!!! Will not do automagic changes to baselayout < 1.13
!!! You have to take care for yourself ...

Anyway the vserver is built just need to set plain style init by hand.
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2007-01-28 11:55:38 UTC
you can use --initstyle plain with vserver - build
Comment 4 Tom Willaert 2007-02-04 14:32:51 UTC
(In reply to comment #1)
> this is a known problem, file somehow identifies the tarball as empty, there is
> no known fix currently

Some testing seems to indicate that the problem is with ">=sys-apps/file-4.18". I just tested with 4.17, 4.18 and 4.19. Both 4.18 and 4.19 seem to fail randomly (with more failures when there's more load on the system).

You can test on 4.18 with: file -Nbiz -m /usr/lib/util-vserver/magic path_to_stage_file
This will randomly return "application/x-tar, POSIX (GNU) (application/x-bzip2)" (good) or "application/empty (application/x-bzip2)" (bad)

Use emerge --oneshot "<sys-apps/file-4.18" to install an older version which doesn't have this bug.