#30 [blocker] IOError: unsupported XML-RPC protocol
Closed: Fixed 7 years ago Opened 7 years ago by jflory7.

Problem

When running the importer, I am able to clone the destination repo, run the importer, log in, but not complete the import. While running, I receive an IOError on an unsupported XML-RPC protocol.

Analysis

I receive the following stacktrace when running the command.

$ pgimport fedorahosted fedorahosted.org/fedora-commops/ --tags
Enter you FAS Username: jflory7
Enter your FAS password:

Repo available

1 - pagure-importer-test.git
2 - fedora-marketing.git
3 - fedora-commops.git

Choose the import destination repo (default 1) : 1
Traceback (most recent call last):
File "/usr/bin/pgimport", line 9, in <module>
load_entry_point('pagure-importer==1.1.0', 'console_scripts', 'pgimport')()
File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in call
return self.main(args, kwargs)
File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(
args, **kwargs)
File "/usr/lib/python2.7/site-packages/pagure_importer/commands/fedorahosted.py", line 26, in fedorahosted
trac_importer = importer_trac.TracImporter(rpc_url, fasclient, tags)
File "/usr/lib/python2.7/site-packages/pagure_importer/utils/importer_trac.py", line 11, in init
self.trac = ServerProxy(trac_project_url)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1573, in init
raise IOError, "unsupported XML-RPC protocol"
IOError: unsupported XML-RPC protocol

I tried installing the python-offtrac package to see if this would fix it, but it did not work as expected. Currently, I am unable to progress further with importing the repository due to this issue.


I just noticed PR #23 which seems to address this. If that change could be made available to the Copr repository, I would love to be able to test it, @cverna! :grin: I have two instances ready to move over.

Edit: Now I'm remembering why this is a problem, it's because of my FAS password. I think this problem is isolated to just me for now (but potentially others in the future).

I'm finding a lot of things only after filing the issues…

So, I found @cverna's fork with the json-rpc branch. Using the code there, I was able to build, install, and successfully run the importer without any issue whatsoever. I am quite pleased and happy! That branch (PR #23) obsoletes this issue.

:100: :100: :100:

@cverna++

/me is really happy to finally migrate some Trac instances

Great news :) the JSON-RPC branch was just for you :smile:

@cverna changed the status to Fixed

7 years ago

Login to comment on this ticket.

Metadata