Hi Rod Your db.name parameter should be your database vendor, not the name of the dspace database within the RDMS (go figure) eg:
db.name = postgres Or db.name = oracle Regards Gary Gary Browne Development Programmer Library IT Services University of Sydney ph: 9351-5946 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rod Harris Sent: Tuesday, 2 September 2008 12:35 PM To: [email protected] Subject: [Dspace-tech] dspace 1.5 build/install problems Hi all.. I've been following the 1.5 install guide (dspace/docs/install.html) but I'm having problems when it gets to the 'ant fresh_install' step. I've got postgresql 8.3 installed and running, with the 'dspace' user and database. When I type 'psql -U dspace -W -h localhost' I do get the 'dspace=>' prompt however when I type 'ant fresh_install' I get an Exception.. Buildfile: build.xml init_installation: init_configs: setup_database: [java] 2008-09-02 12:09:59,563 INFO org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): config/dspace.cfg [java] 2008-09-02 12:09:59,573 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration,if uninitended, check your dspace.cfg for (log.init.config) [java] 2008-09-02 12:09:59,576 INFO org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database [java] 2008-09-02 12:10:00,488 ERROR org.dspace.storage.rdbms.InitializeDatabase @ The configuration for db.name is either invalid, or contains an unrecognised database [java] org.dspace.browse.BrowseException: The configuration for db.name is either invalid, or contains an unrecognised database [java] at org.dspace.browse.BrowseDAOFactory.getCreateInstance(BrowseDAOFactory.ja va:101) [java] at org.dspace.browse.IndexBrowse.<init>(IndexBrowse.java:154) [java] at org.dspace.browse.IndexBrowse.<init>(IndexBrowse.java:131) [java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java :104) [java] 2008-09-02 12:10:00,490 FATAL org.dspace.storage.rdbms.InitializeDatabase @ Caught exception: [java] java.lang.RuntimeException: The configuration for db.name is either invalid, or contains an unrecognised database [java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java :112) [java] Caused by: org.dspace.browse.BrowseException: The configuration for db.name is either invalid, or contains an unrecognised database [java] at org.dspace.browse.BrowseDAOFactory.getCreateInstance(BrowseDAOFactory.ja va:101) [java] at org.dspace.browse.IndexBrowse.<init>(IndexBrowse.java:154) [java] at org.dspace.browse.IndexBrowse.<init>(IndexBrowse.java:131) [java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java :104) BUILD FAILED /home/rod/projects/dspace-1.5/dspace-1.5.0-release/dspace/target/dspace- 1.5.0-build.dir/build.xml:380: Java returned: 1 Total time: 2 seconds But my dspace.cfg file looks correct to me... dspace.dir = /usr/local/apps/dspace-1.5 dspace.url = http://localhost:8080/jspui dspace.hostname = localhost dspace.name = DSpace 1.5 test db.name = dspace db.url = jdbc:postgresql://localhost:5432/dspace db.driver = org.postgresql.Driver db.username = dspace db.password = ... and when I do this from the [build directory] $ cat config/dspace.cfg | grep db.name db.name = dspace also using 'psql -U postgres' postgres=# \du List of roles Role name | Superuser | Create role | Create DB | Connections | Member of -----------+-----------+-------------+-----------+-------------+-------- -----------+-----------+-------------+-----------+-------------+--- dspace | no | no | yes | no limit | {} postgres | yes | yes | yes | no limit | {} postgres=# \l List of databases Name | Owner | Encoding -----------+----------+---------- dspace | dspace | UTF8 postgres | postgres | UTF8 template0 | postgres | UTF8 template1 | postgres | UTF8 so as you can see I do have the dspace user and database.. (I'm running ubuntu 8.04 kernel-2.6.24-19-generic, postgres 8.3, jdk 1.6, ant 1.7, mvn 2.0.8) Thanks, Rod ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

