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.
Related
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
I am using poltergeist to execute tests, recently this has stopped working. The first spec that tries using it fails with this error:
phantomjs[37617] <Error>: Set a breakpoint at CGSLogError to catch errors as they are logged.
phantomjs[37617] <Error>: On-demand launch of the Window Server is allowed for root user only.
phantomjs[37617] <Warning>: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (268435459)
phantomjs[37617] <Error>: On-demand launch of the Window Server is allowed for root user only.
phantomjs[37617] <Warning>: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (268435459)
phantomjs[37617] <Error>: This user is not allowed access to the window system right now.
phantomjs[37617] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
phantomjs[37617] <Warning>: Invalid Connection ID 0
phantomjs[37617:3258922] Could not rendezvous with font server (error 268435459)
phantomjs[37617:3258922] XType: unable to make a connection to the font daemon!
phantomjs[37617:3258922] registering /System/Library/Fonts/*, /System/Library/Fonts/Base/*, and /Library/Fonts/* locally
Reinstalling phantomjs, as well as poltergeist had no effect.
Googling this brings me far away from my known rubyverse.
I am guessing this is a permissions issue, but have no clue where to start looking.
I'd greatly appreciate a pointing in the right direction.
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
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
I have an Eucalyptus-based cloud using Xen with 3 nodes. When I run a VM more than twice the number of physical machines in the xen cluster, the extra VMs never boot up, they always change state from pending to terminate, and the log file shows the node controller shutoff the extra VM after it check the instances number. When I manually shutdown some VM, then I can easily start up some VM exactly as the number I've shutdown.
The log shows this error:
ERROR: [Tue Jan 17 12:51:05 2012][004231][EUCAERROR ] libvirt: POST
operation failed: xend_post: error from xen daemon: (xend.err 'Device
2049 (vbd) could not be connected. /etc/xen/scripts/block failed;
error detected.') (code=11) [Tue Jan 17 12:51:05
2012][004231][EUCADEBUG ] doDescribeResource() invoked [Tue Jan 17
12:51:06 2012][004231][EUCADEBUG ] doDescribeInstances() invoked [Tue
Jan 17 12:51:06 2012][004231][EUCADEBUG ] doDescribeInstances():
instanceId=i-3BB00757 publicIp=192.168.4.165 privateIp=192.168.4.165
mac=d0:0d:3B:B0:07:57 vlan=-1 networkIndex=-1 [Tue Jan 17 12:51:06
2012][004231][EUCADEBUG ] doDescribeInstances(): instanceId=i-473807EE
publicIp=192.168.4.112 privateIp=192.168.4.112 mac=d0:0d:47:38:07:EE
vlan=-1 networkIndex=-1 [Tue Jan 17 12:51:06 2012][004231][EUCADEBUG ]
doDescribeInstances(): instanceId=i-348A06AE publicIp=0.0.0.0
privateIp=0.0.0.0 mac=d0:0d:34:8A:06:AE vlan=-1 networkIndex=-1 [Tue
Jan 17 12:51:06 2012][004231][EUCAERROR ] libvirt: POST operation
failed: xend_post: error from xen daemon: (xend.err 'Device 2049 (vbd)
could not be connected. /etc/xen/scripts/block failed; error
detected.') (code=11) [Tue Jan 17 12:51:08 2012][004231][EUCAERROR ]
libvirt: POST operation failed: xend_post: error from xen daemon:
(xend.err 'Device 2049 (vbd) could not be connected.
/etc/xen/scripts/block failed; error detected.') (code=11) [Tue Jan 17
12:51:09 2012][004231][EUCAERROR ] libvirt: POST operation failed:
xend_post: error from xen daemon: (xend.err 'Device 2051 (vbd) could
not be connected. /etc/xen/scripts/block failed; error detected.')
(code=11) [Tue Jan 17 12:51:10 2012][004231][EUCAERROR ] libvirt: POST
operation failed: xend_post: error from xen daemon: (xend.err 'Device
2051 (vbd) could not be connected. /etc/xen/scripts/block failed;
error detected.') (code=11) [Tue Jan 17 12:51:10
2012][004231][EUCAFATAL ] hypervisor failed to start domain [Tue Jan
17 12:51:10 2012][004231][EUCADEBUG ] state change for instance
i-348A06AE: Staging -> Shutoff (Extant) [Tue Jan 17 12:51:10
2012][004231][EUCAERROR ] libvirt: Domain not found:
xenUnifiedDomainLookupByName (code=42) [Tue Jan 17 12:51:10
2012][004231][EUCAINFO ] cleaning up state for instance i-348A06AE
Is this a limitation for CentOS 5.* and RedHat 5.? Is it fixed on CentOS 6.?
http://docs.vmd.citrix.com/XenServer/5.0.0/1.0/en_gb/guest.html#rhel5_limitations
"Only 3 virtual network interfaces are supported in versions below 5.2. For 5.2 and above, 7 virtual network interfaces are supported."
I opened this topic in both CentOS and Eucalyptus forums without luck:
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=35491&forum=38
http://open.eucalyptus.com/forum/unable-run-more-4-instances-even-extra-resources
Thanks, Leandro
The error you are seeing seems related to disk not to network (Device 2049 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected). I don't see that script on a CentOS 5.7 install I have here, so you may want to dig into that script to see if there is some obvious error.
The solution was to increase number of loop devices in CentOS 5, as detailed in the following link:
http://open.eucalyptus.com/participate/wiki/increase-number-loop-devices-centos-5
As the link is no longer valid, you have to go to archive.org or see this similar answer:
how to increase the loop devices number