Issue Description
Users are unable to log into Self Service and see the following error when opening the app: "Can't connect to server."
Self Service logs display the following error related to the server connection issue: "Device not enrolled - Attempting to enroll app."
This error can occur:
when a computer is re-enrolled without first removing the old Jamf framework, leaving both
com.jamfsoftware.selfservice.publickeyandcom.jamfsoftware.selfservice.privatekeybehind in the keychain.
orwhen the Local Items keychain is locked.
Troubleshooting Steps
Rule out if the keychain being locked:
Check the system log for the relevant error message using the following command:
/usr/bin/log show --predicate '(process contains "Self Service" OR subsystem BEGINSWITH "com.jamf.selfserviceplus") AND eventMessage CONTAINS "Device not enrolled - Attempting to enroll app"' --info --debug
Check whether the Local Items keychain is locked in Keychain Access. If locked, remove it and restart.
After ruling out the locked keychain, proceed with the steps below:
Send an Unenroll command from Jamf Pro.
Confirm all MDM profiles have been removed from the device.
Manually delete any
com.jamfsoftware.SelfService.privatekeyorcom.jamfsoftware.SelfService.publickeyunder Local Items in Keychain Access.Ensure
/Library/Preferences/com.jamfsoftware.jamf.plistdoesn't exist on the computer.Re-enroll via Terminal using the command
sudo profiles renew -type enrollment.
