Hosting Lobby Bot with Linux
-
Re: How To Host (using Port-Forwarding)
I use Linux to play TripleA, but am interested in hosting a Lobby bot too.
I have configured my port and router and can host a game in the lobby, so all good there.Just looking for a headless.sh download.
What is the possibility of unix based headless code for lobby bot hosting?
Thanks
-
@benji000 I have made some progress and realized a unix based script is available. But run into this error:
line 79: java: command not found
-
Hi @benji000
You will probably need to wait for @LaFayette to get back from vacation as he is the main lobby developer.
-
I have made more progress by installing some missing Java components.
Here is my latest issue with the lobby URL perhaps?
Aug 31, 2024 11:21:13 AM org.triplea.game.server.HeadlessGameServer <init>
INFO: Game Server initialized
Aug 31, 2024 11:21:13 AM org.triplea.game.server.HeadlessGameServer lambda$new$1
INFO: Headless Start
Exception in thread "Initialize Headless Server Setup Model" feign.RetryableException: No subject alternative DNS name matching lobby.triplea-game.org found. executing POST https://lobby.triplea-game.org/lobby/game-hosting-request
at feign.FeignException.errorExecuting(FeignException.java:214)
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:115)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:80)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at jdk.proxy2/jdk.proxy2.$Proxy4.sendGameHostingRequest(Unknown Source)
at org.triplea.http.client.lobby.game.hosting.request.GameHostingClient.sendGameHostingRequest(GameHostingClient.java:25)
at games.strategy.engine.framework.startup.mc.ServerModel.createServerMessenger(ServerModel.java:425)
at games.strategy.engine.framework.startup.mc.ServerModel.lambda$new$1(ServerModel.java:289)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at games.strategy.engine.framework.startup.mc.ServerModel.<init>(ServerModel.java:289)
at org.triplea.game.server.HeadlessServerSetupPanelModel.showSelectType(HeadlessServerSetupPanelModel.java:28)
at org.triplea.game.server.HeadlessGameServer.lambda$new$1(HeadlessGameServer.java:69)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching lobby.triplea-game.org found.
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:130)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:378)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:321)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:316)
at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:647)
at java.base/sun.security.ssl.CertificateStatus$CertificateStatusConsumer.consume(CertificateStatus.java:296)
at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:393)
at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:476)
at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:447)
at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:201)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1506)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:586)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:187)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1675)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1599)
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:531)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:307)
at feign.Client$Default.convertResponse(Client.java:79)
at feign.Client$Default.execute(Client.java:75)
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:110)
... 11 more
Caused by: java.security.cert.CertificateException: No subject alternative DNS name matching lobby.triplea-game.org found.
at java.base/sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:207)
at java.base/sun.security.util.HostnameChecker.match(HostnameChecker.java:103)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:457)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:417)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:237)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:132)
at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:631)
... 30 more -
Hey friend, try this lobby URL: -Ptriplea.lobby.uri=https://prod2-lobby.triplea-game.org \
I found it randomly by browsing through the forums as my terminal didn't recognize the original URL either. It works :).
I'm now at the point where I'm trying to figure out how to remove the "automated_host" thing in the comments section as I"d like to change that to something else. that, and I'd like the BOT to automatically load up the revised map. Any suggestions here?