bitxeno / atvloadly

Easily sideload the IPA to AppleTV
GNU Affero General Public License v3.0
265 stars 5 forks source link

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

Open han9over opened 1 month ago

han9over commented 1 month ago

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 commented 1 month ago

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

han9over commented 1 month ago

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

17.5.1. No success even after trying later

bitxeno commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

What is the size of the ipa file?

han9over commented 1 month ago

What is the size of the ipa file?

31 MB

bitxeno commented 1 month ago

This ipa can share?

han9over commented 1 month ago

This ipa can share?

https://github.com/StreamerApp/Streamer

netcookies commented 1 month ago

same issue here

bitxeno commented 1 month ago

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

han9over commented 1 month ago

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

bitxeno commented 1 month ago

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

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

han9over commented 1 month ago

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 commented 1 month ago

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

docker pull bitxeno/atvloadly:latest
docker pull ghcr.io/bitxeno/atvloadly:latest
han9over commented 1 month ago

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 commented 1 month ago

@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 commented 1 month ago

@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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 5 days ago

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 commented 5 days ago

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

jdmtv001 commented 5 days ago

@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 commented 5 days ago

@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 commented 4 days ago

@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 commented 4 days ago

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