On Red Hat Satellite, Taskomatic and Cobbler show "login failed (taskomatic user)" errors

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.x

Issue

  • Cobbler log shows "REMOTE invalid token; user(???)" error:
Mon Jul 18 16:17:00 2011 - INFO | REMOTE invalid token; user(???)
Mon Jul 18 16:17:00 2011 - INFO | Exception occured: <class 'cobbler.cexceptions.CX'>
Mon Jul 18 16:17:00 2011 - INFO | Exception value: 'invalid token: <snip>'
Mon Jul 18 16:17:00 2011 - INFO | Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1759, in _dispatch
    return method_handle(*params)
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1592, in token_check
    self.__validate_token(token)
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1504, in __validate_token
    raise CX("invalid token: %s" % token)
Mon Jul 18 16:17:00 2011 - INFO | authenticate; ['taskomatic_user', True]
  • Taskomatic log shows "login failed (taskomatic_user)" error:
INFO   | jvm 1    | 2014/01/13 19:25:26 | redstone.xmlrpc.XmlRpcFault: cobbler.cexceptions.CX:'login failed (taskomatic_user)'
  • no old or new kickstart profiles showing up in the Satellite web UI

Resolution

  • Verify that the cobbler configuration files have the correct settings:

    • Under /etc/cobbler/settings entries should be (replace server.example.com with the Satellite's fully-qualified domain name):
    next_server: server.example.com
    redhat_management_type: "site"
    redhat_management_server: "server.example.com"
    server: server.example.com
    pxe_just_once: 1
    
    • In the "authentication" section of /etc/cobbler/modules.conf:
    module = authn_spacewalk
    
  • If the FQDN settings are incorrect, follow the steps in How do I reconfigure the RHN Satellite if I change the IP address, Domain name or hostname (FQDN)?

  • Note: Taskomatic may fail to connect to Cobbler if the cobblerd service is restarted manually, separate from the other Satellite services. Cobbler should only be stopped and started as part of the rhn-satellite command, which will correctly ensure that Taskomatic is not running when Cobbler is down.

Diagnostic Steps

  • Restart Satellite services and observe the log /var/log/cobbler/cobbler.log is showing output every minute with the following set of errors:
Fri Jul  8 12:54:48 2011 - INFO | REMOTE invalid token; user(???)
Fri Jul  8 12:54:48 2011 - INFO | Exception occured: cobbler.cexceptions.CX
Fri Jul  8 12:54:48 2011 - INFO | Exception value: 'invalid token: <snip>'
Fri Jul  8 12:54:48 2011 - INFO | Exception Info:
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1759, in _dispatch
    return method_handle(*params)
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1592, in token_check
    self.__validate_token(token)
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1504, in __validate_token
    raise CX("invalid token: %s" % token)
Fri Jul  8 12:54:48 2011 - INFO | authenticate; ['taskomatic_user', False]
Fri Jul  8 12:54:48 2011 - INFO | Exception occured: cobbler.cexceptions.CX
Fri Jul  8 12:54:48 2011 - INFO | Exception value: 'login failed (taskomatic_user)'
Fri Jul  8 12:54:48 2011 - INFO | Exception Info:
  File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 123, in die
    raise CX(msg)
Fri Jul  8 12:54:48 2011 - INFO | Exception occured: cobbler.cexceptions.CX
Fri Jul  8 12:54:48 2011 - INFO | Exception value: 'login failed (taskomatic_user)'
Fri Jul  8 12:54:48 2011 - INFO | Exception Info:
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1759, in _dispatch
    return method_handle(*params)
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1576, in login
    utils.die(self.logger, "login failed (%s)" % login_user)
  File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 131, in die
    raise CX(msg)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

6 Comments

Security advisory: http://rhn.redhat.com/errata/RHBA-2012-0072.html

Bug fixed on cobbler-2.0.7-14 .

I have the same problem in version:

[root@rhnsat cobbler]# rpm -qa |grep cob
cobbler-2.0.7-23.el6sat.noarch
[root@rhnsat cobbler]#

[root@rhnsat cobbler]# tail -f /var/log/cobbler/cobbler.log
Thu Aug 1 18:55:51 2013 - INFO | Exception occured:
Thu Aug 1 18:55:51 2013 - INFO | Exception value: 'login failed (taskomatic_user)'
Thu Aug 1 18:55:51 2013 - INFO | Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1758, in _dispatch
return method_handle(*params)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1576, in login
utils.die(self.logger, "login failed (%s)" % login_user)
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 131, in die
raise CX(msg)

I've got the same problem as well..

[root@ord-sat-01 cobbler]# rpm -qa | grep cob
cobbler-2.0.7-14.6.el6sat.noarch

Thu Oct 3 13:32:00 2013 - INFO | Exception occured:
Thu Oct 3 13:32:00 2013 - INFO | Exception value: 'login failed (taskomatic_user)'
Thu Oct 3 13:32:00 2013 - INFO | Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1758, in _dispatch
return method_handle(*params)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1576, in login
utils.die(self.logger, "login failed (%s)" % login_user)
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 131, in die
raise CX(msg)

^^ I also double-checked the configuration of the files mentioned above and they are set correctly.

Hi Elizabeth,

If this solution didn't resolve the problem for you, I suggest that you open a support case so that we can assist you with this issue. Alternately, you could start a new discussion about this issue in our support community.

Thanks David,

I just didn't want to spam by opening a new thread, and figured since someone else noted having the same issue in August I'd mention it. I've got a case open for another Satellite issue and this may be related.

Elizabeth

Thought this would be worth sharing as a whoopsie.

I had this issue on my dev env which was caused by me adding some configuration to the httpd conf to run up another virtual host.
Basically I took out the rpc/api with my config. Might pay to have a quick look at the access.log to make sure you do not have 404's on satellite calls .
"POST /rpc/api HTTP/1.0" 404 - "-" "xmlrpclib.py/1.0.1 (by www.pythonware.com)"

Obviously if the api is not there(404) then cobbler cannot auth against Satellite.

Wed Jan 29 09:19:00 2014 - INFO | Exception occured:
Wed Jan 29 09:19:00 2014 - INFO | Exception value: 'login failed (taskomatic_user)'
Wed Jan 29 09:19:00 2014 - INFO | Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1759, in _dispatch
return method_handle(*params)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1577, in login
utils.die(self.logger, "login failed (%s)" % login_user)
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 131, in die
raise CX(msg)