Re: [Dspace-tech] error while ant fresh_install

2 views
Skip to first unread message

Van Ly

unread,
Aug 25, 2015, 1:03:04 PM8/25/15
to Gopa Kumar, dspac...@lists.sourceforge.net

On 31/08/2009, at 3:15 PM, Gopa Kumar wrote:

> [java] 2009-08-31 10:39:36,802 FATAL
> org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
> [java] org.postgresql.util.PSQLException: The connection attempt
> failed.


The fatal error message occurs in the above. A place to look is the
settings file

# see ch20 client authentication in the postgresql-8.1 manual
pgsql/data/pg_hba.conf

and the lists resulting from calls to

# for roles
echo '\du' | psql
# should have

List of roles
Role name | Superuser | Create role | Create DB | Connections |
Member of
-----------+-----------+-------------+-----------+-------------
+-----------
dspace | no | no | yes | no limit |


# for databases
echo '\l' | psql
# should have

List of databases
Name | Owner | Encoding
--------------+----------+----------
dspace | dspace | UTF8

Best wishes,

Van Ly
vly at usyd dot edu dot au





Lewatle Phaladi

unread,
Aug 25, 2015, 1:03:04 PM8/25/15
to Gopa Kumar, dspac...@lists.sourceforge.net

Hi Dr Gopa

 

Try ant update

 

Regards

Lewatle

 

From: Gopa Kumar [mailto:gopa...@yahoo.com]
Sent: Sunday, August 30, 2009 10:16 PM
To: dspac...@lists.sourceforge.net
Subject: [Dspace-tech] error while ant fresh_install

 

Hi,

While installing dspace i am getting the following error. Can somebody help me ?

Buildfile: build.xml

init_installation:

init_configs:

setup_database:

[java] 2009-08-31 10:39:36,676 INFO org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): config/dspace.cfg

[java] 2009-08-31 10:39:36,682 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration,if uninitended, check your dspace.cfg for (log.init.config)

[java] 2009-08-31 10:39:36,682 INFO org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database

[java] 2009-08-31 10:39:36,802 FATAL org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:

[java] org.postgresql.util.PSQLException: The connection attempt failed.

[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:136)

[java] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)

[java] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:116)

[java] at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)

[java] at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)

[java] at org.postgresql.Driver.makeConnection(Driver.java:369)

[java] at org.postgresql.Driver.connect(Driver.java:245)

[java] at java.sql.DriverManager.getConnection(DriverManager.java:582)

[java] at java.sql.DriverManager.getConnection(DriverManager.java:185)

[java] at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:65)

[java] at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)

[java] at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)

[java] at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:176)

[java] at java.sql.DriverManager.getConnection(DriverManager.java:582)

[java] at java.sql.DriverManager.getConnection(DriverManager.java:207)

[java] at org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:550)

[java] at org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:923)

[java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:100)

[java] Caused by: java.net.SocketException: Permission denied: connect

[java] at java.net.PlainSocketImpl.socketConnect(Native Method)

[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

[java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

[java] at java.net.Socket.connect(Socket.java:519)

[java] at java.net.Socket.connect(Socket.java:469)

[java] at java.net.Socket.<init>(Socket.java:366)

[java] at java.net.Socket.<init>(Socket.java:180)

[java] at org.postgresql.core.PGStream.<init>(PGStream.java:60)

[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)

[java] ... 17 more



Dr. V. Gopa Kumar
Principal
Government College of Engineering
Kannur
Kerala, India - 670 563

 

This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary.

Gopa Kumar

unread,
Aug 25, 2015, 1:22:26 PM8/25/15
to dspac...@lists.sourceforge.net
Reply all
Reply to author
Forward
0 new messages