-
Notifications
You must be signed in to change notification settings - Fork 17
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
netmuxd-zeroconf unknown heartbeat error after a while #10
Comments
I am also facing same issue. Line 27 in 1275069
|
I am also facing this issue. I can see it in AltServer-Linux. It works fine with usbmuxd. But when I set the env var Adding device xxxxxxxx-xxxxxxxxx
[2022-07-03T17:26:21Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid xxxxxxxx-xxxxxxxxx: UnknownError
Adding device xxxxxxxx-xxxxxxxxx
[2022-07-03T17:26:31Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid xxxxxxxx-xxxxxxxxx: UnknownError
Adding device xxxxxxxx-xxxxxxxxx
[2022-07-03T17:26:41Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid xxxxxxxx-xxxxxxxxx: UnknownError Then it keeps repeating every 10 seconds. |
Can you run with the env var RUST_LOG=info |
WARNING: Running in host mode will not work unless you are running a daemon in unix mode as well
[2022-07-03T17:31:32Z INFO netmuxd::central_data] Getting UDID for MAC: "xx:xx:xx:xx:xx:xx"
[2022-07-03T17:31:32Z INFO plist_plus] Parsing xml
[2022-07-03T17:31:32Z INFO plist_plus] Creating plist from plist_t with id 2998967729
[2022-07-03T17:31:32Z INFO plist_plus::types::dictionary] Getting dict item
[2022-07-03T17:31:32Z INFO plist_plus] Creating plist from plist_t with id 1256711957
[2022-07-03T17:31:32Z INFO plist_plus] Cloning plist
[2022-07-03T17:31:32Z INFO plist_plus] Getting type of cloned plist
[2022-07-03T17:31:32Z INFO plist_plus] Creating plist from plist_t with id 2938159892
[2022-07-03T17:31:32Z INFO plist_plus] Dropping plist 1256711957
[2022-07-03T17:31:32Z INFO plist_plus] Plist dropped
[2022-07-03T17:31:32Z INFO plist_plus::types::string] Getting string value
[2022-07-03T17:31:32Z INFO plist_plus::types::string] Converting cstring to string
[2022-07-03T17:31:32Z INFO plist_plus] Dropping plist 2938159892
[2022-07-03T17:31:32Z INFO plist_plus] Plist dropped
[2022-07-03T17:31:32Z INFO plist_plus] Dropping plist 2998967729
[2022-07-03T17:31:32Z INFO plist_plus] Plist dropped
[2022-07-03T17:31:32Z INFO plist_plus] Parsing xml
[2022-07-03T17:31:32Z INFO plist_plus] Creating plist from plist_t with id 1168404114
[2022-07-03T17:31:32Z INFO plist_plus::types::dictionary] Getting dict item
[2022-07-03T17:31:32Z INFO plist_plus] Creating plist from plist_t with id 2080556298
[2022-07-03T17:31:32Z INFO plist_plus] Cloning plist
[2022-07-03T17:31:32Z INFO plist_plus] Getting type of cloned plist
[2022-07-03T17:31:32Z INFO plist_plus] Creating plist from plist_t with id 1402125424
[2022-07-03T17:31:32Z INFO plist_plus] Dropping plist 2080556298
[2022-07-03T17:31:32Z WARN plist_plus] Plist has already been freed
[2022-07-03T17:31:32Z INFO plist_plus] Dropping plist 1402125424
[2022-07-03T17:31:32Z WARN plist_plus] Plist has already been freed
[2022-07-03T17:31:32Z INFO plist_plus] Dropping plist 1168404114
[2022-07-03T17:31:32Z INFO plist_plus] Plist dropped
[2022-07-03T17:31:32Z INFO plist_plus] Parsing xml
[2022-07-03T17:31:32Z INFO plist_plus] Creating plist from plist_t with id 1492039906
[2022-07-03T17:31:32Z INFO plist_plus::types::dictionary] Getting dict item
[2022-07-03T17:31:32Z INFO plist_plus] Creating plist from plist_t with id 1748401340
[2022-07-03T17:31:32Z INFO plist_plus] Cloning plist
[2022-07-03T17:31:32Z INFO plist_plus] Getting type of cloned plist
[2022-07-03T17:31:32Z INFO plist_plus] Creating plist from plist_t with id 3586890328
[2022-07-03T17:31:32Z INFO plist_plus] Dropping plist 1748401340
[2022-07-03T17:31:32Z INFO plist_plus] Plist dropped
[2022-07-03T17:31:32Z INFO plist_plus::types::string] Getting string value
[2022-07-03T17:31:32Z INFO plist_plus::types::string] Converting cstring to string
[2022-07-03T17:31:32Z INFO plist_plus] Dropping plist 3586890328
[2022-07-03T17:31:32Z INFO plist_plus] Plist dropped
[2022-07-03T17:31:32Z INFO plist_plus] Dropping plist 1492039906
[2022-07-03T17:31:32Z INFO plist_plus] Plist dropped
[2022-07-03T17:31:32Z INFO netmuxd::central_data] Found UDID: "xxxxxxxx-xxxxxxxxx"
Adding device xxxxxxxx-xxxxxxxxx
[2022-07-03T17:31:32Z INFO rusty_libimobiledevice::idevice] Converting udid to C string
[2022-07-03T17:31:32Z INFO rusty_libimobiledevice::idevice] Creating udid ptr
[2022-07-03T17:31:32Z INFO rusty_libimobiledevice::idevice] Converting ip address into bytes
[2022-07-03T17:31:32Z INFO rusty_libimobiledevice::idevice] Encodings ipv4 address
[2022-07-03T17:31:32Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid xxxxxxxx-xxxxxxxxx: UnknownError
[2022-07-03T17:31:32Z INFO rusty_libimobiledevice::idevice] Dropping device xxxxxxxx-xxxxxxxxx
[2022-07-03T17:31:32Z INFO netmuxd::heartbeat] Removing device xxxxxxxx-xxxxxxxxx from muxer
[2022-07-03T17:31:32Z INFO netmuxd::central_data] Removing device: "xxxxxxxx-xxxxxxxxx"
|
This looks like an error with an invalid pairing file. I would try regenerating it with usbmuxd. Also, you seem to be running an outdated build, or it’s using outdated deps. |
I'm pulling them from debian, maybe that's why? I just generated the pairing file. Tell me which dependencies might be causing an issue I'll try building them manually since debian has old versions. |
After unpairing/repairing I'm getting this: WARNING: Running in host mode will not work unless you are running a daemon in unix mode as well
[2022-07-03T17:42:20Z INFO netmuxd::central_data] Getting UDID for MAC: "xx:xx:xx:xx:xx"
[2022-07-03T17:42:20Z INFO plist_plus] Parsing xml
[2022-07-03T17:42:20Z INFO plist_plus] Creating plist from plist_t with id 2553729807
[2022-07-03T17:42:20Z INFO plist_plus::types::dictionary] Getting dict item
[2022-07-03T17:42:20Z INFO plist_plus] Creating plist from plist_t with id 3353063795
[2022-07-03T17:42:20Z INFO plist_plus] Cloning plist
[2022-07-03T17:42:20Z INFO plist_plus] Getting type of cloned plist
[2022-07-03T17:42:20Z INFO plist_plus] Creating plist from plist_t with id 2708026803
[2022-07-03T17:42:20Z INFO plist_plus] Dropping plist 3353063795
[2022-07-03T17:42:20Z INFO plist_plus] Plist dropped
[2022-07-03T17:42:20Z INFO plist_plus::types::string] Getting string value
[2022-07-03T17:42:20Z INFO plist_plus::types::string] Converting cstring to string
[2022-07-03T17:42:20Z INFO plist_plus] Dropping plist 2708026803
[2022-07-03T17:42:20Z INFO plist_plus] Plist dropped
[2022-07-03T17:42:20Z INFO plist_plus] Dropping plist 2553729807
[2022-07-03T17:42:20Z INFO plist_plus] Plist dropped
[2022-07-03T17:42:20Z INFO plist_plus] Parsing xml
[2022-07-03T17:42:20Z INFO plist_plus] Creating plist from plist_t with id 3451195937
[2022-07-03T17:42:20Z INFO plist_plus::types::dictionary] Getting dict item
[2022-07-03T17:42:20Z INFO plist_plus] Creating plist from plist_t with id 2269541282
[2022-07-03T17:42:20Z INFO plist_plus] Cloning plist
[2022-07-03T17:42:20Z INFO plist_plus] Getting type of cloned plist
[2022-07-03T17:42:20Z INFO plist_plus] Creating plist from plist_t with id 3065494590
[2022-07-03T17:42:20Z INFO plist_plus] Dropping plist 2269541282
[2022-07-03T17:42:20Z WARN plist_plus] Plist has already been freed
[2022-07-03T17:42:20Z INFO plist_plus] Dropping plist 3065494590
[2022-07-03T17:42:20Z WARN plist_plus] Plist has already been freed
[2022-07-03T17:42:20Z INFO plist_plus] Dropping plist 3451195937
[2022-07-03T17:42:20Z INFO plist_plus] Plist dropped
[2022-07-03T17:42:20Z INFO plist_plus] Parsing xml
[2022-07-03T17:42:20Z INFO plist_plus] Creating plist from plist_t with id 3988722464
[2022-07-03T17:42:20Z INFO plist_plus::types::dictionary] Getting dict item
[2022-07-03T17:42:20Z INFO plist_plus] Creating plist from plist_t with id 1099965478
[2022-07-03T17:42:20Z INFO plist_plus] Cloning plist
[2022-07-03T17:42:20Z INFO plist_plus] Getting type of cloned plist
[2022-07-03T17:42:20Z INFO plist_plus] Creating plist from plist_t with id 359847415
[2022-07-03T17:42:20Z INFO plist_plus] Dropping plist 1099965478
[2022-07-03T17:42:20Z INFO plist_plus] Plist dropped
[2022-07-03T17:42:20Z INFO plist_plus::types::string] Getting string value
[2022-07-03T17:42:20Z INFO plist_plus::types::string] Converting cstring to string
[2022-07-03T17:42:20Z INFO plist_plus] Dropping plist 359847415
[2022-07-03T17:42:20Z INFO plist_plus] Plist dropped
[2022-07-03T17:42:20Z INFO plist_plus] Dropping plist 3988722464
[2022-07-03T17:42:20Z INFO plist_plus] Plist dropped
[2022-07-03T17:42:20Z INFO netmuxd::central_data] Found UDID: "xxxxxxxx-xxxxxxxxx"
Adding device xxxxxxxx-xxxxxxxxx
[2022-07-03T17:42:20Z INFO rusty_libimobiledevice::idevice] Converting udid to C string
[2022-07-03T17:42:20Z INFO rusty_libimobiledevice::idevice] Creating udid ptr
[2022-07-03T17:42:20Z INFO rusty_libimobiledevice::idevice] Converting ip address into bytes
[2022-07-03T17:42:20Z INFO rusty_libimobiledevice::idevice] Encodings ipv4 address
[2022-07-03T17:42:20Z ERROR netmuxd::heartbeat] Failed to create heartbeat client for udid xxxxxxxx-xxxxxxxxx: UnknownError
[2022-07-03T17:42:20Z INFO rusty_libimobiledevice::idevice] Dropping device xxxxxxxx-xxxxxxxxx
[2022-07-03T17:42:20Z INFO netmuxd::heartbeat] Removing device xxxxxxxx-xxxxxxxxx from muxer
[2022-07-03T17:42:20Z INFO netmuxd::central_data] Removing device: "xxxxxxxx-xxxxxxxxx"
|
Please try the latest build that was just pushed. Post logs with RUST_LOG=info. |
I compiled from source. Still got a Hearthbeat failure after a while. full log: |
I have the same problem @jkcoxson, here is my netmuxd logfile: https://gist.github.com/Staubgeborener/fdcb8d88060c59daea25e2666c048592 There seems to be also a difference by running netmuxd as root or not:
The I also tried the
which runs into
Btw i already re-paired the iPhone several times like
|
@Staubgeborener I was in the same boat as you, was getting the heartbeat issue. For now, I am able to solve it. Here are all steps I did. You can try step 0 first and see if that solves the issue, if not try all the steps. EDIT: Step 0: Restart wifi on ios
|
@Practicalbutterfly5 I can confirm, that this is working. The most important step is
|
I´m not using AltServer with netmuxd, but with the libmobiledevice Library the Heartbeat error after a while ist still present. The described Solution indeed helped, when netmuxd doesn`t want to start at all. @Staubgeborener Are there no more Heartbeat failures in your netmuxd log? [2022-08-04T08:37:57Z INFO netmuxd::devices] Getting UDID for MAC: "xxx"
[2022-08-04T08:37:57Z INFO netmuxd::devices] Found UDID: "00008030-xxx"
[2022-08-04T08:37:57Z INFO netmuxd::mdns] Device has already been added to muxer, skipping
[2022-08-04T08:37:59Z INFO netmuxd::heartbeat] Heartbeat failed for 00008030-xxx
[2022-08-04T08:37:59Z INFO rusty_libimobiledevice::services::heartbeat] Dropping heartbeat client
Removing 00008030-xxx
[2022-08-04T08:37:59Z INFO rusty_libimobiledevice::idevice] Dropping device 00008030-xxx
[2022-08-04T08:37:59Z INFO netmuxd::devices] Removing device: "00008030-xxx" Netmuxd keeps Adding and Removing the Device all the time. Which makes automatic headless iphone backup to my Ubuntu NAS not possible. Adding device 00008030-xxx
Removing 00008030-xxx
Adding device 00008030-xxx
Removing 00008030-xxx
Adding device 00008030-xxx
Removing 00008030-xxx I already tried a cron Script that waits for the Adding Device output and then start backup, but even then I often get |
@Demuos No, i don't have any errors. |
I found a problem with my startscript, which tried to start netmuxd more than once. Netmuxd and automated backups are working fine for 2 days now. |
Hello,
the old mdns discovery did not work at all for me so I extracted the
netmuxd-zeroconf
from the current docker container. This version works in the beginning quite well but after a while (hours) AltServer can not find the device anymore. The output of netmuxd is full of unknown heartbeat errors. It never recovers from there and after a restart everything works again.(UUID shorted for readability)
I do not know if that is the intended behavior but I do also get a lot of adding/removing the device when it works
The text was updated successfully, but these errors were encountered: