Apple DEP enrollment fails: "No valid MDM installation found" and "Device registration with DEP failed"
I'm implementing an MDM server and I'm trying to enroll a supervised iOS device through Apple DEP (Automated Device Enrollment).
The device is correctly listed in Apple Business Manager and assigned to my MDM server.
Here’s what I’ve done so far:
- Created the DEP token (I'm able to list devices using DEP API)
- Generated the APNs push certificate using the Apple Push Certificates Portal
- Extracted the Topic from the certificate and placed it in the MDM enrollment profile
- The device calls my /enroll endpoint
- After that, the device logs multiple errors and the enrollment never completes
These are the logs shown on the device:
errore 17:47:47.116441+0100 mdmd No valid MDM installation found.
MDM will not listen to push messages. Error: (null)
errore 17:47:47.425765+0100 mdmd MDMDEPPushTokenManager:
Push token is not available.
errore 17:47:49.690339+0100 mdmd MDMDEPPushTokenManager: Failed to upload push token
with reponse: (null), error: Error Domain=DEPCloudConfigErrorDomain Code=33024
"La registrazione del dispositivo *** DEP non è riuscita."
UserInfo={NSUnderlyingError=0xb03041e90 {Error Domain=MCCloudConfigurationErrorDomain
Code=34000 "The device failed to request configuration from the cloud."
UserInfo={NSLocalizedDescription=The device failed to request configuration
from the cloud., CloudConfigurationErrorType=CloudConfigurationFatalError}},
USEnglishDescription=Device registration with DEP failed.,
NSLocalizedRecoverySuggestion=The device failed to request configuration
from the cloud., DEPErrorType=DEPFatalError,
NSLocalizedDescription=La registrazione del dispositivo *** DEP non è riuscita.}
errore 17:49:49.008349+0100 mdmd MDMDEPPushTokenManager: Failed to upload push token
with reponse: (null), error: Error Domain=DEPCloudConfigErrorDomain Code=33024 ...
So far I can’t understand why the push token never becomes available and why the device says:
No valid MDM installation found. MDM will not listen to push messages.
Has anyone seen these exact error messages during DEP enrollment, or knows what usually causes this failure?