[CentOS] Yum hangs while doing update
ken
gebser at mousecar.com
Mon Jul 1 19:52:42 UTC 2013
On 07/01/2013 03:34 PM Eero Volotinen wrote:
> try strace -f rpm -vv -V rpm
Because it looked like the source of the problem (at least one problem)
I mv'd off /var/lib/rpm/Packages and did a 'rpm --rebuilddb'. Now it's
not hanging anymore, but now...
# yum -d 10 info yum
...
Running "config" handler for "verify" plugin
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 157, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
self.conf
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in
<lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 240, in
_getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 805, in
readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot,
startupconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 884, in
_getsysver
hdr = idx.next()
StopIteration
Per your request:
# strace -f rpm -vv -V rpm
... (many lines) ...
write(2, "closed db index /var/lib"..., 46closed db index
/var/lib/rpm/Packages
) = 46
munmap(0xb7c22000, 450560) = 0
munmap(0xb7c90000, 1318912) = 0
munmap(0xb7ff7000, 24576) = 0
write(2, "D: ", 3D: ) = 3
write(2, "closed db environment /var/lib"..., 46closed db
environment /var/lib/rpm/Packages
) = 46
rt_sigaction(SIGHUP, {SIG_DFL, [], 0}, NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], 0}, NULL, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL, [], 0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], 0}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {0x1, [], 0}, NULL, 8) = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25462, ...}) = 0
mmap2(NULL, 25462, PROT_READ, MAP_SHARED, 3, 0) = 0xb7ff6000
close(3) = 0
futex(0x4faa4c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(2, "D: ", 3D: ) = 3
write(2, "May free Score board((nil))\n", 28May free Score board((nil))
) = 28
brk(0x8f63000) = 0x8f63000
exit_group(2) = ?
[Ends there... without hanging anymore.]
More information about the CentOS
mailing list