Troubleshooting
Solutions for common issues when using OWASP Noir.
Something on fire? Start with the symptom below that matches. Most of these have a one-flag fix.
No Endpoints Found
Symptom: Noir runs but reports 0 endpoints.
- Check that you are pointing to the correct directory:
noir scan ./your-app - Verify that your framework is supported:
noir list techs - Check the detection step in the log. It lists each detected technology. If it says
No technologies detected, name the framework yourself with-t:noir scan . -t rails - If your framework is not supported, use AI-Powered Analysis to detect endpoints
- Look for
Skipped N media/large files out of M total filesin the log. Source files over 10MB and specification documents (OpenAPI and the like) over 64MB are skipped. Raise the limits withNOIR_MAX_FILE_SIZEandNOIR_MAX_SPEC_FILE_SIZE:NOIR_MAX_SPEC_FILE_SIZE=128MB noir scan .(the value is a byte count such as5242880or uses a unit such as500K,5MB,1G; a value Noir cannot read keeps the default, and the specification limit never drops belowNOIR_MAX_FILE_SIZE)
Scan Takes Too Long
Symptom: Noir takes a long time on large codebases.
- Use
--only-techsto run just those detectors and skip the rest:noir scan . --only-techs rails(--techsis different: it adds techs to the analyzer set without narrowing detection) - Use
--exclude-techsto skip the analyzers of detected frameworks you don't need (the log marks them(skip)) - Use
--exclude-pathto skip vendored or generated trees:--exclude-path "vendor/*,**/node_modules/**" - AI responses are cached, so repeat runs on the same code are faster
NOIR_PARSE_TIMEOUT_MSlimits how long tree-sitter may spend parsing one file (default10000, 10 seconds). A file that runs over is left out and the scan continues. A lower value gives up on slow files sooner, but endpoints in those files are missedNOIR_PARSER_MAX_DEPTHlimits how far Flask and Quart analysis follows imports (no limit by default).0reads only the starting file and1also reads its direct imports. A lower value is faster, but endpoints behind deeper imports can be missed. Other frameworks and languages do not use it
AI Provider Connection Errors
Symptom: Errors when using --ai-provider.
- Check the API key you passed in
NOIR_AI_KEY,--ai-key-file, or--ai-key - For local providers (Ollama, vLLM, LM Studio), check that the server is running
- Check the provider's default host in the AI Providers table
- For custom endpoints, use the full URL:
--ai-provider=http://your-server:port - For ACP providers, set
NOIR_ACP_RAW_LOG=1to see the agent's raw logs
Symptom: The AI analysis stalls, or gives up while the model is still working.
- Requests fail after
NOIR_AI_CONNECT_TIMEOUT(default 10s) if the host is unreachable, and afterNOIR_AI_TIMEOUT(default 300s) if the provider accepts the request but never answers - Raise
NOIR_AI_TIMEOUTwhen a slow local model legitimately needs longer to generate; lower--ai-max-tokento send smaller bundles instead - Rate limits (HTTP 429) and transient gateway errors (502, 503, ...) are retried with backoff, up to three attempts in total. If warnings persist, reduce
--concurrencyor cap the run with--ai-max-requests - If a proxy or gateway drops connections that sit idle while the model generates, add
--ai-stream(OpenAI-compatible providers)
Scan Uses Too Much Memory
Symptom: Noir uses a lot of memory on a large repository.
- Analyzers share a cache of file contents, limited to 512MB by default. Lower the limit with
NOIR_CONTENT_CACHE_MAX_MB(in megabytes):NOIR_CONTENT_CACHE_MAX_MB=128 noir scan . - Set
NOIR_CONTENT_CACHE_MAX_MB=0orNOIR_CONTENT_CACHE_DISABLE=trueto turn the cache off. Every read then goes to disk - A smaller cache uses less memory, but the scan can get slower
Docker Permission Issues
Symptom: Permission denied errors when running via Docker.
- Check that your directory is mounted correctly:
docker run --rm -v $(pwd):/tmp ghcr.io/owasp-noir/noir:latest noir scan /tmp - On SELinux systems, add
:zto the volume mount:-v $(pwd):/tmp:z
Shell Completion Not Working
Symptom: Tab completion doesn't work after installation.
- If you installed with Homebrew (
brew install noiror theowasp-noir/noirtap), completions are set up automatically for bash, zsh and fish. Open a new shell - For manual setup, see Shell Completions
- After setting up, restart your shell or run
source ~/.zshrc(or equivalent)
Still Need Help?
- Open a GitHub Issue
- See the Contact page for more ways to reach the team