You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the installation instructions for Temurin here java is installed onto a Rocky 8 VM (official Rocky AMI on AWS).
If I take any JAR and run it from my current SSH session ie, java -jar myspringapp.jar the application will run.
If I try to create a systemd service to run this JAR as a service, the service will fail to start with a cryptic error pointing to an issue with memory.
Error occurred during initialization of VM
Failed to mark memory page as executable - check if grsecurity/PaX is enabled
We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.
This issue should be solved by Temurin using a directory in the standard form of java-<version>-<vendor> which will then match the existing SELinux policy rule:
Please provide a brief summary of the bug
Following the installation instructions for Temurin here java is installed onto a Rocky 8 VM (official Rocky AMI on AWS).
If I take any JAR and run it from my current SSH session ie,
java -jar myspringapp.jar
the application will run.If I try to create a systemd service to run this JAR as a service, the service will fail to start with a cryptic error pointing to an issue with memory.
Looking at SELinux alerts, we can see
I suspect that the location temurin is being installed to is outside of the default locations allowed by SELinux with systemd.
Other java builds installed from default Rocky repos work correctly and do not have this issue.
Please provide steps to reproduce where possible
No response
Expected Results
The service should start normally.
Actual Results
The service fails to start with
What Java Version are you using?
openjdk 18.0.2.1 2022-08-18 OpenJDK Runtime Environment Temurin-18.0.2.1+1 (build 18.0.2.1+1) OpenJDK 64-Bit Server VM Temurin-18.0.2.1+1 (build 18.0.2.1+1, mixed mode)
What is your operating system and platform?
Rocky 8 on ARM64
How did you install Java?
Packages via instructions on https://adoptium.net/installation/linux/
Did it work before?
No response
Did you test with other Java versions?
Relevant log output
No response
The text was updated successfully, but these errors were encountered: