Lucee configs reset after server reboot

Ubuntu 24.04.4
Lucee 6.2.5.48
Apache Tomcat 11.0.18
Java 21.0.10 (Eclipse Adoptium) 64bit

Every time I restart the server, my config file (/lucee-server/context/.CFConfig.json) gets replaced by a stock version. I have a different server with same specs, and it does not happen there.

I also tried placing my config file in /lucee-server/deploy/ but the same thing happens upon server restart. Any help is much appreciated!

Just noticed that if I try to restart Lucee on this server via admin, it gets stuck with a red “500” on screen. If I refresh the screen, Lucee admin no longer loads and throws a 500 error.

We recently are experiencing the same thing. Stop/Start or a Restart kills the .CFConfig and starts over like it’s a fresh set up. I am backing up the cfconfig now and putting it back after a restart but this is a real issue.

Which version of Lucee are you running?

This is what eventually worked for me. I don’t remember the exact steps because I tried it so many times, but basically this:

  • stop Lucee server
  • delete everything from /opt/lucee/tomcat/lucee-server/felix-cache/ (your path might differ)
  • deploy the .CFConfig file to /opt/lucee/tomcat/lucee-server/deploy/
  • start Lucee server
  • log in to admin; will probably need to reset the password with the password.txt file
  • make sure your changes took affect
  • log out
  • stop Lucee server
  • delete everything from /opt/lucee/tomcat/lucee-server/felix-cache/ again
  • restart the server

Like I said, I don’t remember the exact steps, I should have taken better notes. Hope this helps you.

anything in the tomcat or lucee logs?

I did not look at the time. Should have, but didn’t think of it. I will next time it happens since I need to setup more Lucee servers.

HI Felix. I found that this was the issue from reading the Catalina.log. Seemed it was having an issue with that felix-cache folder. I did this.

  1. sudo /opt/lucee/lucee_ctl stop
  2. Hard Kill: Run killall -9 on any tomcat/lucee tasks still running if any
  3. Restore Config from a backup
  4. rm -rf /opt/lucee/tomcat/lucee-server/felix-cache/*
  5. rm -rf /opt/lucee/tomcat/temp/*
  6. sudo /opt/lucee/lucee_ctl start

Thanks for replying!

No problem, glad it worked for you! And thanks for sharing your steps.