Error Importing from FogBugz

I'm attempting to import all of my data from FogBugz. I assumed "all data" means it would import users as well, but I'm getting an error when it reaches the part of the python script to import users. The error I'm receiving is this:

Traceback (most recent call last):
  File "fb2youtrack.py", line 296, in <module>
    main()
  File "fb2youtrack.py", line 28, in main
    fb2youtrack(target_url, target_login, target_password, source_url, source_lo
gin, source_password, project_names, max_issue_id)
  File "fb2youtrack.py", line 213, in fb2youtrack
    _do_import_users(target, users_to_import)
  File "fb2youtrack.py", line 99, in _do_import_users
    target.setUserGroup(u.login, u.group)
  File "c:\YouTrack\youtrack-rest-python-library-master\python\youtrack\connecti
on.py", line 450, in setUserGroup
    body='')
  File "c:\YouTrack\youtrack-rest-python-library-master\python\youtrack\connecti
on.py", line 57, in _req
 raise youtrack.YouTrackException(url, response, content)
youtrack.YouTrackException: Error for http://forum.jetbrains.com/admin/user/The_User/group/Normal: 40
4: Not Found: User [ The_User ] not found.


If I manually add the "The_User" to Youtrack, then re-run the import, I get past the error on this user, but then I get the same error on the next user. Does the import not actually "create" users? Do I have to manually add all of my users first before I import?
5 comments
Comment actions Permalink
Hello Josh,

Sorry for not responding earlier.
Please, clarify what FogBugs version do you use?
Check that you run import process under user with admin permissions.

Please, provide with import logs and YouTrack logs (user_home/.youtrack/logs). As you've requested by email, I guess it'll be better to send us logs under existed email thread.

Thank you.
0
Comment actions Permalink
I sent the logs to you in email, but what I discovered reading the error.log was that it couldn't create a user due to license restrictions. I'm trying to evaluate YouTrack and if I'm not able to test out the import from FogBugz I can't reasonably test it. What's a way around this?
0
Comment actions Permalink
Hi Josh,

Thank you for your logs, but as it's seen, there is no import process in log file.
In all cases, your assumption about license ristrictions is also not very clear, because if it's the case, you were not able to create users even manually.

We appreciate your interest in YouTrack. We have a request form for 60-day evaluation key http://www.jetbrains.com/eforms/baseEvaluation.action?licenseRequest=YTD00ES

Thank you.
0
Comment actions Permalink
Thanks Andrey.. I received an evaluation key and now the import seems to be working fine. I should have tried that in the first place.
0
Comment actions Permalink
Hi
I have the same error. When i try to import our bugs from fogbugz i get this error:

Creating custom fields
Importing users
Group with name [ Normal ] successfully created
Group with name [ Deleted ] successfully created
Group with name [ Community ] successfully created
Group with name [ Virtual ] successfully created
Importing user [ Alejandro ]
.... (i dont want to display all our users)
Importing user [ FogBugz ]
Traceback (most recent call last):
  File "fb2youtrack.py", line 296, in <module>
    main()
  File "fb2youtrack.py", line 28, in main
    fb2youtrack(target_url, target_login, target_password, source_url, source_login, source_password, project_names, max_issue_id)
  File "fb2youtrack.py", line 213, in fb2youtrack
    _do_import_users(target, users_to_import)
  File "fb2youtrack.py", line 99, in _do_import_users
    target.setUserGroup(u.login, u.group)
  File "/Users/rcjkierkels/Downloads/youtrack_import/python/youtrack/connection.py", line 454, in setUserGroup
    body='')
  File "/Users/rcjkierkels/Downloads/youtrack_import/python/youtrack/connection.py", line 62, in _req
 raise youtrack.YouTrackException(url, response, content)
youtrack.YouTrackException: Error for http://forum.jetbrains.com/admin/user/Alejandro/group/Normal: 404: Not Found: User [ Alejandro ] not found.

When i manually create the user the script runs until the second user. I dont like to create all users manually because we have a lot of them.

The fogbugz version i use is: Version 8.9.91.0H (DB 822, Build 0)
I am using youtrack in a cloud  YouTrack 5.0.5 Build 7565 [04-Dec-2013 20:04]

One of the main reasons i could convince my company to use youtrack was because of the importing feature from fogbugz. So any advice is welcome.

I am both an admin users on Fogbugz as on Youtrack.
0

Please sign in to leave a comment.