Skip to main content

Apple MDM Troubleshooting

Use this article to start troubleshooting Apple MDM enrollment and push-notification issues in FileWave.

Before digging into logs, confirm the basics first:

  1. Your FileWave Server should use a fully qualified DNS name. Use that name in the enrollment URL.

  2. If the server name changed, check that DNS resolves the new name and the server’s TLS certificate is trusted and covers the hostname in the enrollment URL, for example https://dns:20443/ios.

  3. For an APNs upload problem, follow the certificate procedure for macOS or Windows. The APNs topic identifies the MDM push certificate, not the server hostname.

  4. If those checks are correct and the issue continues, create an admin user account for Django MDM debugging on the FileWave Server:
    sudo fwcontrol mdm addadminuser

  5. Another important log file is "/usr/local/filewave/log/filewave_django.log"

  6. Make sure FileWave Central shows "iOS/MDM Service OK" before expecting Apple devices to enroll or receive management commands.

The following are some of the problems encountered before:

Enrollment error: FileWave MDM Configuration is invalid

The profile "FileWave MDM Configuration" is invalid. The MDM payload
"Mobile Device Management" contains an invalid topic.

An invalid topic does not by itself mean the APNs certificate has expired. In FileWave Central, check the installed topic and expiration under Preferences > Enrollment > Apple. Keep a valid, matching certificate. If it has expired, sign in to Apple’s Push Certificates Portal with the Apple Account that owns it and renew that same certificate. Stop if the topics differ: installing a different topic disconnects enrolled devices. After renewal, confirm in Central that the topic stayed the same and the expiration date moved forward.

Connection problems

If iOS or iPadOS devices fail to enroll, you may see an MDM check-in connection error in the server logs:

error
(61, 'Connection refused')
Request Method: PUT
Request URL: https://fwxserver.example.org:20443/ios/mdm_checkin
Exception Type: error
Exception Value:
(61, 'Connection refused')

Older APNs troubleshooting often referenced provider port 2195. Apple's current APNs network guidance uses TCP 443 or 2197 for sending notifications to APNs, and TCP 5223 for Apple devices to maintain their APNs connection.

Check current firewall requirements against Default TCP and UDP Port Usage and Apple's Apple Push Notification service network guidance.

Do not open legacy APNs ports from old notes without checking the current FileWave and Apple requirements for your environment.

TCP 5223: Apple devices to APNs

TCP port 5223 must be open so Apple devices can maintain their APNs connection and receive push notifications.

For the FileWave-side port list, see Default TCP and UDP Port Usage.