Skip to content
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

Problems with libimobiledevice #50

Closed
zner0L opened this issue Mar 21, 2023 · 2 comments
Closed

Problems with libimobiledevice #50

zner0L opened this issue Mar 21, 2023 · 2 comments

Comments

@zner0L
Copy link
Contributor

zner0L commented Mar 21, 2023

I ran into a similar problem with libimobiledevice both on macOS and on Linux. On Linux, I ran into:

ERROR: Could not connect to lockdownd: Missing HostID (-20)

This seemed to be related to libimobiledevice/libimobiledevice#36, where the problem is wrong permissions on the /var/lib/lockdown folder. And sure enough, they were:

❯ stat /var/lib/lockdown
  File: /var/lib/lockdown
  Size: 0         	Blocks: 0          IO Block: 4096   directory
Device: 0,33	Inode: 901451      Links: 1
Access: (2775/drwxrwsr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Context: unconfined_u:object_r:var_lib_t:s0

I fixed it but giving the folder to usbmuxd:

❯ sudo chown usbmuxd:usbmuxd /var/lib/lockdown

On macOS the problem was similar, but slightly different. Here I ran into:

ERROR: Could not connect to lockdownd: Missing HostID (-21)

Note the different error number! This time, a different issue was relevant: libimobiledevice/libimobiledevice#922
It mentioned repairing the device:

❯ idevicepair unpair && idevicepair pair

This fixed it as well.

I am not sure if we want to implement this in appstraction. Maybe the pairing procedure is a sensible thing to do in ensureDevice if encounter this error?

@baltpeter
Copy link
Member

Is this still relevant with pymobiledevice3?

@zner0L
Copy link
Contributor Author

zner0L commented Jun 16, 2023

No, I don’t think so.

@zner0L zner0L closed this as completed Jun 16, 2023
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

2 participants