<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000">CERDA, <br><br>It really was a problem in su -. <br>For security, our servers have sudo su - disabled.<br><br>Thanks.<br><br><br><div id="a1a33d54-0b14-4d30-8134-f48da08913aa"><SPAN name="x"></SPAN><br>Diogo Leal [estranho]<br>http://diogoleal.com<br>talk: estranho@jabber-br.org<SPAN name="x"></SPAN><br></div><br><br><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Matthieu CERDA" <matthieu.cerda@normation.com><br><b>To: </b>diogo@diogoleal.com, "Rudder Users list" <rudder-users@lists.rudder-project.org><br><b>Sent: </b>Tuesday, April 29, 2014 5:34:26 AM<br><b>Subject: </b>Re: [rudder-users] update Rudder<br><br>
<div class="moz-cite-prefix">Le 25/04/2014 22:23,
<a class="moz-txt-link-abbreviated" href="mailto:diogo@diogoleal.com" target="_blank">diogo@diogoleal.com</a> a écrit :<br>
</div>
<blockquote cite="mid:1063395518.15837741.1398457407370.JavaMail.zimbra@diogoleal.com">
<pre>Hello,
I'm updating the Rudder Server, version 2.6.10 -> 2.6.12 and during the upgrade Postgresql he is asking me for a password.
I put the password is in /opt/rudder/etc/rudder-web.properties but, gives authentication error
Does anyone know where I get this password?
Installing new version of config file /etc/rsyslog.d/rudder.conf ...
rsyslog stop/waiting
rsyslog start/running, process 14500
Waiting postgresql to be up
Password:
su: Authentication failure
.Password:
</pre>
</blockquote>
Hello diogo,<br>
<br>
The line causing this is likely this one, in rudder-reports post
installation script:<br>
"while ! su - postgres -c "psql -q --output /dev/null -c \"SELECT
COUNT(*) FROM pg_catalog.pg_authid\"" >/dev/null 2>&1"<br>
<br>
Can you please tell me:<br>
<ul>
<li>Are you running the upgrade as root ? (Command: whoami, should
return "root")<br>
</li>
<li>Is the user "postgres" present on your system ? (Command:
"getent passwd postgres", should return a line describing the
user postgres)</li>
<li>Do you have any restrictions defined to use su ?</li>
</ul>
<p>Thanks in advance,<br>
--<br>
Matthieu CERDA<br>
</p>
</blockquote><br/></div></body></html>