[Dspace-tech] Fault of authentication

2 views
Skip to first unread message

Serbe Leon Rojas

unread,
Aug 25, 2015, 12:34:26 PM8/25/15
to dspac...@lists.sourceforge.net
Estimated friends,

I am Serbe León of the UdeA (Medellin, Colombia), entrusted of Dspace's
implementation in the above mentioned institution.

Approximately 15 days ago I began with the study of this project and the
respective manuals of installation of the product. I have followed the steps
recommended in the official manual and another special manual for Red Hat that
I found in the wiki of the product.

Coming to the final step of generation of the application with the instruction
" ant fresh_install " the following mistake goes out for me:

-bash-3.2$ ant fresh_install
Buildfile: build.xml

init_installation:

init_configs:
[copy] Copying 43 files to /usr/local/dspace/config

setup_database:
[java] 2009-03-30 14:25:44,295 INFO org.dspace.core.ConfigurationManager
@ Loading system provided config property (-Ddspace.configuration):
config/dspace.cfg
[java] 2009-03-30 14:25:44,299 INFO org.dspace.core.ConfigurationManager
@ Using default log4j provided log configuration,if uninitended, check your
dspace.cfg for (log.init.config)
[java] 2009-03-30 14:25:44,299 INFO
org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
[java] 2009-03-30 14:25:44,365 FATAL
org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
[java] org.postgresql.util.PSQLException: FATAL: la autentificaci?n Ident
fall? para el usuario ?dspace ?
[java] at
org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:275)
[java] at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:94)
[java] at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
[java] at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:116)
[java] at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.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:620)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:200)
[java] at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:65)
[java] at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
[java] at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
[java] at
org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:176)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:620)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:222)
[java] at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:550)
[java] at
org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:923)
[java] at
org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:100)

BUILD FAILED
/home/dspace/src/dspace-1.5.1-src-release/dspace/target/dspace-1.5.1-build.dir/build.xml:380:
Java returned: 1

Total time: 1 second

I eliminated the user dspace, I have turned it to creating, as the database,
but this mistake continues going out for me.

I am grateful for the nice collaboration that they could give me

Platform for implementation:

Servant: HP Proliant ML350
SO: Linux Red Hat 5.0
Dspace: 1.5.1

Cordial greeting

---------------------------------------------
Serbe León Rojas Yepes
Sistema de Bibliotecas
Universidad de Antioquia
Medellin - Colombia
--------------------------------------------
Somos el Alma de la Universidad
--------------------------------------------------------------------------
El contenido de este mensaje es responsabilidad del funcionario al cual
pertenece la dirección electrónica. El Sistema de Bibliotecas de la
Universidad de Antioq


Van Ly

unread,
Aug 25, 2015, 12:34:27 PM8/25/15
to Serbe Leon Rojas, dspac...@lists.sourceforge.net

Hi Serbe,
 
-- Given this bit of log detail
 
     [java] 2009-03-30 14:25:44,365 FATAL
org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
     [java] org.postgresql.util.PSQLException: FATAL: la autentificaci?n Ident
fall? para el usuario ?dspace ?
 
-- Have a look at the settings for /var/lib/pgsql/data/pg_hba.conf
-- For testing I use `trust' in production you might use something else;
-- you might be stuck over the `identd' setting
 
# CAUTION: Configuring the system for local "trust" authentication allows
# any local user to connect as any PostgreSQL user, including the database
# superuser. If you do not trust all your local users, use another
# authentication method.

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
# "local" is for Unix domain socket connections only
local   all         all                               trust
# IPv4 local connections:
host    all         all         127.0.0.1/32          trust
# IPv6 local connections:
host    all         all         ::1/128               trust

Regards,
 
-- Van Ly 

From: Serbe Leon Rojas
Sent: Tue 31/03/2009 7:33 AM
To: dspac...@lists.sourceforge.net
Subject: [Dspace-tech] Fault of authentication

Estimated friends, 

I am Serbe León of the UdeA (Medellin, Colombia), entrusted of Dspace's
implementation in the above mentioned institution.

Approximately 15 days ago I began with the study of this project and the
respective manuals of installation of the product. I have followed the steps
recommended in the official manual and another special manual for Red Hat that
I found in the wiki of the product.

Coming to the final step of generation of the application with the instruction
" ant fresh_install " the following mistake goes out for me:

-bash-3.2$ ant fresh_install
Buildfile: build.xml

init_installation:

init_configs:
     [copy] Copying 43 files to /usr/local/dspace/config

setup_database:
     [java] 2009-03-30 14:25:44,295 INFO  org.dspace.core.ConfigurationManager
@ Loading system provided config property (-Ddspace.configuration):
config/dspace.cfg
     [java] 2009-03-30 14:25:44,299 INFO  org.dspace.core.ConfigurationManager
@ Using default log4j provided log configuration,if uninitended, check your
dspace.cfg for (log.init.config)
     [java] 2009-03-30 14:25:44,299 INFO 
org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
     [java] 2009-03-30 14:25:44,365 FATAL
org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
     [java] org.postgresql.util.PSQLException: FATAL: la autentificaci?n Ident
fall? para el usuario ?dspace ?
     [java]     at
org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:275)
     [java]     at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:94)
     [java]     at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
     [java]     at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:116)
     [java]     at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.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:620)
     [java]     at java.sql.DriverManager.getConnection(DriverManager.java:200)
     [java]     at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:65)
     [java]     at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
     [java]     at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
     [java]     at
org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:176)
     [java]     at java.sql.DriverManager.getConnection(DriverManager.java:620)
     [java]     at java.sql.DriverManager.getConnection(DriverManager.java:222)
     [java]     at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:550)
     [java]     at
org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:923)
     [java]     at
org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:100)

BUILD FAILED
/home/dspace/src/dspace-1.5.1-src-release/dspace/target/dspace-1.5.1-build.dir/build.xml:380:
Java returned: 1

Total time: 1 second

I eliminated the user dspace, I have turned it to creating, as the database,
but this mistake continues going out for me.

I am grateful for the nice collaboration that they could give me 

Platform for implementation:

Servant: HP Proliant ML350 
SO: Linux Red Hat 5.0 
Dspace: 1.5.1 

Cordial greeting

---------------------------------------------
	     Serbe León Rojas Yepes
	     Sistema de Bibliotecas
            Universidad de Antioquia
              Medellin - Colombia
--------------------------------------------
        Somos el Alma de la Universidad
--------------------------------------------------------------------------
El contenido de este mensaje es responsabilidad del funcionario al cual
pertenece la dirección electrónica.  El Sistema de Bibliotecas de la
Universidad de Antioq


------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Gary Browne

unread,
Aug 25, 2015, 12:34:28 PM8/25/15
to DSpac...@lists.sourceforge.net
Accidentally sent this directly to Serbe this morning, forwarding it to the list now...

Hi Serbe,

Welcome to DSpace. I think your pg_hba.conf file is not configured correctly, or you are not running the installation as the "dspace" (*nix) user.

Let us know:
i) ownership of your dspace source code files
ii) the *nix user that is running your install script
iii) the *nix user which tomcat runs under

And post a copy of your pg_hba.conf file (usually somewhere like /var/lib/pgsql/data).

Thanks
Gary


Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946

Mark H. Wood

unread,
Aug 25, 2015, 12:34:37 PM8/25/15
to dspac...@lists.sourceforge.net
Since you are using Ident authentication, I need to ask the silly
question first: is the host running a properly configured Ident server?

--
Mark H. Wood, Lead System Programmer mw...@IUPUI.Edu
Friends don't let friends publish revisable-form documents.
Reply all
Reply to author
Forward
0 new messages