ant fresh_install错误/构建失败

时间:2016-06-02 19:54:01

标签: postgresql dspace

Hello Stack溢出成员。我已经尝试过多次在我的机器上安装Dspace,但我仍然坚持使用它的ant_install位。什么可能是错误,我将如何解决它运行?

以下是我在cmd中运行ant fresh_install时收到的内容。 谢谢。

  

C:\ DSpace-dspace-5.5 \ dspace \ target \ dspace-installer> ant fresh_install   构建文件:C:\ DSpace -dspace-5.5 \ dspace \ target \ dspace-installer \ build.xml

     

init_installation:

     

init_configs:

     

test_database:

 [java] 2016-06-02 22:48:47,014 INFO  org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): config/dspace.cfg
 [java] 2016-06-02 22:48:47,043 INFO  org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration.  If unintended, check your dspace.cfg for (log.init.config)
 [java] 2016-06-02 22:48:47,266 WARN  org.dspace.storage.rdbms.DataSourceInit @ Exception initializing DB pool
 [java] org.postgresql.util.PSQLException: FATAL: password authentication failed for user "dspace"
 [java]     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:293)
 [java]     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:108)
 [java]     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
 [java]     at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
 [java]     at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
 [java]     at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
 [java]     at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:32)
 [java]     at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java: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:664)
 [java]     at java.sql.DriverManager.getConnection(DriverManager.java:247)
 [java]     at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
 [java]     at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
 [java]     at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
 [java]     at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
 [java]     at org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSourceInit.java:140)
 [java]     at org.dspace.storage.rdbms.DatabaseManager.initDataSource(DatabaseManager.java:1440)
 [java]     at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:83)
 [java] Caught exception:
 [java] java.sql.SQLException: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "dspace"
 [java]     at org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSourceInit.java:171)
 [java]     at org.dspace.storage.rdbms.DatabaseManager.initDataSource(DatabaseManager.java:1440)
 [java]     at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:83)
 [java] Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "dspace"
 [java]     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:293)
 [java]     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:108)
 [java]     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
 [java]     at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
 [java]     at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
 [java]     at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
 [java]     at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:32)
 [java]     at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java: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:664)
 [java]     at java.sql.DriverManager.getConnection(DriverManager.java:247)
 [java]     at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
 [java]     at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
 [java]     at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
 [java]     at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
 [java]     at org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSourceInit.java:140)
 [java]     ... 2 more
  

建筑失败
  C:\ DSpace -dspace-5.5 \ dspace \ target \ dspace-installer \ build.xml:797:Java返回:1

     

总时间:3秒

     

C:\ DSpace的-dSPACE的-5.5 \ dSPACE的\目标\ dSPACE的安装程序&GT;

4 个答案:

答案 0 :(得分:1)

正如您在错误消息中所说的那样 - 您在build.properties中设置的数据库用户名+密码不正确。确保为数据库设置了dspace用户,并且在DSpace配置中正确指定了其密码。请参阅DSpace 5 installation instructions中的第4步。

答案 1 :(得分:0)

我遇到了同样的问题。通过编辑正确的cfg文件/dspace/config/local.cfg

解决了我的问题

答案 2 :(得分:0)

我遇到此问题在pgcrypto数据库中没有pgadmin扩展名 解决方案手动运行此查询: Create extension pgcrypto;查询窗口中的pgadmin, 祝你好运

答案 3 :(得分:0)

我通过删除所有未使用的集群(pg_lsclusters,我有4个Postgres版本/集群)解决了这个问题。

此外,我删除了所有未使用的客户端和服务器软件包版本:

e.g。

apt-get --purge remove postgresql-10 postgresql-client-10 postgresql-server-dev-9.4 postgresql-contrib-9.3 postgresql-client-9.4 postgresql-client-9.3

我认为如果使用不同版本的postgresql客户端和服务器,可能会出现问题。