Solved New Tech World 2 Server Doesn't Start.

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

kuzimoto

New Member
Jul 29, 2019
1
0
0
To start off the issue, some basic information as required by the "MUST READ" thread;
  • CentOS Linux release 7.0.1406 (Core).
  • Using a local dedicated server I set up.
  • Tech World 2 server version 1.1.6
  • No modifications
  • Intel Pentium Dual-Core E5300 @ 2.60GHz, 4 GB RAM, 320 GB HDD.
I am trying to start up a Tech World 2 server, but it always fails on startup. I was just running a Monster server that seemed to work perfectly. Here is the error where it fails:

Code:
2014-11-13 10:10:44 [SEVERE] [ForgeModLoader] Unable to launch
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:48)
        at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:17)
Caused by: java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:191)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
        at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:120)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:191)
        at java.awt.Toolkit$2.run(Toolkit.java:869)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:861)
        at javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:608)
        at net.minecraft.server.gui.MinecraftServerGui.func_120016_a(SourceFile:22)
        at net.minecraft.server.dedicated.DedicatedServer.func_120011_ar(DedicatedServer.java:468)
        at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1505)
        ... 12 more
./ServerStart.sh: line 2: pause: command not found

It seems like it's having issues with connecting to the x server. I set the runlevel to 3 so that the server starts directly to the command line, with no gui to save on resources, but upon switching it to 5 again, it gives the same error.

Also, I am running the default script included with the server .zip folder.
Code:
java -Xms2048m -Xmx2048m -XX:PermSize=128m -jar FTBServer-1.6.4-965.jar nogui
pause

Any help is appreciated!

EDIT: Looks like I've figured it out. If anyone comes across this in the future, disable X11 forwarding in putty if that's how you're connecting to the server. Looks like it messes something up.
 
Last edited: