[Users] Exception: Database creation failed

Hey, While running engine-setup i get, creating database.... [ERROR] Database creation failed the following is in the log file 2012-04-27 14:33:23::ERROR::engine-setup::2453::root:: Traceback (most recent call last): File "/usr/bin/engine-setup", line 2447, in <module> main(confFile) File "/usr/bin/engine-setup", line 2269, in main runMainFunctions(conf) File "/usr/bin/engine-setup", line 2187, in runMainFunctions runFunction([_createDB, _updateVDCOptions], output_messages.INFO_CREATE_DB) File "/usr/bin/engine-setup", line 1170, in runFunction raise Exception(instance) Exception: Database creation failed when i installed from repos which install the dependences including postgresql. postgresql failed to start, so i ran restorecon -R /var service postgresql initdb systemctl start postgresql.service service postgresql start i wasnt able to login to though so i change /var/lib/pqsql/data/pg_hba.conf values to trust now postgresql is run and can login (psql -U postgres) Any ideas?

This is a multi-part message in MIME format. --------------040209030001080801040408 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 04/27/2012 08:10 AM, Patrick Roughan wrote:
Hey,
While running engine-setup i get,
creating database.... [ERROR] Database creation failed
the following is in the log file
2012-04-27 14:33:23::ERROR::engine-setup::2453::root:: Traceback (most recent call last): File "/usr/bin/engine-setup", line 2447, in <module> main(confFile) File "/usr/bin/engine-setup", line 2269, in main runMainFunctions(conf) File "/usr/bin/engine-setup", line 2187, in runMainFunctions runFunction([_createDB, _updateVDCOptions], output_messages.INFO_CREATE_DB) File "/usr/bin/engine-setup", line 1170, in runFunction raise Exception(instance) Exception: Database creation failed
when i installed from repos which install the dependences including postgresql. postgresql failed to start, so i ran
restorecon -R /var service postgresql initdb systemctl start postgresql.service service postgresql start
i wasnt able to login to though so i change /var/lib/pqsql/data/pg_hba.conf values to trust
now postgresql is run and can login (psql -U postgres)
Any ideas?
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Hello Patrick This problem could mean many things. Could you please attach the complete log file? Additionally, please attach the corresponding 'engine-db-install' log file. Finally, there's another log */usr/share/ovirt-engine/dbscripts/create_db.sh.log*. Please take a look in it to see if there are any errors, and if so, paste them too in your answer. Thank you. -- Alex Lourie. --------------040209030001080801040408 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> On 04/27/2012 08:10 AM, Patrick Roughan wrote: <blockquote cite="mid:4F9A2A52.2010402@epochcapital.com.au" type="cite">Hey, <br> <br> While running engine-setup i get, <br> <br> creating database.... [ERROR] <br> Database creation failed <br> <br> the following is in the log file <br> <br> 2012-04-27 14:33:23::ERROR::engine-setup::2453::root:: Traceback (most recent call last): <br> File "/usr/bin/engine-setup", line 2447, in <module> <br> main(confFile) <br> File "/usr/bin/engine-setup", line 2269, in main <br> runMainFunctions(conf) <br> File "/usr/bin/engine-setup", line 2187, in runMainFunctions <br> runFunction([_createDB, _updateVDCOptions], output_messages.INFO_CREATE_DB) <br> File "/usr/bin/engine-setup", line 1170, in runFunction <br> raise Exception(instance) <br> Exception: Database creation failed <br> <br> when i installed from repos which install the dependences including postgresql. postgresql failed to start, so i ran <br> <br> restorecon -R /var <br> service postgresql initdb <br> systemctl start postgresql.service <br> service postgresql start <br> <br> i wasnt able to login to though <br> so i change /var/lib/pqsql/data/pg_hba.conf values to trust <br> <br> now postgresql is run and can login (psql -U postgres) <br> <br> Any ideas? <br> <br> <br> _______________________________________________ <br> Users mailing list <br> <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <br> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> <br> </blockquote> <br> Hello Patrick<br> <br> This problem could mean many things. Could you please attach the complete log file? Additionally, please attach the corresponding 'engine-db-install' log file. <br> <br> Finally, there's another log <b>/usr/share/ovirt-engine/dbscripts/create_db.sh.log</b>. Please take a look in it to see if there are any errors, and if so, paste them too in your answer.<br> <br> Thank you.<br> <br> <pre class="moz-signature" cols="72">-- Alex Lourie.</pre> </body> </html> --------------040209030001080801040408--
participants (2)
-
Alex Lourie
-
Patrick Roughan