Hi there, The key error in the log you pasted below is this:
org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. Ant cannot connect to your Dspace database. Since this is a fresh install, you should make sure that you have created your PostgreSQL (or Oracle) database and user as per http://www.dspace.org/1_5_1Documentation/ch03.html#N10787 , and also go through [dspace-source]/dspace/config/dspace.cfg and make sure that the database properties (name, user, password, driver, url) are all set correctly. (note: since this is the first install and you don't have a [dspace]/configs dir set up yet, you'll be editing your source dspace.cfg. You'll either have to rebuild after changing thi dspace.cfg, or at least manually copy it over to [dspace-source]/dspace/target/dspace-1.5.2-build.dir/config before running ant fresh_install) Cheers, Kim > -----Original Message----- > From: AKHRZ [mailto:ak...@yahoo.com] > Sent: Tuesday, 3 November 2009 2:52 a.m. > To: dspace-tech@lists.sourceforge.net > Subject: [Dspace-tech] Installing Dspace 1.5 on Ubuntu 8.10 > [antfresh_install] error > > I'm having trouble installing dspace 1.5 on Ubuntu 8.10 > I have been following the following guide: > http://wiki.dspace.org/index.php/Installing_DSpace_1.5_on_Ubuntu_8.10_S > erver > > Everything works out smoothly until I execute [ ant fresh_install ]. > > I also followed the the common problems at > http://www.dspace.org/1_5_1Documentation/ch03.html#docbook- > install.html-problems but I cant get a successful build. > > Where am I going wrong? > > Here is the log of the errors: > > dsp...@biblio-main:~/dspace-1.5.2-src-release/dspace/target/dspace- > 1.5.2-build.dir$ ant fresh_install > Buildfile: build.xml > > init_installation: > > init_configs: > > setup_database: > [java] 2009-11-02 14:21:16,895 INFO > org.dspace.core.ConfigurationManager @ Loading system provided config > property (-Ddspace.configuration): config/dspace.cfg > [java] 2009-11-02 14:21:16,905 INFO > org.dspace.core.ConfigurationManager @ Using default log4j provided log > configuration,if uninitended, check your dspace.cfg for > (log.init.config) > [java] 2009-11-02 14:21:16,906 INFO > org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database > [java] 2009-11-02 14:21:17,001 FATAL > org.dspace.storage.rdbms.InitializeDatabase @ Caught exception: > [java] org.postgresql.util.PSQLException: Connection refused. > Check that the hostname and port are correct and that the postmaster is > accepting TCP/IP connections. > [java] at > org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Connect > ionFactoryImpl.java:122) > [java] at > org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory. > java:65) > [java] at > org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connec > tion.java:116) > [java] at > org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connec > tion.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(PoolableCo > nnectionFactory.java:294) > [java] at > org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObje > ctPool.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:9 > 23) > [java] at > org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.jav > a:100) > [java] Caused by: java.net.ConnectException: Connection refused > [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(Connect > ionFactoryImpl.java:77) > [java] ... 17 more > > BUILD FAILED > /home/dspace/dspace-1.5.2-src-release/dspace/target/dspace-1.5.2- > build.dir/build.xml:585: Java returned: 1 > > Total time: 0 seconds > dsp...@biblio-main:~/dspace-1.5.2-src-release/dspace/target/dspace- > 1.5.2-build.dir$ > > > > > ----------------------------------------------------------------------- > ------- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech