I'm having a problem with a fairly new server. Running yum upgrade I get the following:
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 105, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 289, in doCommands self._getTs() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 85, in _getTs self._getTsInfo() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 91, in _getTsInfo self._tsInfo.setDatabases(self.rpmdb, self.pkgSack) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 537, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 392, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.4/site-packages/yum/repos.py", line 242, in populateSack sack.populate(repo, mdtype, callback, cacheonly) File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in populate dobj = repo_cache_function(xml, csum) File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in getPrimary self.repoid)) TypeError: Can not prepare packages insertion: table packages has no column named location_base
Scott Silva wrote:
I'm having a problem with a fairly new server. Running yum upgrade I get the following:
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 105, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 289, in doCommands self._getTs() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 85, in _getTs self._getTsInfo() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 91, in _getTsInfo self._tsInfo.setDatabases(self.rpmdb, self.pkgSack) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 537, in
<lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 392, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.4/site-packages/yum/repos.py", line 242, in populateSack sack.populate(repo, mdtype, callback, cacheonly) File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in populate dobj = repo_cache_function(xml, csum) File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in getPrimary self.repoid)) TypeError: Can not prepare packages insertion: table packages has no column named location_base
your .repo files and/or repo setup in /etc/yum.conf is broken
<snip>
your .repo files and/or repo setup in /etc/yum.conf is broken
Copied /etc/yum directory from a working server, preserving the old one, and it seems to be working so far. It looks like the biggest difference is the old one had a conf file for fastestmirror, but the new one has installonlyn conf file. I'll see what happens. Maybe it munged when I added the downloadonly plugin earlier. I wanted to have all the updates on the machine before I ran the upgrade.
on 7-2-2008 11:49 AM Scott Silva spake the following:
<snip> > > your .repo files and/or repo setup in /etc/yum.conf is broken > Copied /etc/yum directory from a working server, preserving the old one, and it seems to be working so far. It looks like the biggest difference is the old one had a conf file for fastestmirror, but the new one has installonlyn conf file. I'll see what happens. Maybe it munged when I added the downloadonly plugin earlier. I wanted to have all the updates on the machine before I ran the upgrade.
Still borked, but less messages;
File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 183, in main base.doTransaction() File "/usr/share/yum-cli/cli.py", line 336, in doTransaction problems = self.downloadPkgs(downloadpkgs) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 897, in downloadPkgs dirstat = os.statvfs(po.repo.pkgdir) OSError: [Errno 2] No such file or directory: '//var/cache/yum/updates/packages'
Is this the problem ^^^^^ /var/cache/yum/updates/packages exists and has same owner/perms as all the other dirs in the cache folder, although the double backslash looks suspicious to me.
Scott Silva wrote:
Is this the problem ^^^^^ /var/cache/yum/updates/packages exists and has same owner/perms as all the other dirs in the cache folder, although the double backslash looks suspicious to me.
you have something quite broken on the machine, check for non centos s/w installed, and rpm -V check the installed pkgs, specially yum and python and all the bits they need.
how about drive space / permissions etc ?
on 7-3-2008 2:00 PM Karanbir Singh spake the following:
Scott Silva wrote:
Is this the problem ^^^^^ /var/cache/yum/updates/packages exists and has same owner/perms as all the other dirs in the cache folder, although the double backslash looks suspicious to me.
you have something quite broken on the machine, check for non centos s/w installed, and rpm -V check the installed pkgs, specially yum and python and all the bits they need.
how about drive space / permissions etc ?
I think I have it solved. A backup script was munging a directory in the yum cache. This run seems to be going without error.
on 7-3-2008 2:10 PM Scott Silva spake the following:
on 7-3-2008 2:00 PM Karanbir Singh spake the following:
Scott Silva wrote:
Is this the problem ^^^^^ /var/cache/yum/updates/packages exists and has same owner/perms as all the other dirs in the cache folder, although the double backslash looks suspicious to me.
you have something quite broken on the machine, check for non centos s/w installed, and rpm -V check the installed pkgs, specially yum and python and all the bits they need.
how about drive space / permissions etc ?
I think I have it solved. A backup script was munging a directory in the yum cache. This run seems to be going without error.
Boy do I feel stoopid! Working now.
on 7-2-2008 8:01 AM Karanbir Singh spake the following:
Scott Silva wrote:
I'm having a problem with a fairly new server. Running yum upgrade I get the following:
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 105, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 289, in doCommands self._getTs() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 85, in _getTs self._getTsInfo() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 91, in _getTsInfo self._tsInfo.setDatabases(self.rpmdb, self.pkgSack) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 537, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 392, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.4/site-packages/yum/repos.py", line 242, in populateSack sack.populate(repo, mdtype, callback, cacheonly) File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in populate dobj = repo_cache_function(xml, csum) File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in getPrimary self.repoid)) TypeError: Can not prepare packages insertion: table packages has no column named location_base
your .repo files and/or repo setup in /etc/yum.conf is broken
Copied yum.conf, /etc/yum/ and /etc/yum.d/ from working server, but still no joy.
Il giorno gio, 03/07/2008 alle 11.04 -0700, Scott Silva ha scritto:
on 7-2-2008 8:01 AM Karanbir Singh spake the following:
Scott Silva wrote:
I'm having a problem with a fairly new server. Running yum upgrade I get the following:
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 105, in main result, resultmsgs = base.doCommands()
[cut] Hi! I've resolved it checking (manually) the lastest version of yum and some related packages:
yum-3.2.8-9.el5.centos.2.1.noarch.rpm yum-fastestmirror-1.1.10-9.el5.centos.noarch.rpm yum-refresh-updatesd-1.1.10-9.el5.centos.noarch.rpm yum-updatesd-0.9-2.el5.noarch.rpm
which I manually updated with a "yum localinstall ./yum-* " command after having *disabled* any other 3rd-party repository present in my sources list.
Everything went ok after having done this. Good luck (if you still haven't found a solution on this topic!)
on 7-23-2008 6:27 AM kOoLiNuS - Nicola Losito spake the following:
Il giorno gio, 03/07/2008 alle 11.04 -0700, Scott Silva ha scritto:
on 7-2-2008 8:01 AM Karanbir Singh spake the following:
Scott Silva wrote:
I'm having a problem with a fairly new server. Running yum upgrade I get the following:
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 105, in main result, resultmsgs = base.doCommands()
[cut] Hi! I've resolved it checking (manually) the lastest version of yum and some related packages:
yum-3.2.8-9.el5.centos.2.1.noarch.rpm yum-fastestmirror-1.1.10-9.el5.centos.noarch.rpm yum-refresh-updatesd-1.1.10-9.el5.centos.noarch.rpm yum-updatesd-0.9-2.el5.noarch.rpm
which I manually updated with a "yum localinstall ./yum-* " command after having *disabled* any other 3rd-party repository present in my sources list.
Everything went ok after having done this. Good luck (if you still haven't found a solution on this topic!)
Thanks for the reply, but this was solved a few weeks ago. It just shows in another branch of the thread.
Scott Silva wrote:
I'm having a problem with a fairly new server. Running yum upgrade I get the following:
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 105, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 289, in doCommands self._getTs() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 85, in _getTs self._getTsInfo() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 91, in _getTsInfo self._tsInfo.setDatabases(self.rpmdb, self.pkgSack) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 537, in
<lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 392, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.4/site-packages/yum/repos.py", line 242, in populateSack sack.populate(repo, mdtype, callback, cacheonly) File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in populate dobj = repo_cache_function(xml, csum) File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in getPrimary self.repoid)) TypeError: Can not prepare packages insertion: table packages has no column named location_base
what is "rpm -q yum" ...
on 7-2-2008 12:27 PM Scott Silva spake the following:
on 7-2-2008 11:33 AM Scott Silva spake the following:
<snip>
what is "rpm -q yum" ...
yum-3.2.8-9.el5.centos.2.1
I did do a yum update yum* on this machine last week.
Downgrading the yum updates didn't help. If no one has any other suggestions, I am going to try an upgrade with the anaconda installer by booting from the DVD this weekend.
Machine isn't in production yet, but is near and a full wipe/install will put me behind several weeks.