chapmandu
03/17/2023, 7:49 AM"jvm": {
"javaVersion": "openjdk11_jdk"
}
The logs show this error.. and the container fails to start
[INFO] 2023-03-17T073730Z - Starting server using generated script: /usr/bin/startup.sh
/usr/bin/startup.sh: line 3: /usr/lib/CommandBox/serverJREs/openjdk11_jdk_x64_linux_hotspot_jdk-11.0.18+10/bin/java: cannot execute: required file not found
But further up...
Installing to: /usr/lib/CommandBox/serverJREs/openjdk11_jdk_x64_linux
| | _hotspot_jdk-11.0.18+1
| | -> 576 File(s) Installed
| | -> 0 File(s) ignored
| | Eureka, 'javaopenjdk11 jdklockVersion' has been installed!
Any help appreciated...jclausen
03/17/2023, 1:30 PMFROM ortussolutions/commandbox:jdk11
jclausen
03/17/2023, 1:33 PMPeter Amiri
03/17/2023, 8:02 PMARG JDK_TAG=jdk11
ARG IMAGE_VERSION=3.7.0
FROM ortussolutions/commandbox:${JDK_TAG}-${IMAGE_VERSION}
#Add the H2 extension
ADD <https://ext.lucee.org/org.h2-1.3.172.lex> /usr/local/lib/serverHome/WEB-INF/lucee-server/deploy/org.h2-1.3.172.lex
ENV ENV_MODE "remote"
ENV BOX_SERVER_PROFILE "none"
ENV BOX_SERVER_APP_LIBDIRS "/app/src/docker/lib"
ENV BOX_SERVER_APP_CFENGINE "lucee@5.3.9+166"
# WARM UP THE SERVER
RUN ${BUILD_DIR}/util/warmup-server.sh
chapmandu
03/17/2023, 10:06 PMjclausen
03/17/2023, 10:08 PMbdw429s
03/18/2023, 11:00 PM/usr/lib/CommandBox/serverJREs/openjdk11_jdk_x64_linux_hotspot_jdk-11.0.18+10/
folder?bdw429s
03/18/2023, 11:00 PMbdw429s
03/18/2023, 11:01 PMbin/java
wasn't one of themchapmandu
03/18/2023, 11:19 PM"javaVersion": "openjdk11_jdk",
in the server.json. I can see the /usr/lib/CommandBox/serverJREs/openjdk11_jdk_x64_linux_hotspot_jdk-11.0.18+10 dir is created then immediately exists before I can list the file contents..bdw429s
03/19/2023, 12:48 AMbash
to be able to playaroundbdw429s
03/19/2023, 12:48 AMbash
to begin with and run
box java install openjdk11_jdk
and then poke aroundbdw429s
03/19/2023, 12:49 AMbdw429s
03/19/2023, 12:56 AMdocker run -it --rm ortussolutions/commandbox bash
root@55bfe2b8e6ae:/app# box java install openjdk11_jdk
√ | Installing package [java:openjdk11_jdk:lockVersion]
...
root@55bfe2b8e6ae:/# /usr/local/lib/CommandBox/serverJREs/openjdk11_jdk_x64_linux_hotspot_jdk-11.0.18+10/bin/java --version
openjdk 11.0.18 2023-01-17
bdw429s
03/19/2023, 12:56 AMbdw429s
03/19/2023, 12:57 AM/usr/lib/CommandBox/serverJREs/...
not /usr/local/lib/CommandBox/serverJREs/...
but I'm unclear whether you're on an older version of our Docker image, or have some other setting in place that changes the CommandBox homejclausen
03/19/2023, 12:58 AMbdw429s
03/19/2023, 12:59 AMchapmandu
03/19/2023, 1:14 AMchapmandu
03/19/2023, 1:18 AMortussolutions/commandbox:jdk11-alpine-3.6.3
imagebdw429s
03/19/2023, 1:19 AMbdw429s
03/19/2023, 1:20 AMbdw429s
03/19/2023, 1:21 AMbdw429s
03/19/2023, 1:21 AMchapmandu
03/19/2023, 1:23 AMchapmandu
03/19/2023, 1:25 AMortussolutions/commandbox:alpine-3.6.3
image when I tried the _"javaVersion"_: "openjdk11_jdk",
optionchapmandu
03/19/2023, 1:33 AMdocker run -it --rm ortussolutions/commandbox bash
root@55bfe2b8e6ae:/app# box java install openjdk11_jdk
bdw429s
03/19/2023, 1:47 AMbdw429s
03/19/2023, 1:47 AMjava
isn't found, the error messages on Apline are commonly misleadingbdw429s
03/19/2023, 1:47 AM829e2e9fa77f:/usr/lib/CommandBox/serverJREs/openjdk11_jdk_x64_linux_hotspot_jdk-11.0.18+10/bin# ldd java --version
/lib64/ld-linux-x86-64.so.2 (0x7f882639c000)
libz.so.1 => /lib/libz.so.1 (0x7f882617f000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f882639c000)
libjli.so => ./../lib/jli/libjli.so (0x7f8825f6e000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f882639c000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f882639c000)
Error relocating ./../lib/jli/libjli.so: __strdup: symbol not found
Error relocating ./../lib/jli/libjli.so: __rawmemchr: symbol not found
bdw429s
03/19/2023, 1:48 AMldd
, it shows you the "real" error which is missing so librariesbdw429s
03/19/2023, 1:48 AMbdw429s
03/19/2023, 1:49 AMbdw429s
03/19/2023, 1:50 AMbdw429s
03/19/2023, 1:51 AMbdw429s
03/19/2023, 1:52 AMos=linux
to the adoptium API, but we need to be sending os=alpine-linux
instead herebdw429s
03/19/2023, 1:53 AMbdw429s
03/19/2023, 1:54 AMbdw429s
03/19/2023, 1:54 AMchapmandu
03/19/2023, 2:40 AMbdw429s
03/19/2023, 5:02 AMchapmandu
03/19/2023, 5:06 AM