D
D
da da2021-03-19 15:16:06
Java
da da, 2021-03-19 15:16:06

How to fix an error when starting mindustry?

OS: Manjaro Linux ARM64
Device: raspberry pi 4

$ minddustry

[I] Sending crash report.
java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java .base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.Socket.connect(Socket .java:609)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
at java.base /sun.net.www.http.HttpClient.(HttpClient.java:242)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:341)
at java.base/sun.net. www.http.HttpClient.New(HttpClient.java:362)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1253)
at java.base/sun.net.www. protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1015)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1367)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1342)
at arc.util.NetJavaImpl.lambda$http$0(NetJavaImpl.java:67)
at arc.util.async. AsyncExecutor.lambda$submit$2(AsyncExecutor.java:31)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor .java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2021-03-19
@IIggoorrII

There is not enough information to answer your question.
Here are some thoughts:

java.net.ConnectException: В соединении отказано (Connection refused)

Let's say that the port on which the connection is made is closed and, accordingly, you need to open it.
Here is how to open the required port on Linux - https://www.journaldev.com/34113/opening-a-port-on...
Also note that iptables can be installed on the device and, accordingly, you need to write access rules to the port.
google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question