Friday, June 12, 2009

Unable to Start Eclipse On An Empty Workspace

OS: Fedora 11
Eclipse Version: 3.4.2, Build id: M20090211-1700

If I try to initialize a new workspace (empty but with an existing directory), Eclipse will open as an empty non-killable window.

I was able to have a "dirty" initialization copying the .metadata directory of another workspace I had previously and mysteriously created to the new workspace.

I need to experiment a bit more to see if it's possible to, for example, just create the .metadata directory...

Thursday, June 11, 2009

rpmdb: PANIC: fatal region error detected

I had the following error when trying any yum operation on Fedora 11:

> yum update
Loaded plugins: refresh-packagekit
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in
yummain.user_main(sys.argv[1:], exit_code=True)
[...]

The googled ;-) solution that worked for me was:

> cd /var/lib/rpm
> rm -f __db.00*
> db_verify Packages
> rpm --rebuilddb