Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 527798

Summary: 500 Server Error: Internal Server Error for url: https://bugs.eclipse.org/bugs/xmlrpc.cgi
Product: Community Reporter: Nick Boldt <nboldt>
Component: BugzillaAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: denis.roy
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Nick Boldt CLA 2017-11-27 09:54:12 EST
Not sure what happened this weekend, but xmlrpc.cgi is no longer working.

For years, we 've run a script to scrape BZ and clone issues into JIRA for better agile tracking. But as of today, that script is crapping out with this error:

09:51:25     bz = bugzilla.Bugzilla(url=bzserver + "xmlrpc.cgi")
09:51:25   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/base.py", line 318, in __init__
09:51:25     self.connect(url)
09:51:25   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/base.py", line 559, in connect
09:51:25     version = self._proxy.Bugzilla.version()["version"]
09:51:25   File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
09:51:25     return self.__send(self.__name, args)
09:51:25   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/transport.py", line 100, in _ServerProxy__request
09:51:25     ret = ServerProxy._ServerProxy__request(self, methodname, params)
09:51:25   File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
09:51:25     verbose=self.__verbose
09:51:25   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/transport.py", line 195, in request
09:51:25     return self._request_helper(url, request_body)
09:51:25   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/transport.py", line 172, in _request_helper
09:51:25     response.raise_for_status()
09:51:25   File "/home/hudson/.local/lib/python2.7/site-packages/requests/models.py", line 935, in raise_for_status
09:51:25     raise HTTPError(http_error_msg, response=self)
09:51:25 requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://bugs.eclipse.org/bugs/xmlrpc.cgi

Here's the full script for reference:

https://github.com/jbosstools/jiralint/blob/master/bzira.py#L564
Comment 1 Denis Roy CLA 2017-11-27 10:57:35 EST
Should work now, please try?
Comment 2 Nick Boldt CLA 2017-11-27 11:15:01 EST
Better, but not as before:

11:14:06   File "bzira.py", line 573, in <module>
11:14:06     bz = bugzilla.Bugzilla(url=bzserver + "xmlrpc.cgi")
11:14:06   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/base.py", line 319, in __init__
11:14:06     self._init_class_from_url()
11:14:06   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/base.py", line 334, in _init_class_from_url
11:14:06     extensions = self._proxy.Bugzilla.extensions()
11:14:06   File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
11:14:06     return self.__send(self.__name, args)
11:14:06   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/transport.py", line 100, in _ServerProxy__request
11:14:06     ret = ServerProxy._ServerProxy__request(self, methodname, params)
11:14:06   File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
11:14:06     verbose=self.__verbose
11:14:06   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/transport.py", line 195, in request
11:14:06     return self._request_helper(url, request_body)
11:14:06   File "/home/hudson/.local/lib/python2.7/site-packages/bugzilla/transport.py", line 158, in _request_helper
11:14:06     url, data=request_body, **self.request_defaults)
11:14:06   File "/home/hudson/.local/lib/python2.7/site-packages/requests/sessions.py", line 555, in post
11:14:06     return self.request('POST', url, data=data, json=json, **kwargs)
11:14:06   File "/home/hudson/.local/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
11:14:06     resp = self.send(prep, **send_kwargs)
11:14:06   File "/home/hudson/.local/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
11:14:06     r = adapter.send(request, **kwargs)
11:14:06   File "/home/hudson/.local/lib/python2.7/site-packages/requests/adapters.py", line 490, in send
11:14:06     raise ConnectionError(err, request=request)
11:14:06 requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
Comment 3 Nick Boldt CLA 2017-11-29 15:23:22 EST
https://bugs.eclipse.org/bugs/xmlrpc.cgi returns an empty file. 

So, I'm guessing I need to migrate my script to use the new REST API instead.

https://bugzilla.readthedocs.io/en/latest/api/core/v1/bug.html#search-bugs

Since xmlrpc.cgi is no longer returning a 500 error, I guess this *IS* fixed, sorta.
Comment 4 Nick Boldt CLA 2017-12-18 15:48:00 EST
Well, for no apparent reason this works again. Maybe Jenkins just needed to be updated & restarted a few times. 

TL;DR, we're all good.
Comment 5 Denis Roy CLA 2017-12-19 10:08:02 EST
Thanks for circling back!