Hi,
I meet an error when my iOS enrollment finished over the air.
And I could see the installed profile in my iOS (10.3.1)
But I get the error message from the iOS log, and my iPhone could NOT receive the message which is sent by MDM server. There is no any error in my MDM server and I think the mdm message has been sent to APNs.
Here is detail log message:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
May 5 15:50:26 iPhone corecaptured(CoreCaptureDaemon)[2067] <Notice>: CCProfileMonitor::setStreamEventHandler Woken up by notifyd.
May 5 15:50:26 iPhone mdmd[2068] <Notice>: MCJQ 1 Enqueueing jobBlock 5, calling function -[MCMDMServer connection:didReceivePublicToken:]_block_invoke
May 5 15:50:26 iPhone mdmd(libdispatch.dylib)[2068] <Notice>: Telling MDM Check-In Server about new device token.
May 5 15:50:26 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:26 +0800 apsd[81]: <APSCourier: 0x129e024f0>: Outstanding data received: <0d020181> (length 4) onInterface: NonCellular. Connected on 1 interfaces.
May 5 15:50:26 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:26 +0800 apsd[81]: <APSCourier: 0x129e024f0>: Stream processing: complete yes, invalid no, length parsed 4, parameters {
APSProtocolCommand = 13;
APSProtocolKeepAliveResponse = 1;
}
May 5 15:50:26 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:26 +0800 apsd[81]: <APSCourier: 0x129e024f0>: Received keep-alive response 1 on interface NonCellular: {
APSProtocolCommand = 13;
APSProtocolKeepAliveResponse = 1;
}
May 5 15:50:26 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:26 +0800 apsd[81]: <APSCourier: 0x129e024f0>: Stream processing: complete no, invalid no, length parsed 0, parameters (null)
May 5 15:50:26 iPhone securityd[100] <Notice>: SecDbBeginTransaction kSecDbExclusiveTransactionType 0x100547ff0
May 5 15:50:26 iPhone securityd[100] <Notice>: replaced <genp,rowid=73,cdat=2017-04-17 08:47:55 +0000,mdat=2017-05-05 07:11:01 +0000,desc=null,icmt=null,crtr=null,type=null,scrp=null,labl=null,alis=null,invi=null,nega=null,cusi=null,prot=null,acct=EscrowSecret,svce=com.apple.managedconfiguration.mdm,gena=null,data=0134:030000800B000000...|4f7d336fb62a4379,agrp=apple,pdmn=dku,sync=0,tomb=0,sha1=69F83A1247F53774224F1BC2C78D9EC83EFEF065,vwht=null,tkid=null,v_Data=<?>,v_pk=0CE529AE3B4F0C411C21B712741839CB785A1FEA,accc=310D300B0C0470726F740C03646B75,u_Tomb=null,musr=> with <genp,rowid=73,cdat=2017-04-17 08:47:55 +0000,mdat=2017-05-05 07:50:26 +0000,desc=null,icmt=null,crtr=null,type=null,scrp=null,labl=null,alis=null,invi=null,nega=null,cusi=null,prot=null,acct=EscrowSecret,svce=com.apple.managedconfiguration.mdm,gena=null,data=0134:030000800B000000...|f2800721ecfd4a96,agrp=apple,pdmn=dku,sync=0,tomb=0,sha1=4A52C4B8409E9AFA61881AEFE176D2AFFF5C6491,vwht=null,tkid=null,v_Data=<?>,v_pk=0CE529AE3B4F0C411C21B712741839CB785A1FEA,accc=310D300B0C0470726F740C03646B75, in <decode: missing data>
May 5 15:50:26 iPhone securityd[100] <Notice>: SecDbEndTransaction kSecDbTransactionWillCommit 0x100547ff0
May 5 15:50:26 iPhone securityd[100] <Notice>: (null): will-commit api 1 changes, txn=<SecDbConnection rw open>, 0x100547ff0
May 5 15:50:27 iPhone securityd[100] <Notice>: Not saving engine state, nothing changed.
May 5 15:50:27 iPhone securityd[100] <Notice>: SecDbEndTransaction kSecDbTransactionWillCommit 0x100547ff0 (after notify)
May 5 15:50:27 iPhone securityd[100] <Notice>: SecDbEndTransaction kSecDbTransactionDidCommit 0x100547ff0
May 5 15:50:27 iPhone useractivityd(Sharing)[1615] <Notice>: client process changing types to scan for to None
May 5 15:50:27 iPhone sharingd[1585] <Notice>: Skipping request for enabled: YES, state: PoweredOff, shouldStart: NO, scanForCopyPaste: NO, scanForHandoff: NO
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: Faulting in NSHTTPCookieStorage singleton
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: Faulting in CFHTTPCookieStorage singleton
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: Creating default cookie storage with process/bundle identifier
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TCP Conn Start [1:0x123d42af0]
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TCP Conn Event [1:0x123d42af0]: 1 Err(0)
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TCP Conn Connected [1:0x123d42af0]: Err(0)
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC Enabling TLS [1:0x123d42af0]
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TLS Event [1:0x123d42af0]: 2, Pending(0)
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TLS Event [1:0x123d42af0]: 11, Pending(0)
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TLS Event [1:0x123d42af0]: 12, Pending(0)
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TLS Event [1:0x123d42af0]: 14, Pending(0)
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TLS Trust Result [1:0x123d42af0]: 0
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TLS Event [1:0x123d42af0]: 20, Pending(0)
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TCP Conn Event [1:0x123d42af0]: 8 Err(0)
May 5 15:50:27 iPhone mdmd(CFNetwork)[2068] <Notice>: TIC TLS Handshake Complete [1:0x123d42af0]
May 5 15:50:27 iPhone mdmd(libdispatch.dylib)[2068] <Notice>: Transaction completed. Status: 200
May 5 15:50:27 iPhone mdmd[2068] <Notice>: MCJQ 1 Job finished, calling function -[MCMDMServer startOutError:]_block_invoke_2
May 5 15:50:27 iPhone mdmd(libdispatch.dylib)[2068] <Notice>: MCJQ 1 Dispatching to executionQueue jobBlock 1
May 5 15:50:27 iPhone mdmd(libdispatch.dylib)[2068] <Notice>: MCJQ 1 Executing jobBlock 1
May 5 15:50:27 iPhone mdmd[2068] <Notice>: MCJQ 1 Job finished, calling function -[MCMDMServer _networkReachabilityDidChange]_block_invoke_2
May 5 15:50:27 iPhone mdmd(libdispatch.dylib)[2068] <Notice>: MCJQ 1 Dispatching to executionQueue jobBlock 3
May 5 15:50:27 iPhone mdmd(libdispatch.dylib)[2068] <Notice>: MCJQ 1 Executing jobBlock 3
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: peer(2068) received XPC_ERROR_CONNECTION_INVALID
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: peer(2068) received XPC_ERROR_CONNECTION_INVALID
May 5 15:50:27 iPhone mdmd(Security)[2068] <Notice>: Invalid serial number length (36), must be 1..20
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: SetupConnection: env=development portName=com.apple.managedconfiguration.mdmdpush-dev (portNameIsBundleId=0)
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: Found existing connection <APSConnectionServer: 0x129d81450> for port name: com.apple.managedconfiguration.mdmdpush-dev
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: Setting connection <APSConnectionServer: 0x129d81450> on peer: <OS_xpc_connection: <connection: 0x129e74b20> { name = com.apple.apsd (peer), listener = false, pid = 2068, euid = 501, egid = 501, asid = 0 }>
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: Replacing xpc conn (null) with <OS_xpc_connection: <connection: 0x129e74b20> { name = com.apple.apsd (peer), listener = false, pid = 2068, euid = 501, egid = 501, asid = 0 }> for <APSConnectionServer: 0x129d81450> (com.apple.managedconfiguration.mdmdpush-dev)
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: copyTokenForDomain sandbox.push.apple.com (null)
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: <APSCourier: 0x129e59bc0> <APSConnectionServer: 0x129d81450> has established new xpc connection <OS_xpc_connection: <connection: 0x129e74b20> { name = com.apple.apsd (peer), listener = false, pid = 2068, euid = 501, egid = 501, asid = 0 }>
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: SetupConnection: env=production portName=com.apple.managedconfiguration.mdmdpush-prod (portNameIsBundleId=0)
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: Found existing connection <APSConnectionServer: 0x129d819d0> for port name: com.apple.managedconfiguration.mdmdpush-prod
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: Setting connection <APSConnectionServer: 0x129d819d0> on peer: <OS_xpc_connection: <connection: 0x129d64840> { name = com.apple.apsd (peer), listener = false, pid = 2068, euid = 501, egid = 501, asid = 0 }>
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: Replacing xpc conn (null) with <OS_xpc_connection: <connection: 0x129d64840> { name = com.apple.apsd (peer), listener = false, pid = 2068, euid = 501, egid = 501, asid = 0 }> for <APSConnectionServer: 0x129d819d0> (com.apple.managedconfiguration.mdmdpush-prod)
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: copyTokenForDomain push.apple.com (null)
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: <APSCourier: 0x129e024f0> <APSConnectionServer: 0x129d819d0> has established new xpc connection <OS_xpc_connection: <connection: 0x129d64840> { name = com.apple.apsd (peer), listener = false, pid = 2068, euid = 501, egid = 501, asid = 0 }>
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: Looking up connection on peer: 29e74b20 found <APSConnectionServer: 0x129d81450>
May 5 15:50:27 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:27 +0800 apsd[81]: Looking up connection on peer: 29d64840 found <APSConnectionServer: 0x129d819d0>