New Installation on Centos7

113 views
Skip to first unread message

Vineet Jamwal

unread,
Dec 11, 2020, 1:38:23 AM12/11/20
to Dataverse Users Community
Dear all,

While installing Installing PostgreSQL,when I push this command:
/usr/pgsql-9.6/bin/postgresql96-setup initdb
I am having this is the output:
Data directory is not empty!
and afterwards while starting postgreSQL with this command:
/usr/bin/systemctl start postgresql-9.6
output is:
[root@localhost jamwal]# /usr/bin/systemctl start postgresql-9.6
Job for postgresql-9.6.service failed because the control process exited with error code. See "systemctl status postgresql-9.6.service" and "journalctl -xe" for details.

 
Kindly advice how do I start PostgreSQL then?

Thanks

Don Sizemore

unread,
Dec 11, 2020, 7:55:59 AM12/11/20
to dataverse...@googlegroups.com
Hello,

Postgres won't initialize a data directory that isn't empty (and once you get into the Dataverse installer portion, Dataverse won't install onto an existing database unless you --force it).

If you care about the contents of the Postgres data directory (likely /var/lib/pgsql/9.6/data) you might back them up, otherwise you might remove the contents of the directory and try the initdb step again.

In general, you'll find better Postgres logs to tell you what's going on in /var/lib/pgsql/9.6/data/logs

I hope this helps?
Don


--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/bb2b1284-c816-4639-b743-83ff67624126n%40googlegroups.com.

Vineet Jamwal

unread,
Dec 11, 2020, 3:11:36 PM12/11/20
to dataverse...@googlegroups.com
Thanks Don! Eventually I pushed these commands and it worked.
 postgresql-setup --initdb
  systemctl enable postgresql.service
  systemctl start postgresql.service


--

विनीत जामवाल/Vineet Jamwal

पुस्तकालय सूचना सहायक/Library Information Assistant

केंद्रीय पुस्तकालय/Central Library

भारतीय प्रौद्योगिकी संस्थान रोपड़/Indian Institute of Technology Ropar

रुपनगर/Rupnagar- 140001, पंजाब/Punjab (भारत/INDIA)

दूरभाष/Phone: +91-7814973115

ई-मेल/Email: vineet...@iitrpr.ac.in, vinee...@gmail.com

Vineet Jamwal

unread,
Dec 14, 2020, 1:41:54 PM12/14/20
to Dataverse Users Community
Hello everyone!

I am having problem in configuring database access through pg_hba.conf. My question is where is this .conf file located and how do I find it? As I run python installer from dvinstall, i end up with a error that states

performing database setup
Can't connect to PostgresQL as the admin user.

Is the server running, have you adjusted pg_hba.conf, etc?


Don Sizemore

unread,
Dec 14, 2020, 1:46:57 PM12/14/20
to dataverse...@googlegroups.com
Hello,

Your previous messages have referenced 9.6, so look in /var/lib/pgsql/9.6/data ?

Don

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.

Vineet Jamwal

unread,
Dec 14, 2020, 1:55:42 PM12/14/20
to Dataverse Users Community
Actually its my mistake. I installed Postgresql10 on centos 7 and was trying to start in with the commands.

postgresql-setup --initdb
systemctl enable postgresql.service
systemctl start postgresql.service

So i installed removed Postgresql 10 with command

yum erase postgresql-10

and I installed 9.6 with (.rpm isnt runnning on my centos7 I really dont know why)

yum list postgresql*

Yum install posrtgresql96-*

Furthermore, I did this

/usr/bin/systemctl start postgresql-9.6

Service postgresql-9.6 restart

Service postgresql-9.6 status (TO check its status)

and its Active now!


Thanks


Vineet Jamwal

unread,
Dec 14, 2020, 1:57:14 PM12/14/20
to Dataverse Users Community
Sir, any idea of pg_hba.conf. configuration?
I am stuck with this one since day long..

Ayu Widi

unread,
Dec 14, 2020, 9:19:07 PM12/14/20
to dataverse...@googlegroups.com
Try to locate :

locate pg_hba.conf

Vineet Jamwal

unread,
Dec 15, 2020, 9:55:39 AM12/15/20
to Dataverse Users Community
Thank you! I tried 

locate pg_hba.conf 

The problem was that I had configured pg_hba.conf but I was hav ing 2 versions of Postgres....Postgresql 9.2.24 and  Postgresql  9.6..Postgresql 9.6 was already successfully running as server but 9.2.24 version was coming as default selection by dataverse installation script (install pyhton.py). Hence the errror to fix either server or pg_hba.confg. So as usual I removed Postgresql 9.2.24 with yum remove postgresql and finally installation script started.

Vineet Jamwal

unread,
Dec 15, 2020, 1:57:56 PM12/15/20
to Dataverse Users Community
Hello Everyone,

So finally I was able to run the dataverse installer, I got this error in the end...

Deploying the application (dataverse.war)
No response from Domain Admin Server after 600 seconds.
The command is either taking too long to complete or the server has failed.
Please see the server log files for command status.
Command deploy failed.
Failed to deploy the application!

Also, in the Payara Administration Console (localhost:4848), the list of deployed applications show dataverse but i am unable to launch the same i.e. it opens up localhost.localdomain:8080 with a blank page. Do I need to do a fresh reinstall??

Thanks

Philip Durbin

unread,
Dec 15, 2020, 2:05:00 PM12/15/20
to dataverse...@googlegroups.com
Yes, I would continue fresh installs until you get a working one.

Is it possible that the war file was already deployed from a previous installation attempt? If so, you should undeploy the war file before trying again.

A blank page is expected when the setup scripts (which run *after* the war file is deployed) haven't run.

A couple more thoughts...


Some of us hang out in https://chat.dataverse.org and you are welcome to ask installation questions there.

Thanks,

Phil



--

Vineet Jamwal

unread,
Dec 15, 2020, 2:14:24 PM12/15/20
to dataverse...@googlegroups.com
Thank you Phil. I will try it tomorrow morning (India here) and surely get back to you.

Thanks again,
Vineet

Vineet Jamwal

unread,
Dec 17, 2020, 5:41:14 AM12/17/20
to dataverse...@googlegroups.com
And so, after multiple attempts I have successfully deployed installation on my computer. Now the process for customization starts.
I thank everyone for all the support till now.
Reply all
Reply to author
Forward
0 new messages