Import failed

Asked by Yann SLADEK

Hi,

I tried to import Cairo-Dock project from Berlios SVN. It works well with cairo-dock branch (it failed at first but when it was restarted, it was working great) but import the plugins failed

Here is the error message :

Traceback (most recent call last):
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/scripts/code-import-worker.py", line 61, in ?
    script.main()
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/scripts/code-import-worker.py", line 56, in main
    import_worker.run()
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/lp/codehosting/codeimport/worker.py", line 396, in run
    self._doImport()
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/lp/codehosting/codeimport/worker.py", line 474, in _doImport
    self.importToBazaar(foreign_tree, bazaar_tree)
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/lp/codehosting/codeimport/worker.py", line 451, in importToBazaar
    self._runToBaz(
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/lp/codehosting/codeimport/worker.py", line 469, in _runToBaz
    totla.totla(config, self._logger, config.args, SCM.tree(source_dir))
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/cscvs/cmds/totla.py", line 252, in totla
    apply_changeset(source_tree, logger, apply, revision, target_tree, revisions)
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/cscvs/cmds/totla.py", line 120, in apply_changeset
    for index, fileChange in enumerate(revisions):
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/ChangesIterator.py", line 91, in next
    return self._iterator.next()
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 321, in evaluateChanges
    for modification in changeset.evaluateModifications():
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 636, in evaluateModifications
    return self._evaluateChildrenModifications()
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 583, in _evaluateChildrenModifications
    return self._evaluateChildren(
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 591, in _evaluateChildren
    child_values = evaluator(child)
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 584, in <lambda>
    lambda child: child.evaluateModifications())
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 636, in evaluateModifications
    return self._evaluateChildrenModifications()
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 583, in _evaluateChildrenModifications
    return self._evaluateChildren(
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 591, in _evaluateChildren
    child_values = evaluator(child)
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 584, in <lambda>
    lambda child: child.evaluateModifications())
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 636, in evaluateModifications
    return self._evaluateChildrenModifications()
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 583, in _evaluateChildrenModifications
    return self._evaluateChildren(
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 591, in _evaluateChildren
    child_values = evaluator(child)
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 584, in <lambda>
    lambda child: child.evaluateModifications())
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 946, in evaluateModifications
    self_modification = self._makeSelfModification()
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 959, in _makeSelfModification
    kind = self._translator.nodeKind(abspath, revision)
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/changeset.py", line 243, in nodeKind
    parent_listing = self.listDir(parent_path, revision)
  File "/srv/importd.launchpad.net/production/launchpad-rev-8324/lib/svn_oo/ChangesIterator.py", line 52, in listDir
    listing = client.ls(encoded_url, revision=revision, recurse=False)
pysvn._pysvn_2_4.ClientError: Connection closed unexpectedly
Import failed:
Traceback (most recent call last):
Failure: twisted.internet.error.ProcessTerminated: A process has ended with a probable error condition: process ended with exit code 1.

Thanks for your support

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Paul Hummer (rockstar) said :
#1

Unfortunately, cscvs (the library used to do imports) doesn't handle server interruptions well. I'll try it again, but if the server is interrupting, we may need to try some other methods.

Revision history for this message
Matthieu Baerts (matttbe) said :
#2

Hi Paul,

Thanks for your support but the two last importations have failed too.
We want quit Berlios also for that :-) !

What can we do now ?
Can we import the last X revisions ? one or two hundred revisions ?
Or trying to import during parts of one or two hours ? And stop and continue this importation some time after.

Revision history for this message
Tim Penhey (thumper) said :
#3

If you are just looking to move off subversion and onto Bazaar, then there are other options.

Setting up a subversion mirror is normally for when you are wanting to keep the two in sync.

Revision history for this message
Matthieu Baerts (matttbe) said :
#4

Hello Tim,

How can we change that ?
We can't do anything on this webpage : https://code.edge.launchpad.net/~vcs-imports/cairo-dock-plug-ins/trunk .

We want leave Berlios SVN but we want also keep all modifications if it's possible.

Thanks for your support.

Revision history for this message
Matthieu Baerts (matttbe) said :
#5

Hello,

We think having searched everywhere but we can't change anything!
Do we ask an other question in order to solve this problem ?

Thanks for your help,

Matthieu Baerts for the Cairo-Dock Team.

Revision history for this message
Tim Penhey (thumper) said :
#6

Sorry for not getting back to you.

There are a number of options if our imports are failing:
  bzr-svn allows for conversion and following of a Subversion repository
  bzr fast-import allows a one off conversion from a fast-export stream.

Personally I think using bzr-svn would be the easiest solution to move from Subversion to Bazaar.

Revision history for this message
Matthieu Baerts (matttbe) said :
#7

Thanks for your answer Tim !
But how can we use 'bzr-svn' ? Where can I see these options in Launchpad ?

The only page about the code is here : https://code.edge.launchpad.net/~vcs-imports/cairo-dock-plug-ins/trunk
And we can't change anything (maybe because the owner is 'VCS imports' ?)

Thank you for having taken time to help us !

Revision history for this message
Tim Penhey (thumper) said :
#8

Right now, launchpad doesn't support bzr-svn. We are waiting on some infrastructural changes to allow us to use a more up to date Python. I get the feeling that we are much closer, but it is likely to be a month or two before Launchpad uses bzr-svn for Subversion imports (we really *really* want to move to it).

What I was meaning however, was you could personally import from Subversion into Bazaar to make a switch.

If you are wanting to keep both Subversion and Bazaar in sync for a while then either you would have to keep your own sync job running or wait for Launchpad to support Subversion better through bzr-svn.

Revision history for this message
Matthieu Baerts (matttbe) said :
#9

Thanks for your support Tim.

So we want quit Berlios with Subversion in order to use Launchpad with Bazaar.

We want firstly use bzr in lp for the translation tool.
I have tried to upload manually our '.pot' and '.po' files in this cairo-dock-plug-ins branch but if I do this in a terminal :
  $ bzr branch lp:cairo-dock-plug-ins
I have this output :
  bzr: ERROR: Not a branch: "bzr+ssh://bazaar.launchpad.net/~vcs-imports/cairo-dock-plug-ins/trunk/".

I think it's maybe easier for everybody to sync only our 'po' repertory from the svn (svn://svn.berlios.de/cairo-dock/trunk/plug-ins/po/). When this 'bzr-svn' tool will be ok can you import all the 'plug-ins' repertory ?

Thanks a lot !

Have a nice day.

Revision history for this message
Matthieu Baerts (matttbe) said :
#10

Hello,

We have tried to import this plug-ins branch manually with these two commands :

  $ bzr branch http://svn.berlios.de/svnroot/repos/cairo-dock/trunk/plug-ins
  $ bzr push --use-existing-dir lp:~cairo-dock-team/cairo-dock-plug-ins/test-import

It seems that there is no problem. You can see the result with this link : https://code.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins/test-import

So we have proposed for merging this 'test-import' branch into the main branch owned by 'VCS imports'. But the statut is still 'Pending'. So is it possible to merge the 'test-import' branch, reactivate the import by vcs import and keep only the main branch after that ? https://code.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins/test-import/+merge/10350

Thanks for your help.

Revision history for this message
Tim Penhey (thumper) said :
#11

You can't merge anything into the main import branch. What you can do though is make your import branch trunk, and ditch the vcs-imports one.

Revision history for this message
Matthieu Baerts (matttbe) said :
#12

Thanks for your answer.

If we can do nothing with this branch, can you remove it ?
https://code.launchpad.net/~vcs-imports/cairo-dock-plug-ins/trunk/+delete => none of the 'Cairo-Dock Team' have the permission...

Thank you for having taken time to help us !

Have a nice day.

Revision history for this message
Paul Hummer (rockstar) said :
#13

I'd love to delete it for you, except it's currently linked to a series, so I cannot delete it until it's unlinked by someone on the Cairo Dock team. Once that's done, I can delete it.

Revision history for this message
Matthieu Baerts (matttbe) said :
#14

I'm sorry for that. It's done.

Revision history for this message
Paul Hummer (rockstar) said :
#15

Branch is deleted. Have a great day!

Revision history for this message
Matthieu Baerts (matttbe) said :
#16

Thanks a lot !
Have a great day too !

Revision history for this message
razeghi (razeghi71) said :
#17

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3tFvMi5U/FXF/+jE9vr0/SZO1YxHnHmFAy7LNhbcQYSv6s/FIRaXblej2N/GdmBlPjGooOItQSGetTMXHOg67GkqVngwppCB9NYbW4U47yICBUU2uAaq2DP3LJRk4XXOH9EV0SLKx8GmvFmu/qYhJwnKdnF8bx8rhfrvnlu9kWNNsnZ8RzvXg/w168/RtPskZTBIxLRjFA9DymZgx5hQKDs/JCpqi3Wg1O02YxeaOdvNfEJ1jdbYpNP2xOy0sJdNgxZzVzxnLfINjXryviD6S5K44GNgvUvNpKi0q/hNMEJmxkSFexaT9HHkfkOLa9pikH0N7DV0YbRsJjI6UiDAuQ== pdp@pdp-desktop

Can you help with this problem?

Provide an answer of your own, or ask Yann SLADEK for more information if necessary.

To post a message you must log in.