[CentOS] Yum hangs while doing update

m.roth at 5-cent.us m.roth at 5-cent.us
Mon Jul 1 19:46:21 UTC 2013


ken wrote:
> On 07/01/2013 02:46 PM Eero Volotinen wrote:
>> try using strace -p PID-OF-YUM and output to mailinglist
>
> Here's the last few lines of strace:
<snip>
> ...
> open("/var/lib/rpm/Packages", O_RDONLY|O_LARGEFILE) = 4
> fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
> fstat64(4, {st_mode=S_IFREG|0644, st_size=110592000, ...}) = 0
> futex(0xb79b56ac, FUTEX_WAIT, 1, NULL
>
> It hangs there.
>
> Significantly, this 'rpm' command hangs also:
>
> # rpm -vv -V rpm
> D: opening  db environment /var/lib/rpm/Packages joinenv
> D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
>
> So the problem may well be with 'rpm'.

You *might* want to consider rpm --rebuilddb

I forget, when I did that, if I had to get rid of/move /var/lib/rpm/__db.*

      mark




More information about the CentOS mailing list