MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.86k stars 495 forks source link

DietPi-Software | PaperMC: Handle missing Java 17 packages on Raspbian #5668

Closed blueyshark closed 1 year ago

blueyshark commented 2 years ago

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

  1. After various EULA, plugin options, two dialogues appear (see linked screencaps)
    
    [FAILED] File does not exist or cannot be written to by current user

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



#### Expected behaviour
<!-- What SHOULD be happening? -->
- PaperMC installs normally.

#### Actual behaviour
<!-- What IS happening? -->
- After various EULA, plugin options, two dialogues appear (see linked [screencaps](https://photos.app.goo.gl/chzWRZyU4698qQKF6)) - it seems like a partial install, as the PaperMC data folder is empty, barring a "EULA" folder (see linked [screencaps](https://photos.app.goo.gl/chzWRZyU4698qQKF6))

Thanks. Cuberite seems very crash prone, so wanted to try PaperMC.
MichaIng commented 2 years 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?

blueyshark commented 2 years ago

Hi @MichaIng thanks much for the reply. How could I find that info? Is there a log or something to that effect?

Joulinar commented 2 years ago

Usually it should have been shown on the SSH terminal if you would have scrolled above the blue error box

blueyshark commented 2 years ago

ok! I will try again and send anything I see.

Joulinar commented 2 years ago

If possible you could try to copy/paste the output directly from SSH terminal. Usually there is no need to do screen prints πŸ™‚

blueyshark commented 2 years ago

@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.

Joulinar commented 2 years ago

Hmm the service is not starting at all. Can you share following

java -version

blueyshark commented 2 years ago

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)
MichaIng commented 2 years ago

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)"
blueyshark commented 2 years ago

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
MichaIng commented 2 years ago

Ah another loop:

readlink -f /etc/alternatives/java

And

dpkg -l | grep openjdk
blueyshark commented 2 years ago

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)
blueyshark commented 2 years ago

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
MichaIng commented 2 years ago

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.

blueyshark commented 2 years ago

Yes, the only output line. edit: i'll try the papermc install again, and paste the whole dialogue soon.

blueyshark commented 2 years ago

@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?

Logfile attached. Click to expand! ``` root@MMSERVER01:~# dietpi-software [ OK ] DietPi-Software | Initialised database [ OK ] DietPi-Software | Reading database [ OK ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata DietPi-Software ───────────────────────────────────────────────────── Step: Checking for conflicts and missing inputs DietPi-Software ───────────────────────────────────────────────────── Step: Checking for prerequisite software [ INFO ] DietPi-Software | Java JRE will be reinstalled [ OK ] DietPi-Software | Checking IPv4 network connectivity [ OK ] DietPi-Software | Checking DNS resolver [ OK ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin [ OK ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads [ OK ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads [ SUB1 ] DietPi-Services unmask [ OK ] DietPi-Services | unmask : proftpd [ OK ] DietPi-Services | unmask : mariadb [ OK ] DietPi-Services | unmask : php7.4-fpm [ OK ] DietPi-Services | unmask : lighttpd [ OK ] DietPi-Services | unmask : qbittorrent [ OK ] DietPi-Services | unmask : jellyfin [ OK ] DietPi-Services | unmask : syncthing [ OK ] DietPi-Services | unmask : cron [ OK ] DietPi-Services | unmask : ttfm_bot01_shscpt [ SUB1 ] DietPi-Services stop [ OK ] DietPi-Services | stop : ttfm_bot01_shscpt [ OK ] DietPi-Services | stop : cron [ OK ] DietPi-Services | stop : syncthing [ OK ] DietPi-Services | stop : jellyfin [ OK ] DietPi-Services | stop : qbittorrent [ OK ] DietPi-Services | stop : lighttpd [ OK ] DietPi-Services | stop : php7.4-fpm [ OK ] DietPi-Services | stop : mariadb [ OK ] DietPi-Services | stop : proftpd [ INFO ] DietPi-Software | APT update, please wait... Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 https://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://repo.jellyfin.org/debian bullseye InRelease Reading package lists... [ OK ] DietPi-Software | APT update DietPi-Software ───────────────────────────────────────────────────── Step: Installing Java JRE: OpenJDK Runtime Environment [ INFO ] DietPi-Software | APT install for: openjdk-11-jre-headless, please wait... Reading package lists... Building dependency tree... Reading state information... openjdk-11-jre-headless is already the newest version (11.0.16+8-1~deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [ OK ] DietPi-Software | APT install for: openjdk-11-jre-headless 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: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'. Aug 04 16:57:47 MMSERVER01 systemd[1]: Started PaperMC (DietPi). Aug 04 16:57:47 MMSERVER01 PaperMC[16780]: Minecraft 1.18 requires running the server with Java 17 or above. Download Java 17 (or above) from https://adoptium.net/ Aug 04 16:57:47 MMSERVER01 systemd[1]: papermc.service: Main process exited, code=exited, status=1/FAILURE Aug 04 16:57:47 MMSERVER01 systemd[1]: papermc.service: Failed with result 'exit-code'. Aug 04 20:59:18 MMSERVER01 systemd[1]: Started PaperMC (DietPi). Aug 04 20:59:18 MMSERVER01 PaperMC[1151]: Minecraft 1.18 requires running the server with Java 17 or above. Download Java 17 (or above) from https://adoptium.net/ Aug 04 20:59:18 MMSERVER01 systemd[1]: papermc.service: Main process exited, code=exited, status=1/FAILURE Aug 04 20:59:18 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 ```
MichaIng commented 2 years ago

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.

blueyshark commented 2 years ago

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:

MichaIng commented 2 years ago

Jep, that should work.

blueyshark commented 2 years ago

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!

Joulinar commented 2 years ago

Could you share that warnings pls

blueyshark commented 2 years ago

@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.

Logfile attached. Click to expand! ``` root@MMSERVER01:~# dietpi-software install 181 [ OK ] DietPi-Software | Initialised database [ OK ] DietPi-Software | Reading database DietPi-Software ───────────────────────────────────────────────────── Mode: Automated install [ OK ] DietPi-Software | Installing PaperMC: Highly optimised Minecraft server with plugins, written in Java [ OK ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata DietPi-Software ───────────────────────────────────────────────────── Step: Checking for conflicts and missing inputs DietPi-Software ───────────────────────────────────────────────────── Step: Checking for prerequisite software [ INFO ] DietPi-Software | Java JRE will be reinstalled [ OK ] DietPi-Software | Checking IPv4 network connectivity [ OK ] DietPi-Software | Checking DNS resolver [ OK ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin [ OK ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads [ OK ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads [ SUB1 ] DietPi-Services > unmask [ OK ] DietPi-Services | unmask : proftpd [ OK ] DietPi-Services | unmask : mariadb [ OK ] DietPi-Services | unmask : php7.4-fpm [ OK ] DietPi-Services | unmask : lighttpd [ OK ] DietPi-Services | unmask : qbittorrent [ OK ] DietPi-Services | unmask : jellyfin [ OK ] DietPi-Services | unmask : syncthing [ OK ] DietPi-Services | unmask : cuberite [ OK ] DietPi-Services | unmask : cron [ OK ] DietPi-Services | unmask : ttfm_bot01_shscpt [ SUB1 ] DietPi-Services > stop [ OK ] DietPi-Services | stop : ttfm_bot01_shscpt [ OK ] DietPi-Services | stop : cron [ OK ] DietPi-Services | stop : cuberite [ OK ] DietPi-Services | stop : syncthing [ OK ] DietPi-Services | stop : jellyfin [ OK ] DietPi-Services | stop : qbittorrent [ OK ] DietPi-Services | stop : lighttpd [ OK ] DietPi-Services | stop : php7.4-fpm [ OK ] DietPi-Services | stop : mariadb [ OK ] DietPi-Services | stop : proftpd [ INFO ] DietPi-Software | APT update, please wait... Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 https://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://repo.jellyfin.org/debian bullseye InRelease Reading package lists... [ OK ] DietPi-Software | APT update DietPi-Software ───────────────────────────────────────────────────── Step: Installing Java JRE: OpenJDK Runtime Environment [ INFO ] DietPi-Software | APT install for: openjdk-11-jre-headless, please wait... Reading package lists... Building dependency tree... Reading state information... openjdk-11-jre-headless is already the newest version (11.0.16+8-1~deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. [ OK ] DietPi-Software | APT install for: openjdk-11-jre-headless 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 1 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 23:04:59 BST. -- Aug 04 23:18:15 MMSERVER01 PaperMC[9064]: at net.minecraft.server.level.ChunkMap.a(ChunkMap.java:1739) ~[paper-1.19.1.jar:git-Paper-109] Aug 04 23:18:15 MMSERVER01 PaperMC[9064]: at net.minecraft.server.level.ServerLevel$2.writeData(ServerLevel.java:363) ~[?:?] Aug 04 23:18:15 MMSERVER01 PaperMC[9064]: at com.destroystokyo.paper.io.PaperFileIOThread$ChunkDataTask.run(PaperFileIOThread.java:556) ~[paper-1.19.1.jar:git-Paper-109] Aug 04 23:18:15 MMSERVER01 PaperMC[9064]: at com.destroystokyo.paper.io.QueueExecutorThread.pollTasks(QueueExecutorThread.java:118) ~[paper-1.19.1.jar:git-Paper-109] Aug 04 23:18:15 MMSERVER01 PaperMC[9064]: at com.destroystokyo.paper.io.QueueExecutorThread.run(QueueExecutorThread.java:51) ~[paper-1.19.1.jar:git-Paper-109] Aug 04 23:18:22 MMSERVER01 systemd[1]: papermc.service: Main process exited, code=exited, status=143/n/a Aug 04 23:18:22 MMSERVER01 systemd[1]: papermc.service: Failed with result 'exit-code'. Aug 04 23:18:22 MMSERVER01 systemd[1]: Stopped PaperMC (DietPi). Aug 04 23:18:22 MMSERVER01 systemd[1]: papermc.service: Consumed 55min 58.483s CPU time. Aug 04 23:27:20 MMSERVER01 systemd[1]: Started PaperMC (DietPi). Aug 04 23:27:20 MMSERVER01 systemd-journald[130]: [πŸ‘•] Suppressed 8649 messages from papermc.service Aug 04 23:27:20 MMSERVER01 PaperMC[20722]: Downloading mojang_1.19.1.jar Aug 04 23:29:02 MMSERVER01 PaperMC[20722]: Applying patches Aug 04 23:29:12 MMSERVER01 PaperMC[20722]: Starting org.bukkit.craftbukkit.Main Aug 04 23:29:13 MMSERVER01 PaperMC[20722]: System Info: Java 17 (OpenJDK Server VM 17.0.3+7-Debian-1deb11u1) Host: Linux 5.15.32-v7l+ (arm) Aug 04 23:29:13 MMSERVER01 PaperMC[20722]: Loading libraries, please wait... Aug 04 23:29:29 MMSERVER01 PaperMC[20722]: [23:29:29 INFO]: Building unoptimized datafixer Aug 04 23:29:34 MMSERVER01 PaperMC[20722]: [23:29:34 ERROR]: Failed to load properties from file: server.properties Aug 04 23:29:34 MMSERVER01 PaperMC[20722]: [23:29:34 INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' Aug 04 23:29:34 MMSERVER01 PaperMC[20722]: [23:29:34 INFO]: Found new data pack file/bukkit, loading it automatically Aug 04 23:29:43 MMSERVER01 PaperMC[20722]: [23:29:43 INFO]: Loaded 7 recipes Aug 04 23:29:50 MMSERVER01 PaperMC[20722]: [23:29:50 INFO]: Starting minecraft server version 1.19.1 Aug 04 23:29:50 MMSERVER01 PaperMC[20722]: [23:29:50 INFO]: Loading properties Aug 04 23:29:50 MMSERVER01 PaperMC[20722]: [23:29:50 INFO]: This server is running Paper version git-Paper-109 (MC: 1.19.1) (Implementing API version 1.19.1-R0.1-SNAPSHOT) (Git: 69950d5) Aug 04 23:29:50 MMSERVER01 PaperMC[20722]: [23:29:50 INFO]: Console input is disabled due to --noconsole command argument Aug 04 23:29:50 MMSERVER01 PaperMC[20722]: [23:29:50 INFO]: Server Ping Player Sample Count: 12 Aug 04 23:29:50 MMSERVER01 PaperMC[20722]: [23:29:50 INFO]: Using 4 threads for Netty based IO Aug 04 23:29:52 MMSERVER01 PaperMC[20722]: [23:29:52 INFO]: Default game type: SURVIVAL Aug 04 23:29:52 MMSERVER01 PaperMC[20722]: [23:29:52 INFO]: Generating keypair Aug 04 23:29:52 MMSERVER01 PaperMC[20722]: [23:29:52 INFO]: Starting Minecraft server on *:25565 Aug 04 23:29:53 MMSERVER01 PaperMC[20722]: [23:29:53 INFO]: Using default channel type Aug 04 23:29:53 MMSERVER01 PaperMC[20722]: [23:29:53 INFO]: Paper: Using Java 11 compression from Velocity. Aug 04 23:29:53 MMSERVER01 PaperMC[20722]: [23:29:53 INFO]: Paper: Using Java cipher from Velocity. Aug 04 23:29:53 MMSERVER01 PaperMC[20722]: [23:29:53 INFO]: Preparing level "world" [ OK ] DietPi-Software | systemctl stop papermc [ INFO ] DietPi-Software | PaperMC config file got created after 152 seconds [ OK ] DietPi-Software | Setting in /mnt/dietpi_userdata/papermc/server.properties adjusted: enable-rcon=true [ OK ] DietPi-Software | Setting in /mnt/dietpi_userdata/papermc/server.properties adjusted: rcon.password=****** DietPi-Software ───────────────────────────────────────────────────── Step: Finalising install [ OK ] DietPi-Software | systemctl daemon-reload 2022-08-04 23:31:27 [ INFO ] DietPi-RAMlog | Storing /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store... 2022-08-04 23:31:28 [ OK ] DietPi-RAMlog | Stored /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store. [ SUB1 ] DietPi-Services > dietpi_controlled [ OK ] DietPi-Services | dietpi_controlled : proftpd [ OK ] DietPi-Services | dietpi_controlled : mariadb [ OK ] DietPi-Services | dietpi_controlled : php7.4-fpm [ OK ] DietPi-Services | dietpi_controlled : lighttpd [ OK ] DietPi-Services | dietpi_controlled : qbittorrent [ OK ] DietPi-Services | dietpi_controlled : jellyfin [ OK ] DietPi-Services | dietpi_controlled : syncthing [ OK ] DietPi-Services | dietpi_controlled : cuberite [ OK ] DietPi-Services | dietpi_controlled : papermc [ OK ] DietPi-Services | dietpi_controlled : cron [ OK ] DietPi-Services | dietpi_controlled : ttfm_bot01_shscpt DietPi-Software ───────────────────────────────────────────────────── Step: Install completed ```
MichaIng commented 2 years ago

Okay great. You could btw now remove the old Java 11:

apt autopurge openjdk-11-jre-headless
MichaIng commented 1 year ago

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

MichaIng commented 1 year ago

Fixed with: https://github.com/MichaIng/DietPi/commit/8394606

MichaIng commented 1 year ago

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.