Closed Mayzie closed 3 years ago
The reason is not working is that's is a script in between the console and the server.
Whatever the "server starter" till is it's breaking things.
This is why I haven't been touching the curseforge egg.
As I stated before. If you fix it I would accept the PR to my egg repo.
This is not a pterodactyl issue but a server setup issue.
Parse the yml and do a proper install.
I went more or less through the same steps as @Mayzie, but instead modified the egg install script to launch server starter script. It didn't work perfectly (it got stuck in the "installing" state due to EULA and not being able to send commands), but it downloaded the right files and I was eventually able to get it to work.
SOLUTION(S):
start the forge jar after adding the arguments -Dterminal.jline=false -Dterminal.ansi=true
(might have to add them before the -jar
argument, watch out). That's it.
The startup command should therefore be something like this:
java -Xms128M -Xmx{{SERVER_MEMORY}}M -{other optional arguments} -Dterminal.jline=false -Dterminal.ansi=true -jar forge-1.16.5-36.1.31.jar
You can also try adding those between the arguments at the bottom of the server-setup-config.yaml
file, and using java -jar serverstarter.jar
as a startup command instead, if you want to keep the other arguments that should improve performance.
java -Dterminal.jline=false -Dterminal.ansi=true -jar serverstarter.jar
, I haven't experimented too much. If you try that, let me know.
Description Note: I am unsure if this is a wings bug, or the issue lies elsewhere.
Minecraft Forge server does not seem to accept stdin. Interesting to note that this issue does not occur using Vanilla Minecraft (hence why unsure if this is a relevant bug). Best way to reproduce is to attempt to set up and install the latest All The Mods 6 modpack, which utilises this tool: https://github.com/BloodyMods/ServerStarter. Changing the startup script to launch
serverstarter*.jar
instead does not fix the issue, nor does changing the startup script to launchforge-*.jar
. Attaching myself to the docker container, I get the same issue as wings.To Reproduce Steps to reproduce this behavior:
latest
, and container set to Java <16. The install will fail as it's using the above server starter tool. The egg will also pull an out of date version. To fix this: a. Download the latest "SIMPLE SERVER FILES" zip from CurseForge. b. Upload theserver-setup-config.yaml
file from that archive to your Pterodactyl server, overwriting the existing one.sh ./startserver.sh
.server.properties
file created from the egg. a. Kill server. b. Replace contents ofserver.properties
with the default found on the Minecraft wiki.Bit complicated, I know. But I'm not a Minecraft person.
Expected behavior For stdin to work. As it is, unable to gracefully stop the server from the panel.
It must be receiving stdin, as I can attach to the container and pressing
Ctrl
+\
will dump JVM contents. Is it a threading issue or something? I don't imagine this occurs locally (unable to test).Thank you!