NyaMisty / AltServer-Linux

AltServer for AltStore, but on-device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error code -22411

paulmorabito opened this issue · comments

Hi,

I was previously successfully using AltStore on my Mac Mini but ended up with Sonoma and couldn't use the mail plugin. I've successfully installed the Linux version on my RPI and when running the command to install the Altstore IPA I get the followiung (truncated to remove password etc.)

sudo ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969 ./AltServer-aarch64 -u 00008110-0123A456B789D012 -a xxxx -p xxxx 1_6_3.ipa
Received auth response status code: 200
Alert: Could not install 1_6_3.ipa to unknown.
    This action cannot be completed at this time (-22411)
Press any key to continue...

Error: com.rileytestut.AltServer.Localized (-22411).
Finished!

When trying to install my phone shows a pop-up for me to confirm its me and I click ok but the install attempts always end in failure. My phone is also running the latest iOS 17 public beta.

Is there anything I can do to get this working?

I am getting the same issue on arch.

I disabled my custom anisette server and it works somehow.

I disabled my custom anisette server and it works somehow.

What was your custom anisette server changes and did you revert to the default docker image? I never used anything but the default as per the instructions. Let me know if you did anything different.

I restated my terminal, and my ALTSERVER_ANISETTE_SERVER environment variable got set to an empty string. I then tried to sideload using the ./AltServer -u {UUID} -a {Apple ID} -p {PASSWORD} abc.ipa, and it worked. I'm not sure why though. It seems that custom anisette servers don't work, whereas the default one does?

sudo ALTSERVER_ANISETTE_SERVER='' ./AltServer-aarch64 -u xxxx -a xxx@icloud.com -p xxx 1_6_3.ipa
Installing app...
Alert: Could not install 1_6_3.ipa to unknown.
    URI must contain a hostname.
Press any key to continue...

Exception: URI must contain a hostname.
 0# 0x00000000005D628C
 1# 0x000000000099C798

Finished!

It looks like ALTSERVER_ANISETTE_SERVER needs to be set to something. I tried changing 127.0.0.1 to the hostname and IP and got the same response regardless. What anisette docker image are you running?

Hm, that's weird. I'm not sure then. I completely uninstalled the anisette server package from docker (and even uninstalled docker, as I don't use it). I was using alt-anisette-server, though. I just ran both commands listed in the README (and ran export ALTSERVER_ANISETTE_SERVER='http://localhost:6969. After I saw it didn't work, I uninstalled docker, restarted my terminal, and retried the AltServer command.

When I run echo $ALTSERVER_ANISETTE_SERVER I just see an empty newline in my terminal. I'm not sure what's causing the difference between our outputs.

Actually, I think you must un-set the environment variable ALTSERVER_ANISETTE_SERVER. You can do unset ALTSERVER_ANISETTE_SERVER to do this.

Ah OK I think we are using different docker images of anisette server. I was running this on a raspberry image and the image you are using is x86 only. I broadly followed the howto here - https://gist.github.com/jschiefner/95a22d7f4803e7ad32a95b0f3aa655dc

Is there a similar instruction set you followed? Could you share? If so, I'll try on an x86 VM or something.

I've noticed from other searches this error code is related to not being signed into the device with the same account as you are trying to sideload with. In this case, I 100% am doing so and this was also working with Altstore on OSX previously.

@paulmorabito If you haven't solved the issue yet, I may have a solution now.

Are you using the same Apple ID to sideload and use your phone? If not, it may be the case that your phone needs to complete a 2FA of the sideloading Apple ID.

Go to Settings > Apple ID > Sign Out. Sign out of your main Apple ID temporarily. Then login to your iPhone with your burner (sideloading) Apple ID. Attempt to sideload a random app. AltServer-Linux will then ask you to input a verification code, and the code should appear on your iPhone. Once the app sideloads, you can log back into your main Apple ID.

I only have one apple ID and I use it for sideloading. Should I create another only for sideloading? Why is this required when AltServer on OSX works fine?