Package Details: minecraft-server 1.21.3-1

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)

Required by (0)

Sources (2)

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

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 37 Next › Last »

acoccimi commented on 2021-12-02 08:12 (UTC)

When backing up a running server with minecraftd-backup, I noticed that the tar command had output "file changed as we read it". This suggests that files are being modified by the running server during the backup, and I'm a bit concerned that this would result in corruption when the backup is restored.

Would it be possible for the script to do save-off and save-all prior to doing the backup, and then do save-on afterward?

edh commented on 2021-11-10 10:59 (UTC)

@Xarius No, the backup logic should not have changed. Note, triggering new backups is purely a systemd thing and the configuration is exclusively handled by systemd timers. As long as you configure them in /etc and not in /usr/lib/ your changes will not be overridden by an update.

Xarius commented on 2021-11-10 00:25 (UTC)

Did something change with how backups are handled recently? I had them set to be hourly, and they reverted to being daily after the last update. But, now when I try to enable the backup system service, it claims it doesn't exist? Highly likely I'm just forgetting something simple here.

edh commented on 2021-10-18 16:00 (UTC)

@DragonX256 hmm I changed the login shell about a year ago to /bin/bash in the corresponding .sysusers file. The commit is from 3 October 2020 11:48 UTC+2 to be precise. However, I have to admit I forgot why I made this change.

You may safely edit /etc/passwd and adapt the shell. The sysusers entry should already be correct.

DragonX256 commented on 2021-10-18 15:51 (UTC)

Well okay, I had to delete package and minecraft user and reinstall package again to let systemd correctly create user with proper uid and gid. Issue is resolved to me...

DragonX256 commented on 2021-10-18 15:42 (UTC) (edited on 2021-10-18 15:43 (UTC) by DragonX256)

Okay, it's definitely odd why minecraft user gets nologin shell on my installation. I'll will look into that deeply... Maybe I just need to delete user.

DragonX256 commented on 2021-10-18 15:33 (UTC)

@edh I changed minecraft user shell from /usr/bin/nologin to /bin/bash and it started working...

edh commented on 2021-10-18 14:21 (UTC)

@DragonX256 Please try to produce a minimal example e.g. in a clean container.

First of all please verify that the minecraft server starts if you execute the necessary java commands from within a shell as the minecraft user. Second, please validate that your tmux setup is working, i.e. that you can spawn a session as the minecraft user. If both work then the management script should also work.

DragonX256 commented on 2021-10-18 14:14 (UTC)

@rvolvrwest It never comes to starting the server. Some kind of problem with tmux. I use it often, but this problem occurs even if tmux not running.