When testing a migration of the FAmNA Trac to stg.pagure.io, the migration fails when attempting to import tickets from the Trac, and then creates a loop of repositories locally on the system.
I don't really have any leads on this one. :confused: I'm not sure of what the problem might even be.
<img alt="Trac permission settings" src="https://i.jwf.io/u/c879ed25d015561d1c0e0d6336e53bde.png" />
Link to screenshot if it doesn't embed correctly
$ pgimport clone ssh://git@stg.pagure.io/tickets/stg-famna.git Cloning into bare repository '/tmp/stg-famna.git'... warning: You appear to have cloned an empty repository. $ pgimport fedorahosted https://fedorahosted.org/famna/ --tags Enter you FAS Username: jflory7 Enter your FAS password: #### Repo available #### 1 - stg-famna.git Choose the import destination repo (default 1) : 1 ERROR: Error in response: {u'message': u'XML_RPC privileges are required to perform this operation', u'code': 403, u'name': u'JSONRPCError'} $ pgimport fedorahosted https://fedorahosted.org/famna/ --tags Enter you FAS Username: jflory7 Enter your FAS password: #### Repo available #### 1 - clone-stg-famna.git 2 - stg-famna.git Choose the import destination repo (default 1) : 1 ERROR: Error in response: {u'message': u'XML_RPC privileges are required to perform this operation', u'code': 403, u'name': u'JSONRPCError'} $ pgimport fedorahosted https://fedorahosted.org/famna/ --tags Enter you FAS Username: jflory7 Enter your FAS password: #### Repo available #### 1 - clone-clone-stg-famna.git 2 - clone-stg-famna.git 3 - stg-famna.git Choose the import destination repo (default 1) : 1 ERROR: Error in response: {u'message': u'XML_RPC privileges are required to perform this operation', u'code': 403, u'name': u'JSONRPCError'} $ pgimport fedorahosted https://fedorahosted.org/famna/ --tags Enter you FAS Username: jflory7 Enter your FAS password: #### Repo available #### 1 - clone-clone-clone-stg-famna.git 2 - clone-clone-stg-famna.git 3 - clone-stg-famna.git 4 - stg-famna.git Choose the import destination repo (default 1) : 4 Traceback (most recent call last): File "/usr/bin/pgimport", line 9, in <module> load_entry_point('pagure-importer==1.2.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 "build/bdist.linux-x86_64/egg/pagure_importer/commands/fedorahosted.py", line 24, in fedorahosted File "build/bdist.linux-x86_64/egg/pagure_importer/utils/importer_trac.py", line 51, in import_issues File "build/bdist.linux-x86_64/egg/pagure_importer/utils/git.py", line 32, in clone_repo File "/usr/lib64/python2.7/site-packages/pygit2/__init__.py", line 255, in clone_repository check_error(err) File "/usr/lib64/python2.7/site-packages/pygit2/errors.py", line 49, in check_error raise ValueError(message) ValueError: '/tmp/clone-stg-famna.git' exists and is not an empty directory
For the clone-* folder you just need to delete them.
Regarding the XML-RPC privilege I am not so sure why u get the error, but it seems that Trac thinks that u don't have the correct privileges
@cverna I have no leads here either. :( I just tried again in case it was some temporary issue, but I still have the same problem.
@jflory7 Can you try to toggle off & on your XML-RPC privileges. And try again ?
If this still does not work can you give me the privileges on this project so I can try to investigate a little more.
Thanks
@cverna Tried removing myself with the permissions and tried again to no luck. I added you as a Trac admin here.
@cverna Any leads on this?
@jflory7 I was away for couple weeks, I am starting to look at it :smile:
@cverna Great, thanks! Feel free to ping me if you need anything from me to help test. :)
@jflory7 I have tried on myside but without more luck than you. I don't rekon the issue comes from pagure-importer but more likely from trac.
I have no experience in trac admin so I don't really know where to look at. Maybe you could ask @kevin to have a quick look at it ;)
@jflory7 Everything looks right from the trac end, but obviously something is going wacky.
Let me know when you are around and I can enable debugging and see if we can track it down.
ok. Tracked it down. The problem is a trailing / If you pass a / at the end of the hosted project, it will fail this way.
fixed by #59
Awesome! I will test the changes later tonight with the FAmNA Trac.
@cverna Took longer than I expected to get around with it, but the import worked perfectly. I would call this issue good-to-close. :100:
Good news :)
@cverna changed the status to Closed
Closed
Login to comment on this ticket.