Exception when importing from on premise YouTrack to Cloud version

I am trying to push my on premise YouTrack to the cloud version. I am using the python client library and using the youtrack2youtrack.py script. On the smaller of my two projects all the issues imported fine including issue attachments.

However on my larger project I am getting and exception when trying to tranfser an attachment on a specific issue and this kills the entire import process.

Transfer attachments

Transfer attachment of BNK-9: AnisotropyArtifacts.jpg

Traceback (most recent call last):

  File "C:\Users\username\Desktop\youtrack-python-api-3.0.2-44\python\youtrack2youtrack.py", line 233, in <module>

    main()

  File "C:\Users\ username \Desktop\youtrack-python-api-3.0.2-44\python\youtrack2youtrack.py", line 21, in main

    youtrack2youtrack(source_url, source_login, source_password, target_url, tar

get_login, target_password, project_ids)

  File "C:\Users\ username\Desktop\youtrack-python-api-3.0.2-44\python\youtrack2youtrack.py", line 217, in youtrack2youtrack    target.createAttachmentFromAttachment(issue.id, a)

  File "C:\Users\ username\Desktop\youtrack-python-api-3.0.2-44\python\youtrack\connection.py", line 105, in createAttachmentFromAttachment

    group=a.group if hasattr(a, 'group') else '')

  File "C:\Users\username\Desktop\youtrack-python-api-3.0.2-44\python\youtrack\connection.py", line 139, in createAttachment

    raise e

urllib2.HTTPError: HTTP Error 404: Not Found

The attachment in question is 209kb on the source server and loads correctly locally. Any ideas? Moreover, is there an eaiser / more robust migration story for moving from on premise youtrack to hosted that I am missing?

I am transferring my entire local youtrack to the cloud and the docs mention that a simple DB copy would do what I want, but presumably I cannot just import a DB file into the cloud version?

Thanks

4 comments
Comment actions Permalink

Hello Brad.

You can provide us a backUp archive of your YouTrack DB and we can place it in your instance.

--

Sergey Andreev

QA Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Thanks, I have sent and email to that address with a copy of our DB. Thanks for the quick response.

0
Comment actions Permalink

Got troubles importing from YouTrack 2.1.2 (build #783 [10-Oct-2010 17:51] ) standalone to YouTrack inCloud with youtrack2youtrack.py (tried python 2.6.4 and 2.7.1). Regardless of the project size it crashes on the same stage:

Import issue link types

Error for [/admin/issueLinkType/Depend?inwardName=is+required+for&directed=false&outwardName=depends+on]: 409: Conflict: Issue link type [ Depend ] already exists.

Error for [/admin/issueLinkType/Duplicate?inwardName=is+duplicated+by&directed=false&outwardName=duplicates]: 409: Conflict: Issue link type [ Duplicate ] already exists.

Error for [/admin/issueLinkType/Relates?inwardName=%09is+related+to&directed=false&outwardName=%09relates]: 409: Conflict: Issue link type [ Relates ] already exists.

Import project [...censored...]

Create project lead [...censored...]

<list>

  ...censored...

</list>

None

Import issues

Get issues from 0 to 20

Collect users for issue [ rase_media-1]

Traceback (most recent call last):

  File "youtrack2youtrack.py", line 233, in <module>

    main()

  File "youtrack2youtrack.py", line 21, in main

    youtrack2youtrack(source_url, source_login, source_password, target_url, target_login, target_password, project_ids)

  File "youtrack2youtrack.py", line 192, in youtrack2youtrack

    if issue.updaterName not in createdUsers:

AttributeError: 'Issue' object has no attribute 'updaterName'

0

Please sign in to leave a comment.