[Yum] MemoryError

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/20/06, seth vidal <skvidal@xxxxxxxxxxxxxx> wrote:
> On Mon, 2006-07-17 at 10:41 -0700, Demetri Mouratis wrote:
> > Greets,
> >
> > I am having a really hard time completing the following upgrade.  I
> > started with a RHEL 4 system and switched it over to CentOS 4.3 like
> > so:
> >
> > I downloaded the following from a CentOS mirror into an empty
> > directory (in my case, they're on my USB memory stick):
> >
> > centos-release-4-2.1.i386.rpm
> > centos-yumconf-4-4.3.noarch.rpm
> > python-elementtree-1.2.6-4.i386.rpm
> > python-sqlite-1.1.6-1.i386.rpm
> > python-urlgrabber-2.9.6-2.noarch.rpm
> > RPM-GPG-KEY-centos4
> > sqlite-3.2.2-1.i386.rpm
> > yum-2.4.0-1.centos4.noarch.rpm
> >
> > Then ran:
> >
> > rpm --import RPM-GPG-KEY-centos4
> > rpm -e --nodeps redhat-release
> > rpm -Uvh *.rpm
> >
> > then
> >
> > yum upgrade
> >
> > Yum upgrade is chewing up all the available RAM and swap on the system
> > and failing to complete.  Here's what happens:
> >
> > [root@delhi yum]# yum clean all
> > Cleaning up Everything
> > 0 headers removed
> > 0 packages removed
> > 9 metadata files removed
> > 0 cache files removed
> > 1 cache files removed
> >
> > [root@delhi yum]# yum -y upgrade
> > Setting up Upgrade Process
> > Setting up repositories
> > update                    100% |=========================|  951 B    00:00
> > base                      100% |=========================| 1.1 kB    00:00
> > addons                    100% |=========================|  951 B    00:00
> > extras                    100% |=========================| 1.1 kB    00:00
> > Reading repository metadata in from local files
> > primary.xml.gz            100% |=========================|  62 kB    00:01
> > Traceback (most recent call last):
> >  File "/usr/bin/yum", line 29, in ?
> >    yummain.main(sys.argv[1:])
> >  File "/usr/share/yum-cli/yummain.py", line 97, in main
> >    result, resultmsgs = do()
> >  File "/usr/share/yum-cli/cli.py", line 480, in doCommands
> >    return self.updatePkgs()
> >  File "/usr/share/yum-cli/cli.py", line 949, in updatePkgs
> >    self.doRepoSetup()
> >  File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup
> >    self.doSackSetup(thisrepo=thisrepo)
> >  File "__init__.py", line 260, in doSackSetup
> >  File "repos.py", line 287, in populateSack
> >  File "sqlitecache.py", line 96, in getPrimary
> >  File "sqlitecache.py", line 83, in _getbase
> >  File "sqlitecache.py", line 79, in getDatabase
> >  File "sqlitecache.py", line 239, in makeSqliteCacheFile
> >  File "sqlitecache.py", line 150, in createTablesPrimary
> >  File "sqlitecache.py", line 188, in createDbInfo
> >  File "/var/tmp/python-sqlite-root//usr/lib/python2.3/site-packages/sqlite/main.py",
> > line 237, in execute
> >  File "/var/tmp/python-sqlite-root//usr/lib/python2.3/site-packages/sqlite/main.py",
> > line 515, in _begin
> > MemoryError
> >
> > All my attempts to work around this have failed.  I found a few
> > threads on the 'net about FC5, yum, and sqlite but I don't think that
> > bug applies here.
> >
> > Any suggestions for how I can get a yum upgrade to complete would be
> > greatly appreaciated.
> >
> > Thanks.
> >
> > [apologies if this message has been transmitted multiple times]
>
> A memory error here is really confusing to me.
>
> Added to it that it appears to be happening somewhere inside sqlite I'm
> baffled.
>
> You don't have a local copy of sqlite built anywhere, do you?
>
> -sv
>

Hi Seth,

Thanks for the reply.

Yea, it turns out one of the developers wanted to install trac on this
box and had to do some source based work on MySQL which may have had
dependencies on sqlite?  Here is the note from the developer on what
he did:

<quote>
I've upgraded MySQL-python to 1.2.1-1 (create RPM from source, then
install RPM), and upgraded mysql to 4.1.12-3 (create RPM from SRPM) on
delhi.

These changes were required to import the bug database from bugzilla.
</quote>

Here's what I see on the filesystem that looks suspicious:

[root@delhi ~]# locate sqlite
/home/sroy/.sqlite_history
/home/sroy/sqlite-3.3.5.tar.gz
/home/sroy/pysqlite-2.2.0.tar.gz
/usr/local/lib/libsqlite3.la
/usr/local/lib/libsqlite3.so
/usr/local/lib/libsqlite3.so.0
/usr/local/lib/libsqlite3.so.0.8.6
/usr/local/lib/libsqlite3.a
/usr/local/lib/pkgconfig/sqlite3.pc
/usr/local/bin/sqlite3
/usr/local/include/sqlite3.h

Any pointers on what to do next?

Thanks so much.

-D

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux