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

Sometimes the tunneld connection is not successful after booting iPhone #1357

Open
Foogle006 opened this issue Feb 11, 2025 · 3 comments
Open

Comments

@Foogle006
Copy link

Test environment

  • Host OS version: Ubuntu 24.04.1 LTS
  • Target device model and iOS version: iPhone15 iOS 17.6.1

Describe the bug
Have the stress test for rebooting iPhone, sometimes pymobiledevice3 raised the exception and tunneld can not connect the iPhone again.

To Reproduce
Steps to reproduce the behavior:

  1. Launch the tunneld service. sudo python3 -m pymobiledevice3 remote tunneld
  2. Reboot the iPhone. python3 -m pymobiledevice3 diagnostics restart
  3. Repeat the step 2, sometimes the issue will happen.

Expected behavior
The exception can be handled and the tunneld connection is successful after booting iPhone.

Logs


2025-01-28T11:22:33.128230+08:00 rpi kernel: usb 2-1.4.3: new high-speed USB device number 20 using xhci-hcd
2025-01-28T11:22:33.237427+08:00 rpi ntpd[827]: IO: Deleting interface #28 tun0, fd17:ac8b:7f43::2#123, interface stats: received=0, sent=0, dropped=0, active_time=63 secs
2025-01-28T11:22:33.237599+08:00 rpi ntpd[827]: IO: Deleting interface #29 tun0, fe80::b6d1:217f:45b:faf1%27#123, interface stats: received=0, sent=0, dropped=0, active_time=63 secs
2025-01-28T11:22:33.267215+08:00 rpi kernel: usb 2-1.4.3: New USB device found, idVendor=05ac, idProduct=12a8, bcdDevice=15.04
2025-01-28T11:22:33.267236+08:00 rpi kernel: usb 2-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2025-01-28T11:22:33.267239+08:00 rpi kernel: usb 2-1.4.3: Product: iPhone
2025-01-28T11:22:33.267242+08:00 rpi kernel: usb 2-1.4.3: Manufacturer: Apple Inc.
2025-01-28T11:22:33.267244+08:00 rpi kernel: usb 2-1.4.3: SerialNumber: 00008120000********4201E
2025-01-28T11:22:33.356902+08:00 rpi systemd[1]: Started usbmuxd.service - Socket daemon for the usbmux protocol used by Apple devices.
2025-01-28T11:22:33.361486+08:00 rpi usbmuxd[9447]: [11:22:33.361][3] usbmuxd v1.1.1 starting up
2025-01-28T11:22:33.362274+08:00 rpi usbmuxd[9447]: [11:22:33.362][3] Successfully dropped privileges to 'usbmux'
2025-01-28T11:22:33.362342+08:00 rpi usbmuxd[9447]: [11:22:33.362][3] Using libusb 1.0.27
2025-01-28T11:22:33.371992+08:00 rpi usbmuxd[9447]: libusb: warning [op_get_configuration] device unconfigured
2025-01-28T11:22:33.372063+08:00 rpi usbmuxd[9447]: libusb: error [op_get_active_config_descriptor] device unconfigured
2025-01-28T11:22:33.372097+08:00 rpi usbmuxd[9447]: [11:22:33.371][3] Could not get old configuration descriptor for device 2-20: LIBUSB_ERROR_NOT_FOUND
2025-01-28T11:22:33.437919+08:00 rpi kernel: ipheth 2-1.4.3:4.2: ipheth_enable_ncm: usb_control_msg: 0
2025-01-28T11:22:33.440254+08:00 rpi kernel: ipheth 2-1.4.3:4.2: Apple iPhone USB Ethernet device attached
2025-01-28T11:22:33.441619+08:00 rpi usbmuxd[9447]: [11:22:33.441][3] Initialization complete
2025-01-28T11:22:33.441687+08:00 rpi usbmuxd[9447]: [11:22:33.441][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
2025-01-28T11:22:33.442838+08:00 rpi usbmuxd[9447]: [11:22:33.442][3] Connecting to new device on location 0x20014 as ID 1
2025-01-28T11:22:33.442951+08:00 rpi usbmuxd[9447]: [11:22:33.442][3] Connected to v2.0 device 1 on location 0x20014 with serial number 00008120-000********4201E
2025-01-28T11:22:33.449221+08:00 rpi kernel: ipheth 2-1.4.3:4.2 enxfe9ca7602d56: renamed from eth1
2025-01-28T11:22:33.455702+08:00 rpi systemd-networkd[729]: eth1: Interface name change detected, renamed to enxfe9ca7602d56.
2025-01-28T11:22:34.922549+08:00 rpi pymobiledevice3[818]: 2025-01-28 11:22:34 rpi pymobiledevice3.tunneld[818] INFO [start-tunnel-task-usbmux-00008120-000********4201E-USB] Created tunnel --rsd fdd0:49ff:9499::1 60953
2025-01-28T11:22:34.922905+08:00 rpi systemd-networkd[729]: tun0: Link UP
2025-01-28T11:22:34.923013+08:00 rpi systemd-networkd[729]: tun0: Gained carrier
2025-01-28T11:22:34.923081+08:00 rpi systemd-networkd[729]: tun0: Gained IPv6LL
2025-01-28T11:22:36.237506+08:00 rpi ntpd[827]: IO: Listen normally on 30 tun0 [fdd0:49ff:9499::2]:123
2025-01-28T11:22:36.237660+08:00 rpi ntpd[827]: IO: Listen normally on 31 tun0 [fe80::ba8a:7515:7328:432%29]:123
2025-01-28T11:22:36.237723+08:00 rpi ntpd[827]: IO: new interface(s) found: waking up resolver
2025-01-28T11:22:37.469817+08:00 rpi ModemManager[826]: <msg> [base-manager] couldn't check support for device '/sys/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb2/2-1/2-1.4/2-1.4.3': not supported by any plugin
2025-01-28T11:23:16.958568+08:00 rpi pymobiledevice3[818]: INFO:     127.0.0.1:58192 - "GET / HTTP/1.1" 200 OK
2025-01-28T11:23:19.743823+08:00 rpi pymobiledevice3[818]: 2025-01-28 11:23:19 rpi pymobiledevice3.tunneld[818] INFO disconnected from tunnel --rsd fdd0:49ff:9499::1 60953
2025-01-28T11:23:20.780223+08:00 rpi usbmuxd[9447]: [11:23:20.779][2] device_control_input: Got unhandled payload type 5
2025-01-28T11:23:22.784144+08:00 rpi usbmuxd[9447]: [11:23:22.783][2] device_control_input: Got unhandled payload type 5
2025-01-28T11:23:24.788024+08:00 rpi usbmuxd[9447]: [11:23:24.787][2] device_control_input: Got unhandled payload type 5
2025-01-28T11:23:26.792220+08:00 rpi usbmuxd[9447]: [11:23:26.791][2] device_control_input: Got unhandled payload type 5
2025-01-28T11:23:27.057217+08:00 rpi usbmuxd[9447]: [11:23:27.057][3] Removed device 1 on location 0x20014
2025-01-28T11:23:27.167413+08:00 rpi kernel: apple-mfi-fastcharge 2-1.4.3: USB disconnect, device number 20
2025-01-28T11:23:27.175290+08:00 rpi kernel: ipheth 2-1.4.3:4.2: Apple iPhone USB Ethernet now disconnected
2025-01-28T11:23:27.208843+08:00 rpi usbmuxd[9447]: [11:23:27.208][3] usbmuxd shutting down
2025-01-28T11:23:27.309928+08:00 rpi usbmuxd[9447]: [11:23:27.309][3] Shutdown complete
2025-01-28T11:23:27.313429+08:00 rpi systemd[1]: usbmuxd.service: Deactivated successfully.
2025-01-28T11:23:27.992061+08:00 rpi systemd-networkd[729]: tun0: Link DOWN
2025-01-28T11:23:27.992266+08:00 rpi systemd-networkd[729]: tun0: Lost carrier
2025-01-28T11:23:29.237306+08:00 rpi ntpd[827]: IO: Deleting interface #30 tun0, fdd0:49ff:9499::2#123, interface stats: received=0, sent=0, dropped=0, active_time=53 secs
2025-01-28T11:23:29.237493+08:00 rpi ntpd[827]: IO: Deleting interface #31 tun0, fe80::ba8a:7515:7328:432%29#123, interface stats: received=0, sent=0, dropped=0, active_time=53 secs
2025-01-28T11:23:40.202216+08:00 rpi kernel: usb 2-1.4.3: new high-speed USB device number 21 using xhci-hcd
2025-01-28T11:23:40.342220+08:00 rpi kernel: usb 2-1.4.3: New USB device found, idVendor=05ac, idProduct=12a8, bcdDevice=15.04
2025-01-28T11:23:40.342239+08:00 rpi kernel: usb 2-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2025-01-28T11:23:40.342243+08:00 rpi kernel: usb 2-1.4.3: Product: iPhone
2025-01-28T11:23:40.342245+08:00 rpi kernel: usb 2-1.4.3: Manufacturer: Apple Inc.
2025-01-28T11:23:40.342248+08:00 rpi kernel: usb 2-1.4.3: SerialNumber: 00008120000********4201E
2025-01-28T11:23:40.434767+08:00 rpi systemd[1]: Started usbmuxd.service - Socket daemon for the usbmux protocol used by Apple devices.
2025-01-28T11:23:40.438727+08:00 rpi usbmuxd[10013]: [11:23:40.437][3] usbmuxd v1.1.1 starting up
2025-01-28T11:23:40.440273+08:00 rpi usbmuxd[10013]: [11:23:40.440][3] Successfully dropped privileges to 'usbmux'
2025-01-28T11:23:40.440392+08:00 rpi usbmuxd[10013]: [11:23:40.440][3] Using libusb 1.0.27
2025-01-28T11:23:40.451233+08:00 rpi usbmuxd[10013]: libusb: warning [op_get_configuration] device unconfigured
2025-01-28T11:23:40.451306+08:00 rpi usbmuxd[10013]: libusb: error [op_get_active_config_descriptor] device unconfigured
2025-01-28T11:23:40.451344+08:00 rpi usbmuxd[10013]: [11:23:40.451][3] Could not get old configuration descriptor for device 2-21: LIBUSB_ERROR_NOT_FOUND
2025-01-28T11:23:40.513835+08:00 rpi kernel: ipheth 2-1.4.3:4.2: ipheth_enable_ncm: usb_control_msg: 0
2025-01-28T11:23:40.515383+08:00 rpi kernel: ipheth 2-1.4.3:4.2: Apple iPhone USB Ethernet device attached
2025-01-28T11:23:40.517160+08:00 rpi usbmuxd[10013]: [11:23:40.516][3] Initialization complete
2025-01-28T11:23:40.517264+08:00 rpi usbmuxd[10013]: [11:23:40.516][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
2025-01-28T11:23:40.518036+08:00 rpi usbmuxd[10013]: [11:23:40.517][3] Connecting to new device on location 0x20015 as ID 1
2025-01-28T11:23:40.518150+08:00 rpi usbmuxd[10013]: [11:23:40.518][3] Connected to v2.0 device 1 on location 0x20015 with serial number 00008120-000********4201E
2025-01-28T11:23:40.524214+08:00 rpi kernel: ipheth 2-1.4.3:4.2 enxfe9ca7602d56: renamed from eth1
2025-01-28T11:23:40.534731+08:00 rpi systemd-networkd[729]: eth1: Interface name change detected, renamed to enxfe9ca7602d56.
2025-01-28T11:23:43.326178+08:00 rpi systemd-networkd[729]: tun0: Link UP
2025-01-28T11:23:43.326786+08:00 rpi pymobiledevice3[818]: 2025-01-28 11:23:43 rpi pymobiledevice3.tunneld[818] INFO [start-tunnel-task-usbmux-00008120-000********4201E-USB] Created tunnel --rsd fd97:590:142::1 50252
2025-01-28T11:23:43.326983+08:00 rpi systemd-networkd[729]: tun0: Gained carrier
2025-01-28T11:23:43.327081+08:00 rpi systemd-networkd[729]: tun0: Gained IPv6LL
2025-01-28T11:23:44.550165+08:00 rpi ModemManager[826]: <msg> [base-manager] couldn't check support for device '/sys/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb2/2-1/2-1.4/2-1.4.3': not supported by any plugin
2025-01-28T11:23:45.237463+08:00 rpi ntpd[827]: IO: Listen normally on 32 tun0 [fd97:590:142::2]:123
2025-01-28T11:23:45.237616+08:00 rpi ntpd[827]: IO: Listen normally on 33 tun0 [fe80::49c6:229c:afc9:8339%31]:123
2025-01-28T11:23:45.237680+08:00 rpi ntpd[827]: IO: new interface(s) found: waking up resolver
2025-01-28T11:23:55.237212+08:00 rpi ntpd[827]: PROTO: 104.167.241.253 unlink local addr 172.16.200.193 -> <null>
2025-01-28T11:24:24.555827+08:00 rpi pymobiledevice3[818]: INFO:     127.0.0.1:59136 - "GET / HTTP/1.1" 200 OK
2025-01-28T11:24:29.319927+08:00 rpi pymobiledevice3[818]: 2025-01-28 11:24:29 rpi pymobiledevice3.tunneld[818] INFO disconnected from tunnel --rsd fd97:590:142::1 50252
2025-01-28T11:24:30.922017+08:00 rpi usbmuxd[10013]: [11:24:30.921][2] device_control_input: Got unhandled payload type 5
2025-01-28T11:24:32.925223+08:00 rpi usbmuxd[10013]: [11:24:32.924][2] device_control_input: Got unhandled payload type 5
2025-01-28T11:24:34.929476+08:00 rpi usbmuxd[10013]: [11:24:34.928][2] device_control_input: Got unhandled payload type 5
2025-01-28T11:24:36.088004+08:00 rpi systemd-networkd[729]: tun0: Link DOWN
2025-01-28T11:24:36.088221+08:00 rpi systemd-networkd[729]: tun0: Lost carrier
2025-01-28T11:24:36.565776+08:00 rpi usbmuxd[10013]: [11:24:36.565][3] Removed device 1 on location 0x20015
2025-01-28T11:24:36.802266+08:00 rpi kernel: apple-mfi-fastcharge 2-1.4.3: USB disconnect, device number 21
2025-01-28T11:24:36.812250+08:00 rpi kernel: ipheth 2-1.4.3:4.2: Apple iPhone USB Ethernet now disconnected
2025-01-28T11:24:36.844532+08:00 rpi usbmuxd[10013]: [11:24:36.844][3] usbmuxd shutting down
2025-01-28T11:24:36.945415+08:00 rpi usbmuxd[10013]: [11:24:36.945][3] Shutdown complete
2025-01-28T11:24:36.948978+08:00 rpi systemd[1]: usbmuxd.service: Deactivated successfully.
2025-01-28T11:24:38.237418+08:00 rpi ntpd[827]: IO: Deleting interface #32 tun0, fd97:590:142::2#123, interface stats: received=0, sent=0, dropped=0, active_time=53 secs
2025-01-28T11:24:38.237581+08:00 rpi ntpd[827]: IO: Deleting interface #33 tun0, fe80::49c6:229c:afc9:8339%31#123, interface stats: received=0, sent=0, dropped=0, active_time=53 secs
2025-01-28T11:24:38.956485+08:00 rpi pymobiledevice3[818]: Traceback (most recent call last):
2025-01-28T11:24:38.956654+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/construct/core.py", line 174, in stream_read
2025-01-28T11:24:38.956719+08:00 rpi pymobiledevice3[818]:     data = stream.read(length)
2025-01-28T11:24:38.956762+08:00 rpi pymobiledevice3[818]:            ^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.956796+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/pymobiledevice3/usbmux.py", line 121, in recv
2025-01-28T11:24:38.956830+08:00 rpi pymobiledevice3[818]:     chunk = self.sock.recv(size - len(msg))
2025-01-28T11:24:38.956866+08:00 rpi pymobiledevice3[818]:             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.956903+08:00 rpi pymobiledevice3[818]: ConnectionResetError: [Errno 104] Connection reset by peer
2025-01-28T11:24:38.956940+08:00 rpi pymobiledevice3[818]: During handling of the above exception, another exception occurred:
2025-01-28T11:24:38.956975+08:00 rpi pymobiledevice3[818]: Traceback (most recent call last):
2025-01-28T11:24:38.957053+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/pymobiledevice3/utils.py", line 47, in wrapper
2025-01-28T11:24:38.957097+08:00 rpi pymobiledevice3[818]:     return await f(*args, **kwargs)
2025-01-28T11:24:38.957137+08:00 rpi pymobiledevice3[818]:            ^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.957176+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/pymobiledevice3/tunneld.py", line 137, in monitor_usbmux_task
2025-01-28T11:24:38.957247+08:00 rpi pymobiledevice3[818]:     for mux_device in usbmux.list_devices():
2025-01-28T11:24:38.957289+08:00 rpi pymobiledevice3[818]:                       ^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.957338+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/pymobiledevice3/usbmux.py", line 414, in list_devices
2025-01-28T11:24:38.957375+08:00 rpi pymobiledevice3[818]:     mux = create_mux(usbmux_address=usbmux_address)
2025-01-28T11:24:38.957410+08:00 rpi pymobiledevice3[818]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.957444+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/pymobiledevice3/usbmux.py", line 410, in create_mux
2025-01-28T11:24:38.957478+08:00 rpi pymobiledevice3[818]:     return MuxConnection.create(usbmux_address=usbmux_address)
2025-01-28T11:24:38.957511+08:00 rpi pymobiledevice3[818]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.957544+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/pymobiledevice3/usbmux.py", line 181, in create
2025-01-28T11:24:38.957583+08:00 rpi pymobiledevice3[818]:     response = usbmuxd_response.parse_stream(sock)
2025-01-28T11:24:38.957616+08:00 rpi pymobiledevice3[818]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.957649+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/construct/core.py", line 416, in parse_stream
2025-01-28T11:24:38.957686+08:00 rpi pymobiledevice3[818]:     return self._parsereport(stream, context, "(parsing)")
2025-01-28T11:24:38.957720+08:00 rpi pymobiledevice3[818]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.957764+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/construct/core.py", line 428, in _parsereport
2025-01-28T11:24:38.957798+08:00 rpi pymobiledevice3[818]:     obj = self._parse(stream, context, path)
2025-01-28T11:24:38.957838+08:00 rpi pymobiledevice3[818]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.957871+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/construct/core.py", line 4866, in _parse
2025-01-28T11:24:38.957903+08:00 rpi pymobiledevice3[818]:     length = self.lengthfield._parsereport(stream, context, path)
2025-01-28T11:24:38.957937+08:00 rpi pymobiledevice3[818]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.957974+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/construct/core.py", line 428, in _parsereport
2025-01-28T11:24:38.958002+08:00 rpi pymobiledevice3[818]:     obj = self._parse(stream, context, path)
2025-01-28T11:24:38.958030+08:00 rpi pymobiledevice3[818]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.958058+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/construct/core.py", line 1157, in _parse
2025-01-28T11:24:38.958092+08:00 rpi pymobiledevice3[818]:     data = stream_read(stream, self.length, path)
2025-01-28T11:24:38.958129+08:00 rpi pymobiledevice3[818]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-28T11:24:38.958193+08:00 rpi pymobiledevice3[818]:   File "/usr/local/lib/python3.12/dist-packages/construct/core.py", line 176, in stream_read
2025-01-28T11:24:38.958233+08:00 rpi pymobiledevice3[818]:     raise StreamError("stream.read() failed, requested %s bytes" % (length,), path=path)
2025-01-28T11:24:38.958266+08:00 rpi pymobiledevice3[818]: construct.core.StreamError: Error in path (parsing)
2025-01-28T11:24:38.958300+08:00 rpi pymobiledevice3[818]: stream.read() failed, requested 4 bytes
2025-01-28T11:24:50.349216+08:00 rpi kernel: usb 2-1.4.3: new high-speed USB device number 22 using xhci-hcd
2025-01-28T11:24:50.488212+08:00 rpi kernel: usb 2-1.4.3: New USB device found, idVendor=05ac, idProduct=12a8, bcdDevice=15.04
2025-01-28T11:24:50.488232+08:00 rpi kernel: usb 2-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2025-01-28T11:24:50.488234+08:00 rpi kernel: usb 2-1.4.3: Product: iPhone
2025-01-28T11:24:50.488238+08:00 rpi kernel: usb 2-1.4.3: Manufacturer: Apple Inc.
2025-01-28T11:24:50.488240+08:00 rpi kernel: usb 2-1.4.3: SerialNumber: 00008120000********4201E
2025-01-28T11:24:50.586801+08:00 rpi systemd[1]: Started usbmuxd.service - Socket daemon for the usbmux protocol used by Apple devices.
2025-01-28T11:24:50.590161+08:00 rpi usbmuxd[10615]: [11:24:50.589][3] usbmuxd v1.1.1 starting up
2025-01-28T11:24:50.590959+08:00 rpi usbmuxd[10615]: [11:24:50.590][3] Successfully dropped privileges to 'usbmux'
2025-01-28T11:24:50.591031+08:00 rpi usbmuxd[10615]: [11:24:50.590][3] Using libusb 1.0.27
2025-01-28T11:24:50.601241+08:00 rpi usbmuxd[10615]: libusb: warning [op_get_configuration] device unconfigured
2025-01-28T11:24:50.601315+08:00 rpi usbmuxd[10615]: libusb: error [op_get_active_config_descriptor] device unconfigured
2025-01-28T11:24:50.601338+08:00 rpi usbmuxd[10615]: [11:24:50.601][3] Could not get old configuration descriptor for device 2-22: LIBUSB_ERROR_NOT_FOUND
2025-01-28T11:24:50.660845+08:00 rpi kernel: ipheth 2-1.4.3:4.2: ipheth_enable_ncm: usb_control_msg: 0
2025-01-28T11:24:50.663360+08:00 rpi kernel: ipheth 2-1.4.3:4.2: Apple iPhone USB Ethernet device attached
2025-01-28T11:24:50.665278+08:00 rpi usbmuxd[10615]: [11:24:50.663][3] Initialization complete
2025-01-28T11:24:50.665379+08:00 rpi usbmuxd[10615]: [11:24:50.663][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
2025-01-28T11:24:50.665419+08:00 rpi usbmuxd[10615]: [11:24:50.663][3] Connecting to new device on location 0x20016 as ID 1
2025-01-28T11:24:50.665460+08:00 rpi usbmuxd[10615]: [11:24:50.664][3] Connected to v2.0 device 1 on location 0x20016 with serial number 00008120-000********4201E
2025-01-28T11:24:50.670213+08:00 rpi kernel: ipheth 2-1.4.3:4.2 enxfe9ca7602d56: renamed from eth1
2025-01-28T11:24:50.677652+08:00 rpi systemd-networkd[729]: eth1: Interface name change detected, renamed to enxfe9ca7602d56.
2025-01-28T11:24:54.692072+08:00 rpi ModemManager[826]: <msg> [base-manager] couldn't check support for device '/sys/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb2/2-1/2-1.4/2-1.4.3': not supported by any plugin
2025-01-28T11:25:01.098037+08:00 rpi CRON[10681]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
2025-01-28T11:25:34.329028+08:00 rpi pymobiledevice3[818]: INFO:     127.0.0.1:42654 - "GET / HTTP/1.1" 200 OK
2025-01-28T11:25:43.816954+08:00 rpi usbmuxd[10615]: [11:25:43.816][3] Removed device 1 on location 0x20016
2025-01-28T11:25:43.877434+08:00 rpi kernel: apple-mfi-fastcharge 2-1.4.3: USB disconnect, device number 22
2025-01-28T11:25:43.882218+08:00 rpi kernel: ipheth 2-1.4.3:4.2: Apple iPhone USB Ethernet now disconnected
2025-01-28T11:25:43.916050+08:00 rpi usbmuxd[10615]: [11:25:43.915][3] usbmuxd shutting down
2025-01-28T11:25:44.016854+08:00 rpi usbmuxd[10615]: [11:25:44.016][3] Shutdown complete
2025-01-28T11:25:44.020379+08:00 rpi systemd[1]: usbmuxd.service: Deactivated successfully.```



**Additional context**
NA

## For community
⬇️  **Please click the 👍 reaction instead of leaving a `+1` or 👍  comment**
@doronz88
Copy link
Owner

Please make sure you are using the latest pmd3 release. Also, this may sound weird, but please report if after making sure no instance of Google chrome is running the error still persists

@Foogle006
Copy link
Author

The host installed the latest version for pymobiledevice3 last month.
pymobiledevice3 4.16.6
Is it possible to resolved in the new version, 4.20.11?
The experimentation seems strange to me. What's the reason for doing this? If the issue doesn't occur in Google Chrome, what should be our next step?

@doronz88
Copy link
Owner

  1. Latest versions fixed several FD leak bugs which could cause tunneld to stop being able to handle new connections.
  2. I know Google Chrome has a bug, in which it has a builtin race with usbmuxd - which could result in the device not being identified by usbmuxd until reconnecting. Only solution I know of to this bug is to simply not use Google Chrome (Firefox for example doesn't have this bug).

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