APNS connection failure - ios

Facing problem with APNS push services at client end. Server side is ok and it sends push to APNS properly as particular devices get stuck at some moment. Here are the server logs.
VOIP Push: Push notification waiting by APNs gateway.
VOIP Push: Push notification accepted by APNs gateway.
Here are the console logs of effected device
default 09:16:30.203262 +0400 apsd Connection 1507: enabling TLS
default 09:16:30.203409 +0400 apsd Connection 1507: starting, TC(0x0)
default 09:16:30.203504 +0400 apsd [C1507 DBE7C1B4-DC94-4B2A-BD21-63661595E267 Hostname#45fde594:443 tcp, url hash: f51ce5f3, tls] start
default 09:16:30.204664 +0400 apsd nw_connection_report_state_with_handler_on_nw_queue [C1507] reporting state preparing
default 09:16:30.205294 +0400 mDNSResponder [R80990] DNSServiceCreateConnection START PID[99](apsd)
default 09:16:30.205592 +0400 mDNSResponder [R80991] DNSServiceGetAddrInfo(C000D000, 0, 0, ) START PID[99](apsd)
default 09:16:30.206815 +0400 apsd Task . setting up Connection 1507
default 09:16:30.208190 +0400 apsd nw_connection_report_state_with_handler_on_nw_queue [C1507] reporting state failed error DNS Error: NoSuchRecord
error 09:16:30.208282 +0400 apsd Connection 1507: received failure notification
error 09:16:30.208361 +0400 apsd Connection 1507: failed to connect 12:8, reason -1
error 09:16:30.208448 +0400 apsd Connection 1507: encountered error(12:8)
default 09:16:30.208522 +0400 apsd Connection 1507: is being canceled
default 09:16:30.208600 +0400 mDNSResponder [R80990] DNSServiceCreateConnection STOP PID[99](apsd)
default 09:16:30.208678 +0400 mDNSResponder [R80991] DNSServiceGetAddrInfo() STOP PID[99](apsd)
default 09:16:30.208848 +0400 apsd Connection 1507: summary for unused connection {protocol="(null)", domain_lookup_duration_ms=0, connect_duration_ms=0, secure_connection_duration_ms=0, idle_duration_ms=0}
default 09:16:30.208932 +0400 apsd [C1507 DBE7C1B4-DC94-4B2A-BD21-63661595E267 Hostname#45fde594:443 tcp, url hash: f51ce5f3, tls] cancel
default 09:16:30.209009 +0400 apsd [C1507 Hostname#45fde594:443 tcp, url hash: f51ce5f3, tls] cancelled
default 09:16:30.209091 +0400 apsd 0.000s [C1507 29735B49-F0FB-40A5-A092-F15E19D8B4B0 Hostname#45fde594:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:start
default 09:16:30.209174 +0400 apsd 0.000s [C1507 29735B49-F0FB-40A5-A092-F15E19D8B4B0 Hostname#45fde594:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied
default 09:16:30.209260 +0400 apsd 0.001s [C1507 29735B49-F0FB-40A5-A092-F15E19D8B4B0 Hostname#45fde594:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] resolver:start_dns
default 09:16:30.209341 +0400 apsd 0.003s [C1507 29735B49-F0FB-40A5-A092-F15E19D8B4B0 Hostname#45fde594:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:trigger
default 09:16:30.209427 +0400 apsd 0.004s [C1507 29735B49-F0FB-40A5-A092-F15E19D8B4B0 Hostname#45fde594:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] resolver:receive_dns DNS Error: NoSuchRecord
default 09:16:30.209509 +0400 apsd 0.005s [C1507] path:cancel
default 09:16:30.209821 +0400 apsd nw_connection_report_state_with_handler_on_nw_queue [C1507] reporting state cancelled error DNS Error: NoSuchRecord
default 09:16:30.209998 +0400 apsd Task . can retry(N) with reason(2) for error [12:8]
default 09:16:30.211029 +0400 apsd _CFNetworkIsConnectedToInternet returning 1, flagsValid: 1, flags: 0x2
error 09:16:30.211367 +0400 apsd Task . HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
default 09:16:30.211510 +0400 apsd Task . summary for task failure {transaction_duration_ms=9, response_status=0, cache_hit=0}
default 09:16:30.211758 +0400 apsd removing all entries config 0x100f3bfc0
default 09:16:30.212028 +0400 apsd removing all entries config 0x100f3bfc0
default 09:16:30.212151 +0400 apsd Calling configuration completion blocks, expiration date Thu Dec 12 09:31:30 2019 error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={NSUnderlyingError=0x102121bc0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, NSErrorFailingURLStringKey=, NSErrorFailingURLKey=, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSLocalizedDescription=A server with the specified hostname could not be found.}
default 09:16:30.212393 +0400 apsd APSTCPStream got config -- opened? YES
default 09:16:30.212593 +0400 apsd Failed to load config bag: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={NSUnderlyingError=0x102121bc0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, NSErrorFailingURLStringKey=, NSErrorFailingURLKey=, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSLocalizedDescription=A server with the specified hostname could not be found.}
default 09:16:30.212700 +0400 apsd Using DNS TXT record lookup to determine load balance count for development
default 09:16:30.212786 +0400 apsd performing DNS lookup for
default 09:16:30.213329 +0400 mDNSResponder [R80992] DNSServiceQueryRecord(0, 0, , TXT) START PID[99](apsd)
default 09:16:30.214890 +0400 apsd Closing with environment [development]
default 09:16:30.215049 +0400 mDNSResponder [R80992] DNSServiceQueryRecord(0, 0, , TXT) STOP PID[99](apsd)
default 09:16:30.215730 +0400 apsd : Stream error occurred for onInterface NonCellular: Error Domain=APSErrorDomain Code=1 UserInfo={NSLocalizedDescription=}
default 09:16:30.215855 +0400 apsd : Calling into AWD for ConnectionDisconnected (withError)
default 09:16:30.217664 +0400 apsd : AWD for ConnectionDisconnected (withError) finished
default 09:16:30.217741 +0400 apsd _disconnectStream for interface: NonCellular
default 09:16:30.217821 +0400 apsd asked to change isSuspended=NO to NO
default 09:16:30.217896 +0400 apsd Closing with environment [development]
default 09:16:30.217972 +0400 apsd : enableNonCellularConnections changed to NO
default 09:16:30.218458 +0400 apsd Connection closed development NonCellular
default 09:16:30.218633 +0400 apsd canUseProxy? NO deviceConfiguration NO isNearby NO
default 09:16:30.218706 +0400 apsd received courierConnectionStatusDidChange from .
default 09:16:30.218877 +0400 apsd canUseProxy? NO deviceConfiguration NO isNearby NO
default 09:16:30.219036 +0400 apsd canUseProxy? NO deviceConfiguration NO isNearby NO
default 09:16:30.219115 +0400 apsd updating network guidance isConnected? YES
default 09:16:30.219271 +0400 apsd canUseProxy? NO deviceConfiguration NO isNearby NO
default 09:16:30.219404 +0400 apsd canUseProxy? NO deviceConfiguration NO isNearby NO
default 09:16:30.219532 +0400 apsd : Disconnected in response to connection failure on interface NonCellular. (Consecutive failures: 24) isConnected NO onInterface None shouldUseDualChannel YES. Connected on 0 interfaces.
default 09:16:30.219596 +0400 apsd Created metric container: 0x130002 succeeded? YES
default 09:16:30.220000 +0400 apsd Connection method alternative changed to 1
default 09:16:30.220094 +0400 apsd Advising client to enter reconnect mode in response to a connection failure since currently in reconnect mode
default 09:16:30.220166 +0400 apsd Resuming push keep alive timer in normal mode with action PCActionShrinkPushKeepAliveInterval
default 09:16:30.220230 +0400 apsd Last timer interruption was early: []. Expected fire time was [].
default 09:16:30.220300 +0400 apsd WiFi growth algorithm-IPv4: received action PCActionShrinkPushKeepAliveInterval while in stage Backoff
default 09:16:30.220366 +0400 apsd {keep alive interval = 600, state = Backoff, next recalibration date = (null)}: adjustGrowthAlgorithmMode. {lastMode: Defaults, currentMode: Defaults}
default 09:16:30.220431 +0400 apsd created
default 09:16:30.220506 +0400 apsd Started simple timer with fire date [2019-12-12 09:27:05 +0400]
default 09:16:30.220713 +0400 apsd created preventSleepTimer and fireTimer on queue
default 09:16:30.221159 +0400 apsd Enabling power monitoring for - 6 timers
default 09:16:30.221275 +0400 apsd Existing wake at (null) re-scheduling to 2019-12-12 09:26:50 +0400 with leeway of 0
default 09:16:30.221551 +0400 apsd Request to schedule wake 1 date 2019-12-12 09:26:50 +0400 leeway 0 service identifier com.apple.apsd(sandbox.push.apple.com)-NonCellular unique identifier
default 09:16:30.221693 +0400 apsd calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(YES) && (wwanIsUp(NO) || ! internetReachable(YES)))
default 09:16:30.221779 +0400 apsd Last system wake date (2019-12-12 09:11:10 +0400) was longer than half of the timer duration, so setting minimum fire date to fire date.
default 09:16:30.221867 +0400 apsd Device is plugged in, overriding earlyFireProportion to be 1.0
default 09:16:30.222061 +0400 apsd Calculated minimum fire date [2019-12-12 09:27:05 +0400] (100%) with fire date [2019-12-12 09:27:05 +0400], start date [2019-12-12 09:16:30 +0400], minimum early fire proportion 0, power state detection supported: no, in high power state: no, early fire constant interval 0.000000
default 09:16:30.222194 +0400 apsd PCConnectionManager was stopped by client
default 09:16:30.222261 +0400 apsd Invalidating timer
default 09:16:30.222322 +0400 apsd Invalidating simple timer
default 09:16:30.222699 +0400 apsd Scheduling a wake for date leeway 0 wake identifier
default 09:16:30.224084 +0400 apsd Wake schedule for ''() completed for [] (took 0.002 seconds; result code 0)
default 09:16:30.225070 +0400 apsd Canceling system wake for simpletimer [2019-12-12 09:26:50 +0400]
default 09:16:30.225159 +0400 apsd Request to schedule wake 0 date 2019-12-12 09:26:50 +0400 leeway 0 service identifier com.apple.apsd(sandbox.push.apple.com)-NonCellular unique identifier
default 09:16:30.225385 +0400 apsd APSCourier adjusting connection. Connected on 0 interfaces. Current link quality:
default 09:16:30.225498 +0400 apsd Disabling power monitoring for - 5 timers
default 09:16:30.225646 +0400 apsd canUseProxy? NO deviceConfiguration NO isNearby NO
default 09:16:30.225720 +0400 apsd calling _connectStream with interface preference NonCellular
default 09:16:30.225800 +0400 apsd attempting to _connectStream. currently onInterface None consecutiveFailures 24 preference NonCellular shouldUseDualChannel YES. Connected on 0 interfaces.
default 09:16:30.225869 +0400 apsd _getClientIdentity: already had identity:
default 09:16:30.225929 +0400 apsd _connectStream - Stopping the connectionManager on our attemptInterface NonCellular
default 09:16:30.225990 +0400 apsd PCConnectionManager was stopped by client
default 09:16:30.226047 +0400 apsd : isWWANUsable NO isWiFiUsable YES onInterface NonCellular
default 09:16:30.226112 +0400 apsd : enableNonCellularConnections changed to YES
default 09:16:30.226165 +0400 apsd Opening stream on interface NonCellular
default 09:16:30.226214 +0400 apsd Cancelling scheduled wake for wake identifier
default 09:16:30.226560 +0400 apsd Opening with environment [development]
default 09:16:30.226659 +0400 apsd loadConfigurationForEnvironment: development interface: NonCellular
default 09:16:30.227135 +0400 apsd Task . resuming, QOS(0x15) Voucher (null)
default 09:16:30.227218 +0400 apsd Wake cancel for ''() completed for [] (took 0.002 seconds; result code 0)
default 09:16:30.227330 +0400 apsd Opening stream onInterface: NonCellular, development
default 09:16:30.227496 +0400 apsd : Connecting courier stream using configuration bag at and port TCP 443
default 09:16:30.227752 +0400 apsd Closing with environment [development]
default 09:16:30.227837 +0400 apsd Task . {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 1, builtin 0}
default 09:16:30.228815 +0400 apsd Connection 1508: enabling TLS
default 09:16:30.228964 +0400 apsd Connection 1508: starting, TC(0x0)
default 09:16:30.229353 +0400 apsd [C1508 F67A490F-3214-41AE-AC96-0CD52FC88397 Hostname#45fde594:443 tcp, url hash: f51ce5f3, tls] start
default 09:16:30.230101 +0400 symptomsd NBSM: received symptom that apsd is failing on WiFi in state: idle
default 09:16:30.231119 +0400 apsd nw_connection_report_state_with_handler_on_nw_queue [C1508] reporting state preparing
default 09:16:30.231365 +0400 mDNSResponder [R80993] DNSServiceCreateConnection START PID[99](apsd)
default 09:16:30.231620 +0400 mDNSResponder [R80994] DNSServiceGetAddrInfo(C000D000, 0, 0, ) START PID[99](apsd)
default 09:16:30.232216 +0400 apsd Task . setting up Connection 1508
default 09:16:30.233279 +0400 mDNSResponder [R80993] DNSServiceCreateConnection STOP PID[99](apsd)
default 09:16:30.233462 +0400 mDNSResponder [R80994] DNSServiceGetAddrInfo() STOP PID[99](apsd)
default 09:16:30.233983 +0400 apsd nw_connection_report_state_with_handler_on_nw_queue [C1508] reporting state failed error DNS Error: NoSuchRecord
error 09:16:30.234066 +0400 apsd Connection 1508: received failure notification
error 09:16:30.234124 +0400 apsd Connection 1508: failed to connect 12:8, reason -1
error 09:16:30.234179 +0400 apsd Connection 1508: encountered error(12:8)
default 09:16:30.234443 +0400 apsd Connection 1508: is being canceled
default 09:16:30.234525 +0400 apsd Connection 1508: summary for unused connection {protocol="(null)", domain_lookup_duration_ms=0, connect_duration_ms=0, secure_connection_duration_ms=0, idle_duration_ms=0}
default 09:16:30.234584 +0400 apsd [C1508 F67A490F-3214-41AE-AC96-0CD52FC88397 Hostname#45fde594:443 tcp, url hash: f51ce5f3, tls] cancel
default 09:16:30.234681 +0400 apsd [C1508 Hostname#45fde594:443 tcp, url hash: f51ce5f3, tls] cancelled

Encountered a similar situation where no push was arriving, and dns errors were logged when querying sandox.push.apple.com
A fix was to change the phones to use an alternative DNS like Google (8.8.8.8) or Cloudflare (1.1.1.1) in the wifi settings.

Related

BLE Device disconnected when calling via Handsfree profile on iOS with reason 722

We develop our own BLE device and connect to a iPhone. We discover an issue that it will disconnect after 2~3 minutes when making parallel calls over HFP. (ex: Using car audio system,infotainment HUD or so).
Does anyone know what status 722 stands for. How do we resolve this?
Thanks.
step
iPhone connect to Our Device (continiously collecting data in background mode.)
iPhone connect to Car Audio Systems
iPhone make a call with IM app (over HFP).
after 2 ~ 3 mins, the connection between iPhone and Our Device disconnect due to reason 722.
sysdiagnose log
default 2021-02-09 17:04:57.813721 +0800 bluetoothd Server.LE.Connection LE Link disconnected for handle 0x14c804720 address <private> with reason 722 encryptionPending 0
default 2021-02-09 17:04:57.813774 +0800 bluetoothd Server.LE.Connection LE ConnManager disconnection complete reason 722 address=<private> localRole=Master
default 2021-02-09 17:04:57.816296 +0800 bluetoothd Stack.GATT _GATT_LE_DisconnectedCB on handle 0x000000014C804720 with reason STATUS 722
default 2021-02-09 17:04:57.816977 +0800 bluetoothd Server.LE Device "E2278A91-B7B6-2122-696C-BE887487C8D7" set last connected time to 1612890297
default 2021-02-09 17:04:57.820707 +0800 bluetoothd Stack.CL Removing peer ID 0 for handle 0x000000014C804720
default 2021-02-09 17:04:57.820869 +0800 bluetoothd Stack.HCI Releasing LE connection 0x0041
default 2021-02-09 17:04:57.822551 +0800 bluetoothd Server.LE.Connection Device "E2278A91-B7B6-2122-696C-BE887487C8D7" does not require low latency
default 2021-02-09 17:04:57.822580 +0800 bluetoothd Server.LE.Connection Found link-ready device calling disconnection notification
default 2021-02-09 17:04:57.822582 +0800 bluetoothd Server.LE.Connection Disconnected from device "E2278A91-B7B6-2122-696C-BE887487C8D7" successfully (locally-initiated)
default 2021-02-09 17:04:57.822585 +0800 bluetoothd Server.LE.Connection linkReady:1 disconnectDevice:0 localRole:0 reason:722 result:0
default 2021-02-09 17:04:57.824928 +0800 bluetoothd Server.LE.Security Removing temporary security keys for device <private>

installProfile command - Failed to parse profile data (signed profile)

My MDM signing certificate is expired and I want to replace the already installed MDM profile("Not Verified") with updated ones.
I look at MDM-Protocol-Reference.pdf and used installProfile command for it. ("The profile may also be signed")
built installProfile request using: https://developer.apple.com/documentation/devicemanagement/install_a_profile
it works for unsigned profile (base64 encode unsigned profile).
but it didn't work for signed profile (base64 encode signed profile), received error status from the device.
and I'm able to install the new signed profile manually (using user interaction) on top of an existing profile.
Device error log:
Failed to parse profile data. Error: NSError:
Desc : Invalid Profile
US Desc: Invalid Profile
Domain : MCProfileErrorDomain
Code : 1000
Type : MCFatalError
I'm Hoping to find a solution for the error OR other way to update the "Not Verified" profile without user interaction.
Device full log:
default 10:07:00.034059 +0300 mdmd TIC Enabling TLS [1:0x105015240]
default 10:07:00.034108 +0300 mdmd TIC Enabling TLS [1:0x105015240]
default 10:07:00.034868 +0300 mdmd TIC TCP Conn Start [1:0x105015240]
default 10:07:00.034910 +0300 mdmd TIC TCP Conn Start [1:0x105015240]
default 10:07:00.036285 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> setting up Connection 1
default 10:07:00.036327 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> setting up Connection 1
default 10:07:00.036508 +0300 mdmd [1 <private> <private>] start
default 10:07:00.036464 +0300 mdmd [1 <private> <private>] start
default 10:07:00.070280 +0300 mdmd TIC TLS Event [1:0x105015240]: 11, Pending(0)
default 10:07:00.070323 +0300 mdmd TIC TLS Event [1:0x105015240]: 11, Pending(0)
default 10:07:00.175928 +0300 mdmd TIC TLS Trust Result [1:0x105015240]: 0
default 10:07:00.175979 +0300 mdmd TIC TLS Trust Result [1:0x105015240]: 0
default 10:07:00.178796 +0300 mdmd TIC TLS Event [1:0x105015240]: 13, Pending(0)
default 10:07:00.178839 +0300 mdmd TIC TLS Event [1:0x105015240]: 13, Pending(0)
default 10:07:00.195485 +0300 mdmd TIC TLS Event [1:0x105015240]: 20, Pending(0)
default 10:07:00.195528 +0300 mdmd TIC TLS Event [1:0x105015240]: 20, Pending(0)
default 10:07:00.197112 +0300 mdmd TIC TCP Conn Connected [1:0x105015240]: Err(16)
default 10:07:00.197166 +0300 mdmd TIC TCP Conn Connected [1:0x105015240]: Err(16)
default 10:07:00.197650 +0300 mdmd TIC TCP Conn Event [1:0x105015240]: 1
default 10:07:00.197693 +0300 mdmd TIC TCP Conn Event [1:0x105015240]: 1
default 10:07:00.197782 +0300 mdmd TIC TCP Conn Event [1:0x105015240]: 8
default 10:07:00.197739 +0300 mdmd TIC TCP Conn Event [1:0x105015240]: 8
default 10:07:00.197829 +0300 mdmd TIC TLS Handshake Complete [1:0x105015240]
default 10:07:00.197871 +0300 mdmd TIC TLS Handshake Complete [1:0x105015240]
default 10:07:00.203814 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> now using Connection 1
default 10:07:00.203857 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> now using Connection 1
default 10:07:00.204394 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> sent request, body S
default 10:07:00.204453 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> sent request, body S
default 10:07:18.530406 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> received response, status 200 content U
default 10:07:18.530224 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> received response, status 200 content U
default 10:07:18.532521 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> response ended
default 10:07:18.532248 +0300 mdmd Task <83EBAB60-06B5-42EE-982A-43FA43E59CB9>.<1> response ended
default 10:07:18.534869 +0300 mdmd Transaction completed. Status: 200
default 10:07:18.535022 +0300 mdmd Transaction completed. Status: 200
default 10:07:18.535773 +0300 mdmd Starting power assertion: Request: (null)
default 10:07:18.535584 +0300 mdmd Starting power assertion: Request: (null)
default 10:07:18.540990 +0300 mdmd Attempting to perform MDM request: InstallProfile
default 10:07:18.541106 +0300 mdmd Attempting to perform MDM request: InstallProfile
default 10:07:18.572015 +0300 mdmd Loaded AccessibilityUtilities.framework
default 10:07:18.572117 +0300 mdmd Loaded AccessibilityUtilities.framework
default 10:07:18.583088 +0300 mdmd Loaded SetupAssistant.framework
default 10:07:18.583158 +0300 mdmd Loaded SetupAssistant.framework
default 10:07:18.585012 +0300 mdmd Loaded AssertionServices.framework
default 10:07:18.585143 +0300 mdmd Loaded AssertionServices.framework
default 10:07:18.585359 +0300 mdmd Loaded AssertionServices.framework
default 10:07:18.585427 +0300 mdmd Loaded AssertionServices.framework
default 10:07:18.588152 +0300 mdmd BKSApplicationStateMonitor 0x10510f970 dealloced without invalidate
default 10:07:18.588061 +0300 mdmd BKSApplicationStateMonitor 0x10510f970 dealloced without invalidate
default 10:07:18.588565 +0300 mdmd -[FMDFMIPManager isManagedLostModeActive]
default 10:07:18.588633 +0300 mdmd -[FMDFMIPManager isManagedLostModeActive]
default 10:07:18.599702 +0300 mdmd Failed to parse profile data. Error: NSError:
Desc : Invalid Profile
US Desc: Invalid Profile
Domain : MCProfileErrorDomain
Code : 1000
Type : MCFatalErrordefault 10:07:18.599793 +0300 mdmd Failed to parse profile data. Error: NSError:
Desc : Invalid Profile
US Desc: Invalid Profile
Domain : MCProfileErrorDomain
Code : 1000
Type : MCFatalErrordefault 10:07:18.599872 +0300 mdmd Command Status: Error
Error: NSError:
Desc : Invalid Profile
US Desc: Invalid Profile
Domain : MCProfileErrorDomain
Code : 1000
Type : MCFatalError
default 10:07:18.599924 +0300 mdmd Command Status: Error
Error: NSError:
Desc : Invalid Profile
US Desc: Invalid Profile
Domain : MCProfileErrorDomain
Code : 1000
Type : MCFatalError
default 10:07:18.599994 +0300 mdmd MCJQ 1 Enqueueing jobBlock 4, calling function -[MCMDMServer schedulePollingServerForCommandWithAssertion:]
default 10:07:18.600042 +0300 mdmd MCJQ 1 Enqueueing jobBlock 4, calling function -[MCMDMServer schedulePollingServerForCommandWithAssertion:]
default 10:07:18.600115 +0300 mdmd MCJQ 1 Job finished, calling function -[MCMDMServer connection:didReceiveMessageForTopic:userInfo:]_block_invoke_2
default 10:07:18.600185 +0300 mdmd MCJQ 1 Job finished, calling function -[MCMDMServer connection:didReceiveMessageForTopic:userInfo:]_block_invoke_2
default 10:07:18.600263 +0300 mdmd Ending power assertion: Request: (null)
default 10:07:18.600322 +0300 mdmd Ending power assertion: Request: (null)
default 10:07:18.600381 +0300 mdmd MCJQ 1 Dispatching to executionQueue jobBlock 4
default 10:07:18.600453 +0300 mdmd MCJQ 1 Dispatching to executionQueue jobBlock 4
default 10:07:18.600817 +0300 mdmd MCJQ 1 Executing jobBlock 4
default 10:07:18.600880 +0300 mdmd MCJQ 1 Executing jobBlock 4

iOS app crashs only after opening it. New Build

My app is crashing after opening it, please any idea ?
I am testing my iOS app on my phone and when I try opening it, it instantly exits. App builds and works in simulator or if I run through xCode. Does anyone know what could be the cause?
default 23:34:28.298271 +0300 SpringBoard Running <SBAppToAppWorkspaceTransaction: 0x10c501e00> for transition request:
<SBMainWorkspaceTransitionRequest: 0x1c56e8e00; eventLabel: SBUIApplicationIconLaunchEventLabel; display: Main; source: HomeScreen> {
applicationContext = <SBWorkspaceApplicationSceneTransitionContext: 0x1c43510f0; background: NO> entities = {
SBLayoutRolePrimary = <SBDeviceApplicationSceneEntity: 0x1c46988d0; ID: com.myapp; layoutRole: primary>;
};
}
default 23:34:28.312181 +0300 assertiond Submitting new job for "com.myapp" on behalf of <BKProcess: 0x100a0cda0; SpringBoard; com.apple.springboard; pid: 55; agency: SystemShell; visibility: foreground; task: running>
default 23:34:28.312373 +0300 assertiond Submitted job with label: UIKitApplication:com.myapp[0x5e0f][66]
default 23:34:28.429755 +0300 assertiond Now tracking process <BKProcess: 0x100b482b0; Real Agent; com.myapp; pid: 386; agency: Application; visibility: none; task: running; hostpid: 55> with host <BKProcess: 0x100a0cda0; SpringBoard; com.apple.springboard; pid: 55; agency: SystemShell; visibility: foreground; task: running>
default 23:34:28.434511 +0300 SpringBoard [com.myapp] Bootstrap complete with label: UIKitApplication:com.myapp[0x5e0f][66]
default 23:34:28.436639 +0300 SpringBoard [FBProcessManager] Adding: <FBApplicationProcess: 0x10c510250; Real Agent (com.myapp); pid: 386>
default 23:34:28.444373 +0300 SpringBoard WIFI PICKER [com.myapp]: isProcessLaunch: 1, isForegroundActivation: 1, isForegroundDeactivation: 0
default 23:34:28.517241 +0300 mediaserverd -CMSessionMgr- CMSessionMgrHandleApplicationStateChange: CMSession: Client com.myapp with pid '386' is now Foreground Running. Background entitlement: YES
default 23:34:28.522407 +0300 SpringBoard [com.myapp] Setting deactivation reasons to: 'systemAnimation' for reason: scene settings update - settings are eligible for deactivation reasons.
default 23:34:28.534346 +0300 SpringBoard [com.myapp] Setting deactivation reasons to: '(none)' for reason: updateAllScenesForBand - Assertion removed.
default 23:34:28.638341 +0300 SpringBoard Application process state changed for com.myapp: <SBApplicationProcessState: 0x1c42301c0; pid: 386; taskState: Running; visibility: Unknown>
default 23:34:28.736365 +0300 symptomsd 386 com.myapp: ForegroundRunning (most elevated: ForegroundRunning)
error 23:34:28.736560 +0300 symptomsd Attempt to add an app with insufficient id, info {
BKSApplicationStateAppIsFrontmost = 1;
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "com.myapp";
SBApplicationStateKey = 8;
SBApplicationStateProcessIDKey = 386;
SBMostElevatedStateForProcessID = 8;
}
default 23:34:29.453786 +0300 assertiond Process exited: <BKProcess: 0x100b482b0; Real Agent; com.myapp; pid: 386; agency: Application; visibility: foreground; task: none; hostpid: 55>
default 23:34:29.779352 +0300 SpringBoard <FBApplicationProcess: 0x10c510250; Real Agent (com.myapp); pid: 386> crashed.
default 23:34:29.779441 +0300 assertiond Deleted job with label: UIKitApplication:com.myapp[0x5e0f][66]
default 23:34:29.783121 +0300 SpringBoard [FBProcessManager] Removing: <FBApplicationProcess: 0x10c510250; Real Agent (com.myapp); pid: -1>
default 23:34:29.784062 +0300 assertiond [Real Agent:386] Deleted launchd job with label: UIKitApplication:com.myapp[0x5e0f][66]
default 23:34:29.785372 +0300 SpringBoard WIFI PICKER [com.myapp]: isProcessLaunch: 0, isForegroundActivation: 0, isForegroundDeactivation: 1
default 23:34:29.786566 +0300 SpringBoard Front display did change: <SBApplication: 0x1c43c4470; com.myapp>
default 23:34:29.789791 +0300 SpringBoard [com.myapp] Setting deactivation reasons to: 'systemAnimation' for reason: updateAllScenesForBand - Assertion added.
default 23:34:29.795982 +0300 SpringBoard [com.myapp] Setting deactivation reasons to: 'appSwitcher, systemAnimation' for reason: updateAllScenesForBand - Assertion added.
default 23:34:29.797861 +0300 mediaserverd -CMSessionMgr- CMSessionMgrHandleApplicationStateChange: CMSession: Client com.myapp with pid '386' is now Terminated. Background entitlement: NO
default 23:34:29.810557 +0300 SpringBoard [com.myapp] Will update scene - foregroundness changed to: Background
default 23:34:29.810662 +0300 SpringBoard [com.myapp] Setting deactivation reasons to: '(none)' for reason: scene settings update - settings are NOT eligible for deactivation reasons.
default 23:34:29.818875 +0300 assertiond Checking for deferred bootstrap request for com.myapp
default 23:34:29.849094 +0300 SpringBoard Process exited: <FBApplicationProcess: 0x10c510250; Real Agent (com.myapp); pid: -1> -> <FBApplicationProcessExitContext: 0x1c0830c00; exitReason: crash; terminationReason: (none)>
default 23:34:29.849356 +0300 SpringBoard Application process state changed for com.myapp: (null)
default 23:34:29.986805 +0300 symptomsd 386 com.myapp: Terminated (most elevated: Terminated)
default 23:34:29.987061 +0300 symptomsd Entry, display name com.myapp uuid (null) pid 386 isFront 0

BitBucket fails to open SourceTree pop up screen when attempting to check out project

MacOS Mojave 10.14.1
SourceTree 3.0.1 (205)
Both Safari and Chrome
When I access my corporate BitBucket and attempt to checkout in SourceTree, the check out pop up does not open. The action will open the SourceTree app if it is not already running. No difference in behavior by having SourceTree open before accessing BitBucket.
SourceTree is still working with already checked out projects. I can commit and it is correctly reporting updates that I need to pull down. I am not being asked for my credentials and no errors are being displayed in either the web screen or from the SourceTree app.
As far as I know I am the only one in my organization having this issue.
In checking the logs below, I do see that one Err(16) but I can't find anything explaining it.
Any help would be greatly appreciated.
LWhite
Here are the logs from console searching for SourceTree during a failed attempt.
default 16:06:31.046146 -0500 Sourcetree Requesting sharingServicesForItems: mask:6
default 16:06:31.046370 -0500 Sourcetree filteredItemsFromItems: [48048]-->
default 16:06:31.047439 -0500 Sourcetree Discover
default 16:06:31.051713 -0500 Sourcetree discovery complete: 1 plugins
default 16:06:31.052317 -0500 Sourcetree Discover done
default 16:06:31.052358 -0500 Sourcetree Discover
default 16:06:31.065315 -0500 Sourcetree discovery complete: 4 plugins
default 16:06:31.065416 -0500 Sourcetree Discover done
default 16:06:31.065600 -0500 Sourcetree services:
default 16:06:31.065653 -0500 Sourcetree Requesting sharingServicesForItems: mask:6
default 16:06:31.065817 -0500 Sourcetree filteredItemsFromItems: [48048]-->
default 16:06:31.066333 -0500 Sourcetree Discover
default 16:06:31.070421 -0500 Sourcetree discovery complete: 1 plugins
default 16:06:31.071006 -0500 Sourcetree Discover done
default 16:06:31.071038 -0500 Sourcetree Discover
default 16:06:31.082844 -0500 Sourcetree discovery complete: 4 plugins
default 16:06:31.082947 -0500 Sourcetree Discover done
default 16:06:31.083138 -0500 Sourcetree services:
default 16:06:31.083183 -0500 Sourcetree Requesting sharingServicesForItems: mask:6
default 16:06:31.083486 -0500 Sourcetree filteredItemsFromItems: [48048]-->
default 16:06:31.084073 -0500 Sourcetree Discover
default 16:06:31.087559 -0500 Sourcetree discovery complete: 1 plugins
default 16:06:31.087959 -0500 Sourcetree Discover done
default 16:06:31.087993 -0500 Sourcetree Discover
default 16:06:31.097711 -0500 Sourcetree discovery complete: 4 plugins
default 16:06:31.097780 -0500 Sourcetree Discover done
default 16:06:31.097942 -0500 Sourcetree services:
default 16:06:31.227729 -0500 Sourcetree Task .<1> resuming, QOS(0x9)
default 16:06:31.228269 -0500 Sourcetree Task .<1> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 0, builtin 0}
default 16:06:31.228538 -0500 Sourcetree TIC Enabling TLS [10:0x7fd4b6681770]
default 16:06:31.228587 -0500 Sourcetree TIC TCP Conn Start [10:0x7fd4b6681770]
default 16:06:31.228729 -0500 Sourcetree [C10 Hostname#220da288:443 tcp, url: https://e.crashlytics.com/spi/v2/events, tls] start
default 16:06:31.229083 -0500 Sourcetree nw_connection_report_state_with_handler_locked [C10] reporting state preparing
default 16:06:31.229686 -0500 Sourcetree Task .<1> setting up Connection 10
default 16:06:31.266032 -0500 Sourcetree nw_socket_handle_socket_event [C10.1:3] Socket received CONNECTED event
default 16:06:31.266144 -0500 Sourcetree nw_endpoint_flow_protocol_connected [C10.1 IPv4#a9d1e55d:443 in_progress socket-flow (satisfied)] Transport protocol connected
default 16:06:31.267763 -0500 Sourcetree TIC TLS Event [10:0x7fd4b6681770]: 1, Pending(0)
default 16:06:31.267897 -0500 Sourcetree TIC TLS Event [10:0x7fd4b6681770]: 2, Pending(0)
default 16:06:31.294615 -0500 Sourcetree TIC TLS Event [10:0x7fd4b6681770]: 2, Pending(0)
default 16:06:31.296829 -0500 Sourcetree TIC TLS Event [10:0x7fd4b6681770]: 11, Pending(0)
default 16:06:31.297169 -0500 Sourcetree TIC TLS Event [10:0x7fd4b6681770]: 14, Pending(0)
default 16:06:31.332502 -0500 Sourcetree TIC TLS Trust Result [10:0x7fd4b6681770]: 0
default 16:06:31.359758 -0500 Sourcetree nw_endpoint_flow_protocol_connected [C10.1 IPv4#a9d1e55d:443 in_progress socket-flow (satisfied)] Output protocol connected
default 16:06:31.360072 -0500 Sourcetree nw_connection_report_state_with_handler_locked [C10] reporting state ready
default 16:06:31.360531 -0500 Sourcetree TIC TLS Event [10:0x7fd4b6681770]: 20, Pending(0)
default 16:06:31.360571 -0500 Sourcetree TIC TCP Conn Connected [10:0x7fd4b6681770]: Err(16)
default 16:06:31.360811 -0500 Sourcetree TIC TCP Conn Event [10:0x7fd4b6681770]: 1
default 16:06:31.360848 -0500 Sourcetree TIC TCP Conn Event [10:0x7fd4b6681770]: 8
default 16:06:31.360884 -0500 Sourcetree TIC TLS Handshake Complete [10:0x7fd4b6681770]
default 16:06:31.361234 -0500 Sourcetree Task .<1> now using Connection 10
default 16:06:31.361434 -0500 Sourcetree nw_endpoint_flow_protocol_connected [C10.1 IPv4#a9d1e55d:443 ready socket-flow (satisfied)] Output protocol connected
default 16:06:31.361961 -0500 Sourcetree Task .<1> sent request, body S
default 16:06:31.388733 -0500 Sourcetree Task .<1> received response, status 200 content K
default 16:06:31.388845 -0500 Sourcetree Task .<1> response ended
default 16:06:31.388935 -0500 Sourcetree Task .<1> done using Connection 10
default 16:06:37.446828 -0500 Sourcetree 27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 0 vs 1958, 513,
default 16:06:37.549591 -0500 Sourcetree Task <286E9269-50FF-4EF7-8F19-223634797BCF>.<2> resuming, QOS(0x9)
default 16:06:37.549965 -0500 Sourcetree Task <286E9269-50FF-4EF7-8F19-223634797BCF>.<2> {strength 0, tls 4, ct 0, sub 0, sig 1, ciphers 0, bundle 0, builtin 0}
default 16:06:37.550090 -0500 Sourcetree Task <286E9269-50FF-4EF7-8F19-223634797BCF>.<2> now using Connection 10
default 16:06:37.550638 -0500 Sourcetree Task <286E9269-50FF-4EF7-8F19-223634797BCF>.<2> sent request, body S
default 16:06:37.578410 -0500 Sourcetree Task <286E9269-50FF-4EF7-8F19-223634797BCF>.<2> received response, status 200 content K
default 16:06:37.578503 -0500 Sourcetree Task <286E9269-50FF-4EF7-8F19-223634797BCF>.<2> response ended
default 16:06:37.578568 -0500 Sourcetree Task <286E9269-50FF-4EF7-8F19-223634797BCF>.<2> done using Connection 10
L
I received the following response from Atlassian.
We've had a smattering of reports about reciprocal links still not working properly with 3.0.1. I'll make sure we investigate for an upcoming release but can't state an ETA currently.
In the meantime you should be able to list your company's repositories in the Repositories Browser under the Remote tab, filtering by name using the search field, and then clicking the Clone button there.
Brian Ganninger
Senior Mac Developer, Sourcetree
https://community.atlassian.com/t5/Bitbucket-questions/BitBucket-fails-to-open-SourceTree-pop-up-screen-when-attempting/qaq-p/949285

Ruby net/ssh hangs with specific host

I have an issue where if I'm trying to create a ssh connection to a specific host, the connection hangs without timing out. I have tried connecting to this host from the same machine from outside the rails console and it works so I'm assuming this shouldn't be anything related to routing/firewall. I can also confirm I have several other hosts with the exact same OS configuration in different places and they work.
This is the log when running Net::SSH.start in debug mode:
ssh = Net::SSH.start("1.2.3.4", "user", password: "password", verbose: :debug)
2014-02-27 13:17:43 +0100 [DEBUG] establishing connection to 1.2.3.4:22
2014-02-27 13:17:43 +0100 [DEBUG] connection established
2014-02-27 13:17:43 +0100 [INFO] negotiating protocol version
2014-02-27 13:17:43 +0100 [DEBUG] remote is `SSH-2.0-OpenSSH_4.3'
2014-02-27 13:17:43 +0100 [DEBUG] local is `SSH-2.0-Ruby/Net::SSH_2.6.8 i686-linux'
2014-02-27 13:17:43 +0100 [DEBUG] read 704 bytes
2014-02-27 13:17:43 +0100 [DEBUG] received packet nr 0 type 20 len 700
2014-02-27 13:17:43 +0100 [INFO] got KEXINIT from server
2014-02-27 13:17:43 +0100 [INFO] sending KEXINIT
2014-02-27 13:17:43 +0100 [DEBUG] queueing packet nr 0 type 20 len 1620
2014-02-27 13:17:43 +0100 [DEBUG] sent 1624 bytes
2014-02-27 13:17:43 +0100 [INFO] negotiating algorithms
2014-02-27 13:17:43 +0100 [DEBUG] negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-rsa
* encryption_server: aes128-cbc
* encryption_client: aes128-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
2014-02-27 13:17:43 +0100 [DEBUG] exchanging keys
2014-02-27 13:17:43 +0100 [DEBUG] queueing packet nr 1 type 34 len 20
2014-02-27 13:17:43 +0100 [DEBUG] sent 24 bytes
At this point the ssh connection just hangs and could stay like this for 15-30 minutes.
Unfortunately I have no error message or anything so I'm really clueless about what the problem might be.
Some specs:
ruby-2.0.0-p0
rails (3.2.13)
net-ssh-2.8.0
The IP address in the log is not a real IP on purpose.
Any suggestion about what the problem could be? Or maybe some other log or place I could check out? I found a similar problem outside SO but it didn't get a solution so I'm trying to ask here...
I solved by reducing maximum transmission unit (MTU). My environment was some specific case. I was trying ssh from VMware Virtual Machine to Openstack Instance. And openstack needed smaller packet to be connected by kitchen-openstack which is using fog, using NET::SSH. Not sure if this works for you, but have a try for these commands (assuming in Ubuntu):
check your MTU
sudo netstat -i
You'll get some output like this, in the second column, you can check MTU:
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 9658 0 0 0 308 0 0 0 BMRU
lo 16436 0 12952 0 0 0 12952 0 0 0 LRU
For network interface eth0, you can try to reduce MTU from 1500 to, for example 1400 like this:
sudo ifconfig eth0 mtu 1400
try net ssh
ssh = Net::SSH.start("1.2.3.4", "user", password: "password", verbose: :debug)

Resources