Skip to content

Instantly share code, notes, and snippets.

@davidbirdsong
Last active December 17, 2015 23:19
Show Gist options
  • Save davidbirdsong/5688501 to your computer and use it in GitHub Desktop.
Save davidbirdsong/5688501 to your computer and use it in GitHub Desktop.
cobbler login failed
[root@ops-2 ~]# cobbler help
Traceback (most recent call last):
File "/usr/bin/cobbler", line 35, in <module>
sys.exit(app.main())
File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 558, in main
rc = cli.run(sys.argv)
File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 202, in run
self.token = self.remote.login("", self.shared_secret)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
return u.close()
File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: "<class 'cobbler.cexceptions.CX'>:'login failed'">
[root@ops-2 ~]# tail -f /var/log/cobbler/cobbler.log
Fri May 31 23:02:14 2013 - INFO | Exception occured: <class 'cobbler.cexceptions.CX'>
Fri May 31 23:02:14 2013 - INFO | Exception value: 'login failed'
Fri May 31 23:02:14 2013 - INFO | Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1970, in _dispatch
return method_handle(*params)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1757, in login
utils.die(self.logger, "login failed")
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in die
raise CX(msg)
Fri May 31 23:02:54 2013 - INFO | Exception occured: <class 'cobbler.cexceptions.CX'>
Fri May 31 23:02:54 2013 - INFO | Exception value: 'login failed'
Fri May 31 23:02:54 2013 - INFO | Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 126, in die
raise CX(msg)
Fri May 31 23:02:54 2013 - INFO | Exception occured: <class 'cobbler.cexceptions.CX'>
Fri May 31 23:02:54 2013 - INFO | Exception value: 'login failed'
Fri May 31 23:02:54 2013 - INFO | Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1970, in _dispatch
return method_handle(*params)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1757, in login
utils.die(self.logger, "login failed")
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in die
raise CX(msg)
@kidchang
Copy link

If it's a newly installed, did you set up your "default_password_crypted" in /etc/cobbler/settings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment