Bugzilla – Bug 114653
number of packages decrements when retrying after media read error
Last modified: 2005-10-05 12:37:12 UTC
When a rpm installation fails, in this case it was a media read error, the number of packages decrements at each retry. Count should be reincremented before retrying. The problem occurs aswell in first installation as when install/remove software with yast2.
Could you please be more specific? Provide all relevant output as well.
When a package begins to install, the total count of packages aswell as the count of packages to be installed from CD1 are decremented by 1. When it fails and you choose to ignore -> it's ok to leave it like that, final count will be 0. If you choose to retry, the counters are again decremented so the counts are wrong. I'll attach an extract from yast2 logs:
2005-09-01 08:52:38 <1> linux(2534) [mediaaccess++] MediaHandler.cc(provideFile):285 provideFile(/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm) 2005-09-01 08:52:38 <1> linux(2534) [YCP] SlideShow.ycp:1228 Installing yast2-phone-services-2.12.0 -- YaST2 - Phone Services Configuration 2005-09-01 08:52:38 <1> linux(2534) [rpmdb] RpmDb.cc(installPackage):1569 RpmDb::installPackage(/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm,156) 2005-09-01 08:52:38 <1> linux(2534) [liby2util++] ExternalProgram.cc(start_program):163 Executing 'rpm' '--root' '/mnt' '--dbpath' '/var/lib/rpm' '-U' '--percent' '--nosignature' '--force' '--nodeps' '--ignoresize' '/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm' 2005-09-01 08:52:51 <1> linux(2534) [liby2util++] ExternalProgram.cc(checkStatus):320 pid 6654 exited with status 1 2005-09-01 08:52:51 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 rpm failed, message was: error: /var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm: MD5 digest: BAD Expected(11c957c1163b0971bd316a9fc95b2bc6) != (b62883da212e5180736554aba5807b83) 2005-09-01 08:52:51 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 error: /var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm cannot be installed 2005-09-01 08:52:51 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 2005-09-01 08:53:11 <1> linux(2534) [YCP] PackageCallbacks.ycp:286 DonePackage `retry 2005-09-01 08:53:12 <1> linux(2534) [YCP] SlideShow.ycp:1228 Installing yast2-phone-services-2.12.0 -- YaST2 - Phone Services Configuration 2005-09-01 08:53:12 <1> linux(2534) [YCP] SlideShow.ycp:894 src #0: [52198856, 470718105, 534093077, 59989726, 2199558] 2005-09-01 08:53:12 <1> linux(2534) [rpmdb] RpmDb.cc(installPackage):1569 RpmDb::installPackage(/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm,156) 2005-09-01 08:53:12 <1> linux(2534) [liby2util++] ExternalProgram.cc(start_program):163 Executing 'rpm' '--root' '/mnt' '--dbpath' '/var/lib/rpm' '-U' '--percent' '--nosignature' '--force' '--nodeps' '--ignoresize' '/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm' 2005-09-01 08:53:19 <1> linux(2534) [liby2util++] ExternalProgram.cc(checkStatus):320 pid 6659 exited with status 1 2005-09-01 08:53:19 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 rpm failed, message was: error: /var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm: MD5 digest: BAD Expected(11c957c1163b0971bd316a9fc95b2bc6) != (b62883da212e5180736554aba5807b83) 2005-09-01 08:53:19 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 error: /var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm cannot be installed 2005-09-01 08:53:19 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 2005-09-01 08:53:21 <1> linux(2534) [YCP] PackageCallbacks.ycp:286 DonePackage `retry 2005-09-01 08:53:21 <1> linux(2534) [YCP] SlideShow.ycp:1228 Installing yast2-phone-services-2.12.0 -- YaST2 - Phone Services Configuration 2005-09-01 08:53:21 <1> linux(2534) [rpmdb] RpmDb.cc(installPackage):1569 RpmDb::installPackage(/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm,156) 2005-09-01 08:53:21 <1> linux(2534) [liby2util++] ExternalProgram.cc(start_program):163 Executing 'rpm' '--root' '/mnt' '--dbpath' '/var/lib/rpm' '-U' '--percent' '--nosignature' '--force' '--nodeps' '--ignoresize' '/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm' 2005-09-01 08:53:27 <1> linux(2534) [liby2util++] ExternalProgram.cc(checkStatus):320 pid 6664 exited with status 1 2005-09-01 08:53:27 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 rpm failed, message was: error: /var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm: MD5 digest: BAD Expected(11c957c1163b0971bd316a9fc95b2bc6) != (b62883da212e5180736554aba5807b83) 2005-09-01 08:53:27 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 error: /var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm cannot be installed 2005-09-01 08:53:27 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 2005-09-01 08:53:36 <1> linux(2534) [YCP] PackageCallbacks.ycp:286 DonePackage `retry 2005-09-01 08:53:36 <1> linux(2534) [YCP] SlideShow.ycp:1228 Installing yast2-phone-services-2.12.0 -- YaST2 - Phone Services Configuration 2005-09-01 08:53:36 <1> linux(2534) [rpmdb] RpmDb.cc(installPackage):1569 RpmDb::installPackage(/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm,156) 2005-09-01 08:53:36 <1> linux(2534) [liby2util++] ExternalProgram.cc(start_program):163 Executing 'rpm' '--root' '/mnt' '--dbpath' '/var/lib/rpm' '-U' '--percent' '--nosignature' '--force' '--nodeps' '--ignoresize' '/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm' 2005-09-01 08:53:43 <1> linux(2534) [liby2util++] ExternalProgram.cc(checkStatus):320 pid 6671 exited with status 1 2005-09-01 08:53:43 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 rpm failed, message was: error: /var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm: MD5 digest: BAD Expected(11c957c1163b0971bd316a9fc95b2bc6) != (b62883da212e5180736554aba5807b83) 2005-09-01 08:53:43 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 error: /var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/noarch/yast2-phone-services-2.12.0-2.noarch.rpm cannot be installed 2005-09-01 08:53:43 <3> linux(2534) [rpmdb] RpmDb.cc(installPackage):1662 2005-09-01 08:53:50 <1> linux(2534) [YCP] PackageCallbacks.ycp:286 DonePackage `ignore
The next time please create an attachment when submitting logs or files.
Bug also found in RC1.
Another problem is that even if everything is fine, when the last package is being installed, the progress shows "everything has been done". This code calls for deeper changes.
Fixed in SVN for 10.1.