Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. 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

I'm trying to get SymmetricDS up and running with PostgreSQL. I've followed the tutorial (almost) exactly. (I have not set up a separate node yet since, for my purposes, I need that separate node to be truly separate and on a different VM.) Unfortunately, I am not able to get the database import step to function, as SymmetricDS will not connect to the database.

Following advice from Connecting to local instance of PostgreSQL from JDBC, I ensured that the second SLOC in pg_hba.conf was sensible; PostgreSQL will (should) accept all connections made over TCP/IP over lo using client-side identification. (The linked does call for md5 as opposed to ident; this has no visible effect and, according to the stack trace, is probably not what JDBC is expecting.)

I've ensured that symmetricds is a system user and is a user registered with PostgreSQL. If memory serves, I did this with something like

ADD USER symmetricds WITH PASSWORD sds-pass;

(or something to this effect? I'm very new to databases.) If I had to guess where I went wrong, it'd be here.

I edited the engine file to use the PostgreSQL versions of connection details (the file comes set for MySQL) and I filled in the appropriate credentials.

As far as I know, this is all that is needed to get SymmetricDS up and running (at least for the import step). Obviously, something went wrong; a stack trace is included below. What did I miss?

Shell log:

[root@dbrepa samples]# cat /var/lib/pgsql/9.2/data/pg_hba.conf
# PostgreSQL Client Authentication Configuration File
# ===================================================
# ...

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     peer
# IPv4 local connections:
host    all             all               ident
# IPv6 local connections:
host    all             all             ::1/128                 ident
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local   replication     postgres                                peer
#host    replication     postgres            ident
#host    replication     postgres        ::1/128                 ident

[root@dbrepa samples]# grep symmetricds /etc/passwd

[root@dbrepa samples]# service psql start
Starting psql service:                                     [  OK  ]

[root@dbrepa samples]# su - symmetricds
[symmetricds@dbrepa ~]$ psql test
psql (9.2.4)
Type "help" for help.

test=> \l
                                   List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |    Access privileges
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres             +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres             +
           |          |          |             |             | postgres=CTc/postgres
 test      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres            +
           |          |          |             |             | postgres=CTc/postgres   +
           |          |          |             |             | symmetricds=CTc/postgres
(4 rows)

test=> \q
[symmetricds@dbrepa ~]$ exit

[root@dbrepa samples]# cat ../engines/
# Licensed to JumpMind Inc under one or more contributor
# ...
# You should have received a copy of the GNU General Public License,
# version 3.0 (GPLv3) along with this library; if not, see
# <>.
# ...

# The class name for the JDBC Driver

# The JDBC URL used to connect to the database

# The user to login as who can create and update tables

# The password for the user to login as


# Do not change these for running the demo

# Don't muddy the waters with purge logging

# This is how often the routing job will be run in milliseconds
# This is how often the push job will be run.
# This is how often the pull job will be run.

[root@dbrepa samples]# ../bin/dbimport --engine corp-000 --format XML create_sample.xml
Log output will be written to ../logs/symmetric.log
[] - AbstractCommandLauncher - Option: name=engine, value={corp-000}
[] - AbstractCommandLauncher - Option: name=format, value={XML}
An exception occurred.  Please see the following for details:
org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "symmetricds"
        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(
        at org.postgresql.core.ConnectionFactory.openConnection(
        at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(
        at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(
        at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(
        at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(
        at org.postgresql.jdbc4.Jdbc4Connection.<init>(
        at org.postgresql.Driver.makeConnection(
        at org.postgresql.Driver.connect(
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(
        at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(
 [wrapped] org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: Ident authentication failed for user "symmetricds")
        at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(
        at org.apache.commons.dbcp.BasicDataSource.getConnection(
        at org.jumpmind.symmetric.AbstractCommandLauncher.testConnection(
 [wrapped] java.lang.RuntimeException: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: Ident authentication failed for user "symmetricds")
        at org.jumpmind.symmetric.AbstractCommandLauncher.testConnection(
        at org.jumpmind.symmetric.AbstractCommandLauncher.getDatabasePlatform(
        at org.jumpmind.symmetric.DbImportCommand.executeWithOptions(
        at org.jumpmind.symmetric.AbstractCommandLauncher.execute(
        at org.jumpmind.symmetric.DbImportCommand.main(

Some more resources as I find them in my sea of open tabs:

share|improve this question

org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "symmetricds"

You're using ident authentication and it's failing because:

  • identd isn't running; or
  • the running user's ID doens't match the database user they're trying to connect to

In general, ident is a bit of a weird and legacy choice. I'd recommend just using md5 authentication with a password.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.