New topics: Your Pet, IOU, Baby IQ, The Poisons, Birther II, Games, Future Power

Trying out the documentation theme?

Skip to end of metadata
Go to start of metadata

On recent Redhat Fedora 5 distributions, MySQL 5.0+ is included. However, as of March 2007, Confluence does not support MySQL 5.0. They suggest using MySQL 4.1+. However MySQL 4.1 can not easily be installed at the same time as MySQL 5.0. So, if you have already installed MySQL 5.0 on your system, it may be easier to use PostgreSQL. Confluence is up to date for the latest versions of PostgreSQL (Version 8+ at time of writing). Version 8+ comes with recent distributions of Fedora 5, such as are included with books such as "Red Hat Fedora 5 Unleashed".

Here are the steps to set it up:

  • Login as root
  • At the command prompt: su postgres
  • Enter psql client, and run these commands:
    • CREATE USER confluence CREATEDB PASSWORD 'yoursecurepassword';
    • CREATE DATABASE confluence;
  • You should also change the postgres user password to something memorable.
    Do this with the ALTER USER command:
    • ALTER USER postgres PASSWORD 'yoursecurepassword';

After installing Confluence, but before running startup, there is an extra step not mentioned at http://confluence.atlassian.com/display/DOC/Installing+Confluence+Standalone

You must add the JDBC driver for your database. If you do not, you will get an error like this when you get to that step in the setup:

  • "The specified database driver was not found. If you are running Confluence Standalone, please ensure that you have copied your database's JDBC driver into the common/lib directory. Otherwise, consult your application server documentation for instructions on how to add the drivers to your server classpath... You will need to restart your server after installing the drivers. (Setup will resume at the beginning of the database setup step)."
    • Typo in Confluence: documention

The details for this are covered here:

The next error you might see is:

  • Configuring the database failed. Couldn't create the database schema.
  • org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "confluence"

This requires more setup for PostgreSQL.

PostgreSQL logs may be at: /var/lib/pgsql/data/pg_log

They may reveal something like:

  • LOG: could not connect to Ident server at address "127.0.0.1", port 113: Connection refused
  • FATAL: Ident authentication failed for user "confluence"

Fedora 5 does not seem to include an ident service. The PostgreSQL reminds that ident is not a good way to guarantee security anyway. Use password instead.

Edit /var/log/pgsql/data/ph_hba.conf to select password method, instead of ident method. (Another possible location: /var/lib/pgsql/data/pg_hba.conf)

If PostgreSQL already running, do

  • kill -s SIGHUP [pid of postmaster process]
  • You can use
    ps fauxww|grep postmaster

    to find the PID of the postmaster process.

If you properly created the database, you won't see this error:

  • Configuring the database failed. Couldn't create the database schema.
  • org.postgresql.util.PSQLException: FATAL: database "confluence" does not exist
Labels:
setup setup Delete
wiki wiki Delete
postgresql postgresql Delete
administration administration Delete
confluence confluence Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Nov 28, 2007

    Anonymous

    hi,

    i got the following error while connecting psql db........

    url:jdbc:postgresql://151.8.18.180/magnetv1
    Username:adminPassword:admin
    Exception : org.postgresql.util.PSQLException: A connection error has occurred:
    org.postgresql.util.PSQLException: FATAL: Password authentication failed for us
    er "admin"

    1. May 10, 2009

      Anonymous

      Same here, with version 2.10.3, not with 2.9.2

  2. Aug 26, 2010

    Anonymous

    To resolve the error of postgres sql DB when setting up confluence
    Configuring the database failed. Couldn't create the database schema.
    org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "confluence"This requires more setup for PostgreSQL.

    cd /var/lib/pgsql/data vi pg_hba.conf

    Replace

    1. "local" is for Unix domain socket connections only
      local all all ident sameuser
    2. IPv4 local connections:
      host all all 127.0.0.1/32 ident sameuser

    with

    1. "local" is for Unix domain socket connections only
      #local all all ident sameuser
      local all postgres trust
    2. IPv4 local connections:
      #host all all 127.0.0.1/32 ident sameuser
      host all postgres 127.0.0.1/32 trustthen restart the postgres sql
      /etc/init.d/postgresql restart

    remember to change the postgres user to your preferred user
    Best regards
    allamiro-sudan

    1. Jun 16, 2011

      Anonymous

      Thanks for the help :))

      for IPV4 I have changed from host    all         all         127.0.0.1/32          md5 -------> host    all         all         127.0.0.1/32          trust

      Many Thank

Add Comment