jamf / JamfMigrator

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

Selective Removal Broken #24

Closed M-MDev closed 5 years ago

M-MDev commented 5 years ago

Version: 3.2.0

When removal mode is enter if you click a selection under macOS the application returns back to normal mode. Selective Packages work. Computer Groups and Policies are not working.

BIG-RAT commented 5 years ago

@Malisorn - thanks for the details. Issue should be resolved in version 3.2.2.

M-MDev commented 5 years ago

@BIG-RAT the application now crashes while trying to grab selective items during removal.

BIG-RAT commented 5 years ago

@Malisorn - Any item(s) in particular? Haven't been able to replicate yet.

M-MDev commented 5 years ago

@BIG-RAT - I am entering removal mode with command+D then selecting policies, packages, or groups. Those are the three I have tested.

BIG-RAT commented 5 years ago

@Malisorn - if/when you get a chance, could you launch the app in debug mode: .../path/to/jamf-migrator.app/Contents/MacOS/jamf-migrator -debug Then send me the log after it crashes. You can reach me directly: leslie 'at' ccs-indy.com.

M-MDev commented 5 years ago

@BIG-RAT

Crashed right during connect.

20190204_085145 [- debug -] jamf-migrator Version: 3.2.2 Build: 1 20190204_085149 [- debug -] Enabling delete mode to removing data from destination server - REMOVED 20190204_085157 [- debug -] func sectionToMigrate active tab: macOS. 20190204_085157 [- debug -] Selectively migrating: ["policies"] for NSUserInterfaceItemIdentifier(_rawValue: macOS) 20190204_085157 [- debug -] Start Migrating/Removal 20190204_085157 [- debug -] Removing data from destination server - REMOVED 20190204_085157 [- debug -] go sender tag: nil 20190204_085157 [- debug -] Go button pressed from: selectToMigrateButton 20190204_085157 [- debug -] Active tab: selective 20190204_085157 [- debug -] Migration Mode (Go): selective 20190204_085157 [- debug -] [checkURL2] --- checking availability of server: REMOVED 20190204_085157 [- debug -] [checkURL2] checking: REMOVED

BIG-RAT commented 5 years ago

@Malisorn - Strange it's failing during the URL check, nothing changed within that function. This is what I see: 20190204_110830 [- debug -] jamf-migrator Version: 3.2.2 Build: 1 20190204_110834 [- debug -] Enabling delete mode to removing data from destination server - https://server2.jamfcloud.com:443 20190204_110843 [- debug -] func sectionToMigrate active tab: macOS. 20190204_110843 [- debug -] Selectively migrating: ["policies"] for NSUserInterfaceItemIdentifier(_rawValue: macOS) 20190204_110843 [- debug -] Start Migrating/Removal 20190204_110843 [- debug -] Removing data from destination server - https://server2.jamfcloud.com:443 20190204_110843 [- debug -] go sender tag: nil 20190204_110843 [- debug -] Go button pressed from: selectToMigrateButton 20190204_110843 [- debug -] Active tab: selective 20190204_110843 [- debug -] Migration Mode (Go): selective 20190204_110843 [- debug -] [checkURL2] --- checking availability of server: https://server2.jamfcloud.com:443 20190204_110844 [- debug -] [checkURL2] checking: https://server2.jamfcloud.com:443 20190204_110844 [- debug -] [checkURL2] Server check: https://server2.jamfcloud.com:443, httpResponse: 200 20190204_110844 [- debug -] [checkURL2] checkURL2 data: [] 20190204_110844 [- debug -] --- checking authentication to: https://lserver1.jamfcloud.com 20190204_110844 [- debug -] --- checking authentication to: https://server2.jamfcloud.com:443 20190204_110844 [- debug -] checking: https://server2.jamfcloud.com:443/JSSResource/buildings 20190204_110844 [- debug -] https://server2.jamfcloud.com:443/JSSResource/buildings auth check httpResponse: 200 20190204_110844 [- debug -] https://server2.jamfcloud.com:443/JSSResource/buildings auth httpResponse, between 199 and 299: 200 20190204_110845 [- debug -] Start Migrating/Removal 20190204_110845 [- debug -] platform: macOS. 20190204_110845 [- debug -] Migration Mode (startMigration): selective. 20190204_110845 [- debug -] objects: ["policies"]. 20190204_110845 [- debug -] ----------- Starting To Wipe Data ----------- 20190204_110845 [- debug -] migrating/removing 1 sections 20190204_110845 [- debug -] Starting to process policies 20190204_110845 [- debug -] getting endpoint: policies 20190204_110845 [- debug -] getting endpoint: policies 20190204_110845 [- debug -] [getEndpoints] Getting policies 20190204_110845 [- debug -] [getEndpoints] Getting all endpoints from: https://server2.jamfcloud.com:443/JSSResource/policies 20190204_110845 [- debug -] [getEndpoints] endpointJSON: ["policies": <__NSArrayI 0x7f8854e75330>(

M-MDev commented 5 years ago

@BIG-RAT

Strange indeed. Tested with two different on-prem servers. The last version I have that is working is 3.0.0

BIG-RAT commented 5 years ago

Does the 3.2.2 crash when doing a selective migration or only selective removal?

M-MDev commented 5 years ago

I will have to test selective migration and get back to you.

M-MDev commented 5 years ago

Selective migration is working as expected.

BIG-RAT commented 5 years ago

Thanks for checking, still trying to find a machine/server that replicates the behavior.

cheers, leslie

On Feb 7, 2019, at 12:35 PM, Malisorn notifications@github.com<mailto:notifications@github.com> wrote:

Selective migration is working as expected.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/jamf/JamfMigrator/issues/24#issuecomment-461524296, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVOIFxvbotOmJ-Dl3_pJah8qtrnCNlGhks5vLGP9gaJpZM4adFDW.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/jamf/JamfMigrator","title":"jamf/JamfMigrator","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/jamf/JamfMigrator"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Malisorn in #24: Selective migration is working as expected."}],"action":{"name":"View Issue","url":"https://github.com/jamf/JamfMigrator/issues/24#issuecomment-461524296"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/jamf/JamfMigrator/issues/24#issuecomment-461524296", "url": "https://github.com/jamf/JamfMigrator/issues/24#issuecomment-461524296", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]