On Tue, Oct 07, 2003, Dennis McRitchie wrote:
> I am upgrading from openpkg-1.3.1-1.3.1 to openpkg-20031006-20031006 using the
> provided src.rpm in
> the openpkg current repository.
>
> The build and install went fine on Solaris, but when I tried to rpm --db-rebuild (or
> --db-cleanup
> or -qa), I got the following on two different Solaris 9 machines:
>
> > rpm -qa
> rpmdb: mmap: Resource temporarily unavailable
> error: db4 error(11) from dbenv->open: Resource temporarily unavailable
> error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
> error: cannot open Packages database in /usr/psr.oit/solaris9/RPM/DB
> no packages
>
> In a discussion between Ralf and with Jeff Johnson on the rpm-list, Ralf presented a
> set of patches
> for this problem back on 20030918. Presumably, these would be incorporated into the
> 20031006
> package. Is this not the case?
They are includes, yes. And if you do --db-rebuild the problem always
got away for me. That's strange. Are you sure you have no more hanging
around "rpm" processes? I ask such silly, because during hacking on
this stuff I often forgot that there were still some processes hanging
around after I CTRL-C'd some "rpm --db-rebuild" process. Once all "rpm"
processes are killed and you _THEN_ run "rpm --db-rebuild" the database
should be correctly rebuilt and then "rpm -qa" has to work. At least
after I run "rpm --db-rebuild" once on all our development boxes, I've
never seen the "Resource temporarily unavailable" error again.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]