CentOS release 5.3 (Final) Yum Update fails with Traceback

If you’re seeing something along these lines:

root@server [~]# yum update file
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.serveraxis.net
* updates: yum.singlehop.com
* addons: centos.cs.wisc.edu
* extras: centos.cs.wisc.edu
base | 1.1 kB 00:00
updates | 951 B 00:00
addons | 951 B 00:00
extras | 1.1 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package file.x86_64 0:4.17-15.el5_3.1 set to be updated
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 229, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 145, in main
(result, resultmsgs) = base.buildTransaction()
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 647, in buildTransaction
(rescode, restring) = self.resolveDeps()
File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line 704, in resolveDeps
for po, dep in self._checkFileRequires():
File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line 939, in _checkFileRequires
if not self.tsInfo.getOldProvides(filename) and not self.tsInfo.getNewProvides(filename):
File “/usr/lib/python2.4/site-packages/yum/transactioninfo.py”, line 414, in getNewProvides
for pkg, hits in self.pkgSack.getProvides(name, flag, version).iteritems():
File “/usr/lib/python2.4/site-packages/yum/packageSack.py”, line 300, in getProvides
return self._computeAggregateDictResult(”getProvides”, name, flags, version)
File “/usr/lib/python2.4/site-packages/yum/packageSack.py”, line 470, in _computeAggregateDictResult
sackResult = apply(method, args)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 861, in getProvides
return self._search(”provides”, name, flags, version)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 43, in newFunc
return func(*args, **kwargs)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 837, in _search
for pkg in self.searchFiles(name, strict=True):
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 43, in newFunc
return func(*args, **kwargs)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 586, in searchFiles
self._sql_pkgKey2po(rep, cur, pkgs)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 470, in _sql_pkgKey2po
pkg = self._packageByKey(repo, ob['pkgKey'])
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 413, in _packageByKey
po = self.pc(repo, cur.fetchone())
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 68, in __init__
self._read_db_obj(db_obj)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 94, in _read_db_obj
setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object

There is a simple solution to fix this problem! Continue reading CentOS release 5.3 (Final) Yum Update fails with Traceback

Large File Transfers from Windows to Linux to Windows Being Corrupted

In the office, we have a Linux box which we use to delegate access to a certain set of production servers.  CIFS mount points are shared out through FTP, allowing us to control who can access what.

We recently ran into a problem.  A few large zip files were transferred to production and I was asked to unzip them.  The first set of four zip files were unable to be extracted, reporting a premature end of file.  I had the user recompress the files using 7zip (winrar was used originally).  This also did not solve the problem.  Next, we tried a different FTP client. No dice.

Continue reading Large File Transfers from Windows to Linux to Windows Being Corrupted

Upgrading to Wordpress 2.7 Makes Admin Menus Disappear

If your Admin Menus look funky after upgrading to wordpress 2.7, like shown below:

Wordpress 2.7 + Admin Drop Menus plugin bug

Wordpress 2.7 + Admin Drop Menus plugin bug

The fix is quite simple. You likely are using the Admin Drop Menus plugin. This plugin is not compatible with wordpress 2.7. The simple fix is to disable the plugin. Simply add the following to your admin url: plugins.php

In my case, I have the url: http://blog.zacharyarmstrong.com/wp-admin/ which I turn into http://blog.zacharyarmstrong.com/wp-admin/plugins.php

From there, you can deactivate the plugin and all should be fixed!

Fixing the Perl Module “only available with the XS version” Error

When trying to install or upgrade a perl module using cpan, you may get an error stating that the module you are trying to install “is only available with the XS version”

Continue reading Fixing the Perl Module “only available with the XS version” Error

Giving root level permissions to users in Linux

To give users in linux similar privileges to root, sudo is the way to go.

Continue reading Giving root level permissions to users in Linux

Openfire (Wildfire) Stops Accepting New Connections

There’s an issue with Openfire (formerly known as Wildfire – the open source Jabber-based IM server) and large amounts of users. The Openfire server stops accepting new connections when approximately 1000+ concurrent users are logged in. This issue seems to be caused by a maximum open file limit per process being hit. I figured out the following solution after a half day or so of researching and testing. This applies to Fedora Core 7 Linux, but should work with any Linux-based OS capable of running Openfire.

Continue reading Openfire (Wildfire) Stops Accepting New Connections

Vista Default Browser Issue

I was having issues getting Flock to be my default browser in Vista. Flock, which is an awesome browser based on the Firefox browser, was set as my default browser within Vista. However, when clicking on links and whatnot in emails, IMs and RSS feeds on Trillian, etc, the websites were opening in Internet Explorer (IE7). This is not good.

Continue reading Vista Default Browser Issue

Neverwinter Nights 2 UI Mods – Vertical Hotbar

verthotbar.jpg

Due to popular demand, I present the vertical hotbar.

The 2-column version is exclusively available on nwvault. To get the 2-column vertical hotbar, please click here.

Please don't forget to vote for it!

Neverwinter Nights 2 UI Mods – Tiny Inventory

tinyinventory.jpg

The default inventory uses really large icons and sorts your carried items over 4 “bags” (pages) of inventory. I wanted to be able to see all of my inventory at the same time. Given that motivation, I created this Tiny Inventory mod.

This file is only available on nwvault. You can download it by clicking here. Please vote for it as well.

to install:

unzip to: put it in “My Documents\Neverwinter Nights 2\ui\default”

This should create an inventoryscreen.xml file. All done!

Neverwinter Nights 2 UI Mods – Tiny Spellbook

tinyspellbook.jpg

The default spellbook has really large icons and lots of wasted space. I wanted to be able to see more of my spells on screen at once. Given that motivation, I created this Tiny Spellbook mod. For all casters, a perfect companion to this mod is my 5-row hotbar mod.

This file is only available on nwvault. You can download it here. Please vote for it on nwvault.
to install:

unzip to: put it in “My Documents\Neverwinter Nights 2\ui\default”

This should create a spells_known.xml file and a spells_memorized.xml file. All done!