Troubleshooting Guide
Common issues and solutions for Arc Memory
Troubleshooting Guide
This guide covers common issues you might encounter when using Arc Memory and provides solutions to resolve them.
Installation Issues
Python Version Errors
Issue: Error message about unsupported Python version.
Solution:
- Check your Python version:
python --version
- Install a supported version (3.9 or higher):
- Create a new virtual environment with the correct Python version:
Dependency Conflicts
Issue: Errors about conflicting dependencies or version requirements.
Solution:
- Use a clean virtual environment:
- Install Arc Memory in the virtual environment:
- If conflicts persist, try installing with the
--ignore-installed
flag:
Installation Fails on Windows
Issue: Installation fails with compilation errors on Windows.
Solution:
- Install Visual C++ Build Tools:
- Download from Microsoft’s website
- Select “C++ build tools” during installation
- Install using a wheel file if available:
- If all else fails, consider using WSL (Windows Subsystem for Linux)
Authentication Issues
GitHub Authentication Fails
Issue: GitHub authentication fails with error messages.
Solution:
- Check your token has the required scopes:
repo
(for private repositories)read:user
read:org
(if accessing organization repositories)
- Verify the token is valid by testing it with the GitHub API:
- Try authenticating with a new token:
- Check for network issues or proxy settings that might block GitHub API access
Token Not Found
Issue: Error message about missing GitHub token.
Solution:
- Explicitly provide the token:
- Check if the token file exists:
- Set the token as an environment variable:
Build Issues
Build Process Fails
Issue: The arc build
command fails with errors.
Solution:
- Run with debug logging:
- Check if Git is installed and accessible:
- Verify you’re in a Git repository:
- Try building with limited scope:
- Check for disk space issues:
GitHub API Rate Limit Exceeded
Issue: Build fails with GitHub API rate limit errors.
Solution:
- Authenticate with a GitHub token:
- Reduce the scope of your build:
- Use incremental builds when possible:
- Wait for rate limits to reset (usually 1 hour)
Database Errors
Issue: Errors related to the SQLite database.
Solution:
- Check database integrity:
- Try rebuilding from scratch:
- Check SQLite version:
- Verify write permissions to the output directory:
Query Issues
No Results Found
Issue: Commands like trace
, why
, or relate
return no results.
Solution:
- Verify the file path is correct:
- Check if the file is tracked in Git:
- Increase the search depth:
- Ensure the knowledge graph is built:
Performance Issues
Issue: Queries are very slow or time out.
Solution:
- Limit the query depth:
- Filter by specific edge or node types:
- Use incremental builds to keep the graph size manageable:
- Check system resources:
Simulation Issues
Simulation Fails to Start
Issue: The arc sim run
command fails to start.
Solution:
- Run with debug logging:
- Check if the required dependencies are installed:
- Try a different sandbox environment:
- Verify your changes are valid:
Sandbox Environment Issues
Issue: Errors related to the sandbox environment.
Solution:
- For Docker sandbox issues:
- Check if Docker is running:
docker ps
- Verify Docker permissions:
docker run hello-world
- Restart Docker:
systemctl restart docker
or restart Docker Desktop
- Check if Docker is running:
- For E2B sandbox issues:
- Check internet connectivity
- Verify your E2B API key:
echo $E2B_API_KEY
- Try the local sandbox instead:
arc sim run --sandbox local
Inaccurate Simulation Results
Issue: Simulation results seem inaccurate or incomplete.
Solution:
- Try with memory enabled:
- Use a more isolated sandbox:
- Run multiple scenarios:
- Ensure your repository has sufficient test coverage
Plugin Issues
Plugin Not Found
Issue: Error about a plugin not being found.
Solution:
- Check if the plugin is installed:
- Verify the plugin is properly registered:
- Install the plugin:
- If developing a plugin, install in development mode:
Plugin Errors During Build
Issue: Errors from plugins during the build process.
Solution:
- Run with debug logging:
- Try building without the problematic plugin:
- Check plugin compatibility with your Arc Memory version:
- Update the plugin:
General Troubleshooting Steps
If you encounter issues not covered above:
- Check logs: Run commands with
--debug
flag - Verify dependencies: Run
arc doctor
to check system requirements - Update Arc Memory: Run
pip install --upgrade arc-memory
- Check GitHub issues: Visit GitHub Issues to see if others have reported the same problem
- Clean installation: Try uninstalling and reinstalling Arc Memory
- System resources: Ensure you have sufficient disk space, memory, and CPU resources
Getting Help
If you’re still experiencing issues:
- Open an issue on GitHub
- Include detailed information:
- Arc Memory version:
arc --version
- Python version:
python --version
- Operating system and version
- Complete error message and stack trace
- Steps to reproduce the issue
- Arc Memory version:
- Check the FAQ for common questions
See Also
- Dependencies Guide - For a complete list of dependencies
- Test Environment Setup - For setting up a test environment
- GitHub Integration Guide - For GitHub-specific troubleshooting