hytale-docker icon indicating copy to clipboard operation
hytale-docker copied to clipboard

cant authentificate incoming connections

Open jiwidi opened this issue 10 months ago • 7 comments

hi!

Followed your readme. Getting issues

 Disconnecting QuicConnectionAddress{connId=821633eb8e21af5545767f9dbee2c9625967a4b9} (/162.159.134.234:38206, streamId=0) with the message: Server authentication unavailable - please try again later
hytale-server       | [2026/01/13 15:37:36   INFO]                         [Hytale] {Authenticating(null (null, streamId=0)), authHandlerSupplier=com.hypixel.hytale.server.core.io.handlers.InitialPacketHandler$$Lambda/0x0000780001e75c70@12d942be} was closed.
hytale-server       | [2026/01/13 15:37:36   INFO]                  [QUICTransport] Connection closed: QuicheQuicConnectionStats[recv=6, sent=7, lost=0, retrans=0, sentBytes=3551, recvBytes=4271, lostBytes=0, streamRetransBytes=0, pathsCount=1]
hytale-server       | [2026/01/13 15:37:38   INFO]                  [QUICTransport] Received connection from QuicConnectionAddress{connId=} (/162.159.134.234:38995) to QuicConnectionAddress{connId=4afd460f5de9f39958ccf54ba0a9b9d4a6853a02} (/0.0.0.0:5520)
hytale-server       | [2026/01/13 15:37:38   INFO]                         [Hytale] Received stream QuicConnectionAddress{connId=4afd460f5de9f39958ccf54ba0a9b9d4a6853a02} (/162.159.134.234:38995, streamId=0) to QuicConnectionAddress{connId=4afd460f5de9f39958ccf54ba0a9b9d4a6853a02} (/0.0.0.0:5520, streamId=0)

Any idea what could i have missed?

jiwidi avatar Jan 13 '26 15:01 jiwidi

check if ports are open

GorlikItsMe avatar Jan 13 '26 15:01 GorlikItsMe

Hi, when the server is running you have to run the authentication command: auth login device in the server console you can attach using docker attach CONTAINER_NAME

after logging in successfully you can run auth persistence Encrypted to save the authentication so it does not ask you everytime you restart the server

Slowline avatar Jan 13 '26 15:01 Slowline

[2026/01/13 15:59:11   INFO]        [PasswordPacketHandler] Connection complete for pytte (xxx), transitioning to setup
[2026/01/13 15:59:11 FINEST]                  [LoginTiming] setTimeout-send-world-settings took 287us 675ns
[2026/01/13 15:59:11   INFO]                       [Hytale] {Password(QuicConnectionAddress{connId=xxx} (/80.71.130.183:51600, streamId=0)), pytte} compression now handled by encoder
[2026/01/13 15:59:11   FINE]                  [LoginTiming] Load Player Config took 132us 488ns
[2026/01/13 15:59:11 FINEST]                  [LoginTiming] setTimeout-receive-assets-request took 28ms 881us 434ns
[2026/01/13 15:59:11   INFO]                       [Hytale] {Setup(null (null, streamId=0)), pytte,xxx, SECURE} was closed.
[2026/01/13 15:59:11   INFO]                [QUICTransport] Connection closed: QuicheQuicConnectionStats[recv=15, sent=26, lost=0, retrans=0, sentBytes=17015, recvBytes=11787, lostBytes=0, streamRetransBytes=0, pathsCount=1]

And the desktop client says invalid access token

axlroden avatar Jan 13 '26 16:01 axlroden

My situation is worse, its hytale bug

> auth persistence Encrypted
[2026/01/13 16:24:34   INFO]                 [CommandManager] Console executed command: auth persistence Encrypted
> [2026/01/13 16:24:34   WARN]                   [HardwareUtil] Failed to get Hardware UUID
java.lang.RuntimeException: Failed to get hardware UUID for Linux - all methods failed
        at com.hypixel.hytale.common.util.HardwareUtil.lambda$static$2(HardwareUtil.java:114)
        at com.hypixel.hytale.function.supplier.CachedSupplier.get(CachedSupplier.java:22)
        at com.hypixel.hytale.common.util.HardwareUtil.getUUID(HardwareUtil.java:163)
        at com.hypixel.hytale.server.core.auth.EncryptedAuthCredentialStore.deriveKey(EncryptedAuthCredentialStore.java:83)
        at com.hypixel.hytale.server.core.auth.EncryptedAuthCredentialStore.<init>(EncryptedAuthCredentialStore.java:72)
        at com.hypixel.hytale.server.core.auth.EncryptedAuthCredentialStoreProvider.createStore(EncryptedAuthCredentialStoreProvider.java:34)
        at com.hypixel.hytale.server.core.auth.ServerAuthManager.swapCredentialStoreProvider(ServerAuthManager.java:436)
        at com.hypixel.hytale.server.core.command.commands.server.auth.AuthPersistenceCommand$SetPersistenceVariant.executeSync(AuthPersistenceCommand.java:91)
        at com.hypixel.hytale.server.core.command.system.basecommands.CommandBase.execute(CommandBase.java:48)
        at com.hypixel.hytale.server.core.command.system.AbstractCommand.acceptCall0(AbstractCommand.java:758)
        at com.hypixel.hytale.server.core.command.system.AbstractCommand.checkForExecutingSubcommands(AbstractCommand.java:817)
        at com.hypixel.hytale.server.core.command.system.AbstractCommand.acceptCall0(AbstractCommand.java:677)
        at com.hypixel.hytale.server.core.command.system.AbstractCommand.checkForExecutingSubcommands(AbstractCommand.java:803)
        at com.hypixel.hytale.server.core.command.system.AbstractCommand.acceptCall0(AbstractCommand.java:677)
        at com.hypixel.hytale.server.core.command.system.AbstractCommand.acceptCall(AbstractCommand.java:656)
        at com.hypixel.hytale.server.core.command.system.CommandManager.runCommand(CommandManager.java:279)
        at com.hypixel.hytale.server.core.command.system.CommandManager.lambda$handleCommand$0(CommandManager.java:254)
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1750)
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1742)
        at java.base/java.util.concurrent.ForkJoinTask$InterruptibleTask.exec(ForkJoinTask.java:1659)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1450)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2019)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)

[2026/01/13 16:24:34   WARN]   [EncryptedAuthCredentialStore] Cannot derive encryption key - encrypted storage will not persist credentials
[2026/01/13 16:24:34   INFO]              [ServerAuthManager] Swapped credential store to: EncryptedAuthCredentialStoreProvider
Credential storage changed to: Encrypted

GorlikItsMe avatar Jan 13 '26 16:01 GorlikItsMe

well thats probably just docker issues.. but yea.. no hardware UUID

axlroden avatar Jan 13 '26 16:01 axlroden

i got the hardware uuid error too but it seems to still let people connect on my end

Slowline avatar Jan 13 '26 17:01 Slowline

https://github.com/Slowline/hytale-docker/pull/3 That fixed my issues

GorlikItsMe avatar Jan 13 '26 18:01 GorlikItsMe