Thanks Luiz. I didn't recall if I created the user and DB as root so I dropped them both while logged in as 'dspace'. I'm still getting the same errors which seem to stem from this: Caused by: java.net.UnknownHostException: <hostname>
I've verified the hostname resolves in DNS and even added it to the /etc/hosts file and tried using the IP address for dspace.hostname in my local.cfg file. Nothing has worked so far. I'm stumped.. On Friday, January 27, 2017 at 12:58:56 PM UTC-9, Walter Rutherford wrote: > > > I've proceeded through the DSpace installation but have been stuck during > the 'ant fresh_install'. > It doesn't get very far into test_database before it has a cascade of > errors. > > [root@irtest dspace-installer]# ant fresh_install > Buildfile: > /home/dspace/dspace-6.0-src-release/dspace/target/dspace-installer/build.xml > > init_installation: > > prepare_configs: > [mkdir] Created dir: > /home/dspace/dspace-6.0-src-release/dspace/target/dspace-installer/config-temp > [copy] Copying 157 files to > /home/dspace/dspace-6.0-src-release/dspace/target/dspace-installer/config-temp > [copy] Copying 1 file to > /home/dspace/dspace-6.0-src-release/dspace/target/dspace-installer/config-temp > [copy] Copying 16 files to > /home/dspace/dspace-6.0-src-release/dspace/target/dspace-installer/config-temp > > init_configs: > [copy] Copying 1 file to /home/dspace/config > [delete] Deleting directory > /home/dspace/dspace-6.0-src-release/dspace/target/dspace-installer/config-temp > > test_database: > [java] 2017-01-27 12:25:08,822 WARN > org.dspace.services.email.EmailServiceImpl @ Couldn't get an email session > from environment: Need to specify class name in environment or system > property, or as an applet parameter, or in an application resource file: > java.naming.factory.initial > [java] > [java] Error running 'test': > [java] - java.sql.SQLException: Cannot create > PoolableConnectionFactory (The connection attempt failed.) > [java] > [java] Please see the DSpace documentation for assistance. > [java] > [java] java.sql.SQLException: Cannot create PoolableConnectionFactory > (The connection attempt failed.) > ... > > I suspect there's something wrong with accessing the postgres database. I > can access it from > the command-line (with or without specifying the database) but only if I > don't specify localhost. > [root@irtest dspace-installer]# psql -U dspace -h localhost > psql: FATAL: Ident authentication failed for user "dspace" > > [root@irtest dspace-installer]# psql -U dspace -W -h localhost > Password for user dspace: > psql: FATAL: Ident authentication failed for user "dspace" > > [root@irtest dspace-installer]# psql -U dspace > psql (9.5.5) > Type "help" for help. > dspace=> \q > > [root@irtest dspace-installer]# psql -U dspace -d dspace --list > List of databases > Name | Owner | Encoding | Collate | Ctype | Access > privileges > > -----------+----------+----------+-------------+-------------+----------------------- > dspace | dspace | UTF8 | en_US.UTF-8 | en_US.UTF-8 | > postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | > template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres > + > | | | | | > postgres=CTc/postgres > template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres > + > | | | | | > postgres=CTc/postgres > (4 rows) > > Here are the uncommented lines from pg_hba.conf. If I recall it was > failing as 'peer' so I set local to 'trust' > [root@irtest data]# egrep -v "^#|^$" /var/lib/pgsql/9.5/data/pg_hba.conf > local all all trust > host all all 127.0.0.1/32 ident > host all all ::1/128 ident > > I had had file ownership issues initially but I *think* I've caught all > those. > > Any assistance is greatly appreciated. Thank you. > > -- 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.
