@niehmann: The solution is right there. Somehow you changed the access rights of /srv/minecraft/logs so that your minecraft user may not access the directory. By default that dir has 755 and every file below it has 644. All owned by minecraft:minecraft by default. user and group may need to be changed if you deviated from the default.
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.119461 |
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 .. 14 15 16 17 18 19 20 21 22 23 24 .. 37 Next › Last »
Chais commented on 2014-11-30 14:09 (UTC)
nlehmann commented on 2014-11-28 21:34 (UTC)
When I run systemctl start minecraftd the proccess start but it terminated after a few seconds.
When I tried to run the minecraft server directly from the console, not screen, as user minecraft it throws the following exception
Cannot access RandomAccessFile {}) java.io.FileNotFoundException: logs/latest.log (Permission denied)
Chais commented on 2014-11-27 14:52 (UTC)
Fixed. That's not actually new to this version, though. Guess nobody actually puts quotes in their world names. Well spotted, though. Thanks.
sylverpyro commented on 2014-11-27 14:32 (UTC)
There appears to be a bug in the minecraftctl script in this package. Worlds that have space characters " " in their names are not handled correctly by the mc_backup() function inside mincraftctl due to a set of missing \" characters:
"tar -h -C \"$_SRVDIR\" -cf \"$BACKUP_FILE\" $WORLD"
Should be:
"tar -h -C \"$_SRVDIR\" -cf \"$BACKUP_FILE\" \"$WORLD\""
The same problem exists in the tar command for the "service" backup as well:
"tar -h -C \"$_SRVDIR\" -rf \"$BACKUP_FILE\" $SERVICE"
Should be:
"tar -h -C \"$_SRVDIR\" -rf \"$BACKUP_FILE\" \"$SERVICE\""
Chais commented on 2014-10-22 20:00 (UTC)
Nice catch. I've also finally come around to put the PKGBUILD and all source files except for the minecraft_server.jar on github. https://github.com/Chais/minecraft-server-pkgbuild
Hellrespawn commented on 2014-10-22 19:44 (UTC)
In conf.minecraft, you can change $MCUSER, but minecraftd has "su minecraft" hardcoded.
namru commented on 2014-09-12 20:28 (UTC)
hi Chais, sry but now i can't reproduce the error. after remove of jre7-openjdk minecraft are startable again. i don't know why i will try to reboot the server within the next days if there are no active users :) and try again.
sry and thanks for your time
Chais commented on 2014-09-12 20:06 (UTC)
@namru: As I expected the server started just fine without jre8-openjdk installed. There's nothing in this package that the server might need. Same for the jre7 equivalent. Could you paste the actual error messages somewhere?
namru commented on 2014-09-12 19:43 (UTC)
Hi could you please switch java dependencie from java-runtime-headless to java-runtime. Without that the server doesn't start on my server.
Thanks
ejona86 commented on 2014-09-06 17:50 (UTC)
There is no need to create the log symbolic link and "touch /srv/minecraft/server.log" in minecraft-server.install.
Instead, you just need this in package():
install -d "$pkgdir/var/log"
ln -s /srv/minecraft/server.log "$pkgdir/var/log/minecraft.log"
Then /var/log/minecraft.log is properly managed by the package manager.
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