hcgcloud / pterodactyl-sdk

Pterodactyl Panel PHP SDK/API wrapper
https://hcgcloud.github.io/pterodactyl-sdk-docs/
MIT License
27 stars 25 forks source link

Out of Memory #2

Closed Nevercold closed 5 years ago

Nevercold commented 5 years ago

Hello! On Installing, its comes a out of memory Error... What i can do? https://gist.github.com/Nevercold/b971af92cdfa080544d38c2f7660e94f

tyson239 commented 5 years ago

https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors

Nevercold commented 5 years ago

Hey, i have fixed the Error. Now, i have a new Error when i creating a new Server. https://paste.dsyn.ga/Vzvj2h4QyF

Nevercold commented 5 years ago

new code: https://paste.dsyn.ga/s3KBFj4hn1

tyson239 commented 5 years ago

Have you provided all environment variables?

tyson239 commented 5 years ago
    "environment": {
        "SERVER_JARFILE": "server.jar",
        //...etc
    },
Nevercold commented 5 years ago

i dont know which environment variables i need.

tyson239 commented 5 years ago

check you egg.

Nevercold commented 5 years ago

I have set all from admin/nests/egg/36/variables : https://paste.dsyn.ga/NbB9n7o4E5

The Error is the same: https://paste.dsyn.ga/eX2Tx2fPTW

tyson239 commented 5 years ago

fill external_id or remove it.

Nevercold commented 5 years ago

what is external_id?

tyson239 commented 5 years ago

$server = $pterodactyl->createServer([ "external_id" => "",

Nevercold commented 5 years ago

What does this attitude do?

tyson239 commented 5 years ago

like linking to your external sales system, etc. you can use $pterodactyl->serverEx($serverExternalId); to get a server instance directly.

Nevercold commented 5 years ago

Ah okay, thanks!

Nevercold commented 5 years ago

https://paste.dsyn.ga/88Lrw253o4 i have filled it and the error is still the same

Nevercold commented 5 years ago

what i can do?

tyson239 commented 5 years ago

do you have

$egg = $pterodactyl->egg($nest_id, $egg_id);

on the top of your code?

Nevercold commented 5 years ago

https://paste.dsyn.ga/P48yk31ojF

tyson239 commented 5 years ago

why you remove the 1 in locations?

Nevercold commented 5 years ago

With 1 in Location comes the Same Error

tyson239 commented 5 years ago

replace it to your location id in the panel.

tyson239 commented 5 years ago

It may not be 1, depends on your panel.

tyson239 commented 5 years ago

I am closing this issue, if you have any other questions, feel free to comment again.

Nevercold commented 5 years ago

it still does not work

tyson239 commented 5 years ago

there must be something wrong with your variables, not this sdk's issue. also you can check this document, https://deploys.io/docs/api/pterodactyl/v1/#create-server