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

Apple TV 4K 128GB - Unable to install AFC E MUX ERROR #15

Open
han9over opened this issue Jul 15, 2024 · 36 comments
Open

Apple TV 4K 128GB - Unable to install AFC E MUX ERROR #15

han9over opened this issue Jul 15, 2024 · 36 comments
Labels
bug Something isn't working

Comments

@han9over
Copy link

checking afc service status...
afc service OK!
IPA uploading...
install INFO 2024-07-15T20:59:59.593 Configuration path: /data/Sideloader
cli_frontend INFO 2024-07-15T20:59:59.610 Logging in...
server.developersession INFO 2024-07-15T20:59:59.610 Creating DeveloperSession for hangoverafdb@gmail.com...
server.developersession INFO 2024-07-15T21:00:00.832 DeveloperSession created successfully.
install INFO 2024-07-15T21:00:00.834 Initiating connection the device (UUID: 00008110-0000041E3662401E)
�[?25l install INFO 2024-07-15T21:00:00.836 | 0/100 Fetching development teams
install INFO 2024-07-15T21:00:01.273 ### | 11/100 List account's development devices
install INFO 2024-07-15T21:00:02.084 ########## | 33/100 Generating a certificate for Sideloader
...d.certificateidentity INFO 2024-07-15T21:00:03.118 Sideload certificate found.
install INFO 2024-07-15T21:00:03.118 ############## | 44/100 Creating App IDs for the application
install INFO 2024-07-15T21:00:04.046 ################# | 55/100 Creating an application group
install INFO 2024-07-15T21:00:04.480 ##################### | 66/100 Manage App IDs and groups
install INFO 2024-07-15T21:00:06.446 ######################## | 77/100 Signing the application bundle
install INFO 2024-07-15T21:00:07.833 ######################### | 79/100 Signing the application bundle
install INFO 2024-07-15T21:00:08.099 ########################## | 83/100 Signing the application bundle
install INFO 2024-07-15T21:00:08.127 ########################### | 85/100 Signing the application bundle
install INFO 2024-07-15T21:00:10.456 ############################ | 88/100 Signing the application bundle
install INFO 2024-07-15T21:00:10.456 ############################ | 88/100 Installing the application on the device
install INFO 2024-07-15T21:00:11.130 ############################ | 88/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.150 ############################ | 88/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.171 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.180 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.252 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.272 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.343 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.365 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.372 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.400 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.426 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.432 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.478 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.501 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.508 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.535 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.558 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.565 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.585 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.607 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:11.633 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.628 ############################ | 89/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.647 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.669 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.693 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.700 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.727 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.754 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.776 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.783 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.811 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.834 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.841 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.865 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.886 ############################ | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.893 ############################# | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.917 ############################# | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.939 ############################# | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.946 ############################# | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.971 ############################# | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:12.992 ############################# | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.019 ############################# | 90/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.026 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.046 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.069 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.077 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.100 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.122 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.150 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.172 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.178 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.199 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.220 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.226 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.250 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.273 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.280 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.304 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:I00:13.324 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.332 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.353 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-15T21:00:13.377 ############################# | 91/100 Installing the application on the device (Transfer)
cli_frontend ERROR 2024-07-15T21:00:21.301 imobiledevice.iMobileDeviceException!(imobiledevice.afc.afc_error_t).iMobileDeviceException at source/imobiledevice/package.d:34: error AFC_E_MUX_ERROR
ERROR: exit status 1

@bitxeno
Copy link
Owner

bitxeno commented Jul 17, 2024

You tvOS version is? Can success when try again later?

@han9over
Copy link
Author

You tvOS version is? Can success when try again later?

17.5.1. No success even after trying later

@bitxeno
Copy link
Owner

bitxeno commented Jul 17, 2024

You tvOS version is? Can success when try again later?

17.5.1. No success even after trying later

afc can not upload app bundle to your device. use https://sideloadly.io/ can install this ipa?

@han9over
Copy link
Author

You tvOS version is? Can success when try again later?

17.5.1. No success even after trying later

afc can not upload app bundle to your device. use https://sideloadly.io/ can install this ipa?

Yes. When I use sideloadly I was able to push the ipa to tv.

@bitxeno
Copy link
Owner

bitxeno commented Jul 18, 2024

What is the size of the ipa file?

@han9over
Copy link
Author

What is the size of the ipa file?

31 MB

@bitxeno
Copy link
Owner

bitxeno commented Jul 19, 2024

This ipa can share?

@han9over
Copy link
Author

This ipa can share?

https://github.com/StreamerApp/Streamer

@bitxeno bitxeno added the bug Something isn't working label Jul 24, 2024
@netcookies
Copy link

same issue here

@bitxeno
Copy link
Owner

bitxeno commented Jul 28, 2024

New version v0.2.3 has print more error log, please try again.

@han9over
Copy link
Author

is there a way to check which version I am running?

@bitxeno
Copy link
Owner

bitxeno commented Jul 29, 2024

is there a way to check which version I am running?

Right now, only docker container startup log prints out the version.

@han9over
Copy link
Author

Right now, only docker container startup log prints out the version.

looks like I am running 0.2.1. I tried updating image, but getting below error.

Error response from daemon: pull access denied for atvloadly, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

@bitxeno
Copy link
Owner

bitxeno commented Jul 29, 2024

Has two image source, you can try which can success.

docker pull bitxeno/atvloadly:latest
docker pull ghcr.io/bitxeno/atvloadly:latest

@han9over
Copy link
Author

han9over commented Jul 29, 2024

Has two image source, you can try which can success.

docker pull bitxeno/atvloadly:latest
docker pull ghcr.io/bitxeno/atvloadly:latest

Here is the new log. removed some % completed line items to make it easy to read

checking afc service status...
afc service OK!
IPA uploading...
install INFO 2024-07-29T20:30:07.717 Configuration path: /data/Sideloader
app INFO 2024-07-29T20:30:07.717 Downloading APK...
100.00 % completed
app INFO 2024-07-29T20:30:21.448 Extracted successfully!
cli_frontend INFO 2024-07-29T20:30:21.448 Download completed.
app INFO 2024-07-29T20:30:21.449 Creating device...
app INFO 2024-07-29T20:30:21.470 Device created successfully.
app INFO 2024-07-29T20:30:21.488 Provisioning device...
app INFO 2024-07-29T20:30:22.304 Device provisioned successfully.
cli_frontend INFO 2024-07-29T20:30:22.304 Logging in...
server.developersession INFO 2024-07-29T20:30:22.308 Creating DeveloperSession for han*********@gmail.com...
server.developersession INFO 2024-07-29T20:30:23.401 DeveloperSession created successfully.
install INFO 2024-07-29T20:30:23.403 Initiating connection the device (UUID: 00008110-0000041E3662401E)
install INFO 2024-07-29T20:30:23.404 | 0/100 Fetching development teams
�[?25l install INFO 2024-07-29T20:30:23.865 ### | 11/100 List account's development devices
install INFO 2024-07-29T20:30:24.762 ####### | 22/100 Register the current device as a development device
install INFO 2024-07-29T20:30:25.350 ########## | 33/100 Generating a certificate for Sideloader
install INFO 2024-07-29T20:30:27.722 ############## | 44/100 Creating App IDs for the application
sideload INFO 2024-07-29T20:30:28.226 Creating App ID com.streamer.tvos.TLFS49KCZA...
sideload INFO 2024-07-29T20:30:28.731 Creating App ID com.streamer.tvos.TLFS49KCZA.Topshelf...
install INFO 2024-07-29T20:30:30.824 ################# | 55/100 Creating an application group
install INFO 2024-07-29T20:30:31.282 ##################### | 66/100 Manage App IDs and groups
install INFO 2024-07-29T20:30:33.508 ######################## | 77/100 Signing the application bundle
install INFO 2024-07-29T20:30:40.927 ############################ | 88/100 Signing the application bundle
install INFO 2024-07-29T20:30:40.927 ############################ | 88/100 Installing the application on the device
install INFO 2024-07-29T20:30:44.759 ############################# | 91/100 Installing the application on the device (Transfer)
install INFO 2024-07-29T20:30:44.781 ############################# | 91/100 Installing the application on the device (Transfer)
cli_frontend ERROR 2024-07-29T20:30:51.714 imobiledevice.iMobileDeviceException!(imobiledevice.afc.afc_error_t).iMobileDeviceException at source/imobiledevice/package.d:300: error AFC_E_MUX_ERROR
cli_frontend ERROR 2024-07-29T20:30:51.717 Full exception: imobiledevice.iMobileDeviceException!(imobiledevice.afc.afc_error_t).iMobileDeviceException@source/imobiledevice/package.d(300): error AFC_E_MUX_ERROR

??:? [0x5558611b0f]
??:? [0x5558611753]
??:? [0x5558637f07]
??:? [0x555861afbb]
??:? [0x555844b2b3]
??:? [0x555845aca3]
??:? [0x55583a03db]
??:? [0x55583edf23]
??:? [0x55583a2617]
??:? [0x55583a299f]
??:? [0x555861ac63]
??:? [0x555861ab47]
??:? [0x555861a9af]
??:? [0x7fa9ec73fb]
??:? __libc_start_main [0x7fa9ec74cb]
??:? [0x555839ecef]
ERROR: exit status 1

@bitxeno
Copy link
Owner

bitxeno commented Jul 30, 2024

@han9over In the nightly version, I've added a retry feature. Please test it to see if it can resolve this error.

docker pull bitxeno/atvloadly:nightly
docker pull ghcr.io/bitxeno/atvloadly:nightly

@han9over
Copy link
Author

@han9over In the nightly version, I've added a retry feature. Please test it to see if it can resolve this error.

docker pull bitxeno/atvloadly:nightly
docker pull ghcr.io/bitxeno/atvloadly:nightly

still the same error. Only pasted the last lines of the log. I am using raspberry pi.. will that make a difference?

             install INFO  2024-07-30T18:38:28.102 #############################   | 91/100  Installing the application on the device (Transfer 62/168)
            sideload WARN  2024-07-30T18:38:35.922 afc write file (Streamer) error, will try again: error AFC_E_MUX_ERROR
            sideload ERROR 2024-07-30T18:38:36.070 afc write file (Streamer) error: error AFC_E_MUX_ERROR
        cli_frontend ERROR 2024-07-30T18:38:36.097 imobiledevice.iMobileDeviceException!(imobiledevice.afc.afc_error_t).iMobileDeviceException at source/imobiledevice/package.d:290: error AFC_E_MUX_ERROR

ERROR: exit status 1

@bitxeno
Copy link
Owner

bitxeno commented Jul 31, 2024

Each time is failed on Streamer file? This could be due to the Arm Docker connection limit. Maybe you can try using the Docker host network.

@bitxeno
Copy link
Owner

bitxeno commented Jul 31, 2024

It looks like when the network is slow and the AFC write file too long will cause this error. I haven't found a workaround yet

@han9over
Copy link
Author

It looks like when the network is slow and the AFC write file too long will cause this error. I haven't found a workaround yet

I tried using sideloadly on my mac and was able to push the file. however, I don't use the mac as it was old. I can wait on this to find a fix.

@netcookies
Copy link

Each time is failed on Streamer file? This could be due to the Arm Docker connection limit. Maybe you can try using the Docker host network.

FYI: I use atvloadly in Synology NAS (x86) with the same error. So could not be due to the Arm Docker connection limit.

@jdmtv001
Copy link

jdmtv001 commented Sep 3, 2024

Each time is failed on Streamer file? This could be due to the Arm Docker connection limit. Maybe you can try using the Docker host network.

FYI: I use atvloadly in Synology NAS (x86) with the same error. So could not be due to the Arm Docker connection limit.

I just installed it on my Synology but I cannot get to the web management interface. Please tell me what address/IP you use to access the web address interface. I am testing it to provide feedback. Thanks

@jdmtv001
Copy link

jdmtv001 commented Sep 3, 2024

Nevermind, I got it to work. Was an issues with my setup

@jdmtv001
Copy link

jdmtv001 commented Sep 4, 2024

@netcookies Can you please tell me how you got it to run properly on Synology Nas? I am getting Service Status
avahi-daemon with an red X. I run the cmd in terminal and avahi daemon is running and is finding all my devices on the network.

However, when I go to the atvloadly web management page I cannot get the pair feature to work. I am not sure but it might be because of this red X.

I am running the atvloadly in a docker container. Thanks

@netcookies
Copy link

@netcookies Can you please tell me how you got it to run properly on Synology Nas? I am getting Service Status

avahi-daemon with an red X. I run the cmd in terminal and avahi daemon is running and is finding all my devices on the network.

However, when I go to the atvloadly web management page I cannot get the pair feature to work. I am not sure but it might be because of this red X.

I am running the atvloadly in a docker container. Thanks

please offer ur cmd or screenshot.

@jdmtv001
Copy link

jdmtv001 commented Sep 5, 2024

@netcookies I got it to work. Seems to have been an issue with the some variable the way they were shared. I will test with some sideloading.

Thank you

@jdmtv001
Copy link

jdmtv001 commented Sep 5, 2024

I am also getting the same error on Synology and also on a laptop with Ubuntu installed.

            install INFO  2024-09-05T02:11:06.463 ##############################  | 96/100  Installing the application on the device (Transfer)
             install INFO  2024-09-05T02:11:06.508 ##############################  | 96/100  Installing the application on the device (Transfer)
             install INFO  2024-09-05T02:11:06.528 ##############################  | 96/100  Installing the application on the device (Transfer)
             install INFO  2024-09-05T02:11:06.577 ##############################  | 96/100  Installing the application on the device (Transfer)
             install INFO  2024-09-05T02:11:06.583 ##############################  | 96/100  Installing the application on the device (Transfer)
             install INFO  2024-09-05T02:11:06.605 ##############################  | 96/100  Installing the application on the device (Transfer)
             install INFO  2024-09-05T02:11:06.625 ##############################  | 96/100  Installing the application on the device (Transfer)
        cli_frontend ERROR 2024-09-05T02:11:07.729 imobiledevice.iMobileDeviceException!(imobiledevice.afc.afc_error_t).iMobileDeviceException at source/imobiledevice/package.d:300: error AFC_E_MUX_ERROR
        cli_frontend ERROR 2024-09-05T02:11:07.732 Full exception: imobiledevice.iMobileDeviceException!(imobiledevice.afc.afc_error_t).iMobileDeviceException@source/imobiledevice/package.d(300): error AFC_E_MUX_ERROR

??:? [0x55644e1b0f]
??:? [0x55644e1753]
??:? [0x5564507f07]
??:? [0x55644eafbb]
??:? [0x556431b2b3]
??:? [0x556432aca3]
??:? [0x55642703db]
??:? [0x55642bdf23]
??:? [0x5564272617]
??:? [0x556427299f]
??:? [0x55644eac63]
??:? [0x55644eab47]
??:? [0x55644ea9af]
??:? [0x7fb48f73fb]
??:? __libc_start_main [0x7fb48f74cb]
??:? [0x556426ecef]
ERROR: exit status 1

@jdmtv001
Copy link

I have done some local testing with Sideloady and I believe the issue is with the Anisette server. Sidealoady has this built in. Atvloadly does not, and although I have it installed as a docker (I cannot find a native Linux version if exists without docker), for me it does not detect the anisette server. It gets all he way to 96% and returns the error above. No issues with Sideloady and the same iPad file.

@bitxeno
Copy link
Owner

bitxeno commented Sep 10, 2024

@jdmtv001 Anisette server only provide some metadata for simulate a MacBook, which is same as generated by atvloadly. Are you using the Mac or Windows version of Sideloadly?

@jdmtv001
Copy link

@bitxeno I am using a Mac.

@bitxeno
Copy link
Owner

bitxeno commented Sep 13, 2024

You can try the new version v0.2.4 to see if it can fix this issue.

@sysytemofxxx
Copy link

You can try the new version v0.2.4 to see if it can fix this issue.

image

@bitxeno
Copy link
Owner

bitxeno commented Sep 15, 2024

@sysytemofxxx

In the atvloadly docker container, what output does the following command produce when installing ipa?

 device_id=$(idevice_id | awk '{print $1}')
 idevicesyslog -u $device_id -n -p afcd -p lockdownd

@sysytemofxxx
Copy link

@sysytemofxxx

In the atvloadly docker container, what output does the following command produce when installing ipa?

 device_id=$(idevice_id | awk '{print $1}')
 idevicesyslog -u $device_id -n -p afcd -p lockdownd
image

@bitxeno
Copy link
Owner

bitxeno commented Sep 18, 2024

@sysytemofxxx

Execute the following command to enable developer mode can fix?

device_id=$(idevice_id | awk '{print $1}')
idevicedevmodectl list -u $device_id -n
idevicedevmodectl enable -u $device_id -n

@sysytemofxxx
Copy link

@sysytemofxxx

Execute the following command to enable developer mode can fix?

device_id=$(idevice_id | awk '{print $1}')
idevicedevmodectl list -u $device_id -n
idevicedevmodectl enable -u $device_id -n

Cannot be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants