-
-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | PaperMC: Handle missing Java 17 packages on Raspbian #5668
Comments
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:
Thanks again for any help. |
Hmm the service is not starting at all. Can you share following
|
clearly a java version that's too low - is that something I should be maintaining, or is that something covered by
|
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:
|
That is mysterious; I have only installed via Here is the output for
|
Ah another loop: readlink -f /etc/alternatives/java And dpkg -l | grep openjdk |
I appreciate this help, both of you.
and
|
I don't know if this is any help, but I also have installed via
|
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. |
@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 Logfile attached. Click to expand!
|
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 :
I will now go ahead with trying to install paperMC again 🤞 |
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) Logfile attached. Click to expand!
|
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/ Interesting is openjdk-17-jre-zero, which generally can run on ARMv6. Currently testing it. |
Fixed with: 8394606 |
Woah is this slow, tested with Java 17 Zero JVM on RPi Zero W:
~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
Expected behaviour
Actual behaviour
Thanks. Cuberite seems very crash prone, so wanted to try PaperMC.
The text was updated successfully, but these errors were encountered: