Skip to content

Failed opening network adapter - libusb: device or resource busy [code: -6] #621

@Dadoum

Description

@Dadoum

Describe the bug
When trying to use go-ncm (built manually from the git repo), go-scm repeatedly logs Failed opening network adapter and the system cannot connect to the created network adapters.

Logs

025/09/19 01:27:11 INFO usbmuxd version version=1.1.1-71-g2efa75a
2025/09/19 01:27:11 INFO prometheus metrics not configured. start with '--prometheusport=8080' to expose prometheus metrics.
2025/09/19 01:27:16 INFO assigning interface iface=iphone0 serial=00008110000205A13E06401E
2025/09/19 01:27:16 INFO got device serial=00008110000205A13E06401E
2025/09/19 01:27:16 INFO active config active=4 serial=00008110000205A13E06401E
2025/09/19 01:27:16 INFO available configs configs="map[1:Configuration 1 2:Configuration 2 3:Configuration 3 4:Configuration 4]" len=4 serial=00008110000205A13E06401E
2025/09/19 01:27:16 INFO closing what="device vid=05ac,pid=12a8,bus=3,addr=6"
2025/09/19 01:27:16 ERROR failed opening network adapter for device device="vid=05ac,pid=12a8,bus=3,addr=6" err="handleDevice: failed activating config for device 00008110000205A13E06401E with err device vid=05ac,pid=12a8,bus=3,addr=6: configuration id 5 not found in the descriptor of the device. Available config ids: [1 2 3 4]"
2025/09/19 01:27:21 INFO got device serial=00008110000205A13E06401E
2025/09/19 01:27:21 INFO active config active=5 serial=00008110000205A13E06401E
2025/09/19 01:27:21 INFO available configs configs="map[1:Configuration 1 2:Configuration 2 3:Configuration 3 4:Configuration 4 5:Configuration 5]" len=5 serial=00008110000205A13E06401E
2025/09/19 01:27:21 INFO got config config="vid=05ac,pid=12a8,bus=3,addr=12,config=5" serial=00008110000205A13E06401E
2025/09/19 01:27:21 INFO alt setting alt="Interface 3 alternate setting 1 (available endpoints: [0x05(5,OUT) 0x87(7,IN)])" class=10 subclass=0 protocol=1 serial=00008110000205A13E06401E
2025/09/19 01:27:21 INFO alt setting alt="Interface 5 alternate setting 1 (available endpoints: [0x06(6,OUT) 0x88(8,IN)])" class=10 subclass=0 protocol=1 serial=00008110000205A13E06401E
2025/09/19 01:27:21 INFO closing what="config 00008110000205A13E06401E"
2025/09/19 01:27:21 INFO closing what="device vid=05ac,pid=12a8,bus=3,addr=12"
2025/09/19 01:27:21 ERROR failed opening network adapter for device device="vid=05ac,pid=12a8,bus=3,addr=12" err="handleDevice: failed to claim interface for device 00008110000205A13E06401E. this can happen if some other process already claimed it. err failed to claim interface 5 on vid=05ac,pid=12a8,bus=3,addr=12,config=5: libusb: device or resource busy [code -6]"

which then repeats

Desktop (please complete the following information):

  • OS: Linux 6.16.7-200-fc42/Fedora 42
  • usbmuxd: 1.1.1-71-g2efa75a (freshly built)

Smartphone (please complete the following information):

  • Device: iPhone 13 mini (Global)
  • OS: iOS 17.0

Additional context
usbmuxd logs:

usbmuxd[4162]: [01:27:20.749][3] Using libusb 1.0.29
usbmuxd[4162]: [01:27:20.752][3] Initialization complete
usbmuxd[4162]: [01:27:20.752][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
usbmuxd[4162]: [01:27:20.753][3] Found CDC-NCM and Apple USB Multiplexor in device 3-12 configuration 5
usbmuxd[4162]: [01:27:20.753][2] Switching device 3-12 mode to 1
usbmuxd[4162]: libusb: warning [op_get_configuration] device unconfigured
usbmuxd[4162]: [01:27:20.753][3] Found usbmux interface for device 3-12: 1
usbmuxd[4162]: [01:27:20.753][3] Changing configuration of device 3-12: 0 -> 5
usbmuxd[4162]: [01:27:20.810][3] Connecting to new device on location 0x3000c as ID 1
usbmuxd[4162]: [01:27:20.810][3] Connected to v2.0 device 1 on location 0x3000c with serial number 00008110-000205A13E06401E

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions