Tree
September 26, 2016, 9:50pm
99
Could not connect to lockdownd
I have see an error like this with Appium 1.5.3 also. Seems like a file permission problem for ideviceinstaller.
Changing the file permission (sudo chmod -R 777 /var/db/lockdown/) as suggested in this thread ideviceinstaller fails with "Could not connect to lockdownd. Exiting." · Issue #48 · libimobiledevice/ideviceinstaller · GitHub worked for me but only as a tempaorary fix. As something changes it back and tests start failing again. I haven’t found a permanent fix yet. This has only been a problem for us on one of our automation macs.
There seem to be a few different problems with lockdownd so maybe try installing you app manually using ideviceinstaller and inspect the message for the error code in case yours is a different problem
ideviceinstaller -u yourUDID -i path/to/your/app
opened 09:51PM - 12 Oct 15 UTC
Spend several hours trying to figure this out but with no luck. I reinstalled (l… ibimobiledevice - 1.2.0) from the source (including libplist-1.12, ifuse-1.1.3 and libusbmuxd-1.1.0). I have no parental restrictions on the device and no screen lock. The device will not mount through linux and ifuse returns the same errors.
I am using CAINE linux (ubuntu 14.04) which might be the problem, i don't know. I double checked the lockdown file to ensure the permissions are correct (as you can see below.) I'm pretty much at a dead end.
Redskies:~$ idevice_id -l
da27a7e9b8150f5822c8d2cbeeb58f73baab1268
Redskies:~$ ideviceinfo -s
BasebandCertId: 3554301762
BasebandKeyHashInformation:
AKeyStatus: 2
SKeyHash: 7MQEUyvzG4gjjZc7KsNNAVTS8g4=
SKeyStatus: 0
BasebandSerialNumber: M4KIHQ==
BasebandVersion: 6.00.00
BoardId: 10
BuildVersion: 13A344
ChipID: 35152
DeviceClass: iPhone
DeviceColor: #3b3b3c
DeviceName: iPhone
DieID: 1522290294251032272
HardwareModel: N48AP
PartitionType:
ProductName: iPhone OS
ProductType: iPhone5,3
ProductVersion: 9.0
ProductionSOC: true
ProtocolVersion: 2
TelephonyCapability: true
UniqueChipID: 3787524586761
UniqueDeviceID: da27a7e9b8150f5822c8d2cbeeb58f73baab1268
WiFiAddress: 6c:94:f8:2a:80:81
Redskies:~$ ideviceinfo
ERROR: Could not connect to lockdownd, error code -2
Redskies:~$ idevicepair pair
ERROR: Please accept the trust dialog on the screen of device da27a7e9b8150f5822c8d2cbeeb58f73baab1268, then attempt to pair again.
Redskies:~$ idevicepair pair
SUCCESS: Paired with device da27a7e9b8150f5822c8d2cbeeb58f73baab1268
Redskies:~$ idevicepair validate
ERROR: Device da27a7e9b8150f5822c8d2cbeeb58f73baab1268 returned unhandled error code -2
Redskies:~$ ls -l /lib/udev/rules.d/
total 604
-rwxrwxrwx 1 root Redskies 611 Oct 21 2013 85-usbmuxd.rules
Redskies:~$ sudo chmod -R 0777 /var/lib/lockdown/
Redskies:~$ ls -l /var/lib/lockdown
total 12
-rwxrwxrwx 1 root root 7821 Oct 12 10:27 da27a7e9b8150f5822c8d2cbeeb58f73baab1268.plist
-rwxrwxrwx 1 root root 266 Oct 8 16:13 SystemConfiguration.plist
Redskies:/var/lib$ ls -l
total 316
drwxrwxrwx 2 root root 4096 Oct 12 10:27 lockdown
Redskies:/media$ ifuse /media/iphone
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.
EDIT: when trying to run the system log
Redskies:~$ sudo idevicesyslog
ERROR: Could not start service com.apple.syslog_relay.
Could not start logger for udid da27a7e9b8150f5822c8d2cbeeb58f73baab1268
^C
Exiting...
opened 08:54AM - 14 Sep 16 UTC
closed 12:18AM - 19 Sep 16 UTC
I have installed the XCode upgrade to my iOS 7.3.1, to run my existing IPhone Ap… pium Tests using iOS 10. The some of my real mobile devices have also been upgraded but Since the upgrade to XCode my browser app tests all devices are failing. The ios-webkit-debug proxy has been having the same issue:
Could not connect to lockdownd. Exiting Permission denied.
Unable to attach <udid> inspector.
I have continually booted/rebooted the mobile devices and the iMac Mini (El Captain). I have even tried uninstalling/reinstalling the ios_webkit_debug_proxy, but nothing has helped...
It seems like the upgrade of the XCode 7.3.1 to include iOS 10 appears to be the issue because using the ios_webkit_debug_proxy with the iOS 9.3.5 devices, have also stopped working, failing with the same reason.
I have since run SafariLauncher using XCode on both iOS 9.3.5 and 10.0.1. using idevice -l all my devices are listed, using idevicepair pair was a SUCCESS, BUT using idevicepair validate produces:
ERROR: Device <udid> is not paired with this host
Which seems to be a contradiction.... I have also tried using Instruments on the MAC but when I choose a device having 10.0.1 installed the recording button is not enabled and has the comment: "This instrument's supported recording mode are none". This may be of no interest - just something I noticed...
Help....
Hello team,
I am using Appium 1.5.2 and i am occasionally getting “ERROR: Could not connect to lockdownd, error code -8” when i use below commands. Note we are running test in CI so it constantly runs.
ideviceinfo | grep UniqueDeviceID
idevicepair validate
And when it appium tries to run I get below error
Could not connect to lockdownd. Exiting.
An unknown server-side error occurred while processing the command. Original error: Bad app: /Users/xxx/build/xxx.ipa. App paths need to be abso…
opened 11:31AM - 20 Jul 16 UTC
closed 06:44PM - 27 Jul 16 UTC
I am using libimobiledevice in my iOS project. I upgrade my iphone 6sPlus to iOS… 10.0 beta version. i fired ideviceinfo command from my mac and get the response : Could not connect to lockdownd, error code -5
Any one know about this error??
when i am trying to install my ipa through ideviceinstaller, there I am having the following error: Could not connect to lockdownd. Exiting.
please let me know if someone know's the solution!