NyaMisty / AltServer-Linux

AltServer for AltStore, but on-device
GNU Affero General Public License v3.0
1k stars 74 forks source link

Failed to handle request: AltServer could not find the device. #49

Open zimsneexh opened 2 years ago

zimsneexh commented 2 years ago

Hello, I am running netmuxd and AltServer-linux-x86_64, but if I try to refresh an app in Altstore I get "Failed to handle request: AltServer could not find the device" and on the device itself I get: "Could not find AltServer".

Happy to provide log files, if needed. Could it be that a pairing step is necessary? If so, how would I go about that?

powenn commented 2 years ago

Pairing is not necessary at all

jkcoxson commented 2 years ago

What muxer are you using?

zimsneexh commented 2 years ago

I'm using https://github.com/jkcoxson/netmuxd

jkcoxson commented 2 years ago

You will need to temporarily use another muxer to pair your device. Netmuxd does not include usb drivers.

zimsneexh commented 2 years ago

So I do need to pair it, alright. Pairing with idevicepair and usbmuxd should work?

jkcoxson commented 2 years ago

Plugging it in while usbmuxd is running should do the trick

jkcoxson commented 2 years ago

You can always run netmuxd in extension mode to usbmuxd so that both can live. If you want both pass —disable-unix and pass —host 127.0.0.1. Then before running AltServer set USBMUXD_SOCKET_ADRESS=127.0.0.1:27015

NyaMisty commented 2 years ago

Pairing is not necessary at all

needed. you don't need to pairing simply because netmuxd uses original usbmuxd's pair data

NyaMisty commented 2 years ago

You can always run netmuxd in extension mode to usbmuxd so that both can live. If you want both pass —disable-unix and pass —host 127.0.0.1. Then before running AltServer set USBMUXD_SOCKET_ADRESS=127.0.0.1:27015

We can update netmuxd's documentation instead of giving small instructions here ;)

kerim-dev commented 2 years ago

i dont understand how this command help me ? "sudo idevice_id -l -n" . for me is using a cable not an option.

i dont understand why i get the message that my phone doesnt find the server, but installed the sideloaded app. The sideloaded app doesend start correctly, it boots for 2sek and shut down.

sorry for my bad language

jkcoxson commented 2 years ago

Cable is a requirement, not an option

kerim-dev commented 2 years ago

but for every refresh?

jkcoxson commented 2 years ago

No, just the first one while you generate your pairing file

kerim-dev commented 2 years ago

ok, i try to install again a sideloaded app with altstore with cable

SoftwareRat commented 2 years ago

Any fix? Since the problem still exists for me

raulvasquez commented 2 years ago

I was struggling to figure out the same issue. I realized that I never hooked my iPad up to a windows device and enabled the wifi sync. I booted into windows, installed itunes and hooked up my ipad finally enabling wifi sync. Once turning on that option I booted back to linux and was able to connect my ipad with netmuxd and the linux altserver.

DrissiReda commented 2 years ago

I have the same problem. Despite being able to see my device with idevice_id -l -n. Is there any way to force pairing via usb ?

netmuxd shows that it has successfully added the device:

Added device <some-id>
Added device <some hash>

I clicked on refresh inside AltStore app on my iPhone. Then it asked for the 2FA code, that's fine, then the process starts and I get the error Failed to handle request: AltServer could not find the device.

NyaMisty commented 2 years ago

For all those meeting this issue, make sure you can run ideviceinstaller -l and list your device's installed app. If you can't, then it's not AltServer's fault :(

DrissiReda commented 2 years ago

Sadly I can list the device. And it still doesn’t work.

NyaMisty commented 2 years ago

Sadly I can list the device. And it still doesn’t work.

@DrissiReda Besure you use ideviceinstaller -l instead of idevice_id -l

DrissiReda commented 2 years ago

Sadly I can list the device. And it still doesn’t work.

@DrissiReda Besure you use ideviceinstaller -l instead of idevice_id -l

Yes I can see installed apps. It's a 3 column csv output.

Here is a snippet:

com.waze.iphone, "0", "Waze"
com.voiturelib.voiturelib, "8300200", "Getaround"
com.5DY8CMDJ8W.com.rileytestut.AltStore, "1", "AltStore"
com.weward, "81", "Weward"
com.MuslimPlus.MuslimPlus, "59", "Pillars"
com.ookla.speedtest, "4", "Speedtest"
com.microsoft.azureauthenticator, "3", "Authenticator"
NyaMisty commented 2 years ago

@DrissiReda Strange, are you still not able to use AltServer? Can you retry?

DrissiReda commented 2 years ago

I retried multiple times. It looks like it starts installing, then it fails with the error I outlined below

I have the same problem. Despite being able to see my device with idevice_id -l -n. Is there any way to force pairing via usb ?

netmuxd shows that it has successfully added the device:

Added device <some-id>
Added device <some hash>

I clicked on refresh inside AltStore app on my iPhone. Then it asked for the 2FA code, that's fine, then the process starts and I get the error Failed to handle request: AltServer could not find the device.

NyaMisty commented 2 years ago

Well, can you use AltServer without netmuxd?

DrissiReda commented 2 years ago

I haven't tried

DrissiReda commented 2 years ago

@NyaMisty I'm getting error "unable to sign to your apple ID -36607". I tried to relog to my apple ID from my AltStore app, and now I can't I keep getting that same error.

darderik commented 11 months ago

I was struggling to figure out the same issue. I realized that I never hooked my iPad up to a windows device and enabled the wifi sync. I booted into windows, installed itunes and hooked up my ipad finally enabling wifi sync. Once turning on that option I booted back to linux and was able to connect my ipad with netmuxd and the linux altserver.

just wanted to point out how this still applies. thank you.