jamf / JamfMigrator

A tool to migrate data granularly between Jamf Pro servers
MIT License
143 stars 10 forks source link

jamf-migrator Stucks #68

Closed ahousseini closed 2 years ago

ahousseini commented 2 years ago

Hi

I have an issue when doing a selective policy migration. The migration process starts but does not continue. In the logs I see the following and nothing happens anymore:

20220131_135455 ----------- Starting Migration -----------
20220131_135459 [Json.getRecord] get endpoint: policies/id/503 from server: https://example.com/

I tried the following:

Any ideas?

BIG-RAT commented 2 years ago

Try launching the app in debug mode to provide some additional details on where/why it's hanging: /Applications/jamf-migrator.app/Contents/MacOS/jamf-migrator -debug

Does it make a difference if you do a selective migration of policies that have no packages (only scripts)?

ahousseini commented 2 years ago

Thanks for the fast response.

I launched the app in debug mode. It seems something is going on (authentication on both source and destination server, building existingEndpoints array etc.) but the application then hangs on this:

20220131_150023 [- debug -] [ViewController.startMigrating] Item(s) chosen from selective: ["Bueel-S-EDO042 (519)", "Bueel-S-EDO043 (520)", "Bueel-S-EDO044 (521)"]
20220131_150023 [- debug -] [Json.getRecord] get endpoint: policies/id/519 from server: https://example.com/
20220131_150023 [- debug -] [Json.getRecord] Looking up: https://example.com/JSSResource/policies/id/519

All this 3 policies don't have any dependencies. I also tried it with the Migrate Dependencies checkbox.

BIG-RAT commented 2 years ago

When launched form Terminal (in debug mode) did you by chance see some output, in Terminal, starting with: [icons] result of Json().getRecord:

ahousseini commented 2 years ago

No, only this:

/Applications/jamf-migrator.app/Contents/MacOS/jamf-migrator -debug
resetting export location
mikedowler commented 2 years ago

I'm seeing something similar, migrating a single script. Running 6.0.1 on Apple M1. Seems to be hanging on:

20220201_171659 [- debug -] [Json.getRecord] Looking up: https://example.com:8443/JSSResource/scripts/id/332

mikedowler commented 2 years ago

5.9.3 is working fine for the same action, though

BIG-RAT commented 2 years ago

What happens if you go into settings (gear on bottom left), then app tab, set Maximum Concurrent Threads to something like 4? Looks like I might need to set an initial default value.

ahousseini commented 2 years ago

Yes, this solved the issue!

BIG-RAT commented 2 years ago

Thanks for the quick feedback. Fix will be in the next update.

macmule commented 2 years ago

FWIW, hit the same issue (was, migrating user accounts..).. and this worked for me too: https://github.com/jamf/JamfMigrator/issues/68#issuecomment-1027282766

BIG-RAT commented 2 years ago

Fixed - set initial default value if app hasn't run.