# /usr/sbin/webapp-config -U -h localhost -u root -d /phpldapadmin phpldapadmin 0.9.5 Fatal error: Cannot upgrade to the same package Fatal error(s) - aborting The emerge process itself went fine, but the previous version was phpldapadmin-0.9.6c, so this is either a general bug or webapp-config is not able to deal with a downgrade.
This error message appears when webapp-config things that the target directory already contains the same version of the package. Can you post the contents of /var/www/localhost/htdocs/phpldapadmin/.webapp* please? Ta, Stu
Created attachment 63485 [details] .webapp
Created attachment 63486 [details] .webapp-phpldapadmin-0.9.5 same issue when upgrading dev-db/phppgadmin-3.5.3 today
Thanks. The .webapp file shows what's wrong. For some reason I can't yet explain, your .webapp file has entries for two different versions of the same app. This shouldn't happen ;-) As a workaround, edit the .webapp file, and remove the entries for the version which isn't installed. I'll try and reproduce the problem locally. Just checking - what fs do these files live on? Can you post an emerge info output too please, and the output from webapp-config --version? Ta, Stu
Oh well, a simple look at these files... :) The fs is reiserfs mounted rw,noatime - nothing special about it. Paths and file permissions are fine as well. >As a workaround, edit the .webapp file, and remove the entries for the version which isn't installed. I'll try and reproduce the problem locally. Did so. Even though there's only the installed version (0.9.5) left, I get the same error. There's a /var/www/localhost/htdocs/phpldapadmin/.#VERSION.1.6 left over, including "0.9.4b" as content and /var/www/localhost/htdocs/phpldapadmin/VERSION including "0.9.5" I deleted the former, still the same error, did the same with the latter - ditto. Also I think the two entries are another issue, since I have the same problem with phppgadmin-3.5.3, but the .webapp file looks sane. Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.4.28-gentoo-r9 i686) ================================================================= System uname: 2.4.28-gentoo-r9 i686 AMD Duron(tm) Processor Gentoo Base System version 1.6.12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -fforce-addr -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fforce-addr -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache cvs distlocks fixpackages keeptemp keepwork noclean nostrip sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.berlios.de/pub/gentoo-deutsch http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_DE@euro" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X X509 acl acpi acpi4linux activefilter alsa antlr apache1 apm arts artswrappersuid auctex audiofile avi bash-completion bcel berkdb bitmap-fonts cddb cdparanoia cdr chroot clisp cmucl crypt cscope css cups curl devmap dga directfb divx4linux dnd doc dv dvb dvd dvdr editor edl emacs emboss encode ext-png ext-zlib faad fam fbcon ffmpeg firebird flac foomaticdb foreign-package fortran gcj gcl gd gdbm ggi gif glut gphoto2 gpm graphviz gstreamer gtk2 hbci idl imagemagick imap imlib innodb jack jack-tmpfs javascript jpeg junit kde ladcca lcms ldap lesstif libg++ libwww lirc live lm_sensors log4j ltsp lzo mad maildir matroska mbox md5sum mikmod mmx mng mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mupad-noscilab musepack mysql nas ncurses network nls oav ogg oggvorbis openal opengl oss pam pcap pdflib perl pg-hier php physfs plotutils png pnp postgres ppds python qt quicktime readline real regexp rtc ruby samba sasl scanner sdl skey slang slp snmp sox speex spell sqlite sse ssl subversion svg svga tcpd tetex theora tiff transcode truetype truetype-fonts type1-fonts usb vim-with-x vorbis win32codecs wmf xalan xerces xine xml2 xv xvid yaz zeo zeroconf zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS The last webapp related update that went fine was Tue May 3 12:32:00 2005 >>> dev-db/phpmyadmin-2.6.2-r2 merge time: 4 minutes and 41 seconds. Later updates are Fri Feb 11 12:51:52 2005 >>> www-misc/htdig-3.1.6-r7 merge time: 6 minutes and 29 seconds. Thu Jul 7 09:39:42 2005 >>> www-misc/htdig-3.2.0_beta6 merge time: 19 minutes and 59 seconds. ( is slotted and has therefore[?] two .webapp entries ) and Fri Jul 15 21:51:56 2005 >>> dev-db/phppgadmin-3.5.3 merge time: 2 minutes and 1 second. Fri Jul 8 14:44:30 2005 >>> net-nds/phpldapadmin-0.9.5 merge time: 2 minutes and 33 seconds. with both the problem we speak about. The webapp-config updates, which match with the time frame are Mon May 9 15:02:24 2005 >>> net-www/webapp-config-1.10-r14 merge time: 2 minutes and 12 seconds. Fri Jun 17 15:30:01 2005 >>> net-www/webapp-config-1.11 merge time: 1 minute and 12 seconds. Hope this helps. Otherwise yell for more information, please.
I get an error upgrading to 0.9.7: is this related ? >>> /var/db/webapps/phpldapadmin/0.9.7/.keep * vhosts USE flag not set - auto-installing using webapp-config * This is an installation * phpldapadmin-0.9.7 is not installed - using install mode * Running /usr/sbin/webapp-config -I -h localhost -u root -d /phpldapadmin phpldapadmin 0.9.7 Traceback (most recent call last): File "/usr/bin/equery", line 27, in ? import gentoolkit File "/usr/lib/gentoolkit/pym/gentoolkit/__init__.py", line 39, in ? from helpers import * File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 12, in ? from gentoolkit.package import * ImportError: No module named package Fatal error: Please emerge phpldapadmin-0.9.7 first Fatal error(s) - aborting >>> Regenerating /etc/ld.so.cache... >>> net-nds/phpldapadmin-0.9.7 merged.
(In reply to comment #6) > I get an error upgrading to 0.9.7: > is this related ? Try reemerging app-portage/gentoolkit
remerging app-portage/gentoolkit-0.2.1_pre8 didn't work, same error.
I get the same error for squirrelmail now, some ocnfiguration must be wrong
(In reply to comment #5) > Oh well, a simple look at these files... :) The fs is reiserfs mounted > rw,noatime - nothing special about it. Paths and file permissions are fine as well. Carsten - do you remember if you ran --pretend -U before? That is known to cause webapp-config to erroneously write out a .webapp file for the new version, which causes the error you're seeing. We are aware of the problem, and it will be adressed in the next release of webapp-config.
(In reply to comment #10) > Carsten - do you remember if you ran --pretend -U before? That is known to cause > webapp-config to erroneously write out a .webapp file for the new version, which > causes the error you're seeing. Remembering - no, but I'm pretty sure I did only what I was told to do by the postinstall information. > We are aware of the problem, and it will be adressed in the next release of > webapp-config. Hooray. ;)
Could you retest against webapp-config v1.50 please? Best regards, Stu