Skip to main content

Self Service Error - Can't Connect to Server after Jamf Pro Re-enrollment

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.publickey and com.jamfsoftware.selfservice.privatekey behind in the keychain.
    or

  • when the Local Items keychain is locked.

Troubleshooting Steps

  1. Rule out if the keychain being locked:

    1. 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

    2. Check whether the Local Items keychain is locked in Keychain Access. If locked, remove it and restart.

  2. After ruling out the locked keychain, proceed with the steps below:

    1. Send an Unenroll command from Jamf Pro.

    2. Confirm all MDM profiles have been removed from the device.

    3. Manually delete any com.jamfsoftware.SelfService.privatekey or com.jamfsoftware.SelfService.publickey under Local Items in Keychain Access.

    4. Ensure /Library/Preferences/com.jamfsoftware.jamf.plist doesn't exist on the computer.

    5. Re-enroll via Terminal using the command sudo profiles renew -type enrollment.

Did this answer your question?