Skip to content

ERROR: Could not connect to lockdownd, error code -8 #226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
markshep opened this issue Aug 25, 2015 · 9 comments
Closed

ERROR: Could not connect to lockdownd, error code -8 #226

markshep opened this issue Aug 25, 2015 · 9 comments

Comments

@markshep
Copy link

I'm writing a system to run on OSX which manages deploying app builds to iOS devices. This uses a combination of tools from libmobiledevice and ios-deploy. I'm getting an issue where iOS devices seem to get into a bad state. One symptom is the above error message when trying to use "ideviceinfo" and another is that deploying an app using either "ios-deploy" or Xcode never completes.

If I unplug and replug the device the error from "ideviceinfo" goes away and that tool then works fine. However that doesn't fix the problem with deployment - any attempt to do so hangs and the -8 error with "ideviceinfo" comes back. So it looks like the problem may not be with libimobiledevice itself, but as the only information I've got to go on is that error message this seems like the place to start!

Looking in the source the -8 code is LOCKDOWN_E_MUX_ERROR. Undefining STRIP_DEBUG_CODE in config.h, rebuilding and running with "-d" gives the following:

13:05:08 idevice.c:276 idevice_connect(): ERROR: Connecting to usbmuxd failed: -1 (Operation not permitted)
13:05:08 lockdown.c:650 lockdownd_client_new(): could not connect to lockdownd (device 4e45f9d35a3edf7d5fb16bbc52d8354978faa2f9)
13:05:08 lockdown.c:684 lockdownd_client_new_with_handshake(): failed to create lockdownd client.
ERROR: Could not connect to lockdownd, error code -8

This is using the latest source in the "master" branch (commit f268393).

Any suggestions as to what I should look at next to try and track down the exact cause of this problem?

@tarrenj
Copy link

tarrenj commented Aug 25, 2015

13:05:08 idevice.c:276 idevice_connect(): ERROR: Connecting to usbmuxd failed: -1 (Operation not permitted)

Are you running with sudo?

@markshep
Copy link
Author

No, should I be?

@Grazfather
Copy link

I get this error if I plug the iphone into a new computer and don't click the 'allow' button on the phone screen, fwiw.

@simonjgamer
Copy link

@markshep has this solution resolved for you? I am having similar error message

@crummy
Copy link

crummy commented Jan 27, 2017

I'm seeing this behaviour, with and without sudo, on some devices.

  • OS X 10.11.5 (15F34)
  • iPhone 5S and 5, both on iOS 9

@nathan-fiscaletti
Copy link

I'm experiencing this error message when trying to run the tools with a device that's running iOS 11 Beta 6. Does this tool not yet support iOS 11?

@nikias
Copy link
Member

nikias commented Aug 18, 2017

See #510 and #537. Golden rule for bug reporting: verify if it works with the latest version.

@nathan-fiscaletti
Copy link

@nikias So, if this has been resolved why is the issue still marked as open?

@nikias
Copy link
Member

nikias commented Aug 20, 2017

It's an old issue and it was obvious that it was a problem with usbmuxd. I didn't bother closing. But maybe now is the time.

@nikias nikias closed this as completed Aug 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants