iOS 7 fresh reset device does not send TokenUpdate to server after MDM mobileconfig profile installs - ios7

Summary
I have an iPad Mini with iOS 7.0 (11A465) installed on it. If I go to "Settings > General > Reset > Erase All Content and Settings" and erase the device, and then successfully install an MDM configuration profile on the device, during the enrollment process the device sends to the server an "Authenticate" XML payload, but afterwards it doesn't send any "TokenUpdate" payload as expected. So I have no means of sending push notifications to the device using APNS. If I remove the MDM configuration profile and reinstall it, everything works fine. And no matter how many times I remove and install the MDM configuration profile, it will always work fine. But if I erase the device again, it won't work at first attempt.
Steps to Reproduce
I reset the device (iPad Mini iOS 7.0 (11A465)) by going to "Settings > General > Reset > Erase All Content and Settings"
After the device reinitializes, I set up a Wi-Fi connection
I open up Safari and download an MDM configuration profile (OTA); the profile doesn't contain a SCEP server configuration, but instead has a PKCS12 self-signed certificate inside (I attached the MDM configuration profile; it's a file called "mdm.mobileconfig"); the profile also contains a check-in URL
I successfully install the profile
The device uploads an XML payload to the check-in URL, which contains these 2 nodes (amongst other nodes):
MessageType
Authenticate
No matter how much I wait, the device doesn't upload anything else. However, I expect the device to also upload at least one more XML payload containing the following 2 nodes:
MessageType
TokenUpdate
I manually remove the MDM configuration profile
I repeat steps 3, 4 and 5
This time, the device also uploads the expected XML payload containing the device token, which is perfect, because it allows me to send notifications through APNS
I am now able to repeat steps 7, 8, 9 time and time again flawlessly
If I start all over with step 1, the bug described at step 6 reemerges
Expected Results
The expected result is to ALWAYS obtain the device token after successfully installing an MDM configuration profile on my iPad Mini iOS 7.0 (11A465) device, even after the device gets reset to factory settings.
Actual Results
The first time I install an MDM configuration profile on a fresh (factory settings) device, the device doesn't upload the device token to the check-in server.
This is the mobileconfig(not with real links or certificate)
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>AccessRights</key>
<integer>8191</integer>
<key>CheckInURL</key>
<string>https://checkin.url</string>
<key>CheckOutWhenRemoved</key>
<true/>
<key>IdentityCertificateUUID</key>
<string>AAAA-AAAA-AAAAA</string>
<key>PayloadDescription</key>
<string>Remote management of iOS mobile devices</string>
<key>PayloadDisplayName</key>
<string>Mobile Device Management</string>
<key>PayloadIdentifier</key>
<string>com.mdm.identifier</string>
<key>PayloadOrganization</key>
<string>Organization</string>
<key>PayloadType</key>
<string>com.apple.mdm</string>
<key>PayloadUUID</key>
<string>aaaaa-aaaaaa-aaaaa-aaaaa</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>ServerURL</key>
<string>https://server.url</string>
<key>SignMessage</key>
<false/>
<key>Topic</key>
<string>com.apple.topic</string>
<key>UseDevelopmentAPNS</key>
<true/>
</dict>
<dict>
<key>Password</key>
<string>password</string>
<key>PayloadCertificateFileName</key>
<string>certificate.p12</string>
<key>PayloadContent</key>
<data>
XXXXXXXXXXXXXXXXXXXXXXXXXXX
</data>
<key>PayloadDescription</key>
<string>Provides device authentication (certificate or identity).</string>
<key>PayloadDisplayName</key>
<string>SSL Certificate</string>
<key>PayloadIdentifier</key>
<string>com.identifier.test</string>
<key>PayloadOrganization</key>
<string>Organization</string>
<key>PayloadType</key>
<string>com.apple.security.pkcs12</string>
<key>PayloadUUID</key>
<string>AAAA-AAAA-AAAAA</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>Remote management of iOS mobile devices</string>
<key>PayloadDisplayName</key>
<string>Mobile Device Management</string>
<key>PayloadIdentifier</key>
<string>com.identifier.test</string>
<key>PayloadOrganization</key>
<string>Organization</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>aaa-aaaa-aaaa</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
This is the log from IPCU
Oct 2 18:34:06 iPad profiled[183] <Notice>: (Note ) profiled: Service starting...
Oct 2 18:34:06 iPad profiled[183] <Notice>: (Note ) MC: Profile “com.identifier.test” queued for installation.
Oct 2 18:34:07 iPad Preferences[172] <Warning>: void unloadAPTableCellImages(): unloading images
Oct 2 18:34:11 iPad profiled[183] <Notice>: (Note ) MC: Checking for MDM installation...
Oct 2 18:34:11 iPad profiled[183] <Notice>: (Note ) MC: ...finished checking for MDM installation.
Oct 2 18:34:11 iPad profiled[183] <Notice>: (Note ) MC: Beginning profile installation...
Oct 2 18:34:12 iPad profiled[183] <Error>: MKBDeviceLockAssertion: Status missing from response
Oct 2 18:34:12 iPad profiled[183] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x14d58ba0)
Oct 2 18:34:12 iPad profiled[183] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:544164 with error 22)
Oct 2 18:34:12 iPad profiled[183] <Notice>: (Error) MC: Could not hold keybag lock assertion. Error: The operation couldn’t be completed. Invalid argument
Oct 2 18:34:12 iPad securityd[83] <Error>: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:12 iPad securityd[83] <Error>: securityd_xpc_dictionary_handler sbd[95] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:12 iPad securityd[83] <Error>: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:12 iPad securityd[83] <Error>: securityd_xpc_dictionary_handler sbd[95] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:12 iPad profiled[183] <Error>: TASK-ASSERT: cfurlcache - truncate DB - FAILED to get assertion, going commando!
Oct 2 18:34:13 iPad profiled[183] <Error>: MKBDeviceGetGracePeriod: MKBDeviceGetGracePeriod() => (0,0,0)
Oct 2 18:34:13 iPad profiled[183] <Error>: MKBDeviceGetGracePeriod: MKBDeviceGetGracePeriod() => (0,0,0)
Oct 2 18:34:13 iPad profiled[183] <Error>: get_longlongvalue_for_key: failed to get GracePeriod
Oct 2 18:34:13 iPad profiled[183] <Error>: get_longlongvalue_for_key: failed to get MaxLifetime
Oct 2 18:34:13 iPad profiled[183] <Error>: MKBDeviceSetGracePeriod: MKBDeviceSetGracePeriod(-1,5,-1)
Oct 2 18:34:13 iPad profiled[183] <Error>: MKBDeviceSetGracePeriod: MKBDeviceSetGracePeriod: from AKS 0
Oct 2 18:34:13 iPad keybagd[44] <Error>: 0x297000 __update_system_keybag_block_invoke: Updating System Keybag
Oct 2 18:34:13 iPad keybagd[44] <Error>: 0x297000 KBUpdateSystemKeyBag: Got opaqueStuff from ondisk keybag
Oct 2 18:34:13 iPad keybagd[44] <Error>: 0x297000 KBUpdateSystemKeyBag: Saved new keybag with result 2715424
Oct 2 18:34:13 iPad profiled[183] <Notice>: (Note ) MC: Profile “com.identifier.test” installed.
Oct 2 18:34:13 iPad afcd[157] <Error>: Checking for changed log settings
Oct 2 18:34:13 iPad afcd[157] <Error>: valid 0 value 0
Oct 2 18:34:13 iPad afcd[157] <Error>: Verbose logging disabled
Oct 2 18:34:13 iPad Preferences[172] <Warning>: -[VPNConnectionStore reloadVPN]: The active VPN configuration has changed from (null) to (null)
Oct 2 18:34:13 iPad Preferences[172] <Warning>: -[VPNBundleController _vpnConfigurationChanged:] (0x14e89fd0:<VPNBundleController: 0x14e89fd0>): _serviceCount(0), serviceCount(0), toggleInRootMenu(0), RootMenuItem(1)
Oct 2 18:34:13 iPad lockdownd[51] <Error>: FAILURE: Failed to open property list at file:///private/var/db/launchd.db/com.apple.launchd/overrides.plist for reading. (The operation couldn’t be completed. No such file or directory)
Oct 2 18:34:13 iPad mc_mobile_tunnel[188] <Notice>: (Note ) MC: mc_mobile_tunnel starting.
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCProfileMonitor::profileCallback Entered token:1
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCLogTap::profileRemoved
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCDataFile::profileRemoved
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCLogTap::profileRemoved
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCProfileMonitor::setStreamEventHandler
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCXPCService::setStreamEventHandler Registered for notification callback.
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCXPCService::setStreamEventHandler Woken up by notifyd.
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCProfileMonitor::profileCallback Entered token:0
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCLogTap::profileRemoved
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCDataFile::profileRemoved
Oct 2 18:34:14 iPad corecaptured[186] <Warning>: CCLogTap::profileRemoved
Oct 2 18:34:14 iPad mdmd[184] <Notice>: (Note ) MDM: mdmd starting...
Oct 2 18:34:14 iPad mdmd[184] <Notice>: (Note ) MDM: Looking for managed app states to clean up
Oct 2 18:34:14 iPad mdmd[184] <Notice>: (Note ) MDM: Waiting for push token to be assigned to this device...
Oct 2 18:34:14 iPad mdmd[184] <Notice>: (Note ) MDM: Network reachability has changed.
Oct 2 18:34:14 iPad mdmd[184] <Notice>: (Note ) MDM: Network reachability has changed.
Oct 2 18:34:14 iPad securityd[83] <Error>: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:14 iPad securityd[83] <Error>: securityd_xpc_dictionary_handler sbd[95] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:14 iPad securityd[83] <Error>: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:14 iPad securityd[83] <Error>: securityd_xpc_dictionary_handler sbd[95] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:14 iPad awdd[185] <Error>: CoreLocation: CLClient is deprecated. Will be obsolete soon.
Oct 2 18:34:22 iPad profiled[183] <Error>: TASK-ASSERT: cfurlcache - ProcessCacheTask - FAILED to get task-assertion, going commando with 1 items to process.
Oct 2 18:34:23 iPad mc_mobile_tunnel[188] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down.
Oct 2 18:34:25 iPad mdmd[184] <Notice>: (Note ) MDM: Timed out waiting for push token. Continuing...
Oct 2 18:34:25 iPad mdmd[184] <Notice>: (Note ) MDM: Waiting for push token to be assigned to this device...
Oct 2 18:34:29 iPad mdmd[184] <Notice>: (Note ) MDM: mdmd stopping.
Oct 2 18:34:36 iPad profiled[183] <Notice>: (Note ) profiled: Service stopping.
Oct 2 18:34:44 iPad wifid[15] <Error>: WiFi:[402420884.811876]: Enable WoW requested by "apsd"
Oct 2 18:34:44 iPad awdd[189] <Error>: CoreLocation: CLClient is deprecated. Will be obsolete soon.
Oct 2 18:34:47 iPad securityd[83] <Error>: SecErrorGetOSStatus unknown error domain: com.apple.security.sos.error for error: The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:47 iPad securityd[83] <Error>: securityd_xpc_dictionary_handler sbd[95] DeviceInCircle The operation couldn’t be completed. (com.apple.security.sos.error error 2 - Public Key not available - failed to register before call)
Oct 2 18:34:47 iPad mdmd[191] <Notice>: (Note ) MDM: mdmd starting...
Oct 2 18:34:47 iPad mdmd[191] <Notice>: (Note ) MDM: Looking for managed app states to clean up
Oct 2 18:34:47 iPad profiled[192] <Notice>: (Note ) profiled: Service starting...
Oct 2 18:34:47 iPad mdmd[191] <Notice>: (Note ) MDM: Network reachability has changed.
Oct 2 18:34:47 iPad mdmd[191] <Notice>: (Note ) MDM: Network reachability has changed.
Oct 2 18:34:47 iPad mdmd[191] <Notice>: (Note ) MDM: Push token received.
Oct 2 18:34:51 iPad mdmd[191] <Notice>: (Note ) MDM: mdmd stopping.
Oct 2 18:34:58 iPad profiled[192] <Notice>: (Note ) profiled: Service stopping.
Oct 2 18:35:39 iPad cplogd[180] <Warning>: Exiting.
Oct 2 18:36:01 iPad backboardd[28] <Notice>: ALS: SetDisplayFactor: factor=0.0500
Oct 2 18:36:16 iPad backboardd[28] <Notice>: ALS: SetDisplayFactor: factor=0.0000
Oct 2 18:36:16 iPad kernel[0] <Debug>: AppleMultitouchN1SPI: updating power statistics
Oct 2 18:36:16 iPad backboardd[28] <Notice>: MultitouchHID: detection mode: 3->255
Oct 2 18:36:16 iPad kernel[0] <Debug>: ALS: AppleARMBacklight::setBacklightEnableGated 0 (set level to 0x36e)
Oct 2 18:36:16 iPad backboardd[28] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0
Oct 2 18:36:16 iPad SpringBoard[33] <Warning>: [MPUNowPlayingController] Not registered for now playing notifications. Ignoring call to -unregisterForNotifications.
Oct 2 18:36:16 iPad profiled[193] <Notice>: (Note ) profiled: Service starting...
Oct 2 18:36:16 iPad touchsetupd[115] <Warning>: WPTransfer deallocing
Oct 2 18:36:17 iPad cplogd[194] <Warning>: Starting.
Oct 2 18:36:17 iPad kernel[0] <Debug>: ALS: AppleARMBacklight::handleMessageGated - framebufferState -> 0

Related

Redhat Server oracle-rdbms.service Startup Error

I am trying to create a service file that will allow me to automatically startup my Oracle 12C database and listener automatically on reboot. I have written the service file which contains the following:
# /etc/systemd/system/oracle-rdbms.service
# Invoking Oracle scripts to start/shutdown Instances defined in /etc/oratab
# and starts Listener
[Unit]
Description=Oracle Database(s) and Listener
Requires=network.target
[Service]
Type=forking
Restart=no
ExecStart=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbstart /u01/app/oracle/product/12.2.0/dbhome_1/
ExecStop=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbshut /u01/app/oracle/product/12.2.0/dbhome_1/
User=oracle
[Install]
WantedBy=multi-user.target
When I enabled the service and checked the status, I get the following error:
● oracle-rdbms.service - Oracle Database(s) and Listener
Loaded: loaded (/etc/systemd/system/oracle-rdbms.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mon 2018-10-22 11:45:02 EDT; 1 day 23h ago
Process: 1377 ExecStop=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbshut /u01/app/oracle/product/12.2.0/dbhome_1 (code=exited, status=0/SUCCESS)
Process: 615 ExecStart=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbstart /u01/app/oracle/product/12.2.0/dbhome_1 (code=exited, status=0/SUCCESS)
Oct 22 11:45:00 oracle-dev dbstart[615]: /u01/app/oracle/product/12.2.0/dbhome_1/bin/dbstart: line 94: /u01/app/oracle/product/12.2.0/dbhome_1/listener.log: Permission denied
Oct 22 11:45:02 oracle-dev dbstart[615]: touch: cannot touch ‘/u01/app/oracle/product/12.2.0/dbhome_1/startup.log’: Permission denied
Oct 22 11:45:02 oracle-dev dbstart[615]: chmod: changing permissions of ‘/u01/app/oracle/product/12.2.0/dbhome_1/startup.log’: Operation not permitted
Oct 22 11:45:02 oracle-dev dbstart[615]: Processing Database instance "orcl": log file /u01/app/oracle/product/12.2.0/dbhome_1/startup.log
Oct 22 11:45:02 oracle-dev dbstart[615]: /u01/app/oracle/product/12.2.0/dbhome_1/bin/dbstart: line 346: /u01/app/oracle/product/12.2.0/dbhome_1/startup.log: Permission denied
Oct 22 11:45:02 oracle-dev dbshut[1377]: /u01/app/oracle/product/12.2.0/dbhome_1/bin/dbshut: line 63: /u01/app/oracle/product/12.2.0/dbhome_1/listener.log: Permission denied
Oct 22 11:45:02 oracle-dev dbshut[1377]: /u01/app/oracle/product/12.2.0/dbhome_1/bin/dbshut: line 64: /u01/app/oracle/product/12.2.0/dbhome_1/listener.log: Permission denied
Oct 22 11:45:02 oracle-dev dbshut[1377]: Processing Database instance "orcl": log file /u01/app/oracle/product/12.2.0/dbhome_1/shutdown.log
Oct 22 11:45:02 oracle-dev dbshut[1377]: /u01/app/oracle/product/12.2.0/dbhome_1/bin/dbshut: line 160: /u01/app/oracle/product/12.2.0/dbhome_1/shutdown.log: Permission denied
Oct 22 11:45:02 oracle-dev systemd[1]: Started Oracle Database(s) and Listener.
I am logged in as root and am still not sure what the problem is. Thank you
Your startup.log and listerner.log don't have the correct permissions set up. Use the chmod command on those two files to the appropriate permissions and it should work

osascript set volume isn't working via ssh

here is my situation.
User A is currently logged on Computer A.
User B logs into Computer A via ssh.
User B runs via terminal a osascript (osascript -e 'set volume 0')
here is my error log:
Oct 20 13:25:17 osascript[29389] <Error>: Set a breakpoint at CGSLogError to catch errors as they are logged.
Oct 20 13:25:17 osascript[29389] <Error>: This user is not allowed access to the window system right now.
Oct 20 13:25:17 osascript[29389] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Oct 20 13:25:17 osascript[29389] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Oct 20 13:25:17 osascript[29389] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
2015-10-20 13:25:17.196 osascript[29389:1503684] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2015-10-20 13:25:17.197 osascript[29389:1503684] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2015-10-20 13:25:17.197 osascript[29389:1503684] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2015-10-20 13:25:17.197 osascript[29389:1503684] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
Oct 20 13:25:17 osascript[29389] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
Oct 20 13:25:17 osascript[29389] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Oct 20 13:25:17 osascript[29389] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Oct 20 13:25:17 osascript[29389] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Side notes
User B is set as admin
Once upon a time, I recall executing this situation before without any errors. Not sure if this is a ARD setting with privileges?
I've found an alternative which seems to work...
If I add
sudo -u username before the osascript -e command, then it works.
example
sudo -u username osascript -e 'set volume 0'
from what a read, seems that apple does not allow users to open applications via ssh session while another user is logged in. Must be logged in as the current user to run osascripts, otherwise, add the following command sudo -u username

IBM Worklight 6.1 - How to handle timeouts in slower networks?

We have built an application using Worklight 6.1 for iOS5,iOS6 & IOS7, and it's working perfectly fine.
However, when we are trying to use app in 2G network and try to call an adapter procedure it is not even connecting to the server. Every time we are getting a time out and after trying 10-15 times, it will get connect to server and give response back.
When we use same app on other good network or 3G, it works perfectly fine with no issue.
This is the log which we se in Xcode Organizer console while using 2G network:
Jan 17 16:50:53 My-iPad Sec Sec[292] <Warning>: WLRequestBuilder.initWithRootUrl else_url: https://domain.com:443/MyApp/apps/services/api/MyApp/ipad/0/query
Jan 17 16:50:55 My-iPad Sec Sec[292] <Warning>: LSHelperClient: Session started with polling: NO
Jan 17 16:50:59 My-iPad Sec Sec[292] <Warning>: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
Jan 17 16:50:59 My-iPad Sec Sec[292] <Warning>: [ERROR] Worklight: -[WLRequest requestFailed:]:338::Status code='0' error='The request timed out'
Jan 17 16:50:59 My-iPad Sec Sec[292] <Warning>: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
Jan 17 16:50:59 My-iPad Sec Sec[292] <Warning>: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
Jan 17 16:50:59 My-iPad Sec Sec[292] <Warning>: [ERROR] Worklight: -[WLClient onInvokeProcedureFailure:userInfo:]:696::response string=''
Jan 17 16:50:59 My-iPad kernel[0] <Debug>: AppleAP3GDL::handleInterrupt2 FIFO is Empty
Jan 17 16:51:08 My-iPad Sec Sec[292] <Warning>: WLRequestBuilder.initWithRootUrl else_url: https://domain.com:443/MyApp/apps/services/api/MyApp/ipad/0/query
Jan 17 16:51:14 My-iPad Sec Sec[292] <Warning>: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
Jan 17 16:51:14 My-iPad Sec Sec[292] <Warning>: [ERROR] Worklight: -[WLRequest requestFailed:]:338::Status code='0' error='The request timed out'
Jan 17 16:51:14 My-iPad Sec Sec[292] <Warning>: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
Jan 17 16:51:14 My-iPad Sec Sec[292] <Warning>: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
Jan 17 16:51:14 My-iPad Sec Sec[292] <Warning>: [ERROR] Worklight: -[WLClient onInvokeProcedureFailure:userInfo:]:696::response string=''
Jan 17 16:51:17 My-iPad Sec Sec[292] <Warning>: WLRequestBuilder.initWithRootUrl else_url: https://domain.com:443/MyApp/apps/services/api/MyApp/ipad/0/query
Jan 17 16:51:23 My-iPad Sec Sec[292] <Warning>: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
Jan 17 16:51:23 My-iPad Sec Sec[292] <Warning>: [ERROR] Worklight: -[WLRequest requestFailed:]:338::Status code='0' error='The request timed out'
Jan 17 16:51:23 My-iPad Sec Sec[292] <Warning>: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
Jan 17 16:51:23 My-iPad Sec Sec[292] <Warning>: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
Jan 17 16:51:23 My-iPad Sec Sec[292] <Warning>: [ERROR] Worklight: -[WLClient onInvokeProcedureFailure:userInfo:]:696::response string=''
Jan 17 16:51:33 My-iPad Sec Sec[292] <Warning>: WLRequestBuilder.initWithRootUrl else_url: https://domain.com:443/MyApp/apps/services/api/MyApp/ipad/0/query
Jan 17 16:51:40 My-iPad Sec Sec[292] <Warning>: DeviceAuthManager:getWorklightUniqueDeviceId --> returning UUID from the keychain
Jan 17 16:51:40 My-iPad Sec Sec[292] <Warning>: WLRequestBuilder.initWithRootUrl else_url: https://domain.com:443/MyApp/apps/services/api/MyApp/ipad/0/query
Let me know what will be the issue and what else we can do for it. Our backend API is very fast, within millisecond we are getting response.
What we did on procedure side :
var timeout = 600000;
var invocationOptions = {
onSuccess: LoginSuccess,
onFailure: LoginFail,
timeout: timeout
};
And in Adapter XML file :
<procedure name="Authentication" requestTimeoutInSeconds="600000"/>
And we have tried this experiment with HTTP and HTTPS both and having the same issue(getting time out).
When we launch app we are getting wlclient init success.
Do not set high timeouts in adapter XML file. 600.000 seconds timeout means that a thread that is used to connect to a backend will wait for 166.6 hours before timing out, this can easily kill your server functionality:)
Usually you want your adapter<->backend timeout to be the highest value you allow in app<->adapter connectivity. E.g. if max timeout you use in your app is 60 seconds - this is the value to use in adapter<->backend segment as well.
Now, regarding app<->adapter segment. AFAIR default timeout is 30 seconds. This is usually enough for 2G networks as well. However in some cases this might be a bit low. You can use getNetworkInfo() API (http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.apiref.doc%2Fhtml%2Frefjavascript-client%2Fhtml%2FWL.Device.html) to detect whether you're on WIFI/Mobile and 3g/2g etc. Once you're on a slow network - increase your timeouts. If you're on a fast network - there's no reasons to keep users waiting too long, reduce your timeouts.
It's great that your backend is very fast, but that's an internal system.
When using 3G or WiFi, speeds are typically fast.
When using 2G or less, speeds are typically much slower.
Did you try increasing the timeout values in your WL.Client.invokeProcedure as well as adapter procedure?
These will allow for the client and/or server to wait longer for a response. This should help in cases where the network speed is very slow.
See these questions:
How to increase the adapter procedure timeout value in Worklight?
IBM Worklight 6.0.0.1 - Timeout setting in Adapters

Adhoc failed to install - handle_install: API failed

I'm facing a problem with Adhoc provisioning profile, i can't install my deployed app using adhoc provisioning profile on my customer iPad, this happen after I upgrade the xcode from 4.2 to 4.3.3, the device log is:
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Jul 3 09:08:38 unknown installd[1300] <Error>: 00281000 verify_signer_identity: Could not copy validate signature: -402620394
Jul 3 09:08:38 unknown installd[1300] <Error>: 00281000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.BQH85j/foo_extracted/Payload/My app.app
Jul 3 09:08:38 unknown installd[1300] <Error>: 00281000 install_application: Could not preflight application install
Jul 3 09:08:40 unknown installd[1300] <Error>: 00281000 handle_install: API failed
Jul 3 09:08:40 unknown installd[1300] <Error>: 00281000 send_message: failed to send mach message of 71 bytes: 10000003
Jul 3 09:08:40 unknown installd[1300] <Error>: 00281000 send_error: Could not send error response to client
I've deleted all my provisioning profiles, clean it from the computer, restart the computer, then download them from the portal, the same issue. I've checked the provisioning profile by opening it using textEdit and checked the get-task-allow boolean, it's set to false.
Any help will be appreciated.
The problem happen when deploying the app using Development certificate, then Archiving it using Distribution certificate. I've checked them and everything going well now. Hope that help someone else facing this problem.
Thank you.

Crash - Booted out of app to Apple logo screen (Crash restarted iPad)

I have been getting these random crashes with my app. I am running it in debug or release mode and it boots me out of the app and sends me straight to the black apple screen and not to the Springboard screen.
I am using a fair bit of core animations with CAAnimationGroup's and using AVAudioPlayer for sounds
Here is the crash log that was displayed in the Device Logs of the organiser window.
Aug 16 17:06:53 unknown HRG[86] <Warning>: -[CAETimelineObjectSound audioPlayerDidFinishPlaying:successfully:] Audio "snd_01_01.caf" play finished; successfully=1
Aug 16 17:06:54 unknown ReportCrash[88] <Notice>: Formulating crash report for process SpringBoard[27]
Aug 16 17:06:54 unknown ReportCrash[88] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/SpringBoard_2011-08-16-170654_Test-iPad-2.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Aug 16 17:06:54 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.COMPANY.AppName[0x4e02]) Bug: launchd_core_logic.c:3794 (24506):3
Aug 16 17:06:54 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.COMPANY.AppName[0x4e02]) Bug: launchd_core_logic.c:3202 (24506):10
Aug 16 17:06:54 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.COMPANY.AppName[0x4e02]) Working around 5020256. Assuming the job crashed.
Aug 16 17:06:54 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.COMPANY.AppName[0x4e02]) Job appears to have crashed: Segmentation fault: 11
Aug 16 17:06:54 unknown com.apple.debugserver-50[85] <Warning>: 1 [0055/1503]: error: ::read ( 4, 0x2ff879f0, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Aug 16 17:06:55 unknown com.apple.launchd[1] <Warning>: (com.apple.SpringBoard) Job appears to have crashed: Bus error: 10
Aug 16 17:06:55 unknown kernel[0] <Debug>: virtual void AppleRGBOUT::do_power_state_change(): fSoft: 1 fHard: 1 swapBusy: 0 fController: 0 -> 1
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_up_hardware()
Aug 16 17:06:55 unknown kernel[0] <Debug>: set_crc_notification_state 0
Aug 16 17:06:55 unknown kernel[0] <Debug>: virtual void AppleRGBOUT::do_power_state_change(): fSoft: 0 fHard: 1 swapBusy: 0 fController: 1 -> 0
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware()
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware(), clock down RGBOUT
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware(), RGB_CTRL (0x00000000) clk_down_ready is not set after 60 msecs
Aug 16 17:06:55 unknown kernel[0] <Debug>: IOReturn AppleRGBOUT::set_display_device_gated(uint32_t), 1
Aug 16 17:06:55 unknown kernel[0] <Debug>: virtual void AppleRGBOUT::do_power_state_change(): fSoft: 1 fHard: 1 swapBusy: 1 fController: 0 -> 1
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_up_hardware()
Aug 16 17:06:55 unknown kernel[0] <Debug>: set_crc_notification_state 0
Aug 16 17:06:55 unknown kernel[0] <Debug>: virtual void AppleRGBOUT::do_power_state_change(): fSoft: 0 fHard: 1 swapBusy: 0 fController: 1 -> 0
Aug 16 17:06:55 unknown kernel[0] <Debug>: IOReturn IOMobileFramebufferUserClient::set_hotplug_notify(void*, void*) 0x30b6d911 0x201642b0
Aug 16 17:06:55 unknown kernel[0] <Debug>: IOReturn IOMobileFramebufferUserClient::set_hotplug_notify(void*, void*) 0x8bed3c00 0x8a3de06c 0x30b6d911 0x201642b0
Aug 16 17:06:55 unknown SpringBoard[89] <Warning>: No AppleBaseband service detected. Cellular data disabled.
Aug 16 17:06:55 unknown SpringBoard[89] <Error>: WiFi: Consulting "no-sdio-devices" property.
Aug 16 17:06:55 unknown SpringBoard[89] <Error>: WiFi: "no-sdio-devices" property not found.
Aug 16 17:06:55 unknown SpringBoard[89] <Notice>: CLTM: initial thermal level is 0
Aug 16 17:06:55 unknown SpringBoard[89] <Notice>: MultitouchHID(1f5694f0) uilock state: 1 -> 0
Aug 16 17:06:55 unknown locationd[22] <Error>: hidd died. Reestablishing connection.
Aug 16 17:06:56 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware()
Aug 16 17:06:56 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware(), clock down RGBOUT
Aug 16 17:06:56 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware(), RGB_CTRL (0x00000000) clk_down_ready is not set after 60 msecs
Aug 16 17:06:56 unknown SpringBoard[89] <Warning>: lockdown says the device is: [Activated], state is 3
Aug 16 17:06:56 unknown misd[92] <Notice>: port forwarding is allowed
Aug 16 17:06:56 unknown misd[92] <Info>: checking for carrier provisioning
Aug 16 17:06:56 unknown misd[92] <Info>: carrier service is not available
Aug 16 17:06:56 unknown misd[92] <Debug>: published changes: success
Aug 16 17:06:56 unknown misd[92] <Info>: maximum number of wireless tethered hosts is 3
Aug 16 17:06:56 unknown misd[92] <Debug>: published changes: success
Aug 16 17:06:56 unknown misd[92] <Debug>: attached to SpringBoard (0x1f666cc0, port 0x3c0b)
Aug 16 17:06:56 unknown misd[92] <Debug>: detached from SpringBoard (0x1f666cc0, port 0x1f666d00)
Aug 16 17:06:56 unknown misd[92] <Debug>: no clients left; resuming idle timer
Aug 16 17:06:56 unknown SpringBoard[89] <Warning>: BTM: attaching to BTServer
Aug 16 17:06:56 unknown SpringBoard[89] <Debug>: spd:_libspd_initialize_protocol:142 Registered notification port with spd [PID=93]
Aug 16 17:06:56 unknown SpringBoard[89] <Debug>: spd:_libspd_initialize_notify:241 All set up for spd wake notifications
Aug 16 17:06:56 unknown misd[92] <Debug>: attached to SpringBoard (0x1f666d60, port 0x400b)
Aug 16 17:06:56 unknown misd[92] <Debug>: detached from SpringBoard (0x1f666d60, port 0x1f666da0)
Aug 16 17:06:56 unknown misd[92] <Debug>: no clients left; resuming idle timer
Aug 16 17:06:56 unknown SpringBoard[89] <Error>: mms: ***** isMmsConfigured = 0
Aug 16 17:06:56 unknown SpringBoard[89] <Warning>: BTM: posting notification BluetoothAvailabilityChangedNotification
Aug 16 17:06:57 unknown com.apple.printd[94] <Notice>: Accepted connection from localhost:631 (Domain)
Aug 16 17:06:57 unknown com.apple.printd[94] <Notice>: Closing connection from localhost:631 (Domain)
Aug 16 17:06:57 unknown SpringBoard[89] <Error>: WiFi: Consulting "no-sdio-devices" property.
Aug 16 17:06:57 unknown SpringBoard[89] <Error>: WiFi: "no-sdio-devices" property not found.
Aug 16 17:06:57 unknown com.apple.printd[94] <Notice>: Accepted connection from localhost:631 (Domain)
Aug 16 17:06:57 unknown com.apple.printd[94] <Notice>: Closing connection from localhost:631 (Domain)
Aug 16 17:07:04 unknown SpringBoard[89] <Notice>: MultitouchHID(1f5694f0) uilock state: 0 -> 1
Aug 16 17:07:16 unknown SpringBoard[89] <Debug>: spd:___libspd_initialize_protocol_block_invoke_2:172 spd [PID=93] went bye-bye
Aug 16 17:07:56 unknown misd[92] <Debug>: now quitting (60 sec idle)
Aug 16 17:07:56 unknown misd[92] <Info>: exit: 0
There are no other logs saved on to my computer or on the device.
Has anyone seen this before?