DragonX265 does the Minecraft log give you any idea why?
Search Criteria
Package Details: minecraft-server 1.21.3-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/minecraft-server.git (read-only, click to copy) |
---|---|
Package Base: | minecraft-server |
Description: | Minecraft server unit files, script, and jar |
Upstream URL: | https://minecraft.net/ |
Keywords: | bash minecraft official script server |
Licenses: | custom |
Conflicts: | minecraft-canary, minecraft-server-systemd |
Submitter: | sorcix |
Maintainer: | edh |
Last Packager: | edh |
Votes: | 164 |
Popularity: | 0.121899 |
First Submitted: | 2010-11-29 15:52 (UTC) |
Last Updated: | 2024-10-23 19:51 (UTC) |
Dependencies (8)
- awk (gawk-gitAUR, busybox-coreutilsAUR, gawk)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- java-runtime-headless (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdg-headlessAUR, jre16-openjdk-headlessAUR, jre14-openjdk-headlessAUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdk-headlessAUR, amazon-corretto-19-binAUR, liberica-jre-11-full-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jre-openj9-headlessAUR, jre12-openjdk-headlessAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdk-headlessAUR, jre15-openjdk-headlessAUR, jdk8-openj9-binAUR, jre-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jre19-openjdk-headlessAUR, jre-openjdk-wakefield-headlessAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, jdk21-openj9-binAUR, jreAUR, jdkAUR, zing-21-binAUR, zing-8-binAUR, jre17AUR, jdk21-jetbrains-binAUR, java-openjdk-binAUR, jre-jetbrainsAUR, jre21-zulu-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jre17-zulu-binAUR, jdk21-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk11-temurinAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk17-temurinAUR, zulu-21-binAUR, jdk-temurinAUR, jre8AUR, jdk8AUR, zulu-17-fx-binAUR, jdk8-perfAUR, java-openjdk-ea-binAUR, zulu-jre-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jdk17-openj9-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre-openjdk-headless, jre11-openjdk, jre11-openjdk-headless, jre17-openjdk, jre17-openjdk-headless, jre21-openjdk, jre21-openjdk-headless, jre8-openjdk-headless)
- sed (busybox-coreutilsAUR, sed-gitAUR)
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR)
- tmux (tmux-tcl-gitAUR, tmux-fullwidth-backspaceAUR, tmux-xdg-gitAUR, tmux-sixel-gitAUR, tmux-gitAUR)
- netcat (nmap-netcatAUR, openbsd-netcat-gitAUR, gnu-netcat-svnAUR, gnu-netcat, openbsd-netcat) (optional) – required in order to suspend an idle server
- tar (tar-gitAUR, busybox-coreutilsAUR) (optional) – needed in order to create world backups
Required by (0)
Sources (2)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 .. 37 Next › Last »
rvolvrwest commented on 2021-10-18 14:08 (UTC)
DragonX256 commented on 2021-10-18 14:03 (UTC)
Cannot start server:
dx37@raspi4 ~ % minecraftd start
Starting server...no server running on /tmp/tmux-973/minecraft
edh commented on 2021-10-03 18:38 (UTC)
@InFerNo
The list displayed in the AUR seems to not take version requirements into account. pacman
will of course check for version requirements upon installation though.
InFerNo commented on 2021-10-03 18:33 (UTC)
Hi, @edh, yes starting the server manually led me to the error, but that issue is resolved.
I think I am misunderstanding the dependencies on this package because java-runtime-headless>=16 has a list of possible packages to satisfy the dependency. However jre8-openjdk-headless
is listed but does not work with the latest version of Minecraft (which is what I was using). I don't know how the large list with possible dependency candidates above is composed, perhaps this is out of your control.
edh commented on 2021-10-03 16:40 (UTC)
@InFerNo
Yes, sorry, the log file would not have been conclusive. However, starting the server by hand would have told you as much. Or in other words, I don't think one can call this an error in the package.
Btw. the java dependency has long been java-runtime-headless>=16
.
InFerNo commented on 2021-10-03 12:21 (UTC)
@edh, the logfile gets written by Minecraft, but if Minecraft can't start then it doesn't write anything to the logfile(s). It was the first thing I checked.
The package dependencies need to be updated, because versions lower than 16 will no longer work. At the very least they should be checked.
edh commented on 2021-10-02 08:23 (UTC)
@InFerNo
The log file of your server could have probably told you so from the beginning.
Both ctrl+a and ctrl+b work so not much should have changed for the user. I updated the comment though to point to tmux and not screen.
InFerNo commented on 2021-10-01 12:23 (UTC) (edited on 2021-10-01 13:04 (UTC) by InFerNo)
edit: I fixed it by installing the latest openjdk (jre-openjdk-headless
) version and setting it as the default: sudo archlinux-java set java-16-openjdk
The version that no longer works is jre8-openjdk-headless
.
@edh, unfortunately running these commands made no change. The output was:
[user@host minecraft-server-old]$ sudo -u minecraft screen -S minecraft -rx
[sudo] password for user:
There is no screen to be attached matching minecraft.
The same for idle_server_minecraft
. BTW you should update the pinned comment too.
edit: I believe the issue is related to Java:
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Version 60 = Java 16
edh commented on 2021-10-01 09:02 (UTC)
@InFerNo
Very good point! I forgot to include the install file in the PKGBUILD :(
The message should have been:
The management script switched from GNU screen to tmux.
Manual intervention is needed to close the previous GNU screen sessions:
Use `sudo -u minecraft screen -S minecraft -rx` to attach to the minecraft session and stop it.
Do the same for the `idle_server_minecraft` session if one is running.
Pinned Comments
edh commented on 2016-06-18 18:24 (UTC) (edited on 2021-10-02 08:19 (UTC) by edh)
To get an overview of the available options provided by the management script, be sure to have a look at the help page or read the according section on the ArchWiki article [1].
You can quit the console without shutting down the server by press ctrl+a d (first ctrl+a and after releasing the buttons press d; ctrl+b also works). This will detach your input from the server console. The attaching and detaching is done with tmux (previously GNU screen) since it lets you view and type into the console, send single commands to it and keep it alive without a connected user. Take a look at the the command overview at the ArchWiki [2] to get a feel for its power. (@carmelo12341)
[1] https://wiki.archlinux.org/title/Minecraft#Setup [2] https://wiki.archlinux.org/title/Tmux