Troubleshooting
Common issues and solutions when using nxv.
Search Issues
No results found
Check spelling: Package names are case-sensitive
bashnxv search Python # Wrong nxv search python # CorrectTry partial match: Use prefix search
bashnxv search pythSearch descriptions: The package might have a different name
bashnxv search "image editor" --descUpdate index: Your index might be outdated
bashnxv update
Search is slow
The first search loads the database and bloom filter into memory. Subsequent searches are fast. If searches remain slow:
- Check disk I/O (SSD recommended)
- Ensure sufficient RAM (~500MB for index)
- Check
NXV_DB_PATHisn't on a network drive
Update Issues
Download fails
- Check network: Ensure GitHub is accessible
- Retry: Transient failures are commonbash
nxv update - Force full download: Skip delta updatesbash
nxv update --force
Signature verification failed
- Check clock: Signature validation requires accurate time
- Skip verification (not recommended for production):bash
NXV_SKIP_VERIFY=1 nxv update
Disk full
The index requires ~100MB of disk space:
- Linux:
~/.local/share/nxv/ - macOS:
~/Library/Application Support/nxv/
Server Issues
Port already in use
bash
# Use different port
nxv serve --port 3000
# Find what's using port 8080
lsof -i :8080CORS errors in browser
bash
# Enable CORS for all origins
nxv serve --cors
# Or specific origins
nxv serve --cors-origins "http://localhost:3000"Connection refused
Check bind address: Default is localhost only
bashnxv serve --host 0.0.0.0 # Listen on all interfacesCheck firewall: Ensure port is open
Indexer Issues
Disk full during indexing
Nix store grows during indexing:
bash
# Manual cleanup
nix-collect-garbage -dIndexing stuck
Check logs:
bashnxv -v index --nixpkgs-path ./nixpkgsReset and resume:
bashnxv reset --nixpkgs-path ./nixpkgs nxv index --nixpkgs-path ./nixpkgs
Worker crashes
Workers may crash on certain commits:
bash
# Skip problematic date range
nxv index --nixpkgs-path ./nixpkgs --since 2023-06-01
# Check worker logs
nxv -vv index --nixpkgs-path ./nixpkgsGetting Help
- Check GitHub Issues: github.com/utensils/nxv/issues
- Open an issue: Include:
- nxv version (
nxv --version) - Operating system
- Command that failed
- Error message
- Debug logs if available
- nxv version (