signal-cli-rest-api icon indicating copy to clipboard operation
signal-cli-rest-api copied to clipboard

"Please set the JAVA_HOME variable" since update

Open rowie opened this issue 1 year ago • 6 comments

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

rowie avatar Apr 05 '24 08:04 rowie

When do you get that error? I do not see that issue here.

bbernhard avatar Apr 05 '24 11:04 bbernhard

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.

viaregio avatar May 02 '24 08:05 viaregio

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.

Which mode do you use?

bbernhard avatar May 02 '24 19:05 bbernhard

I use the native mode.

viaregio avatar May 03 '24 05:05 viaregio

Setting JAVA_HOME=/lib/jvm/java-21-openjdk-amd64 and modifying the path accordingly fixed the problem for me.

viaregio avatar May 03 '24 05:05 viaregio

Same issue and @viaregio's solution fixes it. (until Java 22 is used in the container :sweat_smile: )

jounathaen avatar May 13 '24 07:05 jounathaen