Quick Diagnostics
Before diving into specific issues, run these diagnostic commands:Common Issues
Port Already in Use
Port Already in Use
Symptoms:Cause: Another process is using port 3000 (or your specified port).Solutions:
- Use a different port:
- Find and kill the process using the port:
- Check if another Gambiarra instance is running:
Connection Refused to Hub
Connection Refused to Hub
Symptoms:Cause: Hub is not running or not accessible.Solutions:
- Verify hub is running:
- Check if hub is listening on the correct interface:
- Verify firewall rules:
- Try using the IP address instead of localhost:
Room Not Found
Room Not Found
Symptoms:Cause: Room code is incorrect or room was deleted.Solutions:
- List available rooms:
- Create a new room:
- Check for typos in room code (case-sensitive):
- Verify hub URL:
Model Not Found
Model Not Found
Symptoms:Cause: Model name doesn’t match any loaded model.Solutions:
- List available models on your endpoint:
- Pull/download the model:
- Use exact model name (case-sensitive):
- Verify model is loaded:
Participant Offline
Participant Offline
Symptoms:Cause: Participant health checks are failing.Technical Details:
- Health check interval: 10 seconds (see
packages/core/src/types.ts:15) - Timeout threshold: 30 seconds (3 missed checks)
- Implementation:
packages/core/src/hub.ts:380-388
- Check if participant process is still running:
- Verify network connectivity:
- Check participant logs for errors:
- Restart the participant:
- Check for network issues:
- WiFi disconnections
- Laptop sleep/hibernate
- Network congestion
- Firewall blocking health checks
mDNS Discovery Not Working
mDNS Discovery Not Working
Symptoms:Cause: mDNS/Bonjour is not enabled or blocked.Solutions:
- Enable mDNS on hub:
- Check if mDNS is supported:
- Check for firewall blocking mDNS (port 5353 UDP):
- Use explicit hub URL instead:
- Check network configuration:
- Ensure devices are on the same network segment
- Some networks block multicast traffic
- VPNs may interfere with mDNS
LLM Endpoint Not Responding
LLM Endpoint Not Responding
Symptoms:Cause: LLM server is not running or not accessible.Solutions:
- Verify LLM server is running:
- Check correct port:
- Test endpoint directly:
- Check server logs for errors:
- Restart the LLM server:
Streaming Not Working
Streaming Not Working
Symptoms:Cause: SSE (Server-Sent Events) not properly configured.Solutions:
- Verify streaming is enabled in request:
- Check if using reverse proxy with buffering:
- Verify LLM endpoint supports streaming:
- Check hub logs for streaming errors:
- Hub should return
Content-Type: text/event-stream - See implementation:
packages/core/src/hub.ts:284-293
Password Authentication Failing
Password Authentication Failing
Symptoms:Cause: Incorrect password or password not provided.Solutions:
- Verify password is correct:
- Check if room requires password:
- Create room with password:
- Join with password:
Passwords are hashed with argon2id before storage (see
packages/core/src/room.ts:10-18).High Memory Usage
High Memory Usage
Symptoms:Cause: Memory leaks or resource buildup.Solutions:
- Check for room/participant accumulation:
- Restart the hub periodically:
- Monitor SSE connections:
- Check for participant health check buildup:
- Health checks run every 10 seconds
- Failed participants should be marked offline
- See:
packages/core/src/hub.ts:380-388
SDK Integration Issues
SDK Integration Issues
Symptoms:Cause: Incorrect SDK configuration or network issues.Solutions:
- Verify SDK configuration:
- Test hub connectivity:
- Verify participants are online:
- Check model routing:
- Enable debug logging:
Platform-Specific Issues
Linux
Issue: Permission denied on port 3000macOS
Issue: Firewall blocking connectionsWindows
Issue: Bonjour not installedDebugging Tools
Enable Debug Logging
Monitor SSE Events
Watch real-time events from a room:Inspect Hub State
Network Diagnostics
Check Process Status
Getting Help
If you’re still experiencing issues:- Check existing GitHub issues: github.com/arthurbm/gambiarra/issues
- Create a new issue with:
- Full error message
- Steps to reproduce
- Environment details (OS, Bun version, LLM provider)
- Output from diagnostic commands
- Join the community for real-time help
Known Limitations
These are not bugs but design limitations:- No persistent storage: Rooms exist only in memory
- No authentication: Designed for trusted networks
- No rate limiting: Can be abused without proxy
- No load balancing: Participants selected randomly
- No request queuing: Busy participants may reject requests