Hello, I am running "zypper -n -q refresh" regularly from a cron job. This was working fine in the last couple of weeks. But yesterday, it just got stuck. Today, I noticed that it was hanging for about 20 hours, eating all the available CPU. It also filled all my /var partition with a 16GB logfile. Then I killed it (twice). The only output was: Timeout exceed OK OK! Exiting immediately... Most of the logfile contains lines like this: 2009-01-15 20:49:10 <2> raven(29162) [zypper] prompt.cc(read_action_ari_with_timeout):129 Unknown char 377 (the 377 is actually the byte 0xff which less shows in octal format) This looks to me like zypper is ignoring the -n switch and trying to read from stdin. It also looks like the end-of-file condition on stdin is not handled correctly. Here are the last couple of lines before the "Unknown char" lines: 2009-01-15 20:04:07 <1> raven(29162) [zypp++] MediaCurl.cc(doGetFileCopy):1183 URL: http://download.opensuse.org/distribution/11.1/repo/oss/content 2009-01-15 20:04:07 <1> raven(29162) [zypp++] MediaCurl.cc(doGetFileCopy):1252 dest: /var/adm/mount/AP_0x00000001/content 2009-01-15 20:04:07 <1> raven(29162) [zypp++] MediaCurl.cc(doGetFileCopy):1253 temp: /var/adm/mount/AP_0x00000001/content.new.zypp.rxguVD 2009-01-15 20:07:07 <3> raven(29162) [zypp] MediaCurl.cc(doGetFileCopy):1276 curl error: 42: Callback aborted, temp file size 0 byte. 2009-01-15 20:07:07 <1> raven(29162) [zypp] PathInfo.cc(_Log_Result):292 unlink /var/adm/mount/AP_0x00000001/content.new.zypp.rxguVD 2009-01-15 20:07:07 <5> raven(29162) [zypp] Exception.cc(log):119 MediaCurl.cc(doGetFileCopy):1367 THROW: MediaCurl.cc(doGetFileCopy):1367: Timeout exceed 2009-01-15 20:07:07 <5> raven(29162) [zypp] Exception.cc(log):119 2009-01-15 20:07:07 <5> raven(29162) [zypp] Exception.cc(log):119 MediaCurl.cc(doGetFileCopy):1390 RETHROW: MediaCurl.cc(doGetFileCopy):1367: Timeout exceed 2009-01-15 20:07:07 <5> raven(29162) [zypp] Exception.cc(log):119 2009-01-15 20:07:07 <5> raven(29162) [zypp] Exception.cc(log):119 MediaCurl.cc(getFileCopy):858 RETHROW: MediaCurl.cc(doGetFileCopy):1390: Timeout exceed 2009-01-15 20:07:07 <5> raven(29162) [zypp] Exception.cc(log):119 2009-01-15 20:07:07 <5> raven(29162) [zypp] Exception.cc(log):119 MediaSetAccess.cc(provideFileInternal):282 CAUGHT: MediaCurl.cc(getFileCopy):858: Timeout exceed 2009-01-15 20:07:07 <5> raven(29162) [zypp] Exception.cc(log):119 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaHandler.cc(getDetectedDevices):1387 No devices for this medium 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaSetAccess.cc(provideFileInternal):292 Media couldn't provide file /content , releasing. 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaManager.cc(release):656 release(id=6) 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaHandler.cc(release):707 Request to release attached media http<http://download.opensuse.org/distribution/11.1/repo/ oss/>, use count=1 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaHandler.cc(release):714 Releasing media httphttp://download.opensuse.org/distribution/11.1/repo/oss/ 2009-01-15 20:07:07 <1> raven(29162) [zypp] MediaHandler.cc(disconnect):686 Disconnected: http://download.opensuse.org/distribution/11.1/repo/oss/ attached; localRoot "/var/adm/mount/AP_0x00000001" 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaHandler.cc(removeAttachPoint):178 MediaHandler - checking if to remove attach point 2009-01-15 20:07:07 <1> raven(29162) [zypp] PathInfo.cc(_Log_Result):292 recursive_rmdir /var/adm/mount/AP_0x00000001 2009-01-15 20:07:07 <1> raven(29162) [zypp] MediaHandler.cc(removeAttachPoint):190 Deleted default attach point /var/adm/mount/AP_0x00000001 2009-01-15 20:07:07 <1> raven(29162) [zypp] MediaHandler.cc(release):768 Released: http://download.opensuse.org/distribution/11.1/repo/oss/ not attached; localRoot "" 2009-01-15 20:07:07 <1> raven(29162) [zypp] MediaManager.cc(releaseAll):695 Releasing all attached media 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaManager.cc(releaseAll):713 Media id 2 not attached 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaManager.cc(releaseAll):713 Media id 4 not attached 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaManager.cc(releaseAll):713 Media id 6 not attached 2009-01-15 20:07:07 <1> raven(29162) [zypp] MediaManager.cc(releaseAll):723 Exit 2009-01-15 20:07:07 <1> raven(29162) [zypper++] media.h(requestMedia):72 media problem, url: http://download.opensuse.org/distribution/11.1/repo/oss/ 2009-01-15 20:07:07 <1> raven(29162) [zypper] misc.cc(is_changeable_media):64 Checking if this is a changeable medium 2009-01-15 20:07:07 <1> raven(29162) [zypp] MediaAccess.cc(open):111 Trying scheme 'http' 2009-01-15 20:07:07 <1> raven(29162) [zypp] MediaCurl.cc(MediaCurl):252 MediaCurl::MediaCurl(http://download.opensuse.org/distribution/11.1/repo/oss/, ) 2009-01-15 20:07:07 <1> raven(29162) [zypp] MediaAccess.cc(open):150 Opened: http(http://download.opensuse.org/distribution/11.1/repo/oss/ not attached; localRoot "") 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaManager.cc(open):426 Opened new media access using id 7 to http://download.opensuse.org/distribution/11.1/repo/oss/ 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaManager.cc(close):458 Close to access handler using id 7 requested 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaHandler.cc(release):700 Request to release media - not attached; eject '' 2009-01-15 20:07:07 <1> raven(29162) [zypp] MediaAccess.cc(close):217 Close: http(http://download.opensuse.org/distribution/11.1/repo/oss/ not attached; localRoot "") (OK) 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaHandler.cc(release):700 Request to release media - not attached; eject '' 2009-01-15 20:07:07 <1> raven(29162) [zypp++] MediaHandler.cc(removeAttachPoint):178 MediaHandler - checking if to remove attach point 2009-01-15 20:07:07 <2> raven(29162) [zypper] prompt.cc(read_action_ari_with_timeout):129 Unknown char 377 2009-01-15 20:07:07 <2> raven(29162) [zypper] prompt.cc(read_action_ari_with_timeout):129 Unknown char 377 Any ideas? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Josef Wolf escribió:
Any ideas?
Open a bug report with all relevant information. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Josef Wolf wrote:
Hello,
I am running "zypper -n -q refresh" regularly from a cron job. This was working fine in the last couple of weeks. But yesterday, it just got stuck. Today, I noticed that it was hanging for about 20 hours, eating all the available CPU. It also filled all my /var partition with a 16GB logfile. Then I killed it (twice). The only output was:
Timeout exceed
OK OK! Exiting immediately...
Josef, I had the same problem all yesterday as well. I think there was a broken update mirror site that was screwing things up. The easiest way to solve the problem was just to add a specific mirror as your update source and disable the normal update repository (the main redirector mirror). For example: zypper ar http://ftp.nluug.nl/pub/os/Linux/distr/opensuse/update/11.1/ update-nluug zypper mr -r update-nluug zypper mr -d openSUSE-11.0-Updates Then retry and I bet all is good. (of course make sure you can reach the mirror you choose) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Josef Wolf wrote:
Hello,
I am running "zypper -n -q refresh" regularly from a cron job. This was working fine in the last couple of weeks. But yesterday, it just got stuck. Today, I noticed that it was hanging for about 20 hours, eating all the available CPU. It also filled all my /var partition with a 16GB logfile. Then I killed it (twice). The only output was:
Timeout exceed
OK OK! Exiting immediately...
Most of the logfile contains lines like this:
2009-01-15 20:49:10 <2> raven(29162) [zypper] prompt.cc(read_action_ari_with_timeout):129 Unknown char 377
(the 377 is actually the byte 0xff which less shows in octal format)
This looks to me like zypper is ignoring the -n switch and trying to read from stdin. It also looks like the end-of-file condition on stdin is not handled correctly.
Here are the last couple of lines before the "Unknown char" lines:
Any ideas?
I believe this has already been fixed, you are probably using an old zypper(?). If not please open a bug report. It's much better to report such problems via bugzilla, it will reach developers more easily. - -- cheers, jano Ján Kupec YaST team - ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 - ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz - ---------------------------------------------------------(EOF)--- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkl11GwACgkQgEhGpmN+6QE/BACfWaW7b6tsOHDxfm7zLQVPA/Gg yGAAn0M+hdxK9QO/9frTvcNRAlo016/k =nYHA -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Cristian Rodríguez
-
David C. Rankin
-
Jan Kupec
-
Josef Wolf