netmuxd icon indicating copy to clipboard operation
netmuxd copied to clipboard

UnknownError when pairing device

Open SoftwareRat opened this issue 2 years ago • 20 comments

OS: Fedora 35 iPhone: iPhone XS Max Using latest iOS 15.4.1

❯ sudo ./netmuxd --disable-unix --host 127.0.0.1
[sudo] password for softwarerat: 
Starting netmuxd
Starting mDNS discovery
Listening on 127.0.0.1:27015
WARNING: Running in host mode will not work unless you are running a daemon in unix mode as well
Adding device 00008020-0004791A1446002E
[2022-04-21T17:40:14Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid 00008020-0004791A1446002E: UnknownError
Adding device 00008020-0004791A1446002E
[2022-04-21T17:40:15Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid 00008020-0004791A1446002E: UnknownError
Adding device 00008020-0004791A1446002E
[2022-04-21T17:40:16Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid 00008020-0004791A1446002E: UnknownError
thread 'tokio-runtime-worker' panicked at 'range end index 421 out of range for slice of length 16', src/raw_packet.rs:62:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Adding device 00008020-0004791A1446002E
[2022-04-21T17:43:12Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid 00008020-0004791A1446002E: UnknownError
Adding device 00008020-0004791A1446002E
[2022-04-21T17:44:02Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid 00008020-0004791A1446002E: UnknownError
Adding device 00008020-0004791A1446002E
[2022-04-21T17:44:22Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid 00008020-0004791A1446002E: UnknownError
Adding device 00008020-0004791A1446002E
[2022-04-21T17:44:32Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid 00008020-0004791A1446002E: UnknownError

SoftwareRat avatar Apr 21 '22 17:04 SoftwareRat

Do you have usbmuxd running as well?

jkcoxson avatar Apr 21 '22 18:04 jkcoxson

Do you have usbmuxd running as well?

Yes, I am using the script from https://github.com/powenn/AltServer-Linux-ShellScript which automate the process

SoftwareRat avatar Apr 21 '22 18:04 SoftwareRat

Can you run it with logs? sudo RUST_LOG=trace ./netmuxd —disable-unix —host 127.0.0.1

jkcoxson avatar Apr 21 '22 18:04 jkcoxson

Also, looking into AltServer-Linux_ShellScript, it does not automatically start usbmuxd, it is up to the user. Ensure that it is running.

jkcoxson avatar Apr 21 '22 18:04 jkcoxson

Here: https://gist.github.com/SoftwareRat/6fd25713f01019d258659ceacffea22a

SoftwareRat avatar Apr 26 '22 20:04 SoftwareRat

Looks like that log was successfully

jkcoxson avatar Apr 26 '22 21:04 jkcoxson

AltStore says „unable to find AltServer“

On 26. Apr 2022, at 23:21, Jk C @.***> wrote:

 Looks like that log was successfully

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

SoftwareRat avatar Apr 27 '22 05:04 SoftwareRat

That’s a problem with AltServer then. The only connection netmuxd manages is AltServer to device, not the other way around.

jkcoxson avatar Apr 27 '22 05:04 jkcoxson

But when I wait long enough it says „UnknownError“ thing

Sent from my iPhone

On 27. Apr 2022, at 07:20, Jackson Coxson @.***> wrote:

 That’s a problem with AltServer then. The only connection netmuxd manages is AltServer to device, not the other way around.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

SoftwareRat avatar Apr 27 '22 05:04 SoftwareRat

@SoftwareRat Follow these steps, it should help -

  1. Kill all usbmuxd and netmuxd instances
  2. Connect your idevice to the linux machine on USB
  3. Start usbmuxd as root
  4. Run AltServer and refresh any sideloaded ipa
  5. Remove the phone from USB and bring it on the same wi-fi network as the linux machine.
  6. Kill AltServer instance
  7. Run netmuxd as root and see that it finally adds this idevice

These steps helped me resolve this "UnknownError".

adityasanghvi avatar May 03 '22 22:05 adityasanghvi

Unfortunately this didn't help for me. I tried it on a RPI and on a x64 machine. On both devices I'm seeing the same error. I followed the exact steps in the README file but can't get it to work. Wired mode works flawlessly though.

ramondunker avatar Jul 22 '22 10:07 ramondunker

@SoftwareRat Follow these steps, it should help -

1. Kill all usbmuxd and netmuxd instances

2. Connect your idevice to the linux machine on USB

3. Start usbmuxd as root

4. Run AltServer and refresh any sideloaded ipa

5. Remove the phone from USB and bring it on the same wi-fi network as the linux machine.

6. Kill AltServer instance

7. Run netmuxd as root and see that it finally adds this idevice

These steps helped me resolve this "UnknownError".

Doesn't work for me

SoftwareRat avatar Jul 30 '22 17:07 SoftwareRat

I have the same problem, and I think I've run out of options to try. Normal usbmuxd pairing works, as soon as I try to run netmuxd (with or without usbmuxd running in the background), it just doesn't find the device (sudo idevice_id --list). Any ideas?

Nosskirneh avatar Oct 07 '22 22:10 Nosskirneh

Not without logs or other info

jkcoxson avatar Oct 07 '22 22:10 jkcoxson

Commands and logs: commands.txt – I've only replaced my UDID.

In short: Connect the iPhone while usbmuxd is running, then run sudo idevice_id --list where the iPhone's UDID is present, disconnecting the iPhone, restarting usbmuxd, starting netmuxd and then running the same command – device is not found.

iPhone 13 Pro, iOS 16.0.2. Raspberry Pi 3B running:

~ uname -a
Linux raspberrypi 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l GNU/Linux

Any other information that would be needed?

Nosskirneh avatar Oct 07 '22 23:10 Nosskirneh

heya, also having this issue after installing altstore on my device if there's anything i can help with, just ask!

Sorry, i seemed to have fixed it by doing:

when in wireless mode it won't work, my device says it can't find altserver i switch over to tetherd mode and stop netmuxd i pair the device successfully i refresh and it works (cable) i switch to wireless mode i refresh and it works (cable) i refresh and it works (no cable)

When did this issue happen? After i set my ansinette server ip, i installed altstore ontop of an exciting one on my device, and tried to refresh after switching back. I do have to note i used systemd to run netmuxd and altserver so i might have gotten it confused?

Macleykun avatar Oct 25 '22 17:10 Macleykun

The latest release fixed this problem for me. Now I get an entry saying Adding device <UDID>, which I didn't before. Very appreciated update, thanks @jkcoxson!

Nosskirneh avatar Oct 25 '22 19:10 Nosskirneh

I too am having the same problem.

wkddudwo avatar Jun 23 '23 19:06 wkddudwo

I solved the problem. ./netmuxd --disable-unix --host 127.0.0.1 Instead of RUST_LOG=trace ./netmuxd —disable-unix —host 127.0.0.1 If you run altserver while executing the log check command with , it works normally.

wkddudwo avatar Jun 25 '23 16:06 wkddudwo

I'm also having this issue, I keep getting an UnknownError, but USB backups work fine

yoonsikp avatar Sep 04 '23 18:09 yoonsikp