Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Whenever I try adding a new user like:

ejabberdctl register admin localhost default

It gives me the following error:

Problem 'error undef' occurred executing the command.
Stacktrace: [{ejabberd_odbc,escape,["admin"]},

I have erlang with pg library, and set the following configurations on ejabberd:

{auth_method, odbc}.
{odbc_server, {pgsql, "localhost", "ejabberd", "root", "admin"}}.

I also created a database named ejabberd and migrated the pg.sql file. Do I need something else or am I doing something wrong?

share|improve this question

migrated from Feb 28 '11 at 15:52

This question came from our site for professional and enthusiast programmers.

have you checked postgres's logs? is root allowed to log in? – JackPDouglas Feb 28 '11 at 15:21
yes it is, because I've been using postgres for other apps too. – Marconi Feb 28 '11 at 23:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.