The other day I was looking at machines that haven't checked in for awhile. I found one machine that was having issues connecting to my JSS. I removed the machine from the JSS and tried re-enrolling and now I get:
Downloading required CA Certificate(s)...
There was an error. Error enrolling computer: Unable to establish trust with the JSS - Connection failure: "The host is not accessible."
I've removed the framework, removed the management account, tried running the quickadd.pkg and/or the quickadd.pkg from our enroll site. Both fail. I removed the UUID from the certificate_authority_issued table in mysql. Still nothing. Weirdly I can ping, ssh, and even telnet to the server. As well when I go to the jss from Safari there are no warning about a trust issue. I'm almost at the point where I'm just going to re-image this system, but before I do has anyone else ever seen anything like this?
I've had similar issues and what I've had to do is run the following:
sudo jamf enroll -prompt
This forces a re-enroll with new information and prompts for credentials both for the local account and a JSS Account that has permission to enroll machines
@jjones the jamf keychain is not present as the machine is not able to communicate with the JSS in order to even download it. I've removed the framework which removes the JAMF folder in /Library/Application Support.
@BenDenham just checked again and the time is indeed correct.
@usher.br sudo jamf enroll -prompt, sudo jamf enroll -invitation [invitation id] all fail with, Error enrolling computer: Unable to establish trust with the JSS - Connection failure: "The host is not accessible."
It does sound like you're going to have to erase it, or at least that would be the quickest route to a working setup.
The only other thing that spring to mind are JSS related certs left in the system keychain.
When you said you removed the framework I take it that was a ```
sudo jamf removeFramework