If you're experiencing issues with the dashboard, here are some common problems and their solutions:
We've fixed several dashboard issues:
- Location Information: The dashboard now correctly shows agent locations instead of "Unknown"
- Chat Functionality: Chat now properly connects to agent LLMs and avoids duplicate messages
- History Logs: The dashboard shows all agent history entries, not just the most recent ones
- Unity Connection Issues: Dashboard now shows agent actions and target locations even without Unity connection
- Status Display: Agent status now shows action and destination more clearly, including transition states
- Chat with LLM: Implemented real LLM-based chat using direct API calls
- Focused Conversations: Agents now pause exploration to focus on chat conversations
- Contextual Responses: Special system prompt ensures agents respond appropriately to user messages
- Chat Mode Activation: Dashboard automatically primes agents for chat when opening the conversation
- System Messages: Added system messages to indicate when chat mode is activated
These fixes are now part of the main codebase. If you're still experiencing issues, continue with the troubleshooting steps below.
The error message about monkey patching and the PortAudio library is a common conflict between EventletSocketIO (used for WebSockets) and the OpenAI library.
-
Use the Fallback Dashboard:
# Start the fallback version (no WebSockets, but works reliably) ./run_dashboard.sh fallback -
Fix PortAudio Library:
# On Ubuntu/Debian: sudo apt-get install portaudio19-dev # On Red Hat/Fedora: sudo dnf install portaudio-devel # On macOS: brew install portaudio
-
Set Environment Variable:
# Set this before running main.py export USE_FALLBACK_DASHBOARD=true python main.py
If you want to run the backend and dashboard separately (recommended for development):
-
Start Main Backend:
# Start without dashboard cd /home/roman-slack/SimuExoV1/SimuVerse_Backend python main.py
-
Start Dashboard Separately:
# In another terminal cd /home/roman-slack/SimuExoV1/SimuVerse_Backend ./run_dashboard.sh
If you're missing dependencies:
# Install the dependencies
./run_dashboard.sh installOr manually:
pip install flask flask-socketio eventletIf you can't access the dashboard from other devices:
-
Check Firewall: Make sure port 5001 is open on your machine.
-
Use Correct IP: Instead of 'localhost', use your machine's actual IP address.
-
Verify Host Setting: Make sure the dashboard is bound to '0.0.0.0' not '127.0.0.1'.
If you're not seeing real-time updates:
-
Browser Console: Check your browser's developer console for WebSocket errors.
-
Agent Logs: Verify that agent logs are being written correctly in the agent_logs directory.
-
Restart Browser: Sometimes the WebSocket connection gets stuck - refreshing should fix it.
For any other errors:
-
Check Logs: Look at Python console output for error messages.
-
Restart Everything: Sometimes a full restart of both the backend and the dashboard resolves issues.
-
Try Fallback Mode: The fallback dashboard should work in almost all environments.
If you continue to have issues, you can:
- Start the dashboard in fallback mode
- Make sure your agent logs are being correctly written to disk
- Look for specific error messages in the terminal output