This guide covers common issues you might encounter when specific setup or running the A.R.C.A.N.A. project.
- Symptom: The application crashes on startup, or the narrative agent returns empty/error responses.
- Cause: The
GOOGLE_API_KEYis missing or incorrect in the.envfile. - Solution:
- Check your
.envfile in theDndAgentroot directory. - Ensure it contains
GOOGLE_API_KEY=your_key_here(no quotes). - Restart the backend container:
docker-compose restart backend.
- Check your
- Symptom: The backend logs show errors connecting to
bolt://neo4j:7687. - Cause: The Neo4j container is not running or hasn't finished starting up.
- Solution:
- Check container status:
docker-compose ps. - If the container is not running, check logs:
docker-compose logs neo4j. - Wait a few seconds and try again; Neo4j takes a moment to initialize.
- Check container status:
- Symptom: You start a game but the world is empty, or you cannot buy items.
- Cause: The seeding script hasn't been run.
- Solution:
Run the seed command:
docker-compose exec backend python -m app.scripts.seed
To see what's happening under the hood:
- Backend Logs:
docker-compose logs -f backend - Frontend Logs:
docker-compose logs -f frontend
If you changed requirements.txt (Backend) or package.json (Frontend), you need to rebuild the containers:
docker-compose up --build