Troubleshooting
This page collects quick answers to problems you are likely to hit when getting started with LuCLI.
Server does not start
Symptoms: lucli server start fails or exits immediately.
Checks:
- Run with extra diagnostics:
lucli --debug --timing server start
- Inspect logs:
lucli server log --follow- Look for port conflicts, missing files, or stack traces.
- Try starting without Java agents:
lucli server start --no-agents
- Verify your
lucee.jsonsyntax (it must be valid JSON).
Cannot reach the server in the browser
Symptoms: browser shows connection errors or 404s for all pages.
Checks:
- Confirm which port the server is using:
lucli server status
- Make sure
lucee.jsonand your project files live in the directory where you ranlucli server start. - If using URL rewriting, confirm that:
urlRewrite.enabledistrue.- Your router file (e.g.
index.cfm) exists. - See URL Rewriting.
CFML file not found
Symptoms: lucli script.cfs reports that the file does not exist.
Checks:
- Confirm the current working directory (
pwd) and that the path is correct. - Use a relative or absolute path that actually exists.
- Remember that LuCLI resolves files relative to the current directory by default.
Module not found
Symptoms: lucli some-module fails with a "module not found" error.
Checks:
- List installed modules:
lucli modules list
- Ensure the module lives under
~/.lucli/modules/. - Try the explicit form:
lucli modules run some-module ...
URL rewriting behaves unexpectedly
Symptoms: some routes 404, static assets break, or cgi.path_info is empty.
Checks:
- Confirm
urlRewritesettings inlucee.json. - Inspect generated files under your project webroot:
WEB-INF/web.xmlWEB-INF/urlrewrite.xml
- Use the debug techniques described in URL Rewriting.
Where to look next
lucli --helpand command-specific--helpoutput.- Logs under
~/.lucli/servers/<name>/logs/. - The examples and guides in this docs tree.
- The Common Workflows page for end‑to‑end scenarios.