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

Bug 499574

Summary: app-admin/webapp-config-1.52-r1 deletes install database entries
Product: Gentoo Linux Reporter: MAL <mal>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description MAL 2014-01-28 11:53:46 UTC
I have several wordpress-3.8 installs (names hidden for privacy):

# webapp-config --li -V wordpress
* Installs for wordpress-3.6.1
*   /home/xxx/www
* Installs for wordpress-3.8
*   /home/xxx/www
*   /home/xxx/www.xx
*   /home/xxx/www
*   /home/xxx/www
*   /home/xxx/www
*   /home/xxx/www

With the information stored in the /var/db/webapps/wordpress/... folders:

# ls /var/db/webapps/wordpress/3.8/
total 12
drwxr-xr-x  2 root root 4096 Jan 28 11:33 ./
drwxr-xr-x 25 root root 4096 Jan 28 11:03 ../
-rw-r--r--  1 root root    0 Dec 18 10:34 .keep_www-apps_wordpress-3.8
-rw-------  1 root root  275 Jan 28 11:34 installs

Updating one of the 3.8 installs to 3.8.1 as usual with:

webapp-config -U -h xxx wordpress 3.8.1

Works as expected, but the list of 3.8 installs gets hosed:

# webapp-config --li -V wordpress
* Installs for wordpress-3.6.1
*   /home/xxx/www
* Installs for wordpress-3.8.1
*   /home/xxx/www

# ls /var/db/webapps/wordpress/3.8/
total 12
drwxr-xr-x  2 root root 4096 Jan 28 11:33 ./
drwxr-xr-x 25 root root 4096 Jan 28 11:03 ../
-rw-r--r--  1 root root    0 Dec 18 10:34 .keep_www-apps_wordpress-3.8

The "installs" file for 3.8 has been deleted.  Luckily I keep backups, so I replaced it, manually removed the entry that had been updated and tried again.  The same happens.

webapp-config was updated from 1.50.16-r4 to 1.52-r1 on 2013-12-06 and it's possible I haven't needed to use it since then, so it may be a change in 1.52

-----

Portage 2.2.7 (hardened/linux/amd64, gcc-4.7.3, glibc-2.17, 3.10.7-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.10.7-gentoo-r1-x86_64-Intel-R-_Xeon-R-_CPU_E31260L_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8205736 total,   2299240 free
KiB Swap:    3905528 total,   3830432 free
Timestamp of tree: Tue, 28 Jan 2014 10:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.1.5, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --jobs=2"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news notitles parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.virginmedia.com/sites/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="acl acpi amd64 apache2 berkdb bzip2 cairo calendar caps chroot clamav clamd clamdtop courier cracklib crypt ctype curl cxx dri exif fam ffmpeg gd gdbm geoip gif gmp hardened hash hpn iconv imagemagick imap ipv6 javascript jbig jpeg jpeg2k maildir memlimit mhash mmx mmxext mng modules multilib mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh ncat ncurses netpbm nls nptl openipmi openmp pam parse-clocks pax_kernel pcre pdo plotutils png posix postgres raw readline rpc rrdcgi sensord session simplexml slang sockets spamassassin spell spf sqlite sqlite3 sse sse2 sse3 sse4 ssl subversion suexec suhosin tcpd thin-splines tiff tokenizer tools truetype unicode unzip urandom vhosts virtual-users wmf xattr xml xsl zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 auth_digest" APACHE2_MPMS="peruser" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-28 12:03:09 UTC

*** This bug has been marked as a duplicate of bug 493520 ***
Comment 2 MAL 2014-04-11 14:51:24 UTC
This is not the same as bug 493520.  This is not files from the Wordpress installation getting removed, but the webapp-config database file itself.
Comment 3 MAL 2014-04-11 15:01:26 UTC
1.53 fixes this - thank you.