#8998 iad2: package-owner-aliases script needs python3 porting.
Closed: Invalid 3 years ago by pingou. Opened 3 years ago by kevin.

The script on bastion01.iad2/bastion02.iad2 that generates the package-maintainer aliases is broken.

Traceback (most recent call last):
File "/usr/local/bin/owner-email.py", line 62, in <module>
for project in get_pagure_projects():
File "/usr/local/bin/owner-email.py", line 45, in get_pagure_projects
data = response.json()
File "/usr/lib/python2.7/site-packages/requests/models.py", line 802, in json
return json.loads(self.text, **kwargs)
File "/usr/lib64/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
error creating owner-alias file

Its using python2 above, but we should move it to python3 and fix it.


Traceback (most recent call last):
File "/usr/local/bin/owner-email.py", line 62, in <module>
for project in get_pagure_projects():
File "/usr/local/bin/owner-email.py", line 45, in get_pagure_projects
data = response.json()

This looks like it failed to retrieve something from dist-git. Was this a cron
run during the outage?

I've just re-run this cron job manually and it succeeded, this was probably just a network hickup.

Metadata Update from @pingou:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata