I am having trouble with Fusionreactor in a Lucee ...
# fusion-reactor
h
I am having trouble with Fusionreactor in a Lucee Docker container. The Lucee image is:
Copy code
FROM lucee/lucee:5.3.10.97-nginx-tomcat9.0-jdk11-openjdk
In the Dockerfile I am copying the FR files into a folder fusionreactor.jar libfrjvmti_x64.so
Copy code
COPY ./cms/fusionreactor /custom-libs/fusionreactor
And in setenv.sh I am setting the FR opts:
Copy code
setenv.sh
# FusionReactor opts
FR_OPTS="$FR_OPTS-javaagent:/custom-libs/fusionreactor/fusionreactor.jar=name=cms,address=8088 -agentpath:/custom-libs/fusionreactor/libfrjvmti_x64.so -Dfrlicense=$FR_LICENSE -Dfrshutdownaction=remove -Dfrlicenseservice.leasetime.hint=10 -Dfrregisterhostname=$FR_SERVERNAME -Dfr.cloud.group=cms"
But when I access FR in my browser I get the message: Fusion Reactor Fusion Reactor is not ready please try again in a few seconds. Already waited more the 10 minutes, the message doesn't change. Any hint would be appreciated!
m
Hi, what is the current contents of the /custom-libs/fusionreactor/ directory?
I get the impression something is failing to unpack when the instance first starts
h
I am using the latest FR version 9
But tried it also with an older one (v7)
Same result
m
if you exec into the docker and run wget http://localhost:8089
doo you get the same resoponse in the index html?
Fr itself seems to be running fine, i think it might be an issue with the port forward not being able to gather the UI files it needs
I guess, also if you run the same container locally, with just a docker port exposed to localhost, doo you get the same issue
h
In compose I am mapping the port 8088 to 8089
Copy code
ports:
      - 8089:8088
wget http://localhost:8088 --2023-01-05 115938-- http://localhost:8088/ Resolving localhost (localhost)... 127.0.0.1, ::1 Connecting to localhost (localhost)|127.0.0.1|:8088... connected. HTTP request sent, awaiting response... 302 Found Location: http://localhost:8088/fusionreactor/findex.htm [following] --2023-01-05 115938-- http://localhost:8088/fusionreactor/findex.htm Reusing existing connection to localhost:8088. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘index.html.2’ index.html.2 [ <=> ] 278 --.-KB/s in 0s 2023-01-05 115938 (13.8 MB/s) - ‘index.html.2’ saved [278]
m
ok, and what is in index.html.2?
h
# cat index.html <!NOTREADY><div style="display: block; border: 1px solid #D8000C; margin: 10px auto; padding: 15px 10px 15px 50px; background-color: #FFBABA; width: 90%; position: relative;"> <h1>Fusion Reactor</h1> <p>Fusion Reactor is not ready please try again in a few seconds.</p> </div>#
But maybe I am doing something wrong and there is another way to enable FR in the lucee/lucee:5.3.10.97-nginx-tomcat9.0-jdk11-openjdk container?
m
i don't know about that exact docker image but i do this: Docker file: FROM lucee/lucee RUN mkdir -p /opt/fusionreactor ADD https://download.fusionreactor.io/FR/Latest/fusionreactor.jar /opt/fusionreactor/fusionreactor.jar ADD https://download.fusionreactor.io/FR/Latest/libfrjvmti_x64.so /opt/fusionreactor/libfrjvmti_x64.so Compose entry: lucee: image: luceedemo volumes: - "./apps/mikey:/var/www/mikey" ports: - "8088:8088" - "8888:8888" environment: LUCEE_JAVA_OPTS: "-javaagent:/opt/fusionreactor/fusionreactor.jar=name=lucee-fr,address=8088 -agentpath:/opt/fusionreactor/libfrjvmti_x64.so -Dfrlicense=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
h
Thanks, I will try this
m
your custom libs directory, is that used by lucee atall?
h
no
m
i just replaced my image with your exact one and it works fine for me
h
strange, I have no clue why. I change my configuration to yours atm and will test
m
onyl difference is the FR directory and i am not usiing setenv.sh diretly
h
ok, I will try it with opt and without setenv.sh
Is this ok?
Copy code
environment:
      - LUCEE_JAVA_OPTS="-javaagent:/opt/fusionreactor/fusionreactor.jar=name=cms,address=8088 -agentpath:/opt/fusionreactor/libfrjvmti_x64.so -Dfrlicense=${FR_LICENSE}"
m
its missing some of them you had originially but yh seems ok
👍 1
i am not fully sure how docker compose envs work and if they can use eachother or not
h
Cool, it works!
m
ok cool
i'm not sure which change it is, but i guess you could test that if you wanted
either way it works so
my guess would be the directory
h
I guess it was the folder, not sure why. I also added 8888:8888 but this should not be related
m
no, i don't think the nginx container uses that anyway
i guess if anything else uses something in your customlib directory that could have an impact
h
I see
m
whereas in opt it is isolated
h
Thanks for your help @mflewittintergral
m
no worries