<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt">Hi Oved,<br><br><br>This time I used the full path<br><br><br>$ cd /home/satimis/ovirt-engine/backend/manager/dbscripts<br>$ sudo ./create_db_devel.sh -u postgres<br>[sudo] password for satimis: <br>Running original create_db script...<br>Creating the database: engine<br>user name is: postgres<br>Creating tables...<br>Creating functions...<br>.....<br>Creating stored procedures from vds_groups_sp.sql ...<br>Creating stored procedures from vds_spm_id_map_sp.sql ...<br>Creating stored procedures from vds_sp.sql ...<br>Creating stored procedures from vm_device_sp.sql ...<br>Creating stored procedures from vm_pool_maps_sp.sql ...<br>Creating stored procedures from vm_pools_sp.sql ...<br>Creating stored procedures from vms_sp.sql ...<br>Creating stored procedures from vm_templates_sp.sql ...<br>Running&nbsp; upgrade sql script
 upgrade/post_upgrade/0010_add_object_column_white_list_table.sql ...<br>Setting development configuration values ...<br>Development setting done.<br><br><br>it worked.<br><br>What is the correct command/step creating $OVIRT_HOME which includes /home/satimis/ovirt-engine ?&nbsp; Thanks<br><br><br>Continued<br>========<br><br>$ cd ../../..<br>$ mvn clean install<br><br>It took long time to complete<br><br><br>Deploy <br>======<br><br>$ ls<br>backend&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; config&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ear&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LICENSE&nbsp;&nbsp; packaging<br>build-tools-root&nbsp; deployment&nbsp; frontend&nbsp; Makefile&nbsp; pom.xml<br><br>$ cd ear/<br>$ mvn clean install -Pdep,setup<br>......<br>[INFO] Executed tasks<br>[INFO] ------------------------------------------------------------------------<br>[INFO] BUILD SUCCESS<br>[INFO]
 ------------------------------------------------------------------------<br>[INFO] Total time: 11.948s<br>[INFO] Finished at: Fri Nov 09 17:39:27 HKT 2012<br>[INFO] Final Memory: 16M/331M<br>[INFO] ------------------------------------------------------------------------<br><br><br>$ mvn clean install -Pdep<br>.......<br>[INFO] ------------------------------------------------------------------------<br>[INFO] BUILD SUCCESS<br>[INFO] ------------------------------------------------------------------------<br>[INFO] Total time: 5.990s<br>[INFO] Finished at: Fri Nov 09 17:40:38 HKT 2012<br>[INFO] Final Memory: 16M/331M<br>[INFO] ------------------------------------------------------------------------<br><br><br>Copying vdsm bootstrap files (this step ignored)<br><br><br>Deploying engine-config &amp; engine-manage-domains <br>========================================<br><br>$ cd ..<br><br>$ make create_dirs<br>*** Creating Directories<br>install: cannot
 create directory `/usr/local/share/ovirt-engine': Permission denied<br>make: *** [create_dirs] Error 1<br><br><br>Again;<br>=====<br>$ sudo make create_dirs<br>[sudo] password for satimis: <br>*** Creating Directories<br><br><br>$ make install_tools<br>make: *** No rule to make target `install_tools'.&nbsp; Stop.<br><br>$ sudo make install_tools<br>make: *** No rule to make target `install_tools'.&nbsp; Stop.<br><br>Encountered problem here.&nbsp; Please help<br><br><br>Continued<br>========<br><br>$ make install_config<br>*** Deploying engine-config &amp; engine-manage-domains<br># Configuration files for the configuration tool:<br>install -m 644 backend/manager/tools/engine-config/src/main/resources/engine-config.conf /usr/local/etc/ovirt-engine/engine-config/<br>install: cannot create regular file `/usr/local/etc/ovirt-engine/engine-config/engine-config.conf': Permission denied<br>make: *** [install_config] Error 1<br><br><br>Again;<br>=====<br>$
 sudo make install_config<br>*** Deploying engine-config &amp; engine-manage-domains<br># Configuration files for the configuration tool:<br>install -m 644 backend/manager/tools/engine-config/src/main/resources/engine-config.conf /usr/local/etc/ovirt-engine/engine-config/<br>install -m 644 backend/manager/tools/engine-config/src/main/resources/engine-config.*properties /usr/local/etc/ovirt-engine/engine-config/<br>install -m 644 backend/manager/tools/engine-config/src/main/resources/log4j.xml /usr/local/etc/ovirt-engine/engine-config/<br># Main program for the configuration tool:<br>install -m 750 backend/manager/tools/engine-config/src/main/resources/engine-config /usr/local/share/ovirt-engine/bin/engine-config.sh<br>ln -s /usr/local/share/ovirt-engine/bin/engine-config.sh /usr/local/bin/engine-config<br># Configuration files for the domain management tool:<br>install -m 644 backend/manager/modules/utils/src/main/resources/engine-manage-domains.conf
 /usr/local/etc/ovirt-engine/engine-manage-domains/<br>install -m 644 backend/manager/modules/utils/src/main/resources/engine-manage-domains/log4j.xml /usr/local/etc/ovirt-engine/engine-manage-domains/<br># Main program for the domain management tool:<br>install -m 750 backend/manager/conf/kerberos/engine-manage-domains /usr/local/share/ovirt-engine/bin/engine-manage-domains.sh<br>ln -s /usr/local/share/ovirt-engine/bin/engine-manage-domains.sh /usr/local/bin/engine-manage-domains<br><br>It worked.<br><br><br>$ sudo ps ax | grep java<br>&nbsp;8392 pts/0&nbsp;&nbsp;&nbsp; S+&nbsp;&nbsp;&nbsp;&nbsp; 0:00 grep --color=auto java<br><br>jboss is running ???<br><br><br>I stopped here without proceeding further in anticipating to rectify previous errors first.<br><br>Please help.&nbsp; TIA<br><br>B.R.<br>Stephen L<br><br><div><span><br></span></div><div><span></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px;
 margin-top: 5px; padding-left: 5px;">  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Oved Ourfalli &lt;ovedo@redhat.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Stephen Liu &lt;satimis@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> users@ovirt.org; Yair Zaslavsky &lt;yzaslavs@redhat.com&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, November 9, 2012 4:38 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Users] Problem on creating database<br> </font> </div> <br>Hey Stephen,<br><br>Is that possible that OVIRT_HOME is not set properly?<br>Maven looks for pom.xml file in the directory tha mvn command is run from, and according to the error there is no such
 file there (in /home/satimis).<br><br>Have a nice day,<br>Oved<br>----- Original Message -----<br>&gt; From: "Stephen Liu" &lt;<a ymailto="mailto:satimis@yahoo.com" href="mailto:satimis@yahoo.com">satimis@yahoo.com</a>&gt;<br>&gt; To: "Yair Zaslavsky" &lt;<a ymailto="mailto:yzaslavs@redhat.com" href="mailto:yzaslavs@redhat.com">yzaslavs@redhat.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:users@ovirt.org" href="mailto:users@ovirt.org">users@ovirt.org</a><br>&gt; Sent: Friday, November 9, 2012 10:18:46 AM<br>&gt; Subject: Re: [Users] Problem on creating database<br>&gt; <br>&gt; <br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; On running further to install oVirt I encountered following problem;<br>&gt; <br>&gt; Steps performed;<br>&gt; <br>&gt; $ cd $OVIRT_HOME<br>&gt; <br>&gt; $ mvn clean install<br>&gt; /usr/lib/jvm/java<br>&gt; [INFO] Scanning for projects...<br>&gt; [INFO]<br>&gt; ------------------------------------------------------------------------<br>&gt;
 [INFO] BUILD FAILURE<br>&gt; [INFO]<br>&gt; ------------------------------------------------------------------------<br>&gt; [INFO] Total time: 0.110s<br>&gt; [INFO] Finished at: Fri Nov 09 12:23:57 HKT 2012<br>&gt; [INFO] Final Memory: 5M/115M<br>&gt; [INFO]<br>&gt; ------------------------------------------------------------------------<br>&gt; [ERROR] The goal you specified requires a project to execute but<br>&gt; there is no POM in this directory (/home/satimis). Please verify you<br>&gt; invoked Maven from the correct directory. -&gt; [Help 1]<br>&gt; [ERROR]<br>&gt; [ERROR] To see the full stack trace of the errors, re-run Maven with<br>&gt; the -e switch.<br>&gt; [ERROR] Re-run Maven using the -X switch to enable full debug<br>&gt; logging.<br>&gt; [ERROR]<br>&gt; [ERROR] For more information about the errors and possible solutions,<br>&gt; please read the following articles:<br>&gt; [ERROR] [Help 1]<br>&gt; <a
 href="http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException" target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException</a><br>&gt; <br>&gt; Failure ?<br>&gt; <br>&gt; <br>&gt; $ mvn --version<br>&gt; /usr/lib/jvm/java<br>&gt; Apache Maven 3.0.4 (rNON-CANONICAL_2012-10-24_11-25_mockbuild;<br>&gt; 2012-10-24 19:25:04+0800)<br>&gt; Maven home: /usr/share/maven<br>&gt; Java version: 1.7.0_09-icedtea, vendor: Oracle Corporation<br>&gt; Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre<br>&gt; Default locale: en_US, platform encoding: UTF-8<br>&gt; OS name: "linux", version: "3.6.5-1.fc17.x86_64", arch: "amd64",<br>&gt; family: "unix"<br>&gt; <br>&gt; <br>&gt; B.R.<br>&gt; Stephen L<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; From: Yair Zaslavsky &lt;<a ymailto="mailto:yzaslavs@redhat.com" href="mailto:yzaslavs@redhat.com">yzaslavs@redhat.com</a>&gt;<br>&gt; To:
 Stephen Liu &lt;<a ymailto="mailto:satimis@yahoo.com" href="mailto:satimis@yahoo.com">satimis@yahoo.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:users@ovirt.org" href="mailto:users@ovirt.org">users@ovirt.org</a><br>&gt; Sent: Friday, November 9, 2012 2:53 PM<br>&gt; Subject: Re: [Users] Problem on creating database<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Hi, I'm not sure at what point exactly you see this dropdb failure.<br>&gt; I checked the code at the dbscripts folder, and the only place where<br>&gt; dropdb is run, is at the beginning of execution of create_db.sh<br>&gt; which is run from create_db_devel.sh<br>&gt; In addition, when I tried to create with non existing DB, I saw the<br>&gt; same print, but the DB was still created.<br>&gt; <br>&gt; <br>&gt; Please elaborate on what is your exact problem?<br>&gt; Do you manage to perform psql engine postgres after running the<br>&gt; script?<br>&gt; You can also send us create_db.sh.log<br>&gt;
 <br>&gt; <br>&gt; Thanks!<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; From: "Stephen Liu" &lt;<a ymailto="mailto:satimis@yahoo.com" href="mailto:satimis@yahoo.com">satimis@yahoo.com</a>&gt;<br>&gt; To: <a ymailto="mailto:users@ovirt.org" href="mailto:users@ovirt.org">users@ovirt.org</a><br>&gt; Sent: Friday, November 9, 2012 7:09:05 AM<br>&gt; Subject: [Users] Problem on creating database<br>&gt; <br>&gt; <br>&gt; <br>&gt; Hi all,<br>&gt; <br>&gt; OS - Fedora 17 64bit<br>&gt; Manual:<br>&gt; <a href="http://wiki.ovirt.org/wiki/Building_Ovirt_Engine#Prerequisites" target="_blank">http://wiki.ovirt.org/wiki/Building_Ovirt_Engine#Prerequisites</a><br>&gt; <br>&gt; <br>&gt; Creating the database<br>&gt; =================<br>&gt; <br>&gt; $ ls /home/satimis/ | grep ovirt-engine<br>&gt; ovirt-engine<br>&gt; <br>&gt; $OVIRT_HOME = /home/satimis<br>&gt; <br>&gt; $ cd /home/satimis/ovirt-engine/backend/manager/dbscripts<br>&gt; $ sudo ./create_db_devel.sh -u
 postgres<br>&gt; Running original create_db script...<br>&gt; Creating the database: engine<br>&gt; dropdb: database removal failed: ERROR: database "engine" does not<br>&gt; exist<br>&gt; user name is: postgres<br>&gt; Creating tables...<br>&gt; Creating functions...<br>&gt; Creating common functions...<br>&gt; Inserting data ...<br>&gt; .....<br>&gt; .....<br>&gt; Running upgrade sql script<br>&gt; upgrade/post_upgrade/0010_add_object_column_white_list_table.sql ...<br>&gt; Setting development configuration values ...<br>&gt; Development setting done.<br>&gt; <br>&gt; <br>&gt; dropdb: database removal failed: ERROR: database "engine" does not<br>&gt; exist<br>&gt; <br>&gt; Please advise how to fix the problem? TIA<br>&gt; <br>&gt; B.R.<br>&gt; Stephen L<br>&gt; <br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@ovirt.org" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>&gt; <a
 href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@ovirt.org" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>&gt; <br><br><br> </div> </div> </blockquote></div>   </div></body></html>