libimobiledevice / ifuse

A fuse filesystem to access the contents of iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v2.1
820 stars 138 forks source link

`Failed to connect to lockdownd service on the device.` #39

Open vitaly-zdanevich opened 7 years ago

vitaly-zdanevich commented 7 years ago
$ ifuse ~/iPad -u 5932hfa1d13b1c5d5535704278dec08ce3681540
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.

Tried to reboot my iPad - the same result.

Installed from Brew head. macOS Sierra. iPad iOS 10.2.1

iExplorer can read files from the device.

baorsmile commented 7 years ago

EDIT by @nikias Please never do this. Neither on macOS nor Linux. Latest git head code will work. sudo chmod -R777/var/db/lockdown/

nikias commented 7 years ago

@vitaly-zdanevich does ideviceinfo work?

madaboutcode commented 7 years ago

( Not OP, but I also have the same problem)

ideviceinfo also complains with the same error.

$ ideviceinfo                                                                                                                                                                                                                                     
ERROR: Could not connect to lockdownd, error code -8
binron commented 7 years ago

See also https://gist.github.com/samrocketman/70dff6ebb18004fc37dc5e33c259a0fc

baorsmile commented 7 years ago

@nikias but is work for me, why dont do this???

ardypro commented 7 years ago

This does not work for me with my iPhone6 running IOS12.3.2 on Linux Mint17.3. It is succeed in pairing with iPhone, but it fails to connect to iPhone, the password of the phone has been disabled and rebooted after all the packages are installed. It still throws out an exception "Failed to connect to lockdownd service on the device.Try again. If it still fails try rebooting your device."

malodev commented 7 years ago

Same as @ardypro with an iPad pro 10.5 with iOS 11 on Ubuntu 16.10. I followed the guide at https://gist.github.com/samrocketman/70dff6ebb18004fc37dc5e33c259a0fc but I got the errors for both ifuse and ideviceinfo.

YugoCode commented 7 years ago

Run the commands with sudo:

sudo idevicepair pair
sudo ideviceinfo
sudo ifuse "yourpath"

I had the same errors as you, but when running the commands with sudo it worked.

Unfortunately the mounted folder disappears, after I run the ifuse command:

ls: /Volumes/iPhone: No such file or directory

I'm running macOS 10.12.6

Rogier75 commented 7 years ago

Tested on iPhone 7 Plus with ios version 11.0.2

cloned libimobiledevice

latest commit is:

commit 5a85432719fb3d18027d528f87d2a44b76fd3e12 (HEAD -> master, origin/master, origin/HEAD)
Author: Nikias Bassen <nikias@gmx.li>
Date:   Sun Aug 13 00:12:16 2017 +0200

    lockdown: Don't explicitly validate pairing unless we're dealing with an older device

    On newer iOS version, ValidatePair is not mandatory to gain trusted host
    status. Starting with iOS 11, the ValidatePair request has been removed from
    lockdownd and will throw an error. This commit adds a version check so that
    ValidatePair is only called on devices prior iOS 7.

Compile:

env PKG_CONFIG_PATH="/usr/local/Cellar/openssl@1.1/1.1.0f/lib/pkgconfig" ./autogen.sh --enable-openssl --prefix=$HOME/libimobiledevice
make
make install
export PATH=$HOME/libimobiledevice/bin
export DYLD_LIBRARY_PATH=$HOME/libimobiledevice/lib
ifuse -d -u 34e61ebca0d088f41d77dec756dfaf1a722a0b56  --container <YOUR_BUNDLE_ID> ~/mount1

Don't forget to set the DYLD_LIBRARY_PATH so that ifuse will use the libimobiledevice dylib which you have compiled

ejb2203 commented 7 years ago

Thanks so much for writing out these instructions.

I'm having a problem that I hope someone can help me out with. Once I get to the

make && make install

command for the various libraries, I get this error message: /bin/mkdir: cannot create directory ‘/home/#MYNAME#/usr/share/man/man1’: Permission denied

adius commented 6 years ago

@YugoCode The directory is only visible for a sudo user. Switch to a root shell with sudo -i and then you can change into the directory cd /Volumes/iPhone

CathyUhhh commented 6 years ago

The mount succeeded, but there was no data in this directory.why?? @adius

sudo ifuse -u xxxxxxx --documents com.test.testProject iphone and Application supports iTunes file sharing = YES in info.plist

ghost commented 6 years ago

@ardypro how the fuck would that be possible ? IOS12.3.2 july 20 2017 i am on ios 12 beta preview, due for release in fall of 2018 07-09-2018

ardypro commented on Jul 20, 2017

This does not work for me with my iPhone6 running IOS12.3.2 on Linux Mint17.3. It is succeed in pairing with iPhone, but it fails to connect to iPhone, the password of the phone has been disabled and rebooted after all the packages are installed. It still throws out an exception "Failed to connect to lockdownd service on the device.Try again. If it still fails try rebooting your device."

michel-briand commented 6 years ago

Debian stable: ifuse 1.1.2-0.1+b5

ifuse fails with the same error message:

Try again. If it still fails try rebooting your device.

ipairdevice pair works.

After some browsing, I found Sam Rocketman's article: https://gist.github.com/samrocketman/70dff6ebb18004fc37dc5e33c259a0fc

I had the idea to upgrade libimobiledevice6 from stable to stretch-backports. And it worked!

jedrekdomanski commented 4 years ago

I have the same problem with my iPhone 11

Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.

I tried installing libimobiledevice from source on my Ubuntu 16.04 but bumped into several unmet dependencies which, after spending 2 hours, I was eventually not able to resolve. I looks like libimobiledevice depends on libusbmuxd-2.0 and libusbmuxd-2.0 depends on libplist-2.0 and they are not available on standard Ubuntu 16 PPA, they are available on GitHub but I failed to install them as well.

Git-Hub-User-0 commented 3 years ago

I have the same problem with my iPhone 11

Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.

I tried installing libimobiledevice from source on my Ubuntu 16.04 but bumped into several unmet dependencies which, after spending 2 hours, I was eventually not able to resolve. I looks like libimobiledevice depends on libusbmuxd-2.0 and libusbmuxd-2.0 depends on libplist-2.0 and they are not available on standard Ubuntu 16 PPA, they are available on GitHub but I failed to install them as well.

@jedrekdomanski did you find anything? Or anybody found anything for iphone11 and ubuntu 16.04!!! In desperate need of help here. Thanks

jedrekdomanski commented 3 years ago

No, I haven't tried it again since I last tried it.