Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210168 - app-admin/webapp-config fails for vhost_subdomain_3
Summary: app-admin/webapp-config fails for vhost_subdomain_3
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 19:06 UTC by Evert
Modified: 2008-02-25 10:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
almost default /etc/vhosts/webapp-config (webapp-config,7.89 KB, text/plain)
2008-02-14 20:48 UTC, Evert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evert 2008-02-14 19:06:21 UTC
dokuwiki fails to emerge when vhost_root contains ${vhost_subdomain_3} in /etc/vhosts/webapp-config.


Reproducible: Always

Steps to Reproduce:
1. vi /etc/vhosts/webapp-config
2. vhost_root="/data/websites/${vhost_subdomain_3}"
3. emerge -av dokuwiki

Actual Results:  
# emerge -av dokuwiki

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-apps/dokuwiki-20070626b  USE="vhosts" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) www-apps/dokuwiki-20070626b to /
 * dokuwiki-2007-06-26b.tgz RMD160 SHA1 SHA256 size ;-) ...                      [ ok ]
 * checking ebuild checksums ;-) ...                                             [ ok ]
 * checking auxfile checksums ;-) ...                                            [ ok ]
 * checking miscfile checksums ;-) ...                                           [ ok ]
 * checking dokuwiki-2007-06-26b.tgz ;-) ...                                     [ ok ]
 * 
 * Using dev-lang/php-5.2.5-r1
 * 
 * Checking for required PHP feature(s) ...
* Fatal error: 
* Fatal error: There is a problem with your configuration file.
* Fatal error: webapp-config tried to read the variable "vhost_config_dir"
* Fatal error: and received the following error:
* Fatal error: 
* Fatal error: Bad value substitution:
* Fatal error: 	section: [USER]
* Fatal error: 	option : vhost_config_dir
* Fatal error: 	key    : vhost_subdomain_3
* Fatal error: 	rawval : 
* Fatal error: 
* Fatal error: Please note that webapp-config is not written in bash anymore
* Fatal error: and that you cannot use the bash scripting features.
* Fatal error(s) - aborting
 * 
 * ERROR: www-apps/dokuwiki-20070626b failed.
 * Call stack:
 *                   ebuild.sh, line   49:  Called pkg_setup
 *   dokuwiki-20070626b.ebuild, line   33:  Called webapp_pkg_setup
 *               webapp.eclass, line  364:  Called webapp_read_config
 *               webapp.eclass, line   54:  Called die
 * The specific snippet of code:
 *   		ENVVAR=$(${WEBAPP_CONFIG} --query ${PN} ${PVR}) || die "Could not read settings from webapp-config!"
 *  The die message:
 *   Could not read settings from webapp-config!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/compile/portage/www-apps/dokuwiki-20070626b/temp/build.log'.
 * The ebuild environment file is located at '/compile/portage/www-apps/dokuwiki-20070626b/temp/die.env'.
 * 

 * Messages for package www-apps/dokuwiki-20070626b:

 * 
 * ERROR: www-apps/dokuwiki-20070626b failed.
 * Call stack:
 *                   ebuild.sh, line   49:  Called pkg_setup
 *   dokuwiki-20070626b.ebuild, line   33:  Called webapp_pkg_setup
 *               webapp.eclass, line  364:  Called webapp_read_config
 *               webapp.eclass, line   54:  Called die
 * The specific snippet of code:
 *   		ENVVAR=$(${WEBAPP_CONFIG} --query ${PN} ${PVR}) || die "Could not read settings from webapp-config!"
 *  The die message:
 *   Could not read settings from webapp-config!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/compile/portage/www-apps/dokuwiki-20070626b/temp/build.log'.
 * The ebuild environment file is located at '/compile/portage/www-apps/dokuwiki-20070626b/temp/die.env'.
 * 


Expected Results:  
:)

# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24.2 i686)
=================================================================
System uname: 2.6.24.2 i686 AMD Athlon(tm) XP 2600+
Timestamp of tree: Thu, 14 Feb 2008 02:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/data/linux/gentoo/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LINGUAS="en en_US en_GB nl de"
MAKEOPTS="-j2"
PKGDIR="/data/linux/gentoo/packages/amd_athlon-xp"
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="/compile"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa apache2 apm berkdb bitmap-fonts cli cracklib crypt cups dri dvd dvdr dvdread encode esd exif fortran gdbm gif gnome gpm gstreamer gtk iconv imlib ipv6 isdnlog java jpeg ldap mad midi mikmod mmx mng mozilla mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt qt4 quicktime readline reflection samba sdl session spell spl sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd vhosts vorbis wmf x86 xinerama xml xorg xv zlib" ALSA_CARDS="intel8x0" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB nl de" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-14 19:23:14 UTC
Attach your /etc/vhosts/webapp-config here.
Comment 2 Evert 2008-02-14 20:48:21 UTC
Created attachment 143532 [details]
almost default /etc/vhosts/webapp-config

here it is!
Comment 3 Evert 2008-02-23 10:51:50 UTC
forgot to reopen...

I think this bug is not only related to dokuwiki, but also to squirrelmail and probably to other webapps too so maybe the problem is more related to webapp-config-1.50.16-r1
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-02-23 10:55:46 UTC
Can you try w/ 1.50.16-r3 please?
Comment 5 Evert 2008-02-23 11:58:01 UTC
same problem w/ 1.50.16-r3
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-23 13:13:04 UTC
please set vhost_hostname to something that can satisfy the vhost_subdomain_3 substitution, e.g. my.example.com
Comment 7 Evert 2008-02-25 10:40:36 UTC
that does the trick, thanx!