danmurphy
06/03/2022, 11:05 PMdanmurphy
06/03/2022, 11:05 PMdanmurphy
06/03/2022, 11:11 PMbdw429s
06/03/2022, 11:27 PMbdw429s
06/03/2022, 11:27 PMbdw429s
06/03/2022, 11:28 PMbdw429s
06/03/2022, 11:28 PMzip action="unzip" file="#serverInfo.WARPath#" destination="#serverInfo.serverHomeDirectory#" overwrite="true";
bdw429s
06/03/2022, 11:28 PMcfzip
tag, which happens when the compress extension doesn't installdanmurphy
06/03/2022, 11:29 PMbdw429s
06/03/2022, 11:29 PMdeploy
log for clues, but this can also happen if the CLI gets interrutped the first time it runs and Lucee never finished unpackingbdw429s
06/03/2022, 11:29 PMbdw429s
06/03/2022, 11:29 PMbdw429s
06/03/2022, 11:30 PMbdw429s
06/03/2022, 11:30 PMdanmurphy
06/03/2022, 11:30 PMdanmurphy
06/03/2022, 11:31 PMbdw429s
06/03/2022, 11:31 PMbdw429s
06/03/2022, 11:32 PMbdw429s
06/03/2022, 11:32 PMYou might’ve missed one of my previous comments though, I can reproduce this every time running Docker locally.nope, I saw that, it just doesn't change anything 🙂
bdw429s
06/03/2022, 11:33 PMdanmurphy
06/03/2022, 11:34 PMDoes your build server have access to the internet to download things?I was just being clear that it happens on the build server and my local machine every time.
bdw429s
06/03/2022, 11:34 PMbdw429s
06/03/2022, 11:34 PMbdw429s
06/03/2022, 11:35 PMdanmurphy
06/03/2022, 11:35 PMbdw429s
06/03/2022, 11:36 PMbdw429s
06/03/2022, 11:36 PMbdw429s
06/03/2022, 11:36 PMbdw429s
06/03/2022, 11:37 PMdanmurphy
06/03/2022, 11:37 PMbdw429s
06/03/2022, 11:37 PMbdw429s
06/03/2022, 11:37 PMbdw429s
06/03/2022, 11:37 PMbdw429s
06/03/2022, 11:37 PMbdw429s
06/03/2022, 11:38 PMdanmurphy
06/03/2022, 11:38 PMbdw429s
06/03/2022, 11:38 PMdanmurphy
06/03/2022, 11:38 PMbdw429s
06/03/2022, 11:39 PMbdw429s
06/03/2022, 11:40 PMdanmurphy
06/03/2022, 11:41 PMbdw429s
06/03/2022, 11:41 PMbdw429s
06/03/2022, 11:41 PMbdw429s
06/03/2022, 11:41 PMbdw429s
06/03/2022, 11:42 PMbdw429s
06/03/2022, 11:42 PMbdw429s
06/03/2022, 11:43 PMdanmurphy
06/03/2022, 11:43 PMbdw429s
06/03/2022, 11:45 PMdanmurphy
06/03/2022, 11:45 PMDocker build…
so there is no active container to see the logs from. Hmm.bdw429s
06/03/2022, 11:46 PMdanmurphy
06/03/2022, 11:46 PMdanmurphy
06/03/2022, 11:47 PMbdw429s
06/03/2022, 11:47 PMbdw429s
06/03/2022, 11:47 PMCMD
of bash
or something and then firing off box
inside the container to simulate its first startdanmurphy
06/03/2022, 11:48 PMbdw429s
06/03/2022, 11:48 PMbdw429s
06/03/2022, 11:48 PMdanmurphy
06/03/2022, 11:49 PMbox info
line in the Dockerfile. (assuming I caught what you were asking)
RUN wget -nv <https://downloads.ortussolutions.com/ortussolutions/commandbox/5.5.2/commandbox-debian-5.5.2.deb> \
&& dpkg -i commandbox-debian-5.5.2.deb \
&& box info
bdw429s
06/03/2022, 11:49 PMbdw429s
06/03/2022, 11:49 PMdanmurphy
06/03/2022, 11:53 PMbox info
line in our Dockerfile for this reason - so it will tank and kill the build if commandbox doesn’t start up instead of going on thinking all is well.
Maybe there is a different way to see files in the container as it is building, but I’m a bit out of my depth here.bdw429s
06/03/2022, 11:54 PMbdw429s
06/03/2022, 11:54 PMbdw429s
06/03/2022, 11:54 PMbdw429s
06/03/2022, 11:54 PMdanmurphy
06/03/2022, 11:55 PMlucee/lucee:5.3.9.141-nginx
as our base image.bdw429s
06/03/2022, 11:55 PMbdw429s
06/03/2022, 11:56 PMdanmurphy
06/03/2022, 11:56 PMdanmurphy
06/03/2022, 11:57 PMbdw429s
06/03/2022, 11:57 PMdanmurphy
06/03/2022, 11:57 PMbdw429s
06/03/2022, 11:58 PMdanmurphy
06/03/2022, 11:58 PMbdw429s
06/03/2022, 11:58 PMdanmurphy
06/03/2022, 11:59 PMbdw429s
06/04/2022, 12:00 AMbdw429s
06/04/2022, 12:00 AMbdw429s
06/04/2022, 12:00 AMbdw429s
06/04/2022, 12:01 AMdocker run -it lucee/lucee bash
bdw429s
06/04/2022, 12:01 AMbash
and that's itbdw429s
06/04/2022, 12:01 AMbdw429s
06/04/2022, 12:01 AMbdw429s
06/04/2022, 12:02 AMroot@97703f70c7d5:/usr/local/tomcat# dpkg -i commandbox-debian-5.5.2.deb
Selecting previously unselected package commandbox.
(Reading database ... 12672 files and directories currently installed.)
Preparing to unpack commandbox-debian-5.5.2.deb ...
Unpacking commandbox (5.5.2-1) ...
dpkg: dependency problems prevent configuration of commandbox:
commandbox depends on java-common; however:
Package java-common is not installed.
you must have more stuff in your docker file to install java or set the env var for itdanmurphy
06/04/2022, 12:03 AMRUN apt-get update && apt-get install -y \
java-common \
apt-utils
bdw429s
06/04/2022, 12:05 AMbdw429s
06/04/2022, 12:05 AMbdw429s
06/04/2022, 12:05 AMapt-get update && apt-get install -y java-common apt-utils
wget -nv <https://downloads.ortussolutions.com/ortussolutions/commandbox/5.5.2/commandbox-debian-5.5.2.deb>
dpkg -i commandbox-debian-5.5.2.deb
box info
bdw429s
06/04/2022, 12:05 AMinfo
command in the consoledanmurphy
06/04/2022, 12:05 AMbdw429s
06/04/2022, 12:06 AMbdw429s
06/04/2022, 12:06 AMinfo
command shows this
* Java Version: 11.0.15 (Oracle Corporation)
* Java Path: /usr/local/openjdk-11/bin/java
danmurphy
06/04/2022, 12:06 AMbdw429s
06/04/2022, 12:06 AMdanmurphy
06/04/2022, 12:07 AMbdw429s
06/04/2022, 12:07 AMbdw429s
06/04/2022, 12:07 AMbdw429s
06/04/2022, 12:08 AMbox
has come up and run successfully, then Lucee won't unpack again, so if you have a successful test, exit
out of the container, and then docker run
again to get a fresh slate and start from scratch.bdw429s
06/04/2022, 12:08 AMexit
from the bash shellbdw429s
06/04/2022, 12:09 AMbash
shell but instead the shell script that actually starts Lucee, so the main process basically IS the Lucee server in that case.danmurphy
06/04/2022, 12:09 AMdanmurphy
06/04/2022, 12:11 AMdanmurphy
06/04/2022, 12:16 AMdanmurphy
06/04/2022, 12:16 AMbdw429s
06/04/2022, 12:16 AMbdw429s
06/04/2022, 12:16 AMbdw429s
06/04/2022, 12:17 AMdanmurphy
06/06/2022, 2:44 PMENV LUCEE_JAVA_OPTS="-Xms256m -Xmx2048m"
ENV LUCEE_EXTENSIONS "CED6227E-0F49-6367-A68D21AACA6B07E8;name=admin;version=1.0.0.3, D4EDFDBD-A9A3-E9AF-597322D767E0C949;name=oracle;version=21.3.0.0000, 66E312DD-D083-27C0-64189D16753FD6F0;name=pdf;version=1.1.0.7"
danmurphy
06/06/2022, 2:46 PMdanmurphy
06/06/2022, 3:14 PMdanmurphy
06/06/2022, 3:29 PMENV_LUCEE_EXTENSIONS
line is the culprit. Removing that line makes the error go away and CommandBox installs properly every time. That’s weird, right?bdw429s
06/06/2022, 3:38 PMbdw429s
06/06/2022, 3:39 PMbdw429s
06/06/2022, 3:40 PMbdw429s
06/06/2022, 3:40 PMbdw429s
06/06/2022, 3:41 PMbdw429s
06/06/2022, 3:42 PMbdw429s
06/06/2022, 3:42 PMdanmurphy
06/06/2022, 3:43 PMbdw429s
06/06/2022, 3:44 PMbdw429s
06/06/2022, 3:44 PMbdw429s
06/06/2022, 3:44 PMbdw429s
06/06/2022, 3:45 PMLUCEE_EXTENSIONS
env var only ADDS extensions, it doesn't remove thembdw429s
06/06/2022, 3:45 PMI had no idea commandbox would pick those up automatically.To be clear, LUCEE picks it up. CommandBox really has nothing to do with any of this. CommandBox just embeds a Lucee instance.
Why does this break only starting in 5.5.2?This is a great question for the Lucee developers to answer for you. I have no freaking clue, lol
danmurphy
06/06/2022, 3:46 PMbdw429s
06/06/2022, 3:46 PMbdw429s
06/06/2022, 3:46 PMbdw429s
06/06/2022, 3:47 PMbdw429s
06/06/2022, 3:47 PMbdw429s
06/06/2022, 3:47 PMbdw429s
06/06/2022, 3:47 PMbdw429s
06/06/2022, 3:48 PMbdw429s
06/06/2022, 3:48 PMbdw429s
06/06/2022, 3:48 PMbdw429s
06/06/2022, 3:49 PMbdw429s
06/06/2022, 3:50 PMdanmurphy
06/06/2022, 3:54 PMbdw429s
06/06/2022, 3:54 PMbdw429s
06/06/2022, 3:55 PMbdw429s
06/06/2022, 3:55 PMbdw429s
06/06/2022, 3:55 PMbdw429s
06/06/2022, 3:55 PMbdw429s
06/06/2022, 3:55 PMbdw429s
06/06/2022, 3:56 PMdanmurphy
06/06/2022, 3:58 PMbdw429s
06/06/2022, 3:59 PMbdw429s
06/06/2022, 3:59 PMbdw429s
06/06/2022, 3:59 PMbdw429s
06/06/2022, 3:59 PMbdw429s
06/06/2022, 4:00 PMbdw429s
06/06/2022, 4:00 PMroot@7717c062ec89:/usr/local/tomcat# history
1 LUCEE_EXTENSIONS="CED6227E-0F49-6367-A68D21AACA6B07E8;name=admin;version=1.0.0.3,D4EDFDBD-A9A3-E9AF-597322D767E0C949;name=oracle;version=21.3.0.0000,66E312DD-D083-27C0-64189D16753FD6F0;name=pdf;version=1.1.0.7"
2 export LUCEE_EXTENSIONS
3 wget -nv <https://downloads.ortussolutions.com/ortussolutions/commandbox/5.5.2/commandbox-debian-5.5.2.deb>
4 apt-get update && apt-get install -y java-common apt-utils
5 dpkg -i commandbox-debian-5.5.2.deb
6 box
bdw429s
06/06/2022, 4:00 PMbdw429s
06/06/2022, 4:00 PMbdw429s
06/06/2022, 4:02 PM"INFO","main","06/06/2022","15:58:53","controller","unsuccessfully installed extensions :7E673D...
bdw429s
06/06/2022, 4:04 PMbdw429s
06/06/2022, 4:05 PMbdw429s
06/06/2022, 4:08 PMbdw429s
06/06/2022, 4:09 PMbdw429s
06/06/2022, 4:11 PMbdw429s
06/06/2022, 4:15 PM"INFO","Thread-10","06/06/2022","15:59:04","extension","Remove TLD file ziptag.tldx"
bdw429s
06/06/2022, 4:15 PMbdw429s
06/06/2022, 4:15 PMbdw429s
06/06/2022, 4:20 PMbdw429s
06/06/2022, 4:20 PMroot@7717c062ec89:~/.CommandBox/engine/cfml/cli/lucee-server/context/logs# ls -la
ls: cannot access 'mapping.log': Operation not permitted
ls: cannot access 'scope.log': Operation not permitted
ls: cannot access 'requesttimeout.log': Operation not permitted
ls: cannot access 'mail.log': Operation not permitted
ls: cannot access 'trace.log': Operation not permitted
ls: cannot access 'deploy.log': Operation not permitted
ls: cannot access 'out': Operation not permitted
ls: cannot access 'memory.log': Operation not permitted
ls: cannot access 'gateway.log': Operation not permitted
ls: cannot access 'out.log': Operation not permitted
ls: cannot access 'orm.log': Operation not permitted
ls: cannot access '.': Operation not permitted
ls: cannot access 'err': Operation not permitted
ls: cannot access 'thread.log': Operation not permitted
ls: cannot access '..': Operation not permitted
ls: cannot access 'remoteclient.log': Operation not permitted
ls: cannot access 'felix.log': Operation not permitted
ls: cannot access 'search.log': Operation not permitted
ls: cannot access 'datasource.log': Operation not permitted
ls: cannot access 'scheduler.log': Operation not permitted
ls: cannot access 'application.log': Operation not permitted
ls: cannot access 'rest.log': Operation not permitted
ls: cannot access 'exception.log': Operation not permitted
total 0
d????????? ? ? ? ? ? .
d????????? ? ? ? ? ? ..
-????????? ? ? ? ? ? application.log
-????????? ? ? ? ? ? datasource.log
-????????? ? ? ? ? ? deploy.log
-????????? ? ? ? ? ? err
-????????? ? ? ? ? ? exception.log
-????????? ? ? ? ? ? felix.log
-????????? ? ? ? ? ? gateway.log
-????????? ? ? ? ? ? mail.log
-????????? ? ? ? ? ? mapping.log
-????????? ? ? ? ? ? memory.log
-????????? ? ? ? ? ? orm.log
-????????? ? ? ? ? ? out
-????????? ? ? ? ? ? out.log
-????????? ? ? ? ? ? remoteclient.log
-????????? ? ? ? ? ? requesttimeout.log
-????????? ? ? ? ? ? rest.log
-????????? ? ? ? ? ? scheduler.log
-????????? ? ? ? ? ? scope.log
-????????? ? ? ? ? ? search.log
-????????? ? ? ? ? ? thread.log
-????????? ? ? ? ? ? trace.log
bdw429s
06/06/2022, 4:20 PMroot
so that's a really odd error. makes me wonder if it's related to Lucee not working correctlybdw429s
06/06/2022, 4:46 PMdeploy
log set to a level of trace
and the restarting box
, I still only get info
messages in the log file.bdw429s
06/06/2022, 4:46 PMbdw429s
06/06/2022, 4:49 PMtrace
or debug
before the server starts the first time isn't getting picked up?bdw429s
06/06/2022, 4:50 PM<logger appender="resource" appender-arguments="path:{lucee-config}/logs/deploy.log" layout="classic" level="debug" name="deploy"/>
and then start the server the first time, but I still only get INFO
message in the deploy log. What gives?bdw429s
06/06/2022, 5:08 PMinfo
messages regardless of what I set the log level to ahead of timebdw429s
06/06/2022, 5:08 PMbdw429s
06/06/2022, 5:11 PMdetected Extensions to install (new;new-fresh) ...
This is also fine, it's just Lucee detecting the env var
extensions to install defined in env variable or system property: ...
here is the compress extension actually getting installed-- good.
installing the extension 8D7FB0DF-08BB-1589-FE3975678F07DB17;name=Compress;label=Compress;version=1.0.0.7;since=5.3.2.31-SNAPSHOT
installing the extension 8D7FB0DF-08BB-1589-FE3975678F07DB17;name=Compress;label=Compress;version=1.0.0.7;since=5.3.2.31-SNAPSHOT from local provider
Deploy tld/tldx [ziptag.tldx]
And now, for no apparent reason, Lucee reports everything was a failure
unsuccessfully installed extensions : ...
And then it uninstalls the compress extension (among others)
Remove TLD file ziptag.tldx
Deploy tld/tldx [ziptag.tldx]
bdw429s
06/06/2022, 5:12 PMbdw429s
06/06/2022, 5:12 PMbdw429s
06/06/2022, 5:12 PMdanmurphy
06/06/2022, 6:35 PMbdw429s
06/07/2022, 4:43 PMbdw429s
06/07/2022, 4:43 PMdanmurphy
06/07/2022, 4:44 PMbdw429s
06/07/2022, 4:44 PMbdw429s
06/07/2022, 4:44 PMbdw429s
06/07/2022, 4:45 PMdanmurphy
06/07/2022, 4:45 PMbdw429s
06/07/2022, 4:46 PMbdw429s
06/07/2022, 4:47 PMbdw429s
06/21/2022, 3:14 AMdanmurphy
07/01/2022, 5:42 PM