Common Issues
Installer Hangs
If the interactive installer prompts are stuck, use the non-interactive mode:Config Errors
LongMem automatically backs up invalid JSON configurations and repairs them. If you encounter config issues, check:Daemon Won’t Start
Check if daemon is already running:Port 38741 already in use, another process is using the port:
~/.longmem/settings.json and modify the daemon.port value:
Stale PID File
If the daemon reports a stale PID file, the process may have crashed without cleaning up:- Checks if process is alive
- Removes PID file if process is dead
- Retries health check after cleanup
Diagnostic Commands
Check Daemon Status
- PID (process ID)
- Port number
- Uptime in seconds
- Pending compression jobs
- Circuit breaker status
- Idle time
- Service management (systemd/launchd or manual)
View Logs
~/.longmem/logs/
Check Memory Statistics
- Total observations stored
- Compressed vs uncompressed
- Database size
Test Health Endpoint
Manual Shutdown
Iflongmem stop doesn’t work:
Privacy Mode Issues
Warning: Privacy Mode ‘none’
If you see:~/.longmem/settings.json:
safe- Redacts common secrets + blocks sensitive filesflexible- Safe + custom regex patternsnone- No redaction (use only for local-only setups)
Service Management
systemd (Linux)
Check service status:launchd (macOS)
Check if service is loaded:Getting Help
If you’re still experiencing issues:- Check the GitHub Issues
- Run diagnostics:
- Report with:
- OS and architecture
- LongMem version (
cat ~/.longmem/version) - Error messages
- Output from diagnostic commands