I spent more than a few minutes trying to remedy a problem with an RHEL3-based Jabber2 server today that's worth noting. Following an abrupt powerloss, the jabberd process wouldn't start, exiting with "ERROR: sm died. Shutting down server." Also, in the syslog, these lines appeared:
Oct 21 10:24:13 jabber jabberd/c2s: db: couldn't open environment: Invalid argument
Oct 21 10:24:13 jabber jabberd/c2s: failed to initialise auth module 'db'
This server is using a Berkeley DB for the backend, rather than MySQL or postgreSQL. A few Google searches showed little. Some thought into the matter had me downloading db4-utils and running a db_recover in the /var/jabberd/db directory, and all was once again well.