Mailinglist Archive: opensuse (3441 mails)

< Previous Next >
[opensuse] Zypper hang
  • From: Josef Wolf <jw@xxxxxxxxxxxxx>
  • Date: Fri, 16 Jan 2009 18:45:46 +0100
  • Message-id: <20090116174546.GF18088@xxxxxxxxxxxxxx>
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 http<http://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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >