LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

J VASANTHI left a comment for Dr. Badan Barman
17 hours ago
savitha replied to SHWETHA KV's discussion CBSE Inspection of School Libraries
yesterday
Deepak Singh commented on Deepak Singh's status
yesterday
Deepak Singh posted a status
"Call for Papers"
yesterday
PRAVEEN KUMAR DEWANGAN is attending Dr. Mahabaleshwara Rao Baikady's event

6th NACML (National Conference on Management of Modern Libraries) - 2025 at Dr. TMA Pai Hall

February 21, 2025 at 8am to February 22, 2025 at 5pm
Sunday
Sanjay Kumar Mishra updated their profile
Sunday
Saanvi Singh posted a status
"Library and Information Assistant for 22 Post at CRE AIIMS 2025. Apply Online: https://tinyurl.com/3zu8dfan"
Jan 9
Saanvi Singh posted a status
"Library and Information Assistant for 22 Post at CRE AIIMS 2025. Apply Online: https://tinyurl.com/3zu8dfan"
Jan 9
sandeep kumar rout posted a status
"My contact sandeeprout1983@gmail.com, whatsapp no-9776842694"
Jan 8
sandeep kumar rout posted a status
"If anyone knows or use this Delplus software. Would you share your experience regarding the software Delplus 2.0."
Jan 8
sandeep kumar rout posted a status
"Delnet lMS Delplus is good for medium library.is it any problems in using the software"
Jan 8
KHRITISH SWARGIARY updated their profile
Jan 5
Dola Ghosh might attend Dr. U. Pramanathan's event
Thumbnail

RRLF Sponsored Two-Day International Conference on 'Building Sustainable Libraries in Connecting Communities: Librarianship, Technology, and Collaboration' at DLIS, Bharathidasan University, Tiruchirappalli, Tamilnadu

February 7, 2025 at 6pm to February 8, 2025 at 7pm
Jan 4
Nandeesha L updated their profile
Jan 3
Md Sohail updated their profile
Jan 3
Md Sohail and Dr Jolly Varghese U are now friends
Jan 3
KHRITISH SWARGIARY posted a status
"Check out "DEVELOPMENT OF EDUCATION IN INDIA: Gauhati University FYUGP BOOK for Education subject students. https://play.google.com/store/b"
Jan 3
KHRITISH SWARGIARY posted a status
"Check out "DEVELOPMENT OF EDUCATION IN INDIA: Gauhati University…"
Jan 3
J VASANTHI left a comment for Dr. Badan Barman
Jan 2
Bikash Barman and Dr. U. Pramanathan are now friends
Dec 27, 2024

Dear Professionals,

I am tried to Install DSpace on My collage i got the below error. please give your valuable suggestions to how can i over come this problem.  

 thanking you.

C:\Dspace\dspace-5.2-src-release\dspace\target\dspace-installer\build.xml:797:
ava returned: 1

Total time: 4 seconds

C:\Dspace\dspace-5.2-src-release\dspace\target\dspace-installer>ant fresh_insta
l
Buildfile: C:\Dspace\dspace-5.2-src-release\dspace\target\dspace-installer\buil
.xml

init_installation:

init_configs:

test_database:
[java] 2016-01-25 14:55:26,744 INFO org.dspace.core.ConfigurationManager
Loading system provided config property (-Ddspace.configuration): config/dspac
.cfg
[java] 2016-01-25 14:55:26,750 INFO org.dspace.core.ConfigurationManager
Using default log4j provided log configuration. If unintended, check your dsp
ce.cfg for (log.init.config)
[java] 2016-01-25 14:55:26,822 WARN org.dspace.storage.rdbms.DataSourceIn
t @ Exception initializing DB pool
[java] org.postgresql.util.PSQLException: The connection attempt failed.
[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionI
pl(ConnectionFactoryImpl.java:152)
[java] at org.postgresql.core.ConnectionFactory.openConnection(Connect
onFactory.java:66)
[java] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(Abstract
dbc2Connection.java:125)
[java] at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(Abstract
dbc3Connection.java:30)
[java] at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(Abstra
tJdbc3gConnection.java:22)
[java] at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(Abstract
dbc4Connection.java:32)
[java] at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.
ava:24)
[java] at org.postgresql.Driver.makeConnection(Driver.java:393)
[java] at org.postgresql.Driver.connect(Driver.java:267)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:571)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:215)
[java] at org.apache.commons.dbcp.DriverManagerConnectionFactory.creat
Connection(DriverManagerConnectionFactory.java:75)
[java] at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject
PoolableConnectionFactory.java:582)
[java] at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(
enericObjectPool.java:974)
[java] at org.apache.commons.dbcp.PoolingDataSource.getConnection(Pool
ngDataSource.java:106)
[java] at org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSo
rceInit.java:140)
[java] at org.dspace.storage.rdbms.DatabaseManager.initDataSource(Data
aseManager.java:1440)
[java] at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.ja
a:83)
[java] Caused by: java.net.UnknownHostException: localhost port 5432
[java] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocket
mpl.java:178)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[java] at java.net.Socket.connect(Socket.java:579)
[java] at java.net.Socket.connect(Socket.java:528)
[java] at java.net.Socket.<init>(Socket.java:425)
[java] at java.net.Socket.<init>(Socket.java:208)
[java] at org.postgresql.core.PGStream.<init>(PGStream.java:62)
[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionI
pl(ConnectionFactoryImpl.java:76)
[java] ... 17 more
[java] Caught exception:
[java] java.sql.SQLException: org.postgresql.util.PSQLException: The conne
tion attempt failed.
[java] at org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSo
rceInit.java:171)
[java] at org.dspace.storage.rdbms.DatabaseManager.initDataSource(Data
aseManager.java:1440)
[java] at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.ja
a:83)
[java] Caused by: org.postgresql.util.PSQLException: The connection attemp
failed.
[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionI
pl(ConnectionFactoryImpl.java:152)
[java] at org.postgresql.core.ConnectionFactory.openConnection(Connect
onFactory.java:66)
[java] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(Abstract
dbc2Connection.java:125)
[java] at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(Abstract
dbc3Connection.java:30)
[java] at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(Abstra
tJdbc3gConnection.java:22)
[java] at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(Abstract
dbc4Connection.java:32)
[java] at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.
ava:24)
[java] at org.postgresql.Driver.makeConnection(Driver.java:393)
[java] at org.postgresql.Driver.connect(Driver.java:267)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:571)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:215)
[java] at org.apache.commons.dbcp.DriverManagerConnectionFactory.creat
Connection(DriverManagerConnectionFactory.java:75)
[java] at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject
PoolableConnectionFactory.java:582)
[java] at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(
enericObjectPool.java:974)
[java] at org.apache.commons.dbcp.PoolingDataSource.getConnection(Pool
ngDataSource.java:106)
[java] at org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSo
rceInit.java:140)
[java] ... 2 more
[java] Caused by: java.net.UnknownHostException: localhost port 5432
[java] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocket
mpl.java:178)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[java] at java.net.Socket.connect(Socket.java:579)
[java] at java.net.Socket.connect(Socket.java:528)
[java] at java.net.Socket.<init>(Socket.java:425)
[java] at java.net.Socket.<init>(Socket.java:208)
[java] at org.postgresql.core.PGStream.<init>(PGStream.java:62)
[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionI
pl(ConnectionFactoryImpl.java:76)
[java] ... 17 more

BUILD FAILED
C:\Dspace\dspace-5.2-src-release\dspace\target\dspace-installer\build.xml:797:
ava returned: 1

Total time: 1 second

Views: 1187

Reply to This

Replies to This Forum

DSpace is trying to connect to PostgreSQL Database (the default DB) and the connection fails.


Install PostgreSQL Database first, and then try installing DSpace.

S. Baskar

Boss!!!

You have not cleared that in which operating system you are trying to do installation of Dspace. anyway,

C:\Dspace\dspace-5.2-src-release\dspace\target\dspace-installer\build.xml:797:
ava returned: 1

refers to the failure of the testing of connection to the PGSQL database server. There are many things which lead to this type of error. most probably, either you are not installed PGSQL (PostgreSQL) Database properly or the dspace failed to connect to the PGSQL. The second one may happens due to the improper setting in the server definition or due to the proxy based IP addresses.

Whether your institution uses proxy server then just set the proxy with port in setting.xml file found in .m2 folder (which is hidden folder in the home folder in centos or Ubuntu). It may help you to solve connection problem arises due to proxy server.

Hoping that it will be useful to you.

RSS

© 2025   Created by Dr. Badan Barman.   Powered by

Badges  |  Report an Issue  |  Terms of Service

Koha Workshop