mojira.dev
MC-40413

Server fails to boot with java error

Reproduced by following command. No other logs created. No files created. Java recently updated as a test solution to no avail. Java works otherwise (able to start a 1.6.4 server).

  1. java -Xmx1G -Xms1G -jar minecraft_server.1.7.2.jar nogui
    <wait for a few seconds>
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at net.minecraft.server.MinecraftServer.<init>(SourceFile:114)
    at lj.<init>(SourceFile:50)
    at net.minecraft.server.MinecraftServer.main(SourceFile:591)
    Caused by: java.lang.IllegalStateException: failed to create a child event loop
    at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:61)
    at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:49)
    at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:61)
    at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:52)
    at ms.<clinit>(SourceFile:31)
    ... 3 more
    Caused by: io.netty.channel.ChannelException: failed to open a new selector
    at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:128)
    at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:120)
    at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:87)
    at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:57)
    ... 7 more
    Caused by: java.io.IOException: Function not implemented
    at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
    at sun.nio.ch.EPollArrayWrapper.<init>(Unknown Source)
    at sun.nio.ch.EPollSelectorImpl.<init>(Unknown Source)
    at sun.nio.ch.EPollSelectorProvider.openSelector(Unknown Source)
    at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:126)
    ... 10 more

Linked issues

Comments 14

Are you using any less common network schemes, such as proxies or vpns?

None at all. Not even getting to the point where that is an issue. Server is just not booting. Client (when it gets to that point) is on same network (however, different subnet, but no issues there). Like stated, 1.6.4 works under the same conditions.

The reason I ask it because 1.7.* uses a different network system.

Ah, ok, interesting. However, I'm not getting that far. All I've got is what's above. No other logs anywhere.

Just tested it with the same arguments as yours, and it worked fine. Can you try the following: re-downlaod the server.jar, place into a new empty folder and try running it again?

4 more comments

I see some similarities in the error, but I don't see how a firewall would cause function not implemented. Even in the case of 127.0.0.1 being blocked (which it isn't). I'd be interested in knowing the network changes for 1.7.x to indicate this as a suspect.

Nevertheless, thanks for looking into this rather quickly. It's much appreciated.

If you are still having difficulty, I would recommend taking a look at are support pages and chat. For technical support please use the Mojang Support Center.

Not really wanted to reopen this, but i've gotten back to working on this. This is affected for 1.7.4 also. I've read the other threads, and tested the jar file on windows (that works, but not the solution I'm after). I've moved the jar file out of my jails into the root of my server to avoid any problems with localhost. I'm running pf, but explicitly have it ignoring 127.0.0.1. I'm not running any AV. I can throw anything else I want at 127.0.0.1, and it behaves as expected.

I've run tcpdump on the lo0 interface, and got nothing (except my test ping). I can't exactly say this is a firewall or AV problem (as marked as a duplicate) when my firewall is explicitly open, and I'm not running an AV to turn off.

When I get more time and storage, I'll test with a VM to remove the FW completely.

Thanks

Looks like a Kernel compiled without EPOLL:

Caused by: java.io.IOException: Function not implemented
at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)

Thanks for the the tip. That pointed me in the right direction. As I'm not running linux, I switched the jre to the non-Oracle implementation, and I got the server to start and and now connected. Thanks for the help.

Pilgrim

(Unassigned)

Unconfirmed

crash, server

Minecraft 1.7.2, Minecraft 1.7.4

Retrieved