Giter Club home page Giter Club logo

provision's Introduction

Provision

English ⋅ Français

Warning
Don't use your main Apple account! Prefer a secondary Apple account.
I am NOT responsible if something happens with your Apple account.

What is this ?

Provision is a set of tools interracting with Apple servers on Linux.

It includes:

  • libprovision, a library used to register device on Apple servers.
  • anisette_server, an Anisette provisioning server for other software such as AltServer-Linux.
  • retrieve_headers, which registers the device with libprovision and returns in the terminal in JSON the headers to use to identify the device on future requests.

More precisely, libprovision registers the device to Apple servers and retrieve ADI data for your device. Once you logged in once with your machine, your machine is remembered as safe by Apple using this data Be careful to log-in only on trusted machines, and don't leak your ADI data, which is stored in ~/.adi/adi.pb.

There used to be a software called sideload-ipa listed here. The code has now been removed, as it was not working, and that I am now helping the development of SideServer (no official link yet), which reimplements the full AltServer with few more features.

Downloads

You can download the executables in the Actions tab of the project.

Docker container

If you wish to run Anisette within docker to host a server public or privately. Make sure to install docker/podman and run the following command:

docker run -d -v ${PWD}/provision_config:/home/Chester/.config/Provision/ --restart=always -p 6969:6969 --name anisette dadoum/anisette-server:latest

The above command will pull the image and also run it in the background. The volume (provision_config:/home/Chester/.config/Provision/) will cache Provision's configuration folder.

It contains Apple Music libraries (from Apple, which are not redistributed for legal reasons), ADI file (identifying the device as a Mac computer for Apple) and Provision's device file (storing the corresponding device information for Provision).

Dependencies

At runtime, libprovision requires some Apple libraries to be next to the executables. You should download Apple Music APK (or just the architecture slice for your device if you prefer), and extract the lib/ folder next to the executables. If you want to reduce further the size, you can remove in the lib/ folder all the libraries except libstoreservicescore.so and libCoreADI.so, since they are the only one needed to run the app.

To build any of these projects, you need the D SDK, with the compiler and dub. As an option, you can also use libplist.

Compilation

Clone the project and compile it with DUB:

git clone https://github.com/Dadoum/Provision --recursive
cd Provision
dub build -b release

or with CMake:

git clone https://github.com/Dadoum/Provision --recursive
cd Provision
mkdir build
cd build
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release 
ninja

libprovision usage

The Provision API tries to be stay close to the AuthKit API, but written in D.

import std.digest: toHexString;
import file = std.file;
import std.path: expandTilde, buildPath;
import std.random: rndGen;
import std.range: take, array;
import std.stdio: stderr, write, writeln;
import std.uni: toUpper;
import std.uuid: randomUUID;

import provision.adi;

void main() {
    string configuration_folder = expandTilde("~/.config/Provision/");
    if (!file.exists(configuration_folder)) {
        file.mkdir(configuration_folder);
    }

    ADI adi = new ADI("lib/" ~ architectureIdentifier);
    adi.provisioningPath = configuration_folder;
    Device device = new Device(configuration_folder.buildPath("device.json"));

    if (!device.initialized) {
        stderr.write("Creating machine... ");
        device.serverFriendlyDescription = "<MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>";
        device.uniqueDeviceIdentifier = randomUUID().toString().toUpper();
        device.adiIdentifier = (cast(ubyte[]) rndGen.take(2).array()).toHexString().toLower();
        device.localUserUUID = (cast(ubyte[]) rndGen.take(8).array()).toHexString().toUpper();

        stderr.writeln("done !");
    }

    adi.identifier = device.adiIdentifier;
    if (!adi.isMachineProvisioned(-2)) {
        stderr.write("Machine requires provisioning... ");

        ProvisioningSession provisioningSession = new ProvisioningSession(adi, device);
        provisioningSession.provision(-2);
        stderr.writeln("done !");
    }
  
    // Do stuff with adi.
}

Support

Donations are welcome with GitHub Sponsors.

provision's People

Contributors

adriancampos avatar crystall1nedev avatar dadoum avatar jawshoeadan avatar konsumer avatar litori avatar macleykun avatar nythepegasus avatar practicalbutterfly5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

provision's Issues

HTTP Error in Docker

Running the latest image in docker gives this error:

Machine requires provisioning... std.net.curl.HTTPStatusException@/usr/lib/ldc/x86_64-linux-gnu/include/d/std/net/curl.d(1097): HTTP request returned status code 401 ()

The container infinitely restarts

Fail to solve process bin/sh -c cmake

Can you help me to fix this issue:
"error: failed to solve: process "/bin/sh -c cmake .. -DCMAKE_BUILD_TYPE=Release -Dbuild_sideloadipa=OFF -Dlink_libplist_dynamic=ON && make anisette_server" did not complete successfully: exit code: 1"

I've already clone your project and connect to render but the anisette server cannot created.
Thank you!

@onServerInit vs @onWorkerStart

I think you want to run this initialization inside a function marked with UDA @onWorkerStart .

adi = new ADI(expandTilde("~/.adi"));

Functions marked with @OnServerInit are executed just one time by the daemon not by the process that reply to your http request.

// This function will be called for each worker
@onWorkerStart void yourInitFunction()
{
    adi = new ADI(expandTilde("~/.adi"));

    if (!adi.isMachineProvisioned()) {
        stderr.write("Machine requires provisioning... ");
        adi.provisionDevice(rinfo);
        stderr.writeln("done !");
    } else {
        // adi.getRoutingInformation(rinfo);
        rinfo = 0;
    }
}

builder gets stuck at 7/7

Hi,

I tried deploying it on various platforms but it always gets stuck at this step: RUN dub build -c "static" --build-mode allAtOnce -b release --compiler=ldc2 :anisette-server.
Is there a fix for this?

I tried fly.io, koeyb, and render

Anisette server data changing on reboot

So I am using the docker version of this to just use the anisette server for altserver for linux since the anisette data im using didnt work since i removed the device from my apple id and the anisette server that is provided in the documentation dont work with arm. So I was wondering is there a way I can make the data stay the same after rebooting because when it changes altstore wants me to login since apple thinks im logging into another device.

SideStore warning: "outdated server"

Hi again!

SideStore keeps complaining about the custom Anisette server I deployed on my own using this repo is outdated, and that this may cause issues down the road.
Is there a newer built I should be using, or should I just ignore the warning?

I noticed that in SideStore v0.4.0 changelog, it states that it's using Anisette V3, but the latest version in this repo is below that... Not sure if this is related or not.

Thank you.

Loaded function names

I've been looking into this, and I'm a tad confused.
When you're loading functions, you have lines like this:

this.pADIProvisioningErase = cast(ADIProvisioningErase_t) libstoreservicescore.load("p435tmhbla");

Is p435tmhbla the function name, just obfuscated? Or is it some other kind of identifier for loading the function? When not using libhybris (like say you wanted to use it in C++ on android), would you literally just call p435tmhbla()?

Additionally, how does the loading of libCoreADI.so work? I see that you store it in a variable, but I can't find how it gets used? Does loading it just magically make it available to libstoreservicescore as a dep.?

Segmentation fault (core dumped) /opt/anisette_server

Spidy informed me that anisette that i was hosting was down, looking into it i had logging still on but only got this:

[>>] 200 OK {"X-Apple-I-Client-Time":"2022-12-18T00:38:33Z","X-Apple-I-
(truncated as i'm not sure if this is personal info)
[<<] GET /
/opt/docker-entrypoint.sh: line 17:     9 Segmentation fault      (core dumped) /opt/anisette_server
[>>] 200 OK {"X-Apple-I-Client-Time":"2022-12-18T00:40:41Z","X-Apple-I-
(truncated as i'm not sure if this is personal info)
requir                         es provisioning... done !

This is sadly all the details i have, The container was created 6 days ago and was up for 10 hours (i had to restart both to get all the package up to date on the hosts, the other DE is still running fine weirdly enough.

Is there smth i can edit in the docker-entrypoint script to catch a more meaningful error next time i have this?

Advanced Data Protection not supported?

I saw in the commit history there was PR #41 which supposedly added support for ADP, but it was seemingly reverted one commit later since it broke things. Is ADP supported and I'm just missing something, or is it still in the works? As it stands, when I try to sign in referencing this as the anisette server, it asks for a 2fa code that never comes

Docker issue on Rpi3

I'm using docker with a rpi3 running the latest dietpi.
The Container for Provision is just keep restarting with the following issue in the log:

/opt/anisette_server: error while loading shared libraries: libgphobos.so.3: cannot open shared object file: No such file or directory

I've used the all-in-one command in the README
Any idea what did i do wrong or what should i do to make it work ?

Contact

Salut, super boulot ! J'aurais quelques question à propos de tout ça ... Où pourrais-je te contacter ? merci

Add detailed build dependencies

Add detailed build dependencies:
D language compiler and version
Gcc, g++ versions
libplist version (seems like 2.0 in the CMakeList.txt)

Unable to create Custom Anisette Server with this project

Hi Team Iam unable to create Custom Anisette Server with this project using render. Iam getting follwing error "There’s an error above. Please fix it to continue."

FYI, I tried with some other github projects they are able move to build page. but this project is alone stopped at create webservice page

Weird Error with libCoreADI

Hello, whenever I build and run the anisette server from the code I get this error

std.file.FileException@/home/jark/Provision/lib/provision/adi.d(120): lib/x86_64/libCoreADI.so: Apple libraries are not installed correctly. Refer to README for instructions. 
----------------
??:? shared ref shared(provision.adi.ADI) provision.adi.ADI.__ctor(immutable(char)[], char[]) [0x55a03bb61157]
??:? _Dmain [0x55a03bb44769]

I am willing to provide any debug info needed to fix this

License

Sorry if I just missed something, but it’s not entirely clear what license this is under. I see it has a Boost dependency, but not what this whole repo is under.
Would be great if you could clarify.

anisette_server does not work on Raspberry Pi 4

When I'm trying to run anisette server on my RPI 4, it won't start:

pi@raspberrypi:~/altserver $ ./anisette_server-aarch64 
./anisette_server-aarch64: /lib/aarch64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by ./anisette_server-aarch64)
./anisette_server-aarch64: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./anisette_server-aarch64)
./anisette_server-aarch64: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./anisette_server-aarch64)
./anisette_server-aarch64: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./anisette_server-aarch64)

I've upgraded all packages using sudo apt upgrade. I can't find newer libstdc++.so.6 and libc.so.6 libs for RPI 4.
I've also tried to compile the anisette server using cmake, but there is some problem with D compiler, I couldn't find any which would work with the project.

Any ideas?

The latest build is broken for ARM64 image

anisette-server | Archive: applemusic.apk
anisette-server | inflating: lib/arm64-v8a/libCoreADI.so
anisette-server | inflating: lib/arm64-v8a/libstoreservicescore.so
anisette-server | /opt/anisette_server: error while loading shared libraries: libphobos2-ldc-shared.so.100: cannot open shared object file: No such file or directory
anisette-server | /opt/anisette_server: error while loading shared libraries: libphobos2-ldc-shared.so.100: cannot open shared object file: No such file or directory
anisette-server | /opt/anisette_server: error while loading shared libraries: libphobos2-ldc-shared.so.100: cannot open shared object file: No such file or directory
anisette-server | /opt/anisette_server: error while loading shared libraries: libphobos2-ldc-shared.so.100: cannot open shared object file: No such file or directory
anisette-server | /opt/anisette_server: error while loading shared libraries: libphobos2-ldc-shared.so.100: cannot open shared object file: No such file or directory
anisette-server | /opt/anisette_server: error while loading shared libraries: libphobos2-ldc-shared.so.100: cannot open shared object file: No such file or directory
anisette-server | /opt/anisette_server: error while loading shared libraries: libphobos2-ldc-shared.so.100: cannot open shared object file: No such file or directory

anisette-server seg fault on armv7

The anisette-server is seg faulting on armv7.

I have used both the latest docker image dadoum/anisette-server and the tagged version 2.1.0 on Github releases.

/bin/bash: line 1: 9 Segmentation fault (core dumped) ./anisette-server

It segfaults on its own, without even making a HTTP call.

AltStore "not an object" error on refresh

Hey.

I've managed to get provision working on my RPI4 running ubuntu 22.04.1.
I've downloaded the arch64 version from here

But unfortunately, when I try to refresh on my iPhone, I receive an "not an object" error.
The request seems to be received by provision.
Not sure how senstive this data is, so I'll remove the cryptic part from the output in my terminal session:
[<<] GET / [>>] 200 OK {"X-Apple-I-Client-Time":"2022-11-20T14:55:07Z","X-Apple-I-MD":"****","X-Apple-I-MD-LU":"****","X-Apple-I-MD-M":"****","X-Apple-I-MD-RINFO":"****","X-Apple-I-SRL-NO":"0","X-Apple-I-TimeZone":"CEST","X-Apple-Locale":"en_US","X-MMe-Client-Info":"<iMac11,3> <Mac OS X;10.15.6;19G2021> <com.apple.AuthKit\/1 (com.apple.dt.Xcode\/3594.4.19)>","X-Mme-Device-Id":"****"}

I've an anisette server on my QNAP NAS (Container Station) and when I use this anisette server it's working. The output looks very similar:
{"X-Apple-I-Client-Time":"2022-11-20T13:44:57Z","X-Apple-I-MD":"****","X-Apple-I-MD-LU":"","X-Apple-I-MD-M":"****","X-Apple-I-MD-RINFO":"****","X-Apple-I-SRL-NO":"****","X-Apple-I-TimeZone":"PST","X-Apple-Locale":"en_US","X-MMe-Client-Info":"<MacBookPro15,1> <Mac OS X;10.15.2;19C57> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>","X-Mme-Device-Id":"****"}

Do you have any idea how to overcome this error?

Thank you already!

BR
André

Support of multiple ADIs?

Hi!

Your software is using ~/.adi by default. However, upon reaching certain amount of logins with the same adi, apple account gets locked for security reasons. It will be great if I can specify various adi.pb upon launching anisette server as an argument

Building Issues

I'm trying to build the project (well I only need anisette)... inside a docker image, so here is my Dockerfile:

FROM debian:stable-slim
WORKDIR /app

RUN apt-get update && apt-get install -y ninja-build git build-essential wget libssl-dev dub libplist-dev curl ldc

RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.0-rc4/cmake-3.24.0-rc4.tar.gz

RUN tar -zxvf cmake-3.24.0-rc4.tar.gz && \
    cd cmake-3.24.0-rc4 && ./bootstrap && make && make install

RUN git clone https://github.com/Dadoum/Provision --recursive
RUN cd Provision && mkdir build && cd build && pwd && ls -al .. && cmake -G Ninja .. /app/Provision -DCMAKE_BUILD_TYPE=Release && ninja

But im getting an odd error with ldc... do I need an specific version of ldc?

See also "/app/Provision/build/CMakeFiles/CMakeOutput.log".
CMake Error at cmake/cmake-d/cmake-d/CMakeTestDCompiler.cmake:49 (message):
  The D compiler "/usr/bin/ldc2" is not able to compile a simple test
  program.

  It fails with the following output:

   Change Dir: /app/Provision/build/CMakeFiles/CMakeTmp

  

  Run Build Command(s):/usr/bin/ninja cmTC_6f269 && [1/2] Building D object
  CMakeFiles/cmTC_6f269.dir/testDCompiler.o

  FAILED: CMakeFiles/cmTC_6f269.dir/testDCompiler.o

  /usr/bin/ldc2 -makedeps=CMakeFiles/cmTC_6f269.dir/testDCompiler.o.d
  -ofCMakeFiles/cmTC_6f269.dir/testDCompiler.o -c
  /app/Provision/build/CMakeFiles/3.24.0-rc4/CMakeTmp/testDCompiler.d

  ldc2: Unknown command line argument
  '-makedeps=CMakeFiles/cmTC_6f269.dir/testDCompiler.o.d'.  Try:
  '/usr/bin/ldc2 --help'

  ldc2: Did you mean '--deps=CMakeFiles/cmTC_6f269.dir/testDCompiler.o.d'?

  ninja: build stopped: subcommand failed.

Any help? 😄
Thank you!

Error -45075

I'm a bit of a noob when it comes towards how anisette generation works, but I figured I would make a couple modifications to make it be able to run on my computer and easy to compile/light-weight - I'm not sure if this is the reason why I'm getting this error

Do you have a discord we can chat on or do you know why this error might have happened
image

Docker run failed

??:? [0x55716d7d3e56]
??:? [0x55716d7d62e6]
??:? [0x55716d7b5d1f]
??:? [0x55716d7425f3]
??:? [0x55716d74254d]
??:? [0x55716d795416]
??:? [0x55716d795238]
??:? [0x55716d6fd3ad]
??:? [0x55716d6e75e3]
??:? [0x55716d7b5a0b]
??:? [0x55716d7b5905]
??:? [0x55716d7b575d]
??:? [0x7f8d1b9d7189]
??:? __libc_start_main [0x7f8d1b9d7244]
??:? [0x55716d6e6ad0]
                     app INFO  2023-05-05T09:49:16.099 anisette-server-provision v2.1.0
                     app INFO  2023-05-05T09:49:16.110 Downloading libraries from Apple servers...
std.net.curl.CurlException@std/net/curl.d(4402): Couldn't resolve host name on handle 55F70D559D50

I don't know why docker can't resolve host name, I can download https://apps.mzstatic.com/content/android-apple-music-apk/applemusic.apk on host.

anisette-server error

Hello,

I got the below error when I tried to run anisette-server

cannot find verneed/verdef for version index=2 referenced by symbol "fstat" at "/opt/build/anisette-server/lib/x86_64/libCoreADI.so"
ERR: cannot load library lib/x86_64/libCoreADI.so
cannot find verneed/verdef for version index=2 referenced by symbol "pthread_create" at "/opt/build/anisette-server/lib/x86_64/libstoreservicescore.so"
ERR: cannot load library lib/x86_64/libstoreservicescore.so
ERR: cannot load symbol kq56gsgHG6:
ERR: cannot load symbol Sph98paBcz:
ERR: cannot load symbol nf92ngaK92:
ERR: cannot load symbol p435tmhbla:
ERR: cannot load symbol tn46gtiuhw:
ERR: cannot load symbol fy34trz2st:
ERR: cannot load symbol uv5t6nhkui:
ERR: cannot load symbol rsegvyrt87:
ERR: cannot load symbol aslgmuibau:
ERR: cannot load symbol jk24uiwqrg:
ERR: cannot load symbol qi864985u0:
ERR: cannot load symbol ksbafgljkb:
ERR: cannot load symbol madsvsfvjk:
WARN: Generation of unique identifier failed, using a generic one instead.
Segmentation fault

FAILED: retrieve_headers

Hi, I'm using Raspbian Buster 64 bit on a Raspberry Pi 4.
I am getting this error when I run the last step ninja :

[3/1328] Linking D executable retrieve_headers
FAILED: retrieve_headers
: && /home/pi/dlang/ldc-1.30.0/bin/ldc2 -O -release CMakeFiles/retrieve_headers.dir/retrieve_headers/app.o -ofretrieve_headers libprovision.a /usr/local/lib/libplist-2.0.so _deps/libhybris-build/libhybris.a -L-lstdc++ -L-lpthread -L-lrt && :
/usr/bin/ld: libprovision.a(package.o): in function _D9provision5plist5Plist5toXmlMFZAya': package.d:(.text._D9provision5plist5Plist5toXmlMFZAya+0x58): undefined reference to plist_to_xml_free'
collect2: error: ld returned 1 exit status
Error: /usr/bin/cc failed with status: 1
[8/1328] Building D object _deps/gtk-d...ated/sourceview/gsv/SourceFileLoader.o
ninja: build stopped: subcommand failed.

Could you please tell me how I can fix this issue?
Thank you in advance!

Raspbian 64-bit Anisette Server Execution Error

root@raspberrypi:/altserver# ./anisette-server-aarch64
./anisette-server-aarch64: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by ./anisette-server-aarch64) ./anisette-server-aarch64: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by ./anisette-server-aarch64)
./anisette-server-aarch64: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./anisette-server-aarch64)

I tried to run the Anisette server on Raspberry Pi, but the above error occurred. Since I don't know much about cmake , I ask a question.

I don't know if there is a relationship, so I'm uploading the raspberry pi environment.

raspberry pi os 64bit

ldd (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u5) 2.31

Segmentation Fault Raspberry PI Model 2 B

Hi! I downloaded the armv7 version of anisette server and when I run it on my Raspberry PI 2 Model B I get the following error

ubuntu@ubuntu:~/altserver/anisette$ ./anisette-server-armv7 -n 127.0.0.1 -p 6969 app INFO 2023-07-09T10:02:02.314 anisette-server-provision v2.1.0 Segmentation fault (core dumped)

Segmentation fault

Loading ADI... done !
Loading Routing info... done !
Starting server... 
        # Archttp service has been started!
        - IO threads: 12
        - Listening: 0.0.0.0:6969

[127.0.0.1 >>] GET /
Segmentation fault

Get segmentation fault on / and /reprovision

added some prints to debug it:

    stderr.write("Loading ADI... ");
    auto app = new Archttp;
    ADI* adi = new ADI(expandTilde("~/.adi"));
    stderr.writeln("done !");

    ulong rinfo;
    if (!adi.isMachineProvisioned()) {
        stderr.write("Machine requires provisioning... ");
        adi.provisionDevice(rinfo);
        stderr.writeln("done !");
    } else {
        stderr.write("Loading Routing info... ");
        adi.getRoutingInformation(rinfo);
        stderr.writeln("done !");
    }

It raises Segmentation Fault at some point in the lib/provision/adi.d file.

uname .a:
Linux Ninehy 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Tried with libs from apk 3.10.1 and 3.10
Tried the precompiled version and the one i compiled and i get segmentation fault on both.

[anisette_server] not an object error on AltServer-Linux

I'm using the latest docker image. Altstore issue the error "not a object".
I compared that to a worked anisette_server and found the difference, but I'm not sure if that is the root cause.

Resutls from curl:
Worked one:
image
dadoum/anisette-server:
image

HTTP request returned status code 401

Tried on render.com instance and my own machine, same result.

/opt/anisette# ./anisette_server
Machine requires provisioning... std.net.curl.HTTPStatusException@/opt/hostedtoolcache/dc/ldc2-1.30.0/x64/ldc2-1.30.0-linux-x86_64/bin/../import/std/net/curl.d(1097): HTTP request returned status code 401 ()
----------------
??:? [0x562927215416]
??:? [0x562927216f26]
??:? [0x5629271f7eff]
??:? [0x56292715b7b7]
??:? [0x56292715a0ed]
??:? [0x56292715a818]
??:? [0x562927139d5a]
??:? [0x5629271f7beb]
??:? [0x5629271f7ae5]
??:? [0x5629271f793d]
??:? __libc_start_main [0x7f409c3c909a]
??:? [0x56292713991d]

Cannot create libraries folder folder. Hopefully everything still works. (Docker?)

Recently I have started getting this error when making new containers.

Also the container will keep restarting, and keep pulling libraries from apple server unless the container is stopped.


~# docker run -d -v lib_cache:/opt/lib/ --restart=always -p 6969:6969 --name anisette dadoum/anisette-server:latest
cb8b027af1531f5b0e5fa7ba395d732268f855d2da27fe670416af199e15150b


~# docker logs anisette
Downloading libraries fromstd.file.FileException@std/file.d(836): lib/x86_64/libCoreADI.so: No such file or directory
----------------
??:? [0x558fb4257f46]
??:? [0x558fb425a3d6]
??:? [0x558fb4239e0f]
??:? [0x558fb4200a2a]
??:? [0x558fb416c49d]
??:? [0x558fb4239afb]
??:? [0x558fb42399f5]
??:? [0x558fb423984d]
??:? [0x7febb3663189]
??:? __libc_start_main [0x7febb3663244]
??:? [0x558fb416baf0]
Downloading libraries from Apple servers... done!         
Cannot create libraries folder folder. Hopefully everything still works. (Docker?)


ubuntu 22.04 amd64
Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.2

Docker time error

Trying to run the docker image results in this error:

Aborting from core/time.d(2136) MonoTimeImpl!(ClockType.normal) failed to get the frequency of the system's monotonic clock.

Unable To Bind Websocket

Whenever i run

./anisette-server-x86_64 -n 127.0.0.1 -p 6969

I get the error log

std.socket.SocketOSException@../../../../src/libphobos/src/std/socket.d(2820): Unable to bind socket: Address already in use
----------------
../../../../src/libphobos/src/std/socket.d:2820 @trusted void std.socket.Socket.bind(std.socket.Address) [0x5584ba6cc9da]
../../../../src/libphobos/src/std/socket.d:2817 @trusted void std.socket.Socket.bind(std.socket.Address) [0x5584ba6cc9da]
??:? void handy_httpd.server.HttpServer.start() [0x5584ba4e274e]
??:? _Dmain [0x5584ba47848b]

Running Ubuntu 20.04, im following the guide here NyaMisty/AltServer-Linux#99 to get AltServer working, does anybody know whats going on?

docker run error

Used the docker command in the readme on 2 different vps and both getting permission errors in the logs.

----------------
??:? [0xaaaaccddc0e3]
??:? [0xaaaaccdddf77]
??:? [0xaaaaccdbffb3]
??:? [0xaaaaccd88967]
??:? [0xaaaaccd887f3]
??:? [0xaaaaccd887d3]
??:? [0xaaaaccd023d7]
??:? [0xaaaaccdbfc73]
??:? [0xaaaaccdbfb53]
??:? [0xaaaaccdbf9bb]
??:? [0xffff8787777f]
??:? __libc_start_main [0xffff87877857]
??:? [0xaaaaccd018ef]
                     app INFO  2023-05-01T00:27:13.399 anisette-server-provision v2.1.0
                     app INFO  2023-05-01T00:27:13.413 Downloading libraries from Apple servers...
                     app INFO  2023-05-01T00:27:15.310 Done !
std.file.FileException@std/file.d(3001): /home/Chester/.config/Provision/lib: Permission denied
----------------
??:? [0xaaaae43bc0e3]
??:? [0xaaaae43bdf77]
??:? [0xaaaae439ffb3]
??:? [0xaaaae4368967]
??:? [0xaaaae43687f3]
??:? [0xaaaae43687d3]
??:? [0xaaaae42e23d7]
??:? [0xaaaae439fc73]
??:? [0xaaaae439fb53]
??:? [0xaaaae439f9bb]
??:? [0xffff9c2c777f]
??:? __libc_start_main [0xffff9c2c7857]
??:? [0xaaaae42e18ef]
                     app INFO  2023-05-01T00:28:15.691 anisette-server-provision v2.1.0
                     app INFO  2023-05-01T00:28:15.703 Downloading libraries from Apple servers...
                     app INFO  2023-05-01T00:28:17.419 Done !
std.file.FileException@std/file.d(3001): /home/Chester/.config/Provision/lib: Permission denied
----------------
??:? [0xaaaab50ac0e3]
??:? [0xaaaab50adf77]
??:? [0xaaaab508ffb3]
??:? [0xaaaab5058967]
??:? [0xaaaab50587f3]
??:? [0xaaaab50587d3]
??:? [0xaaaab4fd23d7]
??:? [0xaaaab508fc73]
??:? [0xaaaab508fb53]
??:? [0xaaaab508f9bb]
??:? [0xffffabb6777f]
??:? __libc_start_main [0xffffabb67857]
??:? [0xaaaab4fd18ef]
                     app INFO  2023-05-01T00:29:17.830 anisette-server-provision v2.1.0
                     app INFO  2023-05-01T00:29:17.845 Downloading libraries from Apple servers...
                     app INFO  2023-05-01T00:29:19.853 Done !

Segmentation Fault Issue

Hello! I am building the x86_64 version on Void Linux, and every time I try to run any of the executables I get segmentation faults. Below are both outputs from anisette_server.

Building for release gives me:

"/home/ny/workspace/altstuff/Provision/build/lib/x86_64/libCoreADI.so" phdr mmap failed: Invalid argument
Segmentation fault

Then a debug release gives me:

"/home/ny/workspace/altstuff/Provision/build2/lib/x86_64/libCoreADI.so" phdr mmap failed: Cannot allocate memory
Segmentation fault

Am I getting the APK from the wrong location, or am I doing something else wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.