Altstore: This action cannot be completed at this time (-22411)
First
- Thank you for your dockerised altserver, you exactly did what I planed to do before few days ago.
What I need only is
- A feature for refreshing apps through a WiFi
What I faced at
- Do refreshing apps then got an error(This action cannot be completed at this time (-22411))
Configurations and Logs
docker-compose.yml
- I just edited and enabled
environmentsection because, if I didn't define it then, the container takes 'aarch64' as its architecture like below.
tar: lib/aarch64: Not found in archive
tar: Exiting with failure status due to previous errors
- So, edited docker-compose.yml:
version: '3.8'
services:
altserver:
build:
context: .
dockerfile: Dockerfile
container_name: altserver
volumes:
- "./lib:/root/.config/Provision/lib"
- "./bin:/altserver/bin"
- "./logs:/altserver/logs"
- "/dev/bus/usb:/dev/bus/usb"
- "/var/lib/lockdown:/var/lib/lockdown"
- "/var/run:/var/run"
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
network_mode: host
# Optional environment variables to override the default architecture
# for the altserver, netmuxd, and anisette binaries.
environment:
- OVERRIDE_ALTSERVER_ARCH=arm64-v8a
- OVERRIDE_NETMUXD_ARCH=arm64-v8a
- OVERRIDE_ANISETTE_ARCH=arm64-v8a
- OVERRIDE_PROVISION_LIBS_ARCH=arm64-v8a
- ALLOW_PROVISION_TO_DOWNLOAD_LIBS=true
privileged: true
restart: unless-stopped
cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
Hardware : BCM2835
Revision : c03112
Serial : 10000000f2c4f220
Model : Raspberry Pi 4 Model B Rev 1.2
uname -m
aarch64
docker logs
Getting binaries...
AltStore is up to date.
AltServer is up to date.
netmuxd is up to date.
anisette-server is up to date.
Making scripts executable...
Starting avahi-daemon service...
Purging logs...
Skipping decompressing required libs for Provision...
Starting supervisord...
2024-08-28 16:34:50,264 INFO Set uid to user 0 succeeded
2024-08-28 16:34:50,292 INFO RPC interface 'supervisor' initialized
2024-08-28 16:34:50,292 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2024-08-28 16:34:50,294 INFO supervisord started with pid 1
2024-08-28 16:34:51,300 INFO spawned: 'usbmuxd' with pid 67
2024-08-28 16:34:51,307 INFO spawned: 'anisette-server' with pid 68
2024-08-28 16:34:51,313 INFO spawned: 'netmuxd' with pid 69
2024-08-28 16:34:51,320 INFO spawned: 'altserver' with pid 70
2024-08-28 16:34:52,621 INFO success: usbmuxd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-08-28 16:34:52,621 INFO success: anisette-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-08-28 16:34:52,622 INFO success: netmuxd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-08-28 16:34:52,622 INFO success: altserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tail -n 100 logs/altserver.err.log
*** WARNING *** The program 'python3.11' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
tail -n 100 logs/altserver.out.log
Finished handling request!
Other Socket:7. Port: 55155. Error: 0
Receiving request size...
Checking socket: 7
Received bytes: 4(of 4)
Receiving 48 bytes...
Checking socket: 7
Received bytes: 48(of 48)
Received response status code: 200
parse anisette data ret
Got anisetteData json: {"X-Apple-I-Client-Time":"2024-08-28T16:37:08Z","X-Apple-I-MD":"[REDACTED]","X-Apple-I-MD-LU":"[REDACTED]","X-Apple-I-MD-M":"[REDACTED]","X-Apple-I-MD-RINFO":"17106176","X-Apple-I-SRL-NO":"0","X-Apple-I-TimeZone":"UTC","X-Apple-Locale":"en_US","X-MMe-Client-Info":"<MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>","X-Mme-Device-Id":"[REDACTED]"}
X-Apple-I-MD-M: [REDACTED]
X-Apple-I-MD: [REDACTED]
X-Apple-I-MD-LU: [REDACTED]
X-Apple-I-MD-RINFO: 17106176
X-Mme-Device-Id: [REDACTED]
X-Apple-I-SRL-NO: 0
X-MMe-Client-Info: <MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>
X-Apple-I-Client-Time: 2024-08-28T16:37:08Z
X-Apple-Locale: en_US
X-Apple-I-TimeZone: UTC
Building anisetteData obj...
MachineID : [REDACTED]
One-Time Password: [REDACTED]
Local User ID: [REDACTED]
Device UDID: [REDACTED]
Device Description: <MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>
Date: 2024-08-28T16:37:08Z
Represented Value: 592
Sent Bytes Count: 4 (4)
Sent Data: 4 Bytes
Sent Bytes Count: 592 (592)
Sent Data: 592 Bytes
Finished handling request!
Other Socket:7. Port: 55157. Error: 0
Receiving request size...
If I recall correctly this is strictly related to the apple id you are using, or a mismatch between the idevice and the apple id you used for installing altserver. A few issues i found: https://github.com/altstoreio/AltStore/issues/175 https://github.com/altstoreio/AltStore/issues/279
I'd suggest to use both a single account and an old one
Can you add -dd in the supervisord configuration? So altserver will give a few more details
[program:altserver]
command=/altserver/bin/AltServer -dd
autostart=true
autorestart=true
stderr_logfile=/altserver/logs/altserver.err.log
stdout_logfile=/altserver/logs/altserver.out.log
priority=40
If I recall correctly this is strictly related to the apple id you are using, or a mismatch between the idevice and the apple id you used for installing altserver. A few issues i found: altstoreio/AltStore#175 altstoreio/AltStore#279
I'd suggest to use both a single account and an old one
Can you add -dd in the supervisord configuration? So altserver will give a few more details
[program:altserver] command=/altserver/bin/AltServer -dd autostart=true autorestart=true stderr_logfile=/altserver/logs/altserver.err.log stdout_logfile=/altserver/logs/altserver.out.log priority=40
Thank you again for your rapid reply.
I only have a single Apple account and of course it would be same.
And here are logs with -dd option.
altserver.err.log
*** WARNING *** The program 'python3.11' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
altserver.out.log
Not supplying ipa, running in server mode!
Running python3 command to advertise AltServer: from ctypes import *; dll = CDLL('libdns_sd.so'); sdRef = c_int(); flags = 0; interfaceIndex = 0; name = None; regtype = br'_altserver._tcp'; domain = None; host = None; port = 49106; txtLen = 17; txtRecord = b'\x10\x73\x65\x72\x76\x65\x72\x49\x44\x3D\x31\x32\x33\x34\x35\x36\x37'; ret = dll.DNSServiceRegister(byref(sdRef), flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, None, None); print('DNSServiceRegister result: %d' % ret); from threading import Event; Event().wait();
Other Socket:7. Port: 55319. Error: 0
Receiving request size...
Checking socket: 7
Received bytes: 4(of 4)
Receiving 48 bytes...
Checking socket: 7
Received bytes: 48(of 48)
Received response status code: 200
parse anisette data ret
Got anisetteData json: {
"X-Apple-I-Client-Time": "2024-08-28T17:20:49Z",
"X-Apple-I-MD": "<MASKED>",
"X-Apple-I-MD-LU": "<MASKED>",
"X-Apple-I-MD-M": "<MASKED>",
"X-Apple-I-MD-RINFO": "<MASKED>",
"X-Apple-I-SRL-NO": "<MASKED>",
"X-Apple-I-TimeZone": "UTC",
"X-Apple-Locale": "en_US",
"X-MMe-Client-Info": "<MASKED>",
"X-Mme-Device-Id": "<MASKED>"
}
X-Apple-I-MD-M: <MASKED>
X-Apple-I-MD: <MASKED>
X-Apple-I-MD-LU: <MASKED>
X-Apple-I-MD-RINFO: <MASKED>
X-Mme-Device-Id: <MASKED>
X-Apple-I-SRL-NO: <MASKED>
X-MMe-Client-Info: <MASKED>
X-Apple-I-Client-Time: 2024-08-28T17:20:49Z
X-Apple-Locale: en_US
X-Apple-I-TimeZone: UTC
Building anisetteData obj...
MachineID : <MASKED>
One-Time Password: <MASKED>
Local User ID: <MASKED>
Device UDID: <MASKED>
Device Description: <MASKED>
Date: 2024-08-28T17:20:49Z
Represented Value: <MASKED>
Sent Bytes Count: 4 (4)
Sent Data: 4 Bytes
Sent Bytes Count: 592 (592)
Sent Data: 592 Bytes
Finished handling request!
anisette.out.log
app INFO 2024-08-28T17:20:41.410 anisette-server-provision v2.2.0
app INFO 2024-08-28T17:20:41.570 Creating machine...
app INFO 2024-08-28T17:20:41.575 Machine creation done!
app INFO 2024-08-28T17:20:41.575 Machine requires provisioning...
app INFO 2024-08-28T17:20:43.269 Provisioning done!
app INFO 2024-08-28T17:20:43.269 Ready! Serving data.
app INFO 2024-08-28T17:20:49.221 [<<] GET
app INFO 2024-08-28T17:20:49.222 [>>] 200 OK {
"X-Apple-I-Client-Time": "2024-08-28T17:20:49Z",
"X-Apple-I-MD": "<MASKED>",
"X-Apple-I-MD-LU": "<MASKED>",
"X-Apple-I-MD-M": "<MASKED>",
"X-Apple-I-MD-RINFO": "<MASKED>",
"X-Apple-I-SRL-NO": "<MASKED>",
"X-Apple-I-TimeZone": "UTC",
"X-Apple-Locale": "en_US",
"X-MMe-Client-Info": "<MASKED>",
"X-Mme-Device-Id": "<MASKED>"
}
netmuxd.out.log
Starting netmuxd
Starting mDNS discovery for _apple-mobdev2._tcp.local with mdns
Listening on /var/run/usbmuxd
usbmuxd.err.log
[17:20:41.382][3] usbmuxd v1.1.1 starting up
[17:20:41.382][4] Creating socket
[17:20:41.382][4] Initializing USB
[17:20:41.382][3] Using libusb 1.0.26
[17:20:41.393][4] Registering for libusb hotplug events
[17:20:41.393][4] 0 devices detected
[17:20:41.393][3] Initialization complete
If I recall correctly this is strictly related to the apple id you are using, or a mismatch between the idevice and the apple id you used for installing altserver. A few issues i found: altstoreio/AltStore#175 altstoreio/AltStore#279 I'd suggest to use both a single account and an old one Can you add -dd in the supervisord configuration? So altserver will give a few more details
[program:altserver] command=/altserver/bin/AltServer -dd autostart=true autorestart=true stderr_logfile=/altserver/logs/altserver.err.log stdout_logfile=/altserver/logs/altserver.out.log priority=40Thank you again for your rapid reply.
I only have a single Apple account and of course it would be same.
And here are logs with -dd option.
altserver.err.log
*** WARNING *** The program 'python3.11' uses the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>altserver.out.log
Not supplying ipa, running in server mode! Running python3 command to advertise AltServer: from ctypes import *; dll = CDLL('libdns_sd.so'); sdRef = c_int(); flags = 0; interfaceIndex = 0; name = None; regtype = br'_altserver._tcp'; domain = None; host = None; port = 49106; txtLen = 17; txtRecord = b'\x10\x73\x65\x72\x76\x65\x72\x49\x44\x3D\x31\x32\x33\x34\x35\x36\x37'; ret = dll.DNSServiceRegister(byref(sdRef), flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, None, None); print('DNSServiceRegister result: %d' % ret); from threading import Event; Event().wait(); Other Socket:7. Port: 55319. Error: 0 Receiving request size... Checking socket: 7 Received bytes: 4(of 4) Receiving 48 bytes... Checking socket: 7 Received bytes: 48(of 48) Received response status code: 200 parse anisette data ret Got anisetteData json: { "X-Apple-I-Client-Time": "2024-08-28T17:20:49Z", "X-Apple-I-MD": "<MASKED>", "X-Apple-I-MD-LU": "<MASKED>", "X-Apple-I-MD-M": "<MASKED>", "X-Apple-I-MD-RINFO": "<MASKED>", "X-Apple-I-SRL-NO": "<MASKED>", "X-Apple-I-TimeZone": "UTC", "X-Apple-Locale": "en_US", "X-MMe-Client-Info": "<MASKED>", "X-Mme-Device-Id": "<MASKED>" } X-Apple-I-MD-M: <MASKED> X-Apple-I-MD: <MASKED> X-Apple-I-MD-LU: <MASKED> X-Apple-I-MD-RINFO: <MASKED> X-Mme-Device-Id: <MASKED> X-Apple-I-SRL-NO: <MASKED> X-MMe-Client-Info: <MASKED> X-Apple-I-Client-Time: 2024-08-28T17:20:49Z X-Apple-Locale: en_US X-Apple-I-TimeZone: UTC Building anisetteData obj... MachineID : <MASKED> One-Time Password: <MASKED> Local User ID: <MASKED> Device UDID: <MASKED> Device Description: <MASKED> Date: 2024-08-28T17:20:49Z Represented Value: <MASKED> Sent Bytes Count: 4 (4) Sent Data: 4 Bytes Sent Bytes Count: 592 (592) Sent Data: 592 Bytes Finished handling request!anisette.out.log
app INFO 2024-08-28T17:20:41.410 anisette-server-provision v2.2.0 app INFO 2024-08-28T17:20:41.570 Creating machine... app INFO 2024-08-28T17:20:41.575 Machine creation done! app INFO 2024-08-28T17:20:41.575 Machine requires provisioning... app INFO 2024-08-28T17:20:43.269 Provisioning done! app INFO 2024-08-28T17:20:43.269 Ready! Serving data. app INFO 2024-08-28T17:20:49.221 [<<] GET app INFO 2024-08-28T17:20:49.222 [>>] 200 OK { "X-Apple-I-Client-Time": "2024-08-28T17:20:49Z", "X-Apple-I-MD": "<MASKED>", "X-Apple-I-MD-LU": "<MASKED>", "X-Apple-I-MD-M": "<MASKED>", "X-Apple-I-MD-RINFO": "<MASKED>", "X-Apple-I-SRL-NO": "<MASKED>", "X-Apple-I-TimeZone": "UTC", "X-Apple-Locale": "en_US", "X-MMe-Client-Info": "<MASKED>", "X-Mme-Device-Id": "<MASKED>" }netmuxd.out.log
Starting netmuxd Starting mDNS discovery for _apple-mobdev2._tcp.local with mdns Listening on /var/run/usbmuxdusbmuxd.err.log
[17:20:41.382][3] usbmuxd v1.1.1 starting up [17:20:41.382][4] Creating socket [17:20:41.382][4] Initializing USB [17:20:41.382][3] Using libusb 1.0.26 [17:20:41.393][4] Registering for libusb hotplug events [17:20:41.393][4] 0 devices detected [17:20:41.393][3] Initialization complete
Unfortunately it seems that altserver,usbmuxd and netmuxd are working properly. I'd suggest to try the steps in the two issues i linked and see if anything changes