<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>No, the host name has not changed.</p>
<p><br>
</p>
<p>Daryl</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Konstantin Raskoshnyi <konrasko@gmail.com><br>
<b>Sent:</b> Wednesday, August 3, 2016 1:00 PM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] osad/jabber - Invalid password errors</font>
<div> </div>
</div>
<div>
<div dir="ltr">Did you change the hostname manually? Usually that's the problem.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Aug 3, 2016 at 10:37 AM, Daryl Rose <span dir="ltr">
<<a href="mailto:darylrose@outlook.com" target="_blank">darylrose@outlook.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Thank you for the information.  However, I am confused by a few things.</p>
<p><br>
</p>
<p>The error that I am seeing is on the spacewalk server itself, not on the clients.  isn't /etc/sysconfig/rhn/osad-auth.conf only on the clients?    OSAD is failing to start on the server with the invalid password error.  Do I need to remove and recreate the
 osad-auth.conf file on all of the clients?</p>
<p><br>
</p>
<p>Thank you.</p>
<p><br>
</p>
<p>Daryl</p>
<p><br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<div>
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Dimitri Yioulos <<a href="mailto:dyioulos@netatlantic.com" target="_blank">dyioulos@netatlantic.com</a>><br>
<b>Sent:</b> Wednesday, August 3, 2016 10:54 AM<br>
<b>To:</b> <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a>; Daryl Rose<br>
<b>Subject:</b> RE: [Spacewalk-list] osad/jabber - Invalid password errors</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div>Robert is correct.  I've had similar issues with osad, and so created a simple Ansible playbook to delete osad-auth.conf against all of my nodes.  If you're running Ansible, here it is:<br>
<br>
---<br>
<br>
- hosts: all<br>
  gather_facts: false<br>
  become: yes<br>
<br>
  tasks:<br>
    - name: stop osad<br>
      command: /sbin/service osad stop<br>
    - name: remove osad auth file<br>
      command: /bin/rm -f /etc/sysconfig/rhn/osad-auth.conf<br>
    - name: start osad<br>
      command: /sbin/service osad start<br>
<br>
Dimitri<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">mailto:spacewalk-list-bounces@redhat.com</a>] On Behalf Of Robert Paschedag<br>
Sent: Wednesday, August 03, 2016 11:14 AM<br>
To: Daryl Rose <<a href="mailto:darylrose@outlook.com" target="_blank">darylrose@outlook.com</a>><br>
Cc: <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br>
Subject: Re: [Spacewalk-list] osad/jabber - Invalid password errors<br>
<br>
You should have configuration files for osad in /etc/sysconfig/rhn. An osad.conf and osad-auth.conf.<br>
<br>
I think, if you remove the osad-auth.conf file and restart osad, it should re-register. I think!<br>
<br>
Regards<br>
Robert<br>
Am 03.08.2016 15:38 schrieb Daryl Rose <<a href="mailto:darylrose@outlook.com" target="_blank">darylrose@outlook.com</a>>:<br>
><br>
> Hmmm....Wonder how that happened?  I didn't press send, at least not that I'm aware of.<br>
><br>
><br>
> Anyway, before I was rudely interrupted by my email client, I was <br>
> asking if there is a password in the jabberd database or authreg.db file that could be an issue?  Since I am no longer completely clearing out the database files, perhaps something got stuck at some point?  Would clearing out the database files rest the password?<br>
><br>
><br>
> But again, I'm wondering what the invalid password is?  What is osad <br>
> logging into?<br>
><br>
><br>
> Thank you.<br>
><br>
><br>
> Daryl<br>
><br>
><br>
><br>
><br>
> ________________________________<br>
> From: <a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a>
<br>
> <<a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a>> on behalf of Daryl Rose
<br>
> <<a href="mailto:darylrose@outlook.com" target="_blank">darylrose@outlook.com</a>><br>
> Sent: Wednesday, August 3, 2016 8:15 AM<br>
> To: <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br>
> Subject: Re: [Spacewalk-list] osad/jabber - Invalid password errors<br>
>  <br>
><br>
> I have some additional information that I think that I should share.<br>
><br>
><br>
> Because of specific issues experienced with SW, I used to completely remove jabberd database and log files.  I used to stop SW, cd to /var/lib/jabberd/db and remove the entire contents then restart SW.  But, I started experience problems with OSAD not picking
 up packages, and after so research, I learned that the way that I used to do things was not a good idea.<br>
><br>
><br>
> I think that it was a posting here that told me by removing at database files and the authreg.db it was causing the clients from losing connection with the SW server.  In the SW documentation, I learned that its better to delete only the logs that are not
 required.  These are the steps that I now use:<br>
><br>
><br>
> /usr/bin/db_checkpoint -1 -h /var/lib/jabberd/db/ ## mark logs for <br>
> deletion /usr/bin/db_archive -d -h /var/lib/jabberd/db/  ## delete <br>
> logs /usr/sbin/spacewalk-service restart  ## stop/start spacewalk<br>
><br>
> I have this setup in a crontab that runs on a daily schedule.  I set <br>
> this up about two months ago.<br>
><br>
><br>
> I'm not sure when the invalid password issue started.  But it was some <br>
> point after implementing these steps that the invalid password issue <br>
> started.  Is there a password<br>
><br>
><br>
>  <br>
><br>
><br>
><br>
> ________________________________<br>
> From: Robert Paschedag <<a href="mailto:robert.paschedag@web.de" target="_blank">robert.paschedag@web.de</a>><br>
> Sent: Tuesday, August 2, 2016 11:47 PM<br>
> To: Daryl Rose<br>
> Cc: <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br>
> Subject: Re: [Spacewalk-list] osad/jabber - Invalid password errors<br>
>  <br>
> Hi Daryl,<br>
><br>
> the password fire jabber is stored in /etc/sysconfig/rhn/osad.auth, if I remember right.<br>
><br>
> The other thing is not enough permissions to delete the PID file.<br>
><br>
> Are you running osad as a non-root user?<br>
><br>
> Regards<br>
> Robert<br>
> Am 02.08.2016 16:24 schrieb Daryl Rose <<a href="mailto:darylrose@outlook.com" target="_blank">darylrose@outlook.com</a>>:<br>
> ><br>
> > OSAD has not been working, and I finally had a moment to look into it.  The osa-dispatcher.log has the following error:<br>
> ><br>
> ><br>
> > 2016/08/02 08:38:25 -05:00 25556 <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>:
<br>
> > osad/jabber_lib.setup_connection('Connected to jabber server', <br>
> > '<<a href="http://spacewalk-server.domain.com" target="_blank">spacewalk-server.domain.com</a>>')<br>
> > 2016/08/02 08:38:25 -05:00 25556 <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>:
<br>
> > osad/jabber_lib.register('ERROR', 'Invalid password')<br>
> ><br>
> > What password would be invalid?  I am using a customized <br>
> > certificate, and its still valid for another two years. I can register servers just fine.  I can use rhn_check to retrieve updates, so I'm sure that the certificate is fine.<br>
> ><br>
> ><br>
> > There is another error that I see:<br>
> ><br>
> ><br>
> > 2016/08/01 09:36:22 -05:00 1552 <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>:
<br>
> > osad/jabber_lib.main('ERROR', 'Traceback (most recent call last):\n  <br>
> > File "/usr/share/rhn/osad/jabber_lib.py", line 119, in main\n    c = <br>
> > self.setup_connection(no_fork=no_fork)\n  File <br>
> > "/usr/share/rhn/osad/jabber_lib.py", line 283, in setup_connection\n    <br>
> > self.push_to_background()\n  File <br>
> > "/usr/share/rhn/osad/jabber_lib.py", line 213, in <br>
> > push_to_background\n    os.unlink(pid_file)\nOSError: [Errno 13] <br>
> > Permission denied: \'/var/run/osa-dispatcher.pid\'\n')<br>
> ><br>
> > Anyone have any suggestions?<br>
> ><br>
> > Thank you<br>
> ><br>
> > Daryl<br>
> ><br>
> ><br>
> ><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</div>
</span></font></div>
</div>
</div>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>