Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Unable to start usbmuxd, "Could not open lockfile"

#237

We are trying to install libimobiledevice library on Ubuntu 11.04.
However, it seems it is not able to start usbmuxd.
It shows "Could not open lockfile" while trying to restart usbmuxd.

The version inforation is as below:
libimobiledevice 1.1.0
Ubuntu 11.04 with VMWare workstation.
iPhone iOS version 4.3.3.

Reported by Andy Cheng · October 11th, 2011 @ 08:57 AM

State: resolved
Milestone: 1.2.0 Release
Assigned to: Paul Sladen Paul Sladen

Activity

  1. Martin S.
    Martin S.
    • State changed from new to open
    • Tag set to ios 4.3.3, locking, ubuntu, usbmuxd, vmware
    • Assigned user set to Nikias Bassen

    February 24th, 2012 @ 11:52 AM

  2. Olivier LAHAYE
    Olivier LAHAYE

    In udev rules, did you check that the file /lib/udev/rules.d/85-usbmuxd.rules contains OWNER="usbmux"
    in the line

    ACTION=="add", SUBSYSTEM=="usb", OWNER="usbmux", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f
    ]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurati onValue}="$attr{bNumConfigurations}", RUN+="/usr/sbin/usbmuxd -u -U usbmux"

    if you distro uses another user (Mandriva uses "usbmux"), replace usbmux with whatever your distro uses E.G. "usbmuxd"

    The line would then look like:

    ACTION=="add", SUBSYSTEM=="usb", OWNER="usbmuxd", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f
    ]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurati onValue}="$attr{bNumConfigurations}", RUN+="/usr/sbin/usbmuxd -u -U usbmuxd"

    March 2nd, 2012 @ 02:49 PM

  3. Martin S.
    Martin S.
    • State changed from open to resolved
    • Assigned user changed from Nikias Bassen to Martin S.
    • Milestone set to 1.2.0 Release

    This is a permission issue. You must either run usbmuxd as root user or by passing it the custom user with the "-u" argument.
    As noted by Olivier above, check what your distro uses or create a corresponding user and make sure he has permissions to access /var/lib/lockdown and USB device nodes.

    This ticket tracker is deprecated as we've moved to github.com/libimobiledevice.

    May 27th, 2014 @ 09:50 AM

  4. Paul Sladen
    Paul Sladen
    • Title changed from Unable to start usbmuxd, "Could not open lockfile" to Unable to start usbmuxd, "Could not open lockfile"” to “YYdscvafZTgajkdfv”
    • Tag cleared.
    • Assigned user changed from Martin S. to Paul Sladen

    June 18th, 2016 @ 10:37 AM

  5. Paul Sladen
    Paul Sladen
    • Title changed from Unable to start usbmuxd, "Could not open lockfile"” to “YYdscvafZTgajkdfv” to Unable to start usbmuxd, "Could not open lockfile"

    June 18th, 2016 @ 10:37 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.