Wow! Thank you for the quick response haha. Yep, that's exactly the issue. Thank you so much, I've opened the issue here.
Search Criteria
Package Details: papermc 1.21.1+b12-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/papermc.git (read-only, click to copy) |
---|---|
Package Base: | papermc |
Description: | Next generation of Minecraft server, compatible with Spigot plugins and offering uncompromising performance |
Upstream URL: | https://papermc.io/ |
Keywords: | alternative craftbukkit cuberite minecraft-server paperspigot spigot |
Licenses: | custom |
Conflicts: | papermc-git |
Submitter: | edh |
Maintainer: | edh |
Last Packager: | edh |
Votes: | 25 |
Popularity: | 0.30 |
First Submitted: | 2019-08-06 07:47 (UTC) |
Last Updated: | 2024-08-12 14:30 (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, java-openjdk-ea-binAUR, zulu-23-binAUR, jreAUR, jdkAUR, jdk21-jetbrains-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 (3)
elimin8 commented on 2021-09-13 21:00 (UTC)
edh commented on 2021-09-13 20:43 (UTC)
@x00010 Do you use the idle-server daemon to suspend the server if no user is active?
If so then this is most probably a bug in the management server. In this case I would ask you to file an issue at github to more easily track the issue.
elimin8 commented on 2021-09-13 20:37 (UTC) (edited on 2021-09-13 20:40 (UTC) by elimin8)
I've noticed a strange behavior with this package, sometimes when the server is starting up it seems to attempt to run a command, particularly list, which causes the following error:
[21:28:08 INFO]: Reloading ResourceManager: Default, bukkit, afk display v1.1.0.zip, armor statues v2.8.1.zip, chunk loaders v1.0.1.zip, custom nether portals v2.3.2.zip, fast leaf decay v2.0.3.zip, multiplayer sleep v2.4.3.zip, player head drops v1.1.0.zip, unlock all recipes v2.0.0.zip
list
[21:28:16 INFO]: Loaded 7 recipes
[21:28:23 INFO]: Starting minecraft server version 1.17.1
[21:28:23 INFO]: Loading properties
[21:28:23 INFO]: This server is running Paper version git-Paper-243 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 20903fc)
> lis[21:28:24 ERROR]: Caught previously unhandled exception :
java.lang.NullPointerException: Cannot invoke "org.bukkit.command.CommandSender.hasPermission(String)" because the return value of "net.minecraft.commands.CommandListenerWrapper.getBukkitSender()" is null
at net.minecraft.commands.CommandDispatcher.lambda$new$0(CommandDispatcher.java:210) ~[patched_1.17.1.jar:git-Paper-243]
at com.mojang.brigadier.tree.CommandNode.canUse(CommandNode.java:78) ~[patched_1.17.1.jar:git-Paper-243]
at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:358) ~[patched_1.17.1.jar:git-Paper-243]
at com.mojang.brigadier.CommandDispatcher.parse(CommandDispatcher.java:348) ~[patched_1.17.1.jar:git-Paper-243]
at io.papermc.paper.console.BrigadierCommandHighlighter.highlight(BrigadierCommandHighlighter.java:28) ~[patched_1.17.1.jar:git-Paper-243]
at org.jline.reader.impl.LineReaderImpl.getHighlightedBuffer(LineReaderImpl.java:3818) ~[patched_1.17.1.jar:git-Paper-243]
at org.jline.reader.impl.LineReaderImpl.getDisplayedBufferWithPrompts(LineReaderImpl.java:3800) ~[patched_1.17.1.jar:git-Paper-243]
at org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3700) ~[patched_1.17.1.jar:git-Paper-243]
at org.jline.reader.impl.LineReaderImpl.doCleanup(LineReaderImpl.java:2427) ~[patched_1.17.1.jar:git-Paper-243]
at org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2419) ~[patched_1.17.1.jar:git-Paper-243]
at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:648) ~[patched_1.17.1.jar:git-Paper-243]
at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:418) ~[patched_1.17.1.jar:git-Paper-243]
at net.minecrell.terminalconsole.SimpleTerminalConsole.readCommands(SimpleTerminalConsole.java:158) ~[patched_1.17.1.jar:git-Paper-243]
at net.minecrell.terminalconsole.SimpleTerminalConsole.start(SimpleTerminalConsole.java:141) ~[patched_1.17.1.jar:git-Paper-243]
at net.minecraft.server.dedicated.DedicatedServer$1.run(DedicatedServer.java:113) ~[patched_1.17.1.jar:git-Paper-243]
I am then only able to shutdown the server by pressing ctrl+a and typing :kill-session. This behavior is extremely strange and I'm not too sure what's causing it, maybe the papermc script? Server was started via
papermc start
However, I have noticed that if I open the console with
papermc console
very soon after starting the server, the error does not occur and the server starts as normal. I have already attempted removing the datapacks loaded and the behavior was the same.
edh commented on 2021-09-02 09:57 (UTC)
Thanks for the comments @electronicboy and @Zalgo . I updated to v2 of the API.
electronicboy commented on 2021-09-02 09:21 (UTC)
Hey,
Sorry, you emailed me a while ago and basically, I ended up losing it and got distracted;
https://papermc.io/api/docs/ - The documentation for the API exists here, it makes it easy to pull jars off our services and is easily queriable, commonly people just use jq
in order to parse the API given that it's just a json endpoint, makes it easy to work out latest version, latest build, within a script; Would mean that scripts can easily be created which don't tie to the MC version, and can permit people to update builds
The v1 API has been deprecated for coming up to a year and is scheduled to be sunset near the end of November, marking a year of it's deprecation
Zalgo commented on 2021-09-02 09:17 (UTC)
The version of the API this PKGBUILD uses to download builds will stop working on Sept 25 of this year due to it being deprecated, just a heads up
edh commented on 2021-07-29 21:18 (UTC)
@sflor hmm, tmux exiting immediately does not necessarily mean the server can not. Starting tmux plainly is different to starting tmux with a command. In my understanding of the issue, there should be no need for a default-command. Having said that, tmux should of course work normally, i.e. start without exiting.
I am a little confused what you mean by having configured zsh as default shell. Surely you didn't set the zsh as shell for papermc
, right?
Finally, to reiterate once again: Please try to reproduce the error in a clean chroot!
sflor commented on 2021-07-29 07:52 (UTC)
Sorry if my comment came off as rude, I just didn't have much time to do more testing yesterday.
The issue is that tmux run as papermc user exits immediately. It doesn't matter what arguments I provide or don't.
[papermc@midori sf]$ tmux
[exited]
I fixed this by creating /etc/tmux.conf
with the following content:
set-option -g default-shell "/bin/bash"
set-option -g default-command "bash -l"
Maybe it's related to me having zsh as default?
edh commented on 2021-07-28 19:13 (UTC) (edited on 2021-07-28 19:13 (UTC) by edh)
@sflor
The line is supposed to start the server in the background, i.e. it is not supposed to return anything. If you strip the -d
from the argument it will run in the foreground (see man tmux).
Please be more verbose in your description of the error. A 1-bit binary statement (failing/not failing) contains very little information:
- How exactly is it failing?
- Do you mean that the return value is non-zero?
- What happens if you modify the command as outlined in my previous comment?
- Did you attempt to perform the steps from the command individually, i.e. switch user -> spawn tmux -> run papermc?
- Did you check for the EULA/papermc logs (if any)?
- Did you check again in a clean chroot?
sflor commented on 2021-07-28 17:04 (UTC)
I can create a tmux session on its own just fine and run the server java -jar papermc_server.jar. Everything is working.
Your command, however, does nothing for me. It just fails without printing any error.
Pinned Comments
edh commented on 2019-09-03 10:54 (UTC) (edited on 2019-10-22 09:52 (UTC) by edh)
Unfortunately, upstream does not really have proper releases but instead points to build-versions of the software. Note, I will not push every new build of the package to the AUR but I will update the package upon new minecraft releases, e.g. for 1.14.4 to 1.14.5.