Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ERROR: extension "pgcrypto" already exists
Buildfile: /opt/dspace/dspace/target/dspace-installer/build.xml
init_installation:
[mkdir] Created dir: /dspace/bin
[mkdir] Created dir: /dspace/config
[mkdir] Created dir: /dspace/lib
[mkdir] Created dir: /dspace/etc
[mkdir] Created dir: /dspace/webapps
[mkdir] Created dir: /dspace/triplestore
[mkdir] Created dir: /dspace/exports
[mkdir] Created dir: /dspace/exports/download
[mkdir] Created dir: /opt/dspace/dspace/target/dspace-installer/${assetstore.dir}
[mkdir] Created dir: /dspace/handle-server
[mkdir] Created dir: /dspace/search
[mkdir] Created dir: /dspace/log
[mkdir] Created dir: /dspace/upload
[mkdir] Created dir: /dspace/reports
[mkdir] Created dir: /dspace/solr
[mkdir] Created dir: /dspace/var
[mkdir] Created dir: /dspace/var/oai
init_configs:
[copy] Copying 144 files to /dspace/config
[copy] Copying 1 file to /dspace/config
test_database:
[java] 2017-08-25 12:03:16,278 INFO org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): config/dspace.cfg
[java] 2017-08-25 12:03:16,292 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration. If unintended, check your dspace.cfg for (log.init.config)
[java] 2017-08-25 12:03:16,404 WARN org.dspace.storage.rdbms.DataSourceInit @ Exception initializing DB pool
[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(ConnectionFactoryImpl.java:138)
[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:1449)
[java] at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:89)
[java] Caused by: java.net.ConnectException: Connection refused (Connection refused)
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
[java] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
[java] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[java] at java.net.Socket.connect(Socket.java:589)
[java] at java.net.Socket.connect(Socket.java:538)
[java] at java.net.Socket.<init>(Socket.java:434)
[java] at java.net.Socket.<init>(Socket.java:211)
[java] at org.postgresql.core.PGStream.<init>(PGStream.java:62)
[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
[java] ... 17 more
[java] Caught exception:
[java] java.sql.SQLException: 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.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSourceInit.java:171)
[java] at org.dspace.storage.rdbms.DatabaseManager.initDataSource(DatabaseManager.java:1449)
[java] at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:89)
[java] Caused by: 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(ConnectionFactoryImpl.java:138)
[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
[java] Caused by: java.net.ConnectException: Connection refused (Connection refused)
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
[java] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
[java] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[java] at java.net.Socket.connect(Socket.java:589)
[java] at java.net.Socket.connect(Socket.java:538)
[java] at java.net.Socket.<init>(Socket.java:434)
[java] at java.net.Socket.<init>(Socket.java:211)
[java] at org.postgresql.core.PGStream.<init>(PGStream.java:62)
[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
[java] ... 17 more
BUILD FAILED
/opt/dspace/dspace/target/dspace-installer/build.xml:801: Java returned: 1
Total time: 2 seconds
I am root
25-Aug-2017 12:03:17.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.46
25-Aug-2017 12:03:17.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Aug 10 2017 10:10:31 UTC
25-Aug-2017 12:03:17.359 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.46.0
25-Aug-2017 12:03:17.360 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
25-Aug-2017 12:03:17.360 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.4.65-k8s
25-Aug-2017 12:03:17.360 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
25-Aug-2017 12:03:17.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
25-Aug-2017 12:03:17.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11
25-Aug-2017 12:03:17.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
25-Aug-2017 12:03:17.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /opt/apache-tomcat-8.0.46
25-Aug-2017 12:03:17.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /opt/apache-tomcat-8.0.46
25-Aug-2017 12:03:17.363 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/opt/apache-tomcat-8.0.46/conf/logging.properties
25-Aug-2017 12:03:17.363 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
25-Aug-2017 12:03:17.364 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
25-Aug-2017 12:03:17.364 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
25-Aug-2017 12:03:17.364 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/opt/apache-tomcat-8.0.46/endorsed
25-Aug-2017 12:03:17.365 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/apache-tomcat-8.0.46
25-Aug-2017 12:03:17.365 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/apache-tomcat-8.0.46
25-Aug-2017 12:03:17.365 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/apache-tomcat-8.0.46/temp
25-Aug-2017 12:03:17.366 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
25-Aug-2017 12:03:17.538 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
25-Aug-2017 12:03:17.566 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
25-Aug-2017 12:03:17.573 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
25-Aug-2017 12:03:17.575 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
25-Aug-2017 12:03:17.579 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 914 ms
25-Aug-2017 12:03:17.634 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
25-Aug-2017 12:03:17.640 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.46
25-Aug-2017 12:03:17.654 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/apache-tomcat-8.0.46/webapps/manager
25-Aug-2017 12:03:18.268 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/apache-tomcat-8.0.46/webapps/manager has finished in 614 ms
25-Aug-2017 12:03:18.269 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/apache-tomcat-8.0.46/webapps/examples
25-Aug-2017 12:03:18.713 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/apache-tomcat-8.0.46/webapps/examples has finished in 444 ms
25-Aug-2017 12:03:18.714 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/apache-tomcat-8.0.46/webapps/host-manager
25-Aug-2017 12:03:18.761 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/apache-tomcat-8.0.46/webapps/host-manager has finished in 47 ms
25-Aug-2017 12:03:18.762 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/apache-tomcat-8.0.46/webapps/docs
25-Aug-2017 12:03:18.794 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/apache-tomcat-8.0.46/webapps/docs has finished in 32 ms
25-Aug-2017 12:03:18.794 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/apache-tomcat-8.0.46/webapps/ROOT
25-Aug-2017 12:03:18.820 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/apache-tomcat-8.0.46/webapps/ROOT has finished in 26 ms
25-Aug-2017 12:03:18.824 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
25-Aug-2017 12:03:18.848 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
25-Aug-2017 12:03:18.865 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 1285 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.