Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with starting server #2773

Closed
Tim2653 opened this issue Apr 12, 2024 · 8 comments
Closed

Problem with starting server #2773

Tim2653 opened this issue Apr 12, 2024 · 8 comments
Labels
discussion status/stale No recently activity has been seen and will be closed soon.

Comments

@Tim2653
Copy link

Tim2653 commented Apr 12, 2024

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?

@itzg
Copy link
Owner

itzg commented Apr 12, 2024

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 itzg transferred this issue from itzg/itzg Apr 12, 2024
@Tim2653
Copy link
Author

Tim2653 commented Apr 12, 2024

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.

@itzg
Copy link
Owner

itzg commented Apr 12, 2024

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

@Tim2653
Copy link
Author

Tim2653 commented Apr 12, 2024

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.

@itzg
Copy link
Owner

itzg commented Apr 12, 2024

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

@Tim2653
Copy link
Author

Tim2653 commented Apr 19, 2024

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.

@itzg
Copy link
Owner

itzg commented Apr 19, 2024

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

Copy link

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 github-actions bot added the status/stale No recently activity has been seen and will be closed soon. label May 20, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion status/stale No recently activity has been seen and will be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants