Hi, Christian
Thanks very much for you help. the problems is solved. the
pg_hba file is fine now.
However, there is another problem when I compile the dspace.
Please have a look. Cheers
PS: There is several database under postgresql which is used
by other softwere. I did not initialize new data for the
dspce, I only created a new databsed called dspace for it.
Is it ok?
In the build.xml file, the error is popped up in line 293.
////error
init_configs:
[copy] Copying 1 file to /usr/local/share/dspace/config
setup_database:
[java] 2007-07-27 16:36:39,934 INFO
org.dspace.storage.rdbms.InitializeDatabase @ Initializing
Database
BUILD FAILED
/usr/local/share/dspace-1.4.2-source/build.xml:293: Java
returned: 1
/////////////////////////////////////////////////////////////////build.xml
file
<!--
=============================================================
-->
<!-- Create the database tables
-->
<!--
=============================================================
-->
<!-- We execute InitializeDatabase, passing in the simple
log4j properties
- file in etc/ and the DSpace configuration file using
system
- properties -->
<target name="setup_database"
depends="compile"
description="Create database tables">
<java
classname="org.dspace.storage.rdbms.InitializeDatabase"
classpathref="build.class.path"
fork="yes"
failonerror="yes"> Line 293
<sysproperty key="log4j.configuration"
value="file:etc/log4j.build.properties"/>
<sysproperty key="dspace.configuration"
value="${config}"/>
<arg value="etc/database_schema.sql"/>
</java>
</target>
///////////////////////
----- Original Message Follows -----
From: Christian Voelker <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: [Dspace-tech] ant fresh_install problem, setup
database
Date: Thu, 26 Jul 2007 09:44:22 +0200
> Hello,
>
> Am 26.07.2007 um 09:19 schrieb Li Yuan:
>
> > org.dspace.storage.rdbms.InitializeDatabase @ Caught
> > exception:
> > [java] org.postgresql.util.PSQLException: FATAL:
> > missing or erroneous pg_hba.conf file
>
> This is the culprit. Your postgres database
> was not initializd propoerly or the rights
> setting on the postgres data directory is
> not in proper state. Follow the steps from
> your postgres install package or the postgres
> docs.
>
> <http://www.postgresql.org/docs/8.1/interactive/installati
> on.html>
>
> I guess you missed something in step 14.6.
> The pg_hba.conf resides in the data directory
> of postgres and manages the access socket
> through which your can reach the db. Before
> starting the DSpace install, you should be
> able to access your database on the command
> line using psql. Did you modify this file?
> Why? Can you send it to the list?
>
> Then start over with Step 3.ii from the
> DSpace Quick Install. You might also check
> your dspace.cfg as a last step.
>
> Yours, Christian
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech