Docker Lucee 6: Where are the logs?

I used the most recent Lucee 5.4 docker image and successfully used it to write to a log file I needed. I switched to a Lucee 6.0 image, but it is not writing to any logs in the mounted directory.

I run docker with this command:

docker run -p 8888:8888 -v "$PWD:/var/www" -v "/<PATH>/experiments/sessions/logs:/opt/lucee/web/logs" lucee/lucee:6.0.3.1-tomcat9.0-jre11-temurin-jammy

I opened a terminal and moved around the filesystem, but still couldn’t find any logs. Is there some config I need to do in the Server Admin? 5.4 was just plug and play.

One of the major changes in Lucee 6 is that there is no separate server + web context by default I believe.

This is probably what you’re seeing here - i.e. you’re looking for logs in a web context and I think that is not going to exist.

That makes sense. I found the default logs location in the stock Lucee docker image for 6.x: /opt/lucee/server/lucee-server/context/logs

1 Like