Can't start server in webui

When I try to start a server in the webui it goes down within 10 seconds, here are the crash logs

[18:24:30] [ServerMain/INFO]: Building unoptimized datafixer
[18:24:31] [ServerMain/INFO]: Environment: authHost=‘https://authserver.mojang.com’, accountsHost=‘https://api.mojang.com’, sessionHost=‘https://sessionserver.mojang.com’, servicesHost=‘https://api.minecraftservices.com’, name=‘PROD’
[18:24:32] [ServerMain/INFO]: Loaded 7 recipes
[18:24:32] [ServerMain/INFO]: Loaded 1179 advancements
[18:24:33] [ServerMain/WARN]: Failed to parse level-type default, defaulting to minecraft:normal
[18:24:33] [Server thread/INFO]: Starting minecraft server version 1.19.1
[18:24:33] [Server thread/INFO]: Loading properties
[18:24:33] [Server thread/INFO]: Default game type: SURVIVAL
[18:24:33] [Server thread/INFO]: Generating keypair
[18:24:33] [Server thread/INFO]: Starting Minecraft server on 159.196.232.125:25565
[18:24:34] [Server thread/INFO]: Using epoll channel type
[18:24:34] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[18:24:34] [Server thread/WARN]: The exception was: io.netty.channel.unix.Errors$NativeIoException: bind(…) failed: Cannot assign requested address
[18:24:34] [Server thread/WARN]: Perhaps a server is already running on that port?
[18:24:34] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.IllegalStateException: Failed to initialize server
at net.minecraft.server.MinecraftServer.v(SourceFile:678) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[server-1.19.1.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[18:24:34] [Server thread/ERROR]: This crash report has been saved to: /var/games/minecraft/servers/1_19_survival/./crash-reports/crash-2022-08-02_18.24.34-server.txt
[18:24:34] [Server thread/INFO]: Stopping server
[18:24:34] [Server thread/INFO]: Saving worlds
[18:24:34] [Server thread/ERROR]: Exception stopping the server
java.lang.NullPointerException: Cannot invoke “agg.p_()” because “$$5” is null
at net.minecraft.server.MinecraftServer.a(SourceFile:531) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.s(SourceFile:592) ~[server-1.19.1.jar:?]
at afh.s(SourceFile:547) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.v(SourceFile:697) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[server-1.19.1.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[18:26:31] [ServerMain/INFO]: Building unoptimized datafixer
[18:26:32] [ServerMain/INFO]: Environment: authHost=‘https://authserver.mojang.com’, accountsHost=‘https://api.mojang.com’, sessionHost=‘https://sessionserver.mojang.com’, servicesHost=‘https://api.minecraftservices.com’, name=‘PROD’
[18:26:34] [ServerMain/INFO]: Loaded 7 recipes
[18:26:34] [ServerMain/INFO]: Loaded 1179 advancements
[18:26:35] [ServerMain/WARN]: Failed to parse level-type default, defaulting to minecraft:normal
[18:26:35] [Server thread/INFO]: Starting minecraft server version 1.19.1
[18:26:35] [Server thread/INFO]: Loading properties
[18:26:35] [Server thread/INFO]: Default game type: SURVIVAL
[18:26:35] [Server thread/INFO]: Generating keypair
[18:26:35] [Server thread/INFO]: Starting Minecraft server on 159.196.232.125:25565
[18:26:35] [Server thread/INFO]: Using epoll channel type
[18:26:35] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[18:26:35] [Server thread/WARN]: The exception was: io.netty.channel.unix.Errors$NativeIoException: bind(…) failed: Cannot assign requested address
[18:26:35] [Server thread/WARN]: Perhaps a server is already running on that port?
[18:26:35] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.IllegalStateException: Failed to initialize server
at net.minecraft.server.MinecraftServer.v(SourceFile:678) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[server-1.19.1.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[18:26:35] [Server thread/ERROR]: This crash report has been saved to: /var/games/minecraft/servers/1_19_survival/./crash-reports/crash-2022-08-02_18.26.35-server.txt
[18:26:35] [Server thread/INFO]: Stopping server
[18:26:35] [Server thread/INFO]: Saving worlds
[18:26:35] [Server thread/ERROR]: Exception stopping the server
java.lang.NullPointerException: Cannot invoke “agg.p_()” because “$$5” is null
at net.minecraft.server.MinecraftServer.a(SourceFile:531) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.s(SourceFile:592) ~[server-1.19.1.jar:?]
at afh.s(SourceFile:547) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.v(SourceFile:697) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[server-1.19.1.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[18:26:39] [ServerMain/INFO]: Building unoptimized datafixer
[18:26:40] [ServerMain/INFO]: Environment: authHost=‘https://authserver.mojang.com’, accountsHost=‘https://api.mojang.com’, sessionHost=‘https://sessionserver.mojang.com’, servicesHost=‘https://api.minecraftservices.com’, name=‘PROD’
[18:26:41] [ServerMain/INFO]: Loaded 7 recipes
[18:26:42] [ServerMain/INFO]: Loaded 1179 advancements
[18:26:43] [ServerMain/WARN]: Failed to parse level-type default, defaulting to minecraft:normal
[18:26:43] [Server thread/INFO]: Starting minecraft server version 1.19.1
[18:26:43] [Server thread/INFO]: Loading properties
[18:26:43] [Server thread/INFO]: Default game type: SURVIVAL
[18:26:43] [Server thread/INFO]: Generating keypair
[18:26:43] [Server thread/INFO]: Starting Minecraft server on 159.196.232.125:25565
[18:26:43] [Server thread/INFO]: Using epoll channel type
[18:26:43] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[18:26:43] [Server thread/WARN]: The exception was: io.netty.channel.unix.Errors$NativeIoException: bind(…) failed: Cannot assign requested address
[18:26:43] [Server thread/WARN]: Perhaps a server is already running on that port?
[18:26:43] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.IllegalStateException: Failed to initialize server
at net.minecraft.server.MinecraftServer.v(SourceFile:678) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[server-1.19.1.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[18:26:43] [Server thread/ERROR]: This crash report has been saved to: /var/games/minecraft/servers/1_19_survival/./crash-reports/crash-2022-08-02_18.26.43-server.txt
[18:26:43] [Server thread/INFO]: Stopping server
[18:26:43] [Server thread/INFO]: Saving worlds
[18:26:43] [Server thread/ERROR]: Exception stopping the server
java.lang.NullPointerException: Cannot invoke “agg.p_()” because “$$5” is null
at net.minecraft.server.MinecraftServer.a(SourceFile:531) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.s(SourceFile:592) ~[server-1.19.1.jar:?]
at afh.s(SourceFile:547) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.v(SourceFile:697) ~[server-1.19.1.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[server-1.19.1.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]

This is the problem.
Check your address / port config in server properties.

1 Like

thanks, seems that leaving everything default in the server properties was the fix for this

1 Like