BIG-RAT / Prune

Remove unused items from your Jamf server
MIT License
163 stars 9 forks source link

check username and password #41

Closed mrmte closed 7 months ago

mrmte commented 11 months ago

After a computer group scan it gets about half way through and says check username and password. We have a lot of smart groups i need to cleanup. could this be the bearer token expired and thats why it keeps popping up. When the prompt appears the only solution is to force quit the app and try again.

mrmte commented 11 months ago

ri Oct 06 12:47:03 [Json.getRecord] get existing endpoints URL: https://XXX.jamfcloud.com/JSSResource/policies/id/753 Fri Oct 06 12:47:04 [Json.getRecord] error during GET, HTTP Status Code: 401

BIG-RAT commented 11 months ago

Token expiring sounds like a likely cause. Give v3.1.1 a try and let me know how things look as time permits.

mrmte commented 11 months ago

still getting same with 3.1.1

BIG-RAT commented 11 months ago

Added a little extra logging and found a function not running as intended. Updated, give the following a whirl Prune v3.1.2-b2 Should see information about the token getting renewed:

20231016_183049 [recursiveLookup] 2833 of 3752   lookup: name staticGroup - 3527 - id 15343
20231016_183049 [getToken] source tokenAgeInSeconds: 1800.397
20231016_183049 [getToken] Attempting to retrieve token from Optional(https://<my>.jamfcloud.com/api/v1/auth/token)
20231016_183051 [getToken] new token created for https://<my>.jamfcloud.com
mrmte commented 11 months ago

great it works now. I got the pop up once and then it renewed and continued to finish as expected