Jump to content

Connection Refused on Install in Linux


MechaWitch

Recommended Posts

Been awhile since I've admined (1.7 was my last) and trying to get back in.

 

I'm trying to install forge 1.12.2-14.23.5.2838 within Ubuntu 18.04. I'm running this on a Hyper-V VM, 8 procs, 16gb ram. On running the installer I get a connection refused error...

root@mc:/opt/skyfactory/SkyFactory_4_Server_4.1.0# java -jar forge-1.12.2-14.23.5.2838-installer.jar --installServer
Setting up logger: /opt/skyfactory/SkyFactory_4_Server_4.1.0/forge-1.12.2-14.23.5.2838-installer.jar.log
java.net.preferIPv4Stack=true
Installing server to current directory
MESSAGE: Data kindly mirrored by Forge at http://MinecraftForge.net/
MESSAGE: Considering minecraft server jar
MESSAGE: Downloading minecraft server version 1.12.2
java.net.ConnectException: Connection refused (Connection refused)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1950)
        at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1945)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1944)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1514)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
        at net.minecraftforge.installer.DownloadUtils$URLISSupplier.getInput(DownloadUtils.java:457)
        at net.minecraftforge.installer.DownloadUtils$URLISSupplier.getInput(DownloadUtils.java:445)
        at com.google.common.io.ByteStreams$6.openStream(ByteStreams.java:989)
        at com.google.common.io.ByteSource.copyTo(ByteSource.java:202)
        at com.google.common.io.Files.copy(Files.java:382)
        at net.minecraftforge.installer.DownloadUtils.downloadFileEtag(DownloadUtils.java:174)
        at net.minecraftforge.installer.ServerInstall.run(ServerInstall.java:53)
        at net.minecraftforge.installer.InstallerAction.run(InstallerAction.java:43)
        at net.minecraftforge.installer.SimpleInstaller.handleOptions(SimpleInstaller.java:75)
        at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at net.minecraftforge.installer.Java6Gate.main(Java6Gate.java:48)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:204)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3057)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderField(HttpsURLConnectionImpl.java:305)
        at net.minecraftforge.installer.DownloadUtils.downloadFileEtag(DownloadUtils.java:163)
        ... 9 more
Downloading minecraft server failed, invalid e-tag checksum.
Try again, or manually place server jar to skip download.
There was an error during server installation
root@mc:/opt/skyfactory/SkyFactory_4_Server_4.1.0#

 

I figured, ok, maybe my firewall VM is blocking something, so I ran the installer locally and moved the universal file and libraries directory to the server after. Confirmed permissions were right after the move, then tried to start the server, but just getting "a problem occurred" right away...

root@mc:/opt/skyfactory/SkyFactory_4_Server_4.1.0# ./ServerStart.sh
Starting Sky Factory 4 Server...
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)
Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Level
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        ... 6 more
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Level
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 8 more
root@mc:/opt/skyfactory/SkyFactory_4_Server_4.1.0#

 

So at this point... I'm a bit lost and not really sure what to do. any amount of searching hasn't helped. connection refused errors are impossible to sift through. Let me know if you have any ideas. Thank you.

Link to comment
Share on other sites

oh and if needed, here's a list of my files and their permissions.

 

root@mc:/opt/skyfactory/SkyFactory_4_Server_4.1.0# ls -l
total 10168
drwxr-xr-x 55 root root   12288 Sep 15 19:15  config
-rwxr-xr-x  1 root root 5108591 Jun  5 22:27  forge-1.12.2-14.23.5.2838-installer.jar
-rw-r--r--  1 root root    4358 Nov 30 17:28  forge-1.12.2-14.23.5.2838-installer.jar.log
-rwxr-xr-x  1 root root 5035170 Nov 22 21:22  forge-1.12.2-14.23.5.2838-universal.jar
-rwxr-xr-x  1 root root     185 Mar 27  2018  Install.bat
-rwxr-xr-x  1 root root     201 Jun  5 22:29  Install.sh
drwxr-xr-x  7 root root    4096 Nov 30 16:55  libraries
drwxr-xr-x  2 root root   16384 Sep 15 19:17  mods
drwxr-xr-x  3 root root    4096 Jun 17 18:41  oresources
-rwxr-xr-x  1 root root    2107 Jun 13 16:18  README.txt
drwxr-xr-x 10 root root    4096 Sep 15 19:15  resources
drwxr-xr-x  4 root root    4096 Sep 15 19:15  scripts
-rwxr-xr-x  1 root root    9174 Apr 15  2019  server-icon.png
-rwxr-xr-x  1 root root     891 Sep 15 19:17  server.properties
-rwxr-xr-x  1 root root     192 Apr 15  2019  ServerStart.bat
-rwxr-xr-x  1 root root     232 Jun  5 22:29  ServerStart.sh
-rwxr-xr-x  1 root root     482 Jun  5 22:28  settings.bat
-rwxr-xr-x  1 root root     505 Nov 30 17:09  settings.sh
-rwxr-xr-x  1 root root  155902 Apr 15  2019 'SkyFactory 4 Multiplayer Instructions.pdf'
-rwxr-xr-x  1 root root    1230 Jun  5 22:36  UPDATE.txt

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.