docker-minecraft-server icon indicating copy to clipboard operation
docker-minecraft-server copied to clipboard

Problem with starting server

Open Tim2653 opened this issue 1 year ago • 7 comments

I have seen many very similiar problems, but no exact copy. When I try to launch container, i see this error message:

[14:00:16]` [ServerMain/ERROR]: Failed to start the minecraft server joptsimple.UnrecognizedOptionException: t is not a recognized option at joptsimple.OptionException.unrecognizedOption(OptionException.java:108) ~[jopt-simple-5.0.4.jar:?] at joptsimple.OptionParser.validateOptionCharacters(OptionParser.java:633) ~[jopt-simple-5.0.4.jar:?] at joptsimple.OptionParser.handleShortOptionCluster(OptionParser.java:528) ~[jopt-simple-5.0.4.jar:?] at joptsimple.OptionParser.handleShortOptionToken(OptionParser.java:523) ~[jopt-simple-5.0.4.jar:?] at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:59) ~[jopt-simple-5.0.4.jar:?] at joptsimple.OptionParser.parse(OptionParser.java:396) ~[jopt-simple-5.0.4.jar:?] at net.minecraft.server.Main.main(SourceFile:87) ~[server-1.20.4.jar:?] at net.minecraft.bundler.Main.lambda$run$0(Main.java:54) ~[?:?] at java.lang.Thread.run(Unknown Source) ~[?:?]

Does anyone have an idea what might be the issue?

Tim2653 avatar Apr 12 '24 14:04 Tim2653

Wrong repo. I'll move this to the right place but you need to provide more information about what you tried. You're calling docker incorrectly but can't provide any advice without more info.

itzg avatar Apr 12 '24 15:04 itzg

I am supprised with such quick response. What info do you need? I`ve been trying to run with this command:

docker run -e EULA=TRUE -d -it -p 25565:25565 -v C:Minecraft_Java:/data itzg/minecraft-server

Now I`m gonna remove all the "t" and check if it works.

Tim2653 avatar Apr 12 '24 17:04 Tim2653

Specifying Windows absolute paths is always a little tricky. Make sure to use backslashes like shown in this answer

https://stackoverflow.com/a/72578357/121324

Better yet, I recommend switching to using a compose file to declare your container and then you can use simple, relative paths

https://docker-minecraft-server.readthedocs.io/en/latest/#using-docker-compose

itzg avatar Apr 12 '24 17:04 itzg

What does -t have to do with paths? I m confused. I see it now. I ll try changing. Can you change launch command after dowlanding file? If not, then i have tell how file is randomly called before I create it.

Tim2653 avatar Apr 12 '24 17:04 Tim2653

Something about the command line parsing is not liking your command. The colon from the Windows path without a backslash is likely the culprit.

itzg avatar Apr 12 '24 20:04 itzg

Does the fact, that Im running it on qnas change the way, that it works? When I run it on docker desktop it works, but on nas it doesnt.

Tim2653 avatar Apr 19 '24 19:04 Tim2653

No, it's Docker either way. What is the latest command you're trying on QNAP?

itzg avatar Apr 19 '24 19:04 itzg

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.

github-actions[bot] avatar May 20 '24 02:05 github-actions[bot]