<div dir="ltr">thanks,It looks really a great solution.I will try that.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 16, 2017 at 12:27 PM, Yedidyah Bar David <span dir="ltr">&lt;<a href="mailto:didi@redhat.com" target="_blank">didi@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Mar 15, 2017 at 10:42 PM, Martin Perina &lt;<a href="mailto:mperina@redhat.com">mperina@redhat.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I think you have forgotten &#39;su&#39; command at beginning, correct commands are:<br>
&gt;<br>
&gt;   su - postgres -c &quot;psql -d template1 -c \&quot;create user engine password<br>
&gt; &#39;engine&#39;;\&quot;&quot;<br>
&gt;   su - postgres -c &quot;psql -d template1 -c \&quot;create database engine owner<br>
&gt; engine template template0 encoding &#39;UTF8&#39; lc_collate &#39;en_US.UTF-8&#39; lc_ctype<br>
&gt; &#39;en_US.UTF-8&#39;;\&quot;&quot;<br>
&gt;<br>
<br>
</span>You can also use this:<br>
<br>
/usr/share/ovirt-engine/setup/<wbr>bin/ovirt-engine-provisiondb<br>
--otopi-environment=&quot;OVESETUP_<wbr>PROVISION_DB/database=str:<wbr>engine<br>
OVESETUP_PROVISION_DB/user=<wbr>str:engine<br>
OVESETUP_PROVISION_DB/<wbr>password=str:mypassword&quot;<br>
<br>
It should do &quot;everything&quot; - initdb, create user and db, configure pg, etc.<br>
<br>
If you messed up your pg setup and want to start from scratch (which you<br>
at least partially did, if you have bad permissions on pg_hba.conf), you<br>
can do this:<br>
<br>
1. Disconnect everything that&#39;s connected to pg, if any<br>
2. systemctl stop postgresql<br>
3. rm -rf /var/lib/pgsql/data<br>
<br>
Then try again (following the web page or using above command).<br>
<br>
Best,<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; Martin<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Mar 15, 2017 at 5:30 PM, shubham dubey &lt;<a href="mailto:sdubey504@gmail.com">sdubey504@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt; I am trying to setup ovirt-engine using this link<br>
&gt;&gt; <a href="http://www.ovirt.org/develop/developer-guide/engine/engine-development-environment/" rel="noreferrer" target="_blank">http://www.ovirt.org/develop/<wbr>developer-guide/engine/engine-<wbr>development-environment/</a>.<br>
&gt;&gt; Now when I am trying these commands I am getting following error<br>
&gt;&gt; $postgres -c &quot;psql -d template1 -c \&quot;create user engine password<br>
&gt;&gt; &#39;engine&#39;;\&quot;&quot;<br>
&gt;&gt; FATAL:  -c psql -d template1 -c &quot;create user engine password &#39;engine&#39;;&quot;<br>
&gt;&gt; requires a value<br>
&gt;&gt;<br>
&gt;&gt; and<br>
&gt;&gt; $postgres -c &quot;psql -d template1 -c &quot;create database engine \<br>
&gt;&gt; owner engine template template0 encoding &#39;UTF8&#39; lc_collate \<br>
&gt;&gt; &#39;en_US.UTF-8&#39; lc_ctype &#39;en_US.UTF-8&#39;;\&quot;&quot;<br>
&gt;&gt; FATAL:  -c psql -d template1 -c &quot;create database engine owner engine<br>
&gt;&gt; template template0 encoding &#39;UTF8&#39; lc_collate &#39;en_US.UTF-8&#39; lc_ctype<br>
&gt;&gt; &#39;en_US.UTF-8&#39;;&quot; requires a value<br>
&gt;&gt;<br>
&gt;&gt; So I think the syntax given there is not right,So can anyone tell me the<br>
&gt;&gt; correct syntax.Or maybe I am doing something wrong.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Shubham<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Devel mailing list<br>
&gt;&gt; <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
&gt;&gt; <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Devel mailing list<br>
&gt; <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Didi<br>
</font></span></blockquote></div><br></div>