Bug 699435

Summary: zypper / yast2 no longer able to install software: "Transaction: 202(INVALID)"
Product: [openSUSE] openSUSE 12.1 Reporter: Stefan Seyfried <seife>
Component: libzyppAssignee: Michael Andres <ma>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P1 - Urgent CC: aj, alinm.elena, bruno, burnus, forgotten_iqONfUtDin, gp, jslaby, lazy.kent, lbeltrame, lchiquitto, pcerny, vuntz, zaitor
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Third Party Developer/Partner Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---
Attachments: zypper.log after failing "zypper -v up"

Description Stefan Seyfried 2011-06-11 09:38:04 UTC
Created attachment 434079 [details]
zypper.log after failing "zypper -v up"

101 packages to upgrade.
Overall download size: 93.7 MiB. After the operation, additional 34.0 KiB will be used.
Continue? [y/n/?] (y): 
committing
committingCommitResult  (total 101, done 0, error 0, skipped 101, updateMessages 0)
Transaction: 202 (INVALID)

I already removed /var/cache/zypp, but that simply re-downloads all the packages and then fails exactly the same way.
Comment 1 Kyrill Detinov 2011-06-11 10:01:41 UTC
The same problem here.

89 packages to upgrade.
Overall download size: 69.9 MiB. After the operation, additional 110.0 KiB will be used.
Continue? [y/n/?] (y): 
committing
committingCommitResult  (total 89, done 0, error 0, skipped 89, updateMessages 0)
Transaction: 178 (INVALID)
Comment 2 Alin M Elena 2011-06-12 19:15:04 UTC
the same here...
as a workaround I installed with rpm.. the old versions from tested of libzypp and zypper.

Alin
Comment 3 Bruno Friedmann 2011-06-13 07:04:05 UTC
Perhaps an idea. 

It works here, but I've change the default of zypper 
in /etc/zypp/zypp.conf

# Test transaction but don't work
# commit.downloadMode = DownloadInHeaps
commit.downloadMode = DownloadAsNeeded

As I use a local mirror, it's more efficient for me than the download in advance.

zypper se -si zyp
Loading repository data...
Reading installed packages...

S | Name        | Type    | Version    | Arch   | Repository 
--+-------------+---------+------------+--------+------------
i | libzypp     | package | 9.8.0-2.1  | x86_64 | factory-oss
i | python-zypp | package | 0.5.9-7.6  | x86_64 | factory-oss
i | zypper      | package | 1.6.10-4.1 | x86_64 | factory-oss



Working case. 

zypper up 
Loading repository data...
Reading installed packages...

The following package updates will NOT be installed:
  amarok amarok-lang apache2-mod_perl apg audit-visualize autoconf automake bluedevil boost-devel bsdtar choqok clamav clucene-core collectd curl frozen-bubble 
  ftgl-demo ftgl-devel goocanvas-lang gstreamer-0_10 gstreamer-0_10-32bit gstreamer-0_10-devel gstreamer-0_10-lang gstreamer-0_10-plugins-base-32bit 
  gstreamer-0_10-plugins-base-devel gstreamer-0_10-plugins-base-lang gstreamer-0_10-plugins-good gstreamer-0_10-plugins-good-extra 
  gstreamer-0_10-plugins-good-lang gstreamer-0_10-utils gstreamer-utils htop iptraf-ng k3b k3b-lang kdebase4-openSUSE kdebase4-runtime-branding-openSUSE 
  kdelibs4-branding-openSUSE kdm-branding-openSUSE kig kile kile-lang kio_iso konversation krusader lash-devel libQtGLib-2_0-0 libQtGStreamer-0_10-0 libSDL-devel 
  libSDL_Pango-devel libSDL_Pango1 libSDL_Pango1-32bit libSDL_gfx-devel libSDL_image-devel libSDL_mixer-devel libSDL_ttf-devel libSDLmm-devel libarchive2 
  libattica-devel libattica0 libattica0-32bit libaudit1 libaudit1-32bit libauparse0 libblkid1 libblkid1-32bit libcares-devel libcares2 libcryptsetup1 
  libcurl-devel libcurl4 libdvbpsi-devel libdvbpsi7 libebml-devel libebml3-32bit libfreebl3 libfreebl3-32bit libftgl2 libgssdp-1_0-2 libgstapp-0_10-0-32bit 
  libgstbasecamerabinsrc-0_10-0 libgstinterfaces-0_10-0-32bit libgstreamer-0_10-0 libgstreamer-0_10-0-32bit libgupnp-1_0-3 libgupnp-igd-1_0-3 libidn libidn-32bit 
  libidn-devel liblash1 liblzma0 libmatroska-devel libmatroska3 libmatroska3-32bit libmodplug-devel libmodplug1 libmodplug1-32bit libmount1 libmount1-32bit 
  libnxcl1 libopencv2_2 libprotobuf6 libqjson-devel libqjson0 libquicktime-devel libquicktime-tools libquicktime0 libshout-devel libshout3 libshout3-32bit 
  libsidplay1 libsidplay1-32bit libsmi libsmi2 libsoftokn3 libsoftokn3-32bit libsource-highlight3 libssh2-1 libstatgrab6 libtag1 libtag_c0 libtheora0 
  libtheora0-32bit libuuid-devel libuuid1 libuuid1-32bit libwavpack1 libwavpack1-32bit libxine1 libxine1-32bit libxine1-pulse libyajl1 libyajl1-32bit lksctp-tools 
  lksctp-tools-devel logwatch mjpegtools mjpegtools-devel mozilla-js192 mozilla-js192-32bit mozilla-js20 mozilla-js20-32bit mozilla-kde4-integration mozilla-nspr 
  mozilla-nspr-32bit mozilla-nspr-devel mozilla-nss mozilla-nss-32bit mozilla-nss-certs mozilla-nss-devel mozilla-nss-tools mozldap nfswatch openmpi openmpi-devel 
  osc osc-source_validator oxygen-gtk oxygen-gtk-32bit oxygen-gtk-debuginfo perl perl-CPAN-DistnameInfo perl-DBD-ODBC perl-DBD-Pg perl-DBD-mysql perl-Data-OptList 
  perl-GD perl-GD-Barcode perl-GD-Graph3d perl-GDGraph perl-GnuPG-Interface perl-Log-Log4perl perl-Net-DBus perl-Net-SNMP perl-Package-Generator 
  perl-Params-Validate perl-SDL_Perl perl-Sub-Exporter perl-Sub-Install perl-Sub-Name perl-Tk perl-WWW-Curl perl-base perl-doc perl-kde4 perl-libwww-perl 
  phonon-backend-vlc pingus python-OpenEXR python-coherence python-crypto python-distutils-extra python-geopy python-gstreamer-0_10 python-lxml python-matplotlib 
  python-mysql python-numpy python-numpy-devel python-pyx python-tz rdesktop scribus scribus-devel synaptiks taglib tcpd tcpd-32bit tcpd-devel tightvnc timidity 
  uml-utilities util-linux virt-viewer wavpack wavpack-devel wol xclip yajl yum-common 

The following packages are going to be upgraded:
  gpsd gpsd-clients gstreamer-0_10-plugins-good gstreamer-0_10-plugins-good-extra gstreamer-0_10-plugins-good-lang libfreebl3 libgeoclue0-32bit libgps20 
  libsoftokn3 mozilla-js20 mozilla-nspr-devel mozilla-nss mozilla-nss-certs mozilla-nss-devel mozilla-nss-tools mozldap 

16 packages to upgrade.
Overall download size: 5.4 MiB. After the operation, 16.0 KiB will be freed.
Continue? [y/n/?] (y): y
Retrieving package gstreamer-0_10-plugins-good-0.10.29-1.pm.49.1.x86_64 (1/16), 1.3 MiB (4.5 MiB unpacked)
Retrieving: gstreamer-0_10-plugins-good-0.10.29-1.pm.49.1.x86_64.rpm [done]
Installing: gstreamer-0_10-plugins-good-0.10.29-1.pm.49.1 [done]
Retrieving package gstreamer-0_10-plugins-good-lang-0.10.29-1.pm.49.1.noarch (2/16), 117.0 KiB (472.0 KiB unpacked)
Retrieving: gstreamer-0_10-plugins-good-lang-0.10.29-1.pm.49.1.noarch.rpm [done]
Installing: gstreamer-0_10-plugins-good-lang-0.10.29-1.pm.49.1 [done]
Retrieving package gstreamer-0_10-plugins-good-extra-0.10.29-1.pm.49.1.x86_64 (3/16), 81.0 KiB (152.0 KiB unpacked)
Retrieving: gstreamer-0_10-plugins-good-extra-0.10.29-1.pm.49.1.x86_64.rpm [done]
Installing: gstreamer-0_10-plugins-good-extra-0.10.29-1.pm.49.1 [done]
Retrieving package libfreebl3-3.12.10-1.9.x86_64 (4/16), 134.0 KiB (420.0 KiB unpacked)
Retrieving: libfreebl3-3.12.10-1.9.x86_64.rpm [done]
Installing: libfreebl3-3.12.10-1.9 [done]
Retrieving package mozilla-js20-2.0.1-1.19.x86_64 (5/16), 1003.0 KiB (3.4 MiB unpacked)
Retrieving: mozilla-js20-2.0.1-1.19.x86_64.rpm [done]
Installing: mozilla-js20-2.0.1-1.19 [done]
Retrieving package mozilla-nspr-devel-4.8.8-1.8.x86_64 (6/16), 476.0 KiB (2.5 MiB unpacked)
Retrieving: mozilla-nspr-devel-4.8.8-1.8.x86_64.rpm [done]
Installing: mozilla-nspr-devel-4.8.8-1.8 [done]
Retrieving package mozilla-nss-certs-3.12.10-1.9.x86_64 (7/16), 163.0 KiB (541.0 KiB unpacked)
Retrieving: mozilla-nss-certs-3.12.10-1.9.x86_64.rpm [done]
Installing: mozilla-nss-certs-3.12.10-1.9 [done]
Retrieving package libsoftokn3-3.12.10-1.9.x86_64 (8/16), 160.0 KiB (429.0 KiB unpacked)
Retrieving: libsoftokn3-3.12.10-1.9.x86_64.rpm [done]
Installing: libsoftokn3-3.12.10-1.9 [done]
Retrieving package mozilla-nss-3.12.10-1.9.x86_64 (9/16), 544.0 KiB (1.8 MiB unpacked)
Retrieving: mozilla-nss-3.12.10-1.9.x86_64.rpm [done]
Installing: mozilla-nss-3.12.10-1.9 [done]
Retrieving package mozldap-6.0.7-2.9.x86_64 (10/16), 111.0 KiB (317.0 KiB unpacked)
Retrieving: mozldap-6.0.7-2.9.x86_64.rpm [done]
Installing: mozldap-6.0.7-2.9 [done]
Retrieving package mozilla-nss-tools-3.12.10-1.9.x86_64 (11/16), 670.0 KiB (3.2 MiB unpacked)
Retrieving: mozilla-nss-tools-3.12.10-1.9.x86_64.rpm [done]
Installing: mozilla-nss-tools-3.12.10-1.9 [done]
Retrieving package mozilla-nss-devel-3.12.10-1.9.x86_64 (12/16), 434.0 KiB (2.6 MiB unpacked)
Retrieving: mozilla-nss-devel-3.12.10-1.9.x86_64.rpm [done]
Installing: mozilla-nss-devel-3.12.10-1.9 [done]
Retrieving package libgeoclue0-32bit-0.12.0-23.10.x86_64 (13/16), 27.0 KiB (80.0 KiB unpacked)
Retrieving: libgeoclue0-32bit-0.12.0-23.10.x86_64.rpm [done]
Installing: libgeoclue0-32bit-0.12.0-23.10 [done]
Retrieving package libgps20-2.96-44.16.x86_64 (14/16), 40.0 KiB (80.0 KiB unpacked)
Retrieving: libgps20-2.96-44.16.x86_64.rpm [done]
Installing: libgps20-2.96-44.16 [done]
Retrieving package gpsd-2.96-44.16.x86_64 (15/16), 179.0 KiB (427.0 KiB unpacked)
Retrieving: gpsd-2.96-44.16.x86_64.rpm [done]
Installing: gpsd-2.96-44.16 [done]
Additional rpm output:
Updating /etc/sysconfig/gpsd...


Retrieving package gpsd-clients-2.96-44.16.x86_64 (16/16), 74.0 KiB (215.0 KiB unpacked)
Retrieving: gpsd-clients-2.96-44.16.x86_64.rpm [done]
Installing: gpsd-clients-2.96-44.16 [done]
There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.
Comment 4 Bjørn Lie 2011-06-13 08:07:32 UTC
Altering defaults as per comment 3 made zypper work properly again for me too.

Thx Bruno!

I guess that means the bug is somewhere in the commit code?
Comment 5 Bruno Friedmann 2011-06-13 11:44:04 UTC
Seems so. 
Mid day update show that strange result

10 packages to upgrade.
Overall download size: 3.0 MiB. No additional space will be used or freed after the operation.
Continue? [y/n/?] (y): y
committing
Retrieving package libavutil50-0.6.201106111625git-0.pm.2.1.x86_64 (1/10), 51.0 KiB (105.0 KiB unpacked)
Retrieving: libavutil50-0.6.201106111625git-0.pm.2.1.x86_64.rpm [done]
Installing: libavutil50-0.6.201106111625git-0.pm.2.1 [done]
Retrieving package libavcodec52-0.6.201106111625git-0.pm.2.1.x86_64 (2/10), 2.1 MiB (5.9 MiB unpacked)
Retrieving: libavcodec52-0.6.201106111625git-0.pm.2.1.x86_64.rpm [done]
Installing: libavcodec52-0.6.201106111625git-0.pm.2.1 [done]
Retrieving package libavformat52-0.6.201106111625git-0.pm.2.1.x86_64 (3/10), 386.0 KiB (958.0 KiB unpacked)
Retrieving: libavformat52-0.6.201106111625git-0.pm.2.1.x86_64.rpm [done]
Installing: libavformat52-0.6.201106111625git-0.pm.2.1 [done]
Retrieving package libavdevice52-0.6.201106111625git-0.pm.2.1.x86_64 (4/10), 28.0 KiB (58.0 KiB unpacked)
Retrieving: libavdevice52-0.6.201106111625git-0.pm.2.1.x86_64.rpm [done]
Installing: libavdevice52-0.6.201106111625git-0.pm.2.1 [done]
Retrieving package libavfilter1-0.6.201106111625git-0.pm.2.1.x86_64 (5/10), 153.0 KiB (392.0 KiB unpacked)
Retrieving: libavfilter1-0.6.201106111625git-0.pm.2.1.x86_64.rpm [done]
Installing: libavfilter1-0.6.201106111625git-0.pm.2.1 [done]
Retrieving package libyajl1-1.0.11-20.1.x86_64 (6/10), 18.0 KiB (39.0 KiB unpacked)
Retrieving: libyajl1-1.0.11-20.1.x86_64.rpm [done]
Installing: libyajl1-1.0.11-20.1 [done]
Retrieving package libyajl1-32bit-1.0.11-20.1.x86_64 (7/10), 15.0 KiB (30.0 KiB unpacked)
Retrieving: libyajl1-32bit-1.0.11-20.1.x86_64.rpm [done]
Installing: libyajl1-32bit-1.0.11-20.1 [done]
Retrieving package yajl-1.0.11-20.1.x86_64 (8/10), 20.0 KiB (62.0 KiB unpacked)
Retrieving: yajl-1.0.11-20.1.x86_64.rpm [done]
Installing: yajl-1.0.11-20.1 [done]
Retrieving package plasmoid-cwp-1.5.4-25.1.x86_64 (9/10), 221.0 KiB (874.0 KiB unpacked)
Retrieving: plasmoid-cwp-1.5.4-25.1.x86_64.rpm [done]
Installing: plasmoid-cwp-1.5.4-25.1 [done]
Retrieving package plasmoid-cwp-lang-1.5.4-25.1.noarch (10/10), 56.0 KiB (397.0 KiB unpacked)
Retrieving: plasmoid-cwp-lang-1.5.4-25.1.noarch.rpm [done]
Installing: plasmoid-cwp-lang-1.5.4-25.1 [done]
committingCommitResult  (total 10, done 10, error 0, skipped 0, updateMessages 0)
Transaction: 20 (INVALID)
Checking for running processes using deleted libraries...
There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.
Comment 6 Andreas Jaeger 2011-06-14 07:17:30 UTC
Michael, is this a bug in your refactoring code:

 Simplify ZYppCommitResult by using filtered Transaction::action_iterator.
Comment 7 Michael Andres 2011-06-14 10:48:44 UTC
Yes, workaround is using "zypper in/up --download as-needed ..."

The download loop fails to filter already installed packages being deleted. Thus it expects more downloads to take place and succeed than actually do.
Comment 8 Michael Andres 2011-06-14 11:42:09 UTC
fixed in libzypp-9.8.1
Comment 9 Michael Andres 2011-06-29 10:35:44 UTC
*** Bug 701385 has been marked as a duplicate of this bug. ***
Comment 10 Michael Andres 2011-07-01 08:20:19 UTC
*** Bug 700670 has been marked as a duplicate of this bug. ***
Comment 11 Michael Andres 2011-07-04 08:55:41 UTC
*** Bug 701393 has been marked as a duplicate of this bug. ***
Comment 12 Michael Andres 2011-11-07 16:30:44 UTC
*** Bug 700852 has been marked as a duplicate of this bug. ***