@InFerNo The management script switched from GNU screen to tmux in the meantime. Did you follow the instructions that were printed after the upgrade?
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.070275 |
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, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, zing-21-binAUR, zing-8-binAUR, jre17AUR, java-openjdk-binAUR, 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, 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, jre-jetbrainsAUR, jre-openjdk-wakefield-headlessAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk21-openj9-binAUR, zulu-23-binAUR, jreAUR, jdkAUR, jdk21-jetbrains-binAUR, java-openjdk-ea-binAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-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-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 9 .. 37 Next › Last »
edh commented on 2021-09-29 14:14 (UTC)
InFerNo commented on 2021-09-29 13:19 (UTC)
I keep getting minecraftd[133901]: The corresponding tmux session for minecraft was already dead.
How can I fix this? I upgraded from 1.16.5.
bderrly commented on 2021-09-07 04:37 (UTC) (edited on 2021-09-07 04:58 (UTC) by bderrly)
If you would like to use minecraftd console
without entering your password to both enter and exit the console you need to add a line to your /etc/sudoers file.
<user> ALL=(minecraft) NOPASSWD: ALL
You should understand the potential security issues here. This will allow <user> to run any command on your system as the minecraft user. If the user only has permission on the file system for files related to the minecraft server this is probably fine.
edh commented on 2021-06-27 08:04 (UTC) (edited on 2021-06-27 09:55 (UTC) by edh)
@auricom
sudo
is needed by the minecraft server management script to run everything as the minecraft user. While one could replace sudo
calls with simple su
ones, using sudo
allows the user to configure rules for who can control the minecraft server on a system.
EDIT: Using the sticky bit and doing the permission handling oneself is disallowed by the kernel for good reasons for all interpreted executables.
auricom commented on 2021-06-27 07:33 (UTC)
Is the Sudo dependency really necessary or could it be removed? A program calling sudo directly is dumb.
edh commented on 2021-06-22 19:10 (UTC)
@Refutationalist Sorry if my question was phrased poorly. I was specifically asking about objective arguments in favor of GNU screen, i.e. why a new user should prefer GNU screen over tmux for a minecraft server management script.
The severe bug I mentioned was brought up in this comment section by Xarius on 2021-02-11 17:49 in https://aur.archlinux.org/packages/minecraft-server/?O=20&PP=10#comment-791132 . It is tracked under CVE-2021-26937 .
Tmux has a more active community and using it in scripts feels way more natural. Thus, while in theory they both do roughly the same thing, tmux feels much more flexible to me. Actually I long toyed with the idea of rewriting every GNU screen call to a tmux call myself (see https://aur.archlinux.org/packages/minecraft-server/?O=20&PP=10#comment-791132 ) but have not had the time to do so just yet.
@Static_Rocket Would you be willing to submit a merge request on github for this (https://github.com/Edenhofer/abs/blob/master/minecraft-server/minecraftd.sh)? I would be more than happy to help with any remaining issues.
Static_Rocket commented on 2021-06-22 12:13 (UTC)
@Refutationalist For starters, this bug and it's workaround are documented explicitly in minecraftd.sh , but I'm not sure if it's still an issue. https://serverfault.com/questions/116775/sudo-as-different-user-and-running-screen
Refutationalist commented on 2021-06-22 10:16 (UTC)
@edh: A very strong preference for it over tmux, and it does the job. Could you elucidate on this bug you're talking about?
edh commented on 2021-06-22 07:46 (UTC)
@Static_Rocket Awesome! I would be more than happy to merge your changes into this package if you would be interested in that. I think tmux should be preferred over GNU screen considering its more active development and the recent severe bug in GNU screen.
@Refutationalist Can you elaborate a little as to why you would prefer to use GNU screen for this package?
Static_Rocket commented on 2021-06-22 05:08 (UTC) (edited on 2021-06-22 05:48 (UTC) by Static_Rocket)
It would require about another day of tweaking but perhaps. It took a bit, but I attempted to replace the calls to screen with the closest equivalent tmux has to offer. I was hoping to make these modifications as patch friendly as possible. It would be simple to check what a user has installed and roll with whatever's available but it may be a little weird detecting if someone already has a tmux/screen session running when they have both tmux and screen installed.
But I guess that really doesn't matter. It could just default to screen if both screen and tmux are installed.
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