#77 Cannot log into Bugzilla, API issue.
Opened by limb. Modified

Please enter your FASJSON username: limb
Please enter your Bugzilla username: gwync@protonmail.com
Please enter your Bugzilla password:
Traceback (most recent call last):
File "/usr/bin/fedscm-admin", line 33, in
sys.exit(load_entry_point('fedscm-admin==1.1.4', 'console_scripts', 'fedscm-admin')())
File "/usr/lib/python3.10/site-packages/click/core.py", line 1137, in call
return self.main(args, kwargs)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "/usr/lib/python3.10/site-packages/click/core.py", line 763, in invoke
return __callback(
args, kwargs)
File "/usr/lib/python3.10/site-packages/fedscm_admin/fedscm_admin.py", line 76, in cli
login_to_bugzilla_with_user_input()
File "/usr/lib/python3.10/site-packages/fedscm_admin/utils.py", line 55, in login_to_bugzilla_with_user_input
BUGZILLA_CLIENT.login(username, password)
File "/usr/lib/python3.10/site-packages/fedscm_admin/bugzilla.py", line 77, in login
self.client.login(username, password)
File "/usr/lib/python3.10/site-packages/fedscm_admin/bugzilla.py", line 63, in client
self._client = Bugzilla(self.api_url, use_creds=True)
File "/usr/lib/python3.10/site-packages/bugzilla/base.py", line 251, in init
self.connect(url)
File "/usr/lib/python3.10/site-packages/bugzilla/base.py", line 526, in connect
version = self._backend.bugzilla_version()["version"]
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 146, in bugzilla_version
return self._xmlrpc_proxy.Bugzilla.version()
File "/usr/lib64/python3.10/xmlrpc/client.py", line 1122, in call
return self.__send(self.__name, args)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 125, in _ServerProxy__request
ret = ServerProxy._ServerProxy__request(
File "/usr/lib64/python3.10/xmlrpc/client.py", line 1464, in __request
response = self.__transport.request(
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 100, in request
return self.__request_helper(url, request_body)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 47, in __request_helper
return self.parse_response(response)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 84, in parse_response
return unmarshaller.close()
File "/usr/lib64/python3.10/xmlrpc/client.py", line 668, in close
raise Fault(
self._stack[0])
xmlrpc.client.Fault:


I have fixed the issue and processed all the tickets in the queue. There will be a bodhi update coming tomorrow.

Upgraded to 1.1.5, got a traceback. Anything I need to do? I have a BZ API key but don't know where to put it.

Please enter your FASJSON username: limb
Traceback (most recent call last):
File "/usr/bin/fedscm-admin", line 33, in
sys.exit(load_entry_point('fedscm-admin==1.1.5', 'console_scripts', 'fedscm-admin')())
File "/usr/lib/python3.10/site-packages/click/core.py", line 1137, in call
return self.main(args, kwargs)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "/usr/lib/python3.10/site-packages/click/core.py", line 763, in invoke
return __callback(
args, kwargs)
File "/usr/lib/python3.10/site-packages/fedscm_admin/fedscm_admin.py", line 76, in cli
login_to_bugzilla_with_user_input()
File "/usr/lib/python3.10/site-packages/fedscm_admin/utils.py", line 46, in login_to_bugzilla_with_user_input
BUGZILLA_CLIENT.client.interactive_save_api_key()
File "/usr/lib/python3.10/site-packages/fedscm_admin/bugzilla.py", line 63, in client
self._client = Bugzilla(self.api_url)
File "/usr/lib/python3.10/site-packages/bugzilla/base.py", line 251, in init
self.connect(url)
File "/usr/lib/python3.10/site-packages/bugzilla/base.py", line 526, in connect
version = self._backend.bugzilla_version()["version"]
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 146, in bugzilla_version
return self._xmlrpc_proxy.Bugzilla.version()
File "/usr/lib64/python3.10/xmlrpc/client.py", line 1122, in call
return self.__send(self.__name, args)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 125, in _ServerProxy__request
ret = ServerProxy._ServerProxy__request(
File "/usr/lib64/python3.10/xmlrpc/client.py", line 1464, in __request
response = self.__transport.request(
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 100, in request
return self.__request_helper(url, request_body)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 47, in __request_helper
return self.parse_response(response)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 84, in parse_response
return unmarshaller.close()
File "/usr/lib64/python3.10/xmlrpc/client.py", line 668, in close
raise Fault(
self._stack[0])
xmlrpc.client.Fault:

Any suggestions? Still can't process the queue.

Try to remove ~/.config/python-bugzilla/ or any other places with previously-stored BZ credentials.

Can't find that or .bugzillarc

snip from IRC

<mboddu> GwynCieslasheher:  ~/.cache/python-bugzilla/bugzillatoken is the problem for me, I renamed it and it worked for me

A new version with couple of fixes is in making.

Metadata