Dear Fahad,

DSpace cannot access the postgres database. Did you set up the database configuration properly, either in your build.properties before building DSpace or in config/dspace.cfg of your DSpace instance? Is there a corresponding user in your database?

Cheers,
Christian


Am 26.05.2016 um 00:10 schrieb fahad.librarian:

    When I create administrator so I have an error below. could you
    please check it?


    *C:\dspace-5.5\dspace\target\dspace-installer>cd C:/dspace*

    *C:\dspace>cd bin*

    *C:\dspace\bin>dspace create-administrator*
    Using DSpace installation in: C:\dspace
    Exception: org.postgresql.util.PSQLException: FATAL: password
    authentication fai
    led for user "dspace"
    java.lang.IllegalStateException: org.postgresql.util.PSQLException:
    FATAL: passw
    ord authentication failed for user "dspace"
             at
    org.dspace.storage.rdbms.DatabaseManager.getDataSource(DatabaseManage
    r.java:655)
             at
    org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManage
    r.java:629)
             at org.dspace.core.Context.init(Context.java:121)
             at org.dspace.core.Context.<init>(Context.java:95)
             at
    org.dspace.administer.CreateAdministrator.<init>(CreateAdministrator.
    java:94)
             at
    org.dspace.administer.CreateAdministrator.main(CreateAdministrator.ja
    va:63)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
    Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at
    org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.j
    ava:226)
             at
    org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
    Caused by: java.sql.SQLException: org.postgresql.util.PSQLException:
    FATAL: pass
    word authentication failed for user "dspace"
             at
    org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSourceInit.
    java:171)
             at
    org.dspace.storage.rdbms.DatabaseManager.initDataSource(DatabaseManag
    er.java:1440)
             at
    org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.j
    ava:1333)
             at
    org.dspace.storage.rdbms.DatabaseManager.getDataSource(DatabaseManage
    r.java:650)
             ... 11 more
    Caused by: org.postgresql.util.PSQLException: FATAL: password
    authentication fai
    led for user "dspace"
             at
    org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(Connect
    ionFactoryImpl.java:293)
             at
    org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Conne
    ctionFactoryImpl.java:108)
             at
    org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactor
    y.java:66)
             at
    org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Conn
    ection.java:125)
             at
    org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Conn
    ection.java:30)
             at
    org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gC
    onnection.java:22)
             at
    org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Conn
    ection.java:32)
             at
    org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
             at org.postgresql.Driver.makeConnection(Driver.java:393)
             at org.postgresql.Driver.connect(Driver.java:267)
             at java.sql.DriverManager.getConnection(Unknown Source)
             at java.sql.DriverManager.getConnection(Unknown Source)
             at
    org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnecti
    on(DriverManagerConnectionFactory.java:75)
             at
    org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
    ConnectionFactory.java:582)
             at
    org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericOb
    jectPool.java:974)
             at
    org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSo
    urce.java:106)
             at
    org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSourceInit.
    java:140)
             ... 14 more


    Fahad Umair, *MLIS*
    Digital Resources Librarian - Canada
    [email protected] <mailto:[email protected]>

    On Wed, May 25, 2016 at 1:17 PM, Luiz dos Santos <[email protected]
    <mailto:[email protected]>> wrote:

        It seems ok!

        On Wed, May 25, 2016 at 3:12 PM, fahad.librarian
        <[email protected] <mailto:[email protected]>>
        wrote:

            Check it out below:


            C:\dspace-5.5\dspace\target\dspace-installer>ant update
            Buildfile:
            C:\dspace-5.5\dspace\target\dspace-installer\build.xml

            prepare_configs:
                 [mkdir] Created dir:
            C:\dspace-5.5\dspace\target\dspace-installer\config-tem
            p
                  [copy] Copying 1 file to
            C:\dspace-5.5\dspace\target\dspace-installer\confi
            g-temp
                  [copy] Copying 143 files to
            C:\dspace-5.5\dspace\target\dspace-installer\co
            nfig-temp

            copy_configs_keep:

            overwrite_configs:
                [delete] Deleting directory
            C:\dspace-5.5\dspace\target\dspace-installer\conf
            ig-temp
                  [echo]
                  [echo]
            ====================================================================

                  [echo]  The DSpace configuration has been updated.
                  [echo]
                  [echo]  During the upgrade process the build has
            attempted to overwrite the

                  [echo]  previous configuration while preserving your
            previous changes in fi
            les
                  [echo]  suffixed "*.old"
                  [echo]
                  [echo]  To complete installation, you should do the
            following:
                  [echo]
                  [echo]  * Check that you've properly merged any
            differences in the followin
            g files:
                  [echo]
                  [echo]
                  [echo]
                  [echo]
                  [echo]
                  [echo]   * To properly merge your previous
            configuration files, it's
                  [echo]     best to try to take the newer version and
            copy your
                  [echo]     previous changes into it.
                  [echo]
            ====================================================================

                  [echo]

            prepare_solr_configs:
                 [mkdir] Created dir:
            C:\dspace-5.5\dspace\target\dspace-installer\solr-confi
            g-temp
                  [copy] Copying 52 files to
            C:\dspace-5.5\dspace\target\dspace-installer\sol
            r-config-temp

            copy_solr_configs_keep:

            overwrite_solr_configs:
                  [copy] Copying 52 files to C:\dspace\solr
                [delete] Deleting directory
            C:\dspace-5.5\dspace\target\dspace-installer\solr
            -config-temp
                  [echo]
                  [echo]
            ====================================================================

                  [echo]  The DSpace configuration has been updated.
                  [echo]
                  [echo]  During the upgrade process the build has
            attempted to overwrite the

                  [echo]  previous configuration while preserving your
            previous changes in fi
            les
                  [echo]  suffixed "*.old"
                  [echo]
                  [echo]  To complete installation, you should do the
            following:
                  [echo]
                  [echo]  * Check that you've properly merged any
            differences in the followin
            g files:
                  [echo]
                  [echo]
                  [echo]
                  [echo]
                  [echo]
                  [echo]   * To properly merge your previous
            configuration files, it's
                  [echo]     best to try to take the newer version and
            copy your
                  [echo]     previous changes into it.
                  [echo]
            ====================================================================

                  [echo]

            update_configs:

            check_geolite:

            init_geolite:

            update_geolite:
                  [echo] Downloading:
            http://geolite.maxmind.com/download/geoip/database/GeoL
            iteCity.dat.gz
                   [get] Getting:
            http://geolite.maxmind.com/download/geoip/database/GeoLiteC
            ity.dat.gz
                   [get] To: C:\dspace\config\GeoLiteCity.dat.gz
                   [get]
            ....................................................
                   [get]
            ....................................................
                   [get]
            ....................................................
                   [get]
            ....................................................
                   [get] .........
                [gunzip] Expanding GeoLiteCity.dat.gz to
            C:\dspace\config\GeoLiteCity.dat
                [delete] Deleting: C:\dspace\config\GeoLiteCity.dat.gz

            update_code:
                  [copy] Copying 7 files to C:\dspace\bin
                  [copy] Copying 149 files to C:\dspace\lib
                  [copy] Copying 5 files to C:\dspace\etc
                  [echo]
                  [echo]
            ====================================================================

                  [echo]  C:/dspace/bin was backed up to
                  [echo]
                  [echo]  C:/dspace/bin.bak-20160525-131002
                  [echo]
                  [echo]  C:/dspace/lib was backed up to
                  [echo]
                  [echo]  C:/dspace/lib.bak-20160525-131002
                  [echo]
                  [echo]  C:/dspace/etc was backed up to
                  [echo]
                  [echo]  C:/dspace/etc.bak-20160525-131002
                  [echo]
                  [echo]  Please review these directories and delete if
            no longer needed.
                  [echo]
            ====================================================================

                  [echo]

            update_webapps:
                  [echo]
                  [echo]
            ====================================================================

                  [echo]  C:/dspace/webapps was backed up to
                  [echo]
                  [echo]  C:/dspace/webapps.bak-20160525-131002
                  [echo]
                  [echo]  Please review this directory and delete it if
            it's no longer needed
            .
                  [echo]
            ====================================================================

                  [echo]

            copy_webapps:
                  [copy] Copying 2649 files to C:\dspace\webapps
                  [copy] Copied 274 empty directories to 2 empty
            directories under C:\dspace\
            webapps
                  [copy] Copying 10 files to C:\dspace\webapps

            build_webapps_wars:
                  [echo]
                  [echo]
            ====================================================================

                  [echo]  Updated DSpace Web application directories are
            in the
                  [echo]  'C:/dspace/webapps' directory.
                  [echo]
                  [echo]  * Stop your Web servlet container (Tomcat,
            Jetty, Resin etc.)
                  [echo]
                  [echo]  * If your Web servlet container already loads
            the DSpace
                  [echo]    UI web applications from C:/dspace/webapps/,
            then you
                  [echo]    can jump straight to restarting your Web
            servlet container
                  [echo]
                  [echo]  * Otherwise, you will need to copy any web
            applications from
                  [echo]    C:/dspace/webapps/ to the appropriate place
            for your servlet
                  [echo]    container.  (e.g. '$CATALINA_HOME/webapps'
            for Tomcat)
                  [echo]
                  [echo]    If you're using Tomcat, you should first
            delete any existing
                  [echo]    DSpace directories in
            '$CATALINA_HOME/webapps/' (e.g. you would
                  [echo]    delete an existing
            $CATALINA_HOME/webapps/dspace/ directory).
                  [echo]    Otherwise, Tomcat may continue to use old
            code in that directory.

                  [echo]
                  [echo]  * Start up your Web servlet container again.
                  [echo]
            ====================================================================

                  [echo]

            update_solr_indexes:
                  [echo] Checking if any Solr indexes (C:/dspace/solr/*)
            need upgrading...
                  [echo] Current version of Solr/Lucene: 4.10.2
                  [echo] Cleanup any downloaded lucene-core-*.jar files.
            We don't need them a
            nymore.

            update:

            *BUILD SUCCESSFUL*
            Total time: 51 seconds

            C:\dspace-5.5\dspace\target\dspace-installer>



            Fahad Umair, *MLIS*
            Digital Resources Librarian - Canada
            [email protected] <mailto:[email protected]>




--
You received this message because you are subscribed to the Google
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.




---------------------------------
Christian Loeschen, Dipl.-Ing. (FH)
Wiss. Mitarbeiter/Research Associate

Technische Universität Dresden
Center for Information Services and HPC (ZIH)
Distributed and Data Intensive Computing

01062 Dresden (Germany)
Phone: +49 351 463-42330
Fax :    +49 351 463-37773
E-Mail: [email protected]
---------------------------------

--
You received this message because you are subscribed to the Google Groups "DSpace 
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to