Closed blueyshark closed 1 year ago
Many thanks for your report. Let us try to replicate.
In your install output, is there a timeout shown when PaperMC is started and waited for config files to appear?
Hi @MichaIng thanks much for the reply. How could I find that info? Is there a log or something to that effect?
Usually it should have been shown on the SSH terminal if you would have scrolled above the blue error box
ok! I will try again and send anything I see.
If possible you could try to copy/paste the output directly from SSH terminal. Usually there is no need to do screen prints π
@Joulinar @MichaIng Thanks again for your help. Here is the output of my latest execution:
DietPi-Software
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Step: Installing PaperMC: Highly optimised Minecraft server with plugins, written in Java
[ OK ] DietPi-Software | cd /tmp/DietPi-Software
[ OK ] DietPi-Software | curl -sSfL https://papermc.io/api/v2/projects/paper/versions/1.19.1/builds/109/downloads/paper-1.19.1-109.jar -o paper-1.19.1-109.jar
[ OK ] DietPi-Software | mkdir -p /opt/papermc
[ OK ] DietPi-Software | mv paper-1.19.1-109.jar /opt/papermc/paperclip.jar
[ OK ] DietPi-Software | mkdir /mnt/dietpi_userdata/papermc
[ OK ] DietPi-Software | eval echo "eula=true" /mnt/dietpi_userdata/papermc/eula.txt
[ OK ] DietPi-Software | Verifying user "papermc" to run PaperMC
[ OK ] DietPi-Software | useradd -rMU -d /mnt/dietpi_userdata/papermc -s /usr/sbin/nologin papermc
[ OK ] DietPi-Software | cd /tmp/DietPi-Software
[ OK ] DietPi-Software | Checking URL: https://github.com/Tiiffi/mcrcon/archive/master.tar.gz
[ INFO ] DietPi-Software | G_THREAD_START_0 | curl -sSfL https://github.com/Tiiffi/mcrcon/archive/master.tar.gz -o master.tar.gz
[ INFO ] DietPi-Software | APT install for: gcc libc6-dev, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
gcc is already the newest version (4:10.2.1-1+rpi1).
libc6-dev is already the newest version (2.31-13+rpt2+rpi1+deb11u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[ OK ] DietPi-Software | APT install for: gcc libc6-dev
[ OK ] DietPi-Software | G_THREAD: All threads finished
[ OK ] DietPi-Software | tar xf master.tar.gz
[ OK ] DietPi-Software | rm master.tar.gz
[ OK ] DietPi-Software | gcc -g0 -O3 mcrcon-master/mcrcon.c -o /usr/local/bin/mcrcon
[ OK ] DietPi-Software | rm -R mcrcon-master
[ OK ] DietPi-Software | strip --remove-section=.comment --remove-section=.note /usr/local/bin/mcrcon
[ OK ] DietPi-Software | rm -Rf /mnt/dietpi_userdata/papermc/logs
[ OK ] DietPi-Software | ln -s /var/log/papermc /mnt/dietpi_userdata/papermc/logs
[ OK ] DietPi-Software | chown -R papermc:papermc /mnt/dietpi_userdata/papermc
[ OK ] DietPi-Software | systemctl daemon-reload
[ OK ] DietPi-Software | Starting PaperMC to pre-create config file in max 1800 seconds
Journal file /var/log/journal/a3590e13accc44f28e9b8c28320e2d89/user-1000.journal is truncated, ignoring file.
-- Journal begins at Thu 2022-08-04 12:09:24 BST. --
Aug 04 12:15:05 MMSERVER01 systemd[1]: papermc.service: Failed with result 'exit-code'.
Aug 04 12:37:09 MMSERVER01 systemd[1]: Started PaperMC (DietPi).
Aug 04 12:37:09 MMSERVER01 PaperMC[7161]: Minecraft 1.18 requires running the server with Java 17 or above. Download Java 17 (or above) from https://adoptium.net/
Aug 04 12:37:09 MMSERVER01 systemd[1]: papermc.service: Main process exited, code=exited, status=1/FAILURE
Aug 04 12:37:09 MMSERVER01 systemd[1]: papermc.service: Failed with result 'exit-code'.
Aug 04 12:37:50 MMSERVER01 systemd[1]: Started PaperMC (DietPi).
Aug 04 12:37:51 MMSERVER01 PaperMC[7797]: Minecraft 1.18 requires running the server with Java 17 or above. Download Java 17 (or above) from https://adoptium.net/
Aug 04 12:37:51 MMSERVER01 systemd[1]: papermc.service: Main process exited, code=exited, status=1/FAILURE
Aug 04 12:37:51 MMSERVER01 systemd[1]: papermc.service: Failed with result 'exit-code'.
Aug 04 16:56:50 MMSERVER01 systemd[1]: Started PaperMC (DietPi).
Aug 04 16:56:50 MMSERVER01 PaperMC[16155]: Minecraft 1.18 requires running the server with Java 17 or above. Download Java 17 (or above) from https://adoptium.net/
Aug 04 16:56:50 MMSERVER01 systemd[1]: papermc.service: Main process exited, code=exited, status=1/FAILURE
Aug 04 16:56:50 MMSERVER01 systemd[1]: papermc.service: Failed with result 'exit-code'.
[ OK ] DietPi-Software | systemctl stop papermc
[FAILED] DietPi-Software | Waiting for PaperMC config file failed, skipping pre-configuration
Thanks again for any help.
Hmm the service is not starting at all. Can you share following
java -version
clearly a java version that's too low - is that something I should be maintaining, or is that something covered by dietpi-update
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Raspbian-1deb11u1)
OpenJDK Server VM (build 11.0.16+8-post-Raspbian-1deb11u1, mixed mode)
Mytherious is that Bullseye ships Java v17 which is also installed as dependency. Probably the older Java version is forced as default runtime by some script you or some installer placed. Can you check:
ls -l "$(which java)"
That is mysterious; I have only installed via dietpi-software
Here is the output for ls -l "$(which java)"
lrwxrwxrwx 1 root root 22 Jul 1 17:38 /usr/bin/java -> /etc/alternatives/java
Ah another loop:
readlink -f /etc/alternatives/java
And
dpkg -l | grep openjdk
I appreciate this help, both of you.
/usr/lib/jvm/java-11-openjdk-armhf/bin/java
and
ii openjdk-11-jre-headless:armhf 11.0.16+8-1~deb11u1 armhf OpenJDK Java runtime, using Hotspot JIT (headless)
I don't know if this is any help, but I also have installed via dietpi-software
0 OpenSSH Client: Feature-rich SSH, SFTP and SCP client
7 FFmpeg: Audio & video codec libary and programs
9 Node.js: JavaScript runtime environment
16 Build-Essential: GNU C/C++ compiler, development libraries and headers
17 Git: Clone and manage Git repositories locally
46 qBittorrent: BitTorrent server with web interface (C++)
50 Syncthing: Backup and sync server with web interface
85 Nginx: Lightweight webserver
87 SQLite: Persistent single-file database system
88 MariaDB: Persistent cached file-per-table database server
89 PHP: Hypertext Preprocessor for dynamic web content
90 phpMyAdmin: Optional MariaDB web interface admin tools
93 Pi-hole: block adverts for any device on your network
94 ProFTPD: Efficient, lightweight FTP server
103 DietPi-RAMlog: Makes /var/log a RAM disk, preserves file structure on reboot
105 OpenSSH Server: Feature-rich SSH server with SFTP and SCP support
130 Python 3: Runtime system, pip package installer and development headers
178 Jellyfin: FOSS web interface media streaming server
182 Unbound: validating, recursive, caching DNS resolver
188 Go: Runtime environment and package installer
195 youtube-dl: Download videos from YouTube and other video sites
196 Java JRE: OpenJDK Runtime Environment
ii openjdk-11-jre-headless:armhf 11.0.16+8-1~deb11u1 armhf OpenJDK Java runtime, using Hotspot JIT (headless)
This was the only output line? Do you have the full PaperMC install output? Java (17) should have been installed in the same run before PaperMC.
Yes, the only output line. edit: i'll try the papermc install again, and paste the whole dialogue soon.
@MichaIng hi there, here is the whole output, it looks like it never checked for java 17?
edit: I should add that I am running a golang bot that is started by the ttfm_bot01_shscpt
service. But shouldn't effect Java at all?
Ah, you're on a Raspbian-based system (ARMv6 image) and Raspbian has no Java 17 builds, hence we install Java 11 there. So PaperMC actually shouldn't be available on theses systems, but we missed to disable it correctly.
However, since you have it installed already, let's try to install Java 17 from the Debian repository manually:
cd /tmp
curl -sSfL 'https://deb.debian.org/debian/pool/main/o/openjdk-17/openjdk-17-jre-headless_17.0.3+7-1~deb11u1_armhf.deb' -o package.deb
apt install ./package.deb
rm package.deb
java -version
If this works well, we could host them on our server to be pulled on ARMv7/8 capable RPi models with ARMv6 (Raspbian-based) image, so PaperMC can work.
I installed Java 17 manually as you suggested @MichaIng :
root@MMSERVER01:/tmp# java -version
openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment (build 17.0.3+7-Debian-1deb11u1)
OpenJDK Server VM (build 17.0.3+7-Debian-1deb11u1, mixed mode, sharing)
I will now go ahead with trying to install paperMC again :crossed_fingers:
Jep, that should work.
A little confusing, as it still came up with Java 17 warnings, but has worked. Thanks so much for all your assistance, proving once again why I like DietPi so much!
Could you share that warnings pls
@Joulinar Hi there, very strange, I actually reinstalled as I removed it for some minecraft based issues (not to do with DietPi) Here is the output, this time, NO WARNINGS. Haha, Curious.
Okay great. You could btw now remove the old Java 11:
apt autopurge openjdk-11-jre-headless
Java 17 builds are now there: http://raspbian.raspberrypi.org/raspbian/pool/main/o/openjdk-17/ Ah and additionally in RPi repo, both same builds it seems: https://archive.raspberrypi.org/debian/pool/main/o/openjdk-17/
Interesting is openjdk-17-jre-zero, which generally can run on ARMv6. Currently testing it. The same for Java 11 (Buster) is currently missing. I asked whether this can be added: https://bugs.launchpad.net/raspbian/+bug/1998136
Woah is this slow, tested with Java 17 Zero JVM on RPi Zero W:
INFO --- org.airsonic.player.Application : Started Application in 4899.567 seconds (JVM running for 5017.986)
~1.5h for service startup. Probably also because of limited heap size, of because the BCM2708 is simply too weak.
Creating a bug report/issue
Required Information
G_DIETPI_VERSION_CORE=8 G_DIETPI_VERSION_SUB=7 G_DIETPI_VERSION_RC=1 G_GITBRANCH='master' G_GITOWNER='MichaIng'
Additional Information (if applicable)
Steps to reproduce
Please verify the existence of the file $3 /mnt/dietpi_userdata/papermc/server.properties
Retry with proper permissions or apply the setting manually: enable-rcon=true