pelican-eggs / eggs

Service eggs for the pterodactyl panel
MIT License
2.8k stars 2.31k forks source link

[Install Bug]: FiveM (install: unknown filetype. Exiting) #2252

Closed jay-zeex closed 1 year ago

jay-zeex commented 1 year ago

Panel Version

1.11.3

Wings Version

1.11.5

Service

FiveM

Modified

No, I did not modify the egg

Expected Behavior

To start the server flawlessly

Actual Behavior

While starting the server the container image is pulled, but there is apparently missing the "ld-musl-x86_64.so.1" file so it cant start properly :(

It could maybe do something with the information in the log saying: Resolving deltas: 100% (541/541), done. Running curl -sSL null -o null curl: (6) Could not resolve host: null Extracting fivem files unknown filetype. Exiting

Pterodactyl log: [Pterodactyl Daemon]: Finished pulling Docker container image :/home/container$ $(pwd)/alpine/opt/cfx-server/ld-musl-x86_64.so.1 --library-path "$(pwd)/alpine/usr/lib/v8/:$(pwd)/alpine/lib/:$(pwd)/alpine/usr/lib/" -- $(pwd)/alpine/opt/cfx-server/FXServer +set citizen_dir $(pwd)/alpine/opt/cfx-server/citizen/ +set sv_licenseKey ${FIVEM_LICENSE} +set steam_webApiKey ${STEAM_WEBAPIKEY} +set sv_maxplayers ${MAX_PLAYERS} +set serverProfile default +set txAdminPort ${TXADMIN_PORT} $( [ "$TXADMIN_ENABLE" == "1" ] || printf %s '+exec server.cfg' ) /entrypoint.sh: line 13: /home/container/alpine/opt/cfx-server/ld-musl-x86_64.so.1: No such file or directory

Steps To Reproduce

  1. Upload egg
  2. Install new server with the egg
  3. Start the server
  4. Error

Install logs

parkervcp commented 1 year ago

@jay-zeex it looks like your install script is messed up or something because it's trying to reach a null value when I can say for certain that there should be links there.

jay-zeex commented 1 year ago

Agreed, i was just looking at the "Running curl -sSL null -o null" line. Is the variable "DOWNLOAD_URL" used there? Because it is empty. So I guess that variable need to point to some https://runtime.fivem.net/artifacts/... since it is used in the install script :)

UPDATE: Ok, i think i am getting it. There is hidden folder build_proot_linux at https://runtime.fivem.net/artifacts/fivem. And we need to pick version from "https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/" and copy the link to the DOWNLOAD_URL variable.

Instructions for everyone:

  1. Go to "https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/"
  2. Pick version you want (latest on top)
  3. Right click the version and "copy link address"
  4. Paste the copied address to the "DOWNLOAD_URL" variable in your egg.
  5. Install the server with that egg

Ok, that worked, great.. now there is another problem: The Cfx.re Platform Server requires support for x86-64-v2 instructions (such as POPCNT). You seem to be running on QEMU/KVM using the 'kvm64' CPU type, which does not properly indicate support for these instructions. Please use a different CPU type (such as 'host'). See https://aka.cfx.re/fxs-kvm64 for more information.

And this one is Unsolvable in the VM itself unfortunately. We had to change the CPU type in our Proxmox from "kvm64" to "host" for it to work.

SOLVED :)

parkervcp commented 1 year ago

There is no reason to go to that page and set the url manually. It sounds like your install failed to get the page correctly to get the current recommended and latest releases.

jay-zeex commented 1 year ago

We will try next install without the DownloadURL set, but for right now I only know that without the specified URL it wouldn't download and with it it went ok. (The only change we did was to set the url and reinstall server.) To the noob user like me it seems that the URL is missing in the install script and you need to fill it by yourself. There is no information that the variable is optional and should be used only in some cases. When you read the description "This is the link to download fivem from." and there is nothing, then in my understanding it shouldn't download at all :)