Apple MDM Troubleshooting
ThisUse Knowledge basethis article willto helpstart youtroubleshooting troubleshootApple mdmMDM withenrollment and push-notification issues in FileWave.
Before going deepdigging into troubleshooting,logs, makeconfirm surethe thatbasics you have got these steps correct:first:
-
Your FileWave
serverServer shouldhaveuse a fully qualified DNSnamename.(this dns nameThis is theoneDNS name entered intheFileWaveAdminCentralPreferences-under Preferences >Mobile)Mobile. -
If
for some reasonyou changed the Server DNS Name inAdminPreferencesPreferences-> Mobile,did you re-generateregenerate thecertificate?Ifcertificateyou did, then you have toand trust the new certificate from the enrollmentpagepage,(for example https://dns:20443/ios). -
If the
APNAPNscertcertificate uploadfailsfails, confirm that the certificate was created fromAdmin Preferences, make sure you followedtheexactmatchingstepsFileWavefromServerstepDNS1,nameasandthisiscannotbepasswordcaused of password-protected certificateprotected. -
If
allthoseofchecks are correct and theaboveissueare set and still have problems, you need tocontinues, create an admin user account for Django MDM debuggingdjango:a. go toon the FileWaveserver and type this command: "Server:
sudo fwcontrol mdmaddadminuser" and follow the instructionsaddadminuser -
Another important log file is "/usr/local/filewave/log/filewave_django.log"
-
Make sure
that yourFileWaveAdminCentraldisplaysshows "iOS/MDM Service OK"inbeforetheexpectingleftApplelower corner in orderdevices tobeenrollableortoreceivemanagemanagementyour devices.commands.
The following are some of the problems encountered before:
EnrolmentEnrollment Errorerror: (FileWave MDM Configuration is invalid):invalid
The profile "FilewaveFileWave MDM Configuration" is invalid. The MDM payload
"Mobile Device Management" contains an invalid topictopic.
This is usually solvedpoints byto re-generatingan APNs certificate problem. Regenerate the APNAPNs certificatescertificate becauseand youconfirm haveit notmatches generatedthe themcurrent correctly.FileWave Server configuration.
CONNECTIONConnection PROBLEMSproblems**:**
ThereIf areiOS casesor where iosiPadOS devices fail to enroll andenroll, you getmay see an MDM check-in connection error similarin tothe thisserver from sentry:logs:
error
(61, 'Connection refused')
Request Method: PUT
Request URL: https://sscfilewave.co.sbmc:fwxserver.example.org:20443/ios/mdm_checkin
Exception Type: error
Exception Value:
(61, 'Connection refused')Exception Location: /usr/local/filewave/python/lib/python2.7/socket.py in meth, line 222
ThisOlder errorAPNs istroubleshooting associatedoften withreferenced aprovider port "2195"2195. beingApple's closed,current youAPNs cannetwork verifyguidance byuses :TCP 443 or 2197 for sending notifications to APNs, and TCP 5223 for Apple devices to maintain their APNs connection.
telnetCheck gateway.push.apple.comcurrent 2195Tryingfirewall 17.172.239.89.requirements against Default TCP and UDP Port Usage and Apple's Apple Push Notification service network guidance..telnet: connect to address 17.172.239.89: Connection refused
theDo issuenot willopen belegacy solvedAPNs ifports from old notes without checking the ITcurrent AdminFileWave opensand portApple 2195requirements for FileWave.your environment.
5223TCP :5223: IOSApple devices to apn server port:APNs
TCP port 5223 shouldmust be open forso IOSApple clientsdevices tocan reachmaintain outtheir toAPNs the APN serverconnection and receive push notifications.
For athe listFileWave-side ofport alllist, portssee used,Default checkTCP thisand man-UDP Port Usage.