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

Server installer unstable and crashing #354

Open
coleweinman opened this issue Aug 28, 2020 · 3 comments
Open

Server installer unstable and crashing #354

coleweinman opened this issue Aug 28, 2020 · 3 comments

Comments

@coleweinman
Copy link

Expected Behavior

Server will install and run without crashing.

Current Behavior

Just by starting the server eventually, the following error is displayed and the server crashes.

[21:45:28] [ERROR] Some uncaught error happened.

kotlin.TypeCastException: null cannot be cast to non-null type kotlin.String
        at atm.bloodworkxgaming.serverstarter.ForgeManager.startServer(ForgeManager.kt:163)
        at atm.bloodworkxgaming.serverstarter.ForgeManager.handleServer(ForgeManager.kt:42)
        at atm.bloodworkxgaming.serverstarter.ServerStarter.startLoading(ServerStarter.kt:184)
        at atm.bloodworkxgaming.serverstarter.ServerStarterKt.main(ServerStarter.kt:195)

This happened after the startup got stuck and I had to kill the server. It also started once on the first startup. I have tried deleting everything and starting over 4 times and could not avoid this crash. Seems like server starter has some significant problems. I did try to delete the .lock file but that did not solve the problem.

I understand there is a way to just run it traditionally without serverstarter but I do not have the patience for that at this point.

Possible Solution

Stop using serverstarter or fix it so it is not so unreliable.

Steps to Reproduce

  1. Start server
  2. Simulate the server getting stuck on startup (after serverstarter installs everything)
  3. Kill the server
  4. Try starting it again

I did even get it right after typing in TRUE for the eula. There seems to be multiple places this can cause a crash.

Log

INFO: Checking java installation...

java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)

INFO: Found 64-bit Java 1.8
[21:49:55] [INFO] ::::::::::::::::::::::::::::::::::::::::::::::::::::
[21:49:55] [INFO]    Minecraft-Forge Server install/launcher jar
[21:49:55] [INFO]    (Created by the "All The Mods" modpack team)
[21:49:55] [INFO] ::::::::::::::::::::::::::::::::::::::::::::::::::::
[21:49:55] [INFO]
[21:49:55] [INFO]    This jar will launch a Minecraft Forge Modded server
[21:49:55] [INFO]
[21:49:55] [INFO]    Github:    https://github.com/AllTheMods/ServerStarter
[21:49:55] [INFO]    Discord:   http://discord.allthepacks.com
[21:49:55] [INFO]
[21:49:55] [INFO] You are playing All the Mods 3 Remix
[21:49:55] [INFO] Starting to install/launch the server, lean back!
[21:49:55] [INFO] ::::::::::::::::::::::::::::::::::::::::::::::::::::
[21:49:55] [INFO]
[21:49:55] [INFO] Pinging 8.8.8.8.
[21:49:55] [INFO] Reached 8.8.8.8: true
[21:49:55] [INFO] Pinging 1.1.1.1.
[21:49:55] [INFO] Reached 1.1.1.1: true
[21:49:55] [INFO] Reached 2 out of 2 IPs.
[21:49:55] [INFO] Server is already installed to correct version, to force install delete the serverstarter.lock File.
[21:49:55] [ERROR] Some uncaught error happened.

kotlin.TypeCastException: null cannot be cast to non-null type kotlin.String
        at atm.bloodworkxgaming.serverstarter.ForgeManager.startServer(ForgeManager.kt:163)
        at atm.bloodworkxgaming.serverstarter.ForgeManager.handleServer(ForgeManager.kt:42)
        at atm.bloodworkxgaming.serverstarter.ServerStarter.startLoading(ServerStarter.kt:184)
        at atm.bloodworkxgaming.serverstarter.ServerStarterKt.main(ServerStarter.kt:195)
@Bigdeath
Copy link

Same Problem. When deleting server.properties then it try to run.

` [ERROR] Some uncaught error happened.

kotlin.TypeCastException: null cannot be cast to non-null type kotlin.String
at atm.bloodworkxgaming.serverstarter.ForgeManager.startServer(ForgeManager.kt:163)
at atm.bloodworkxgaming.serverstarter.ForgeManager.handleServer(ForgeManager.kt:42)
at atm.bloodworkxgaming.serverstarter.ServerStarter.startLoading(ServerStarter.kt:184)
at atm.bloodworkxgaming.serverstarter.ServerStarterKt.main(ServerStarter.kt:195)
startserver.sh: 13: startserver.sh: [[: not found
`

@compwiz91
Copy link

Anyone found a solution or work around to this issue? Or information as to why it occurs.

@connorb777
Copy link

I have the same issue, redownloading the server files did nothing. Might try an older version.

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

4 participants