<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 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 ? 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 config ear LICENSE packaging<br>build-tools-root deployment frontend Makefile 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 & 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'. Stop.<br><br>$ sudo make install_tools<br>make: *** No rule to make target `install_tools'. Stop.<br><br>Encountered problem here. Please help<br><br><br>Continued<br>========<br><br>$ make install_config<br>*** Deploying engine-config & 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 & 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> 8392 pts/0 S+ 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. 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 <ovedo@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> Stephen Liu <satimis@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> users@ovirt.org; Yair Zaslavsky <yzaslavs@redhat.com> <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>> From: "Stephen Liu" <<a ymailto="mailto:satimis@yahoo.com" href="mailto:satimis@yahoo.com">satimis@yahoo.com</a>><br>> To: "Yair Zaslavsky" <<a ymailto="mailto:yzaslavs@redhat.com" href="mailto:yzaslavs@redhat.com">yzaslavs@redhat.com</a>><br>> Cc: <a ymailto="mailto:users@ovirt.org" href="mailto:users@ovirt.org">users@ovirt.org</a><br>> Sent: Friday, November 9, 2012 10:18:46 AM<br>> Subject: Re: [Users] Problem on creating database<br>> <br>> <br>> <br>> Hi,<br>> <br>> On running further to install oVirt I encountered following problem;<br>> <br>> Steps performed;<br>> <br>> $ cd $OVIRT_HOME<br>> <br>> $ mvn clean install<br>> /usr/lib/jvm/java<br>> [INFO] Scanning for projects...<br>> [INFO]<br>> ------------------------------------------------------------------------<br>>
[INFO] BUILD FAILURE<br>> [INFO]<br>> ------------------------------------------------------------------------<br>> [INFO] Total time: 0.110s<br>> [INFO] Finished at: Fri Nov 09 12:23:57 HKT 2012<br>> [INFO] Final Memory: 5M/115M<br>> [INFO]<br>> ------------------------------------------------------------------------<br>> [ERROR] The goal you specified requires a project to execute but<br>> there is no POM in this directory (/home/satimis). Please verify you<br>> invoked Maven from the correct directory. -> [Help 1]<br>> [ERROR]<br>> [ERROR] To see the full stack trace of the errors, re-run Maven with<br>> the -e switch.<br>> [ERROR] Re-run Maven using the -X switch to enable full debug<br>> logging.<br>> [ERROR]<br>> [ERROR] For more information about the errors and possible solutions,<br>> please read the following articles:<br>> [ERROR] [Help 1]<br>> <a
href="http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException" target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException</a><br>> <br>> Failure ?<br>> <br>> <br>> $ mvn --version<br>> /usr/lib/jvm/java<br>> Apache Maven 3.0.4 (rNON-CANONICAL_2012-10-24_11-25_mockbuild;<br>> 2012-10-24 19:25:04+0800)<br>> Maven home: /usr/share/maven<br>> Java version: 1.7.0_09-icedtea, vendor: Oracle Corporation<br>> Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre<br>> Default locale: en_US, platform encoding: UTF-8<br>> OS name: "linux", version: "3.6.5-1.fc17.x86_64", arch: "amd64",<br>> family: "unix"<br>> <br>> <br>> B.R.<br>> Stephen L<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> From: Yair Zaslavsky <<a ymailto="mailto:yzaslavs@redhat.com" href="mailto:yzaslavs@redhat.com">yzaslavs@redhat.com</a>><br>> To:
Stephen Liu <<a ymailto="mailto:satimis@yahoo.com" href="mailto:satimis@yahoo.com">satimis@yahoo.com</a>><br>> Cc: <a ymailto="mailto:users@ovirt.org" href="mailto:users@ovirt.org">users@ovirt.org</a><br>> Sent: Friday, November 9, 2012 2:53 PM<br>> Subject: Re: [Users] Problem on creating database<br>> <br>> <br>> <br>> <br>> Hi, I'm not sure at what point exactly you see this dropdb failure.<br>> I checked the code at the dbscripts folder, and the only place where<br>> dropdb is run, is at the beginning of execution of create_db.sh<br>> which is run from create_db_devel.sh<br>> In addition, when I tried to create with non existing DB, I saw the<br>> same print, but the DB was still created.<br>> <br>> <br>> Please elaborate on what is your exact problem?<br>> Do you manage to perform psql engine postgres after running the<br>> script?<br>> You can also send us create_db.sh.log<br>>
<br>> <br>> Thanks!<br>> <br>> <br>> <br>> <br>> From: "Stephen Liu" <<a ymailto="mailto:satimis@yahoo.com" href="mailto:satimis@yahoo.com">satimis@yahoo.com</a>><br>> To: <a ymailto="mailto:users@ovirt.org" href="mailto:users@ovirt.org">users@ovirt.org</a><br>> Sent: Friday, November 9, 2012 7:09:05 AM<br>> Subject: [Users] Problem on creating database<br>> <br>> <br>> <br>> Hi all,<br>> <br>> OS - Fedora 17 64bit<br>> Manual:<br>> <a href="http://wiki.ovirt.org/wiki/Building_Ovirt_Engine#Prerequisites" target="_blank">http://wiki.ovirt.org/wiki/Building_Ovirt_Engine#Prerequisites</a><br>> <br>> <br>> Creating the database<br>> =================<br>> <br>> $ ls /home/satimis/ | grep ovirt-engine<br>> ovirt-engine<br>> <br>> $OVIRT_HOME = /home/satimis<br>> <br>> $ cd /home/satimis/ovirt-engine/backend/manager/dbscripts<br>> $ sudo ./create_db_devel.sh -u
postgres<br>> Running original create_db script...<br>> Creating the database: engine<br>> dropdb: database removal failed: ERROR: database "engine" does not<br>> exist<br>> user name is: postgres<br>> Creating tables...<br>> Creating functions...<br>> Creating common functions...<br>> Inserting data ...<br>> .....<br>> .....<br>> Running upgrade sql script<br>> upgrade/post_upgrade/0010_add_object_column_white_list_table.sql ...<br>> Setting development configuration values ...<br>> Development setting done.<br>> <br>> <br>> dropdb: database removal failed: ERROR: database "engine" does not<br>> exist<br>> <br>> Please advise how to fix the problem? TIA<br>> <br>> B.R.<br>> Stephen L<br>> <br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@ovirt.org" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>> <a
href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@ovirt.org" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>> <br><br><br> </div> </div> </blockquote></div> </div></body></html>