Fail to Import Issues from Github

Hi,

I have trouble importing issues from github into my self-hosted youtrack

flowing the official documentation.

 

https://www.jetbrains.com/help/youtrack/standalone/import-from-github.html


first try:
-----
`github2youtrack -u admin -p <youtrack pw> https://youtrack.xxx.io <github_user> <github pw> <github repo name>`
Traceback (most recent call last):
  File "/home/xx/miniconda3/envs/youtrack/bin/github2youtrack", line 11, in <module>
    sys.exit(main())
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrackutils/github2youtrack.py", line 47, in main
    github_user, github_password, github_repo, youtrack_url, youtrack_login, youtrack_password = sys.argv[1:8]
ValueError: too many values to unpack
----

second try, this time without flags and using the order suggested in the error message above:

`$github2youtrack <github user> <github pw> <github repo> https://youtrack.xxx.io admin  <youtrack pw> `
 
Traceback (most recent call last):
  File "/home/xx/miniconda3/envs/youtrack/bin/github2youtrack", line 11, in <module>
    sys.exit(main())
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrackutils/github2youtrack.py", line 62, in main
    comments_file=comments_csv_file))
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrackutils/csv2youtrack.py", line 245, in csv2youtrack
    importer.import_csv()
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrackutils/csv2youtrack.py", line 275, in import_csv
    self.do_import(projects, new_projects_owner_login)
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrack/youtrackImporter.py", line 27, in do_import
    self._create_project(project_id, project_name, new_projects_owner_login)
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrack/youtrackImporter.py", line 57, in _create_project
    self._target.createProjectDetailed(project_id, project_name, u'', project_lead_login)
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrack/connection.py", line 721, in createProjectDetailed
    'startingNumber': str(startingNumber)}))
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrack/connection.py", line 184, in _put
    return self._reqXml('PUT', url, '<empty/>\n\n')
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrack/connection.py", line 160, in _reqXml
    method, url, body, ignoreStatus, "application/xml")
  File "/home/xx/miniconda3/envs/youtrack/lib/python2.7/site-packages/youtrack/connection.py", line 40, in wrapped
    raise e
youtrack.YouTrackException: Error for [/admin/project/<gihtub repo>?projectName=<github repo>&projectLeadLogin=root&description=+&lead=root&startingNumber=1]: 400: Bad Request: Bad Request

----------

self-hosted youtrack with official docker image: jetbrains/youtrack:2018.1.40066 + nginx reverse proxy for https

pip freeze:
$ pip freeze
BeautifulSoup==3.2.1
certifi==2018.1.18
chardet==3.0.4
Genshi==0.7
httplib2==0.11.3
idna==2.6
pyactiveresource==2.1.2
python-dateutil==2.7.2
requests==2.18.4
six==1.11.0
Trac==1.2.2
urllib3==1.22
youtrack==0.1.8
youtrack-scripts==0.1.14

Edited: correct link

5 comments
Comment actions Permalink

Yes, I did. I cp the wrong link (fixed now).

0
Comment actions Permalink

Is it possible that you have symbols different from letters and ciphers in your repo's name? Also, is it possible to provide us with YouTrack log (open a support request)?

0
Comment actions Permalink

Does dash as in 'xxx-xx' qualify as cipher?

0
Comment actions Permalink

Fixed in `youtrack-scripts==0.1.16`. Just make sure that you have a 'root' user and

it helped me to temporally run youtrack under http instead of https (nginx reverse proxy was blocking rest call).

0

Please sign in to leave a comment.