Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux - ServerStart.sh keeps re-installing Forge and never actually starts #95

Open
snaiperskaya opened this issue Mar 25, 2023 · 1 comment

Comments

@snaiperskaya
Copy link

Firstly, the script does NOT like Java 17, but I was able to get around that issue by disabling the Java check.

Now, every time I launch the script, it asks if I want to reinstall. Whether I say yes or no, it starts installing Forge (which looks like it's successful: the log file shows it's completed at the end, but no Forge or Minecraft server Jars are generated) and will repeatedly loop on this until finally failing. I did seem to get slightly further after correcting the error in the script noted in #93 but it does not resolve the issue.

image

Also, your discord link expired, or I'd ask someone there :D

@snaiperskaya snaiperskaya changed the title Linux - Server keeps re-installing Forge and never actually starts Linux - ServerStart.sh keeps re-installing Forge and never actually starts Mar 25, 2023
@itzik1058
Copy link

itzik1058 commented Apr 14, 2023

My workaround is using ServerStart.sh -i to install forge (or use the installer that comes with the server pack if there is one), then I use the following script:

/usr/lib/jvm/java-8-openjdk/jre/bin/java \
    -Xmx"6G" \
    -d64 -server \
    -XX:+AggressiveOpts -XX:ParallelGCThreads=3 -XX:+UseConcMarkSweepGC \
    -XX:+UnlockExperimentalVMOptions -XX:+UseParNewGC -XX:+ExplicitGCInvokesConcurrent \
    -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=50 -XX:+UseFastAccessorMethods \
    -XX:+OptimizeStringConcat -XX:NewSize=84m -XX:+UseAdaptiveGCBoundary -XX:NewRatio=3 \
    -Dfml.readTimeout=90 -Dfml.queryResult=confirm \
    -jar "forge-1.12.2-14.23.5.2860.jar" nogui

I use /usr/lib/jvm/java-8-openjdk/jre/bin/java instead of java because some forge versions require java8.
Replace forge-1.12.2-14.23.5.2860.jar with your forge jar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants