signal-cli-rest-api
signal-cli-rest-api copied to clipboard
"Please set the JAVA_HOME variable" since update
The problem
Since update to the lattest docker version i got this:
{"error":"ERROR: JAVA_HOME is set to an invalid directory: /opt/java/openjdk Please set the JAVA_HOME variable in your environment to match the location of your Java installation
Are you using the latest released version?
- [X] Yes
Have you read the troubleshooting page?
- [ ] Yes
What type of installation are you running?
signal-cli-rest-api Docker Container
In which mode are you using the docker container?
Normal Mode
What's the architecture of your host system?
x86-64
Additional information
No response
When do you get that error? I do not see that issue here.
I'm not the issue owner, but I get the same error whiel calling signal-cli from within the container.
I called signal-cli from within the container to understand why all endpoints give me a status of 400.
I'm not the issue owner, but I get the same error whiel calling
signal-clifrom within the container.I called
signal-clifrom within the container to understand why all endpoints give me a status of 400.
Which mode do you use?
I use the native mode.
Setting JAVA_HOME=/lib/jvm/java-21-openjdk-amd64 and modifying the path accordingly fixed the problem for me.
Same issue and @viaregio's solution fixes it. (until Java 22 is used in the container :sweat_smile: )