Troubleshooting
Common issues and their solutions when using Glance.
Installation Issues
Command Not Found After Installation
Problem: glance: command not found after installing via Homebrew
Solution:
# Check if installed
brew list glance
# Get installation path
which glance
# Add Homebrew bin to PATH if needed
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcPort Already in Use
Problem: Glance won't start - port 15500, 15501, or 15502 already in use
Solution:
# Find what's using the port
lsof -i :15500
# Kill the process
kill -9 <PID>
# Or start Glance on different ports
glance --proxy-port 8080 --dashboard-port 8081 --mcp-port 8082Certificate Errors
SSL/TLS Handshake Failed
Problem: Certificate verification errors when making HTTPS requests
Solution:
Export the CA certificate:
bashcurl http://localhost:15501/ca.crt -o glance-ca.crtTrust the certificate:
macOS:
bashsudo security add-trusted-cert -d -r trustRoot \ -k /Library/Keychains/System.keychain glance-ca.crtLinux:
bashsudo cp glance-ca.crt /usr/local/share/ca-certificates/ sudo update-ca-certificatesVerify trust:
bashcurl https://api.github.com # Should work without errors
Certificate Errors in Specific Tools
cURL:
# Use certificate
curl --cacert glance-ca.crt https://example.com
# Or ignore (dev only)
curl -k https://example.comGit:
# Use certificate
git config --global http.sslCAInfo /path/to/glance-ca.crt
# Or disable verification (not recommended)
git config --global http.sslVerify falseNode.js:
export NODE_EXTRA_CA_CERTS=/path/to/glance-ca.crtTraffic Not Appearing
No Requests in Dashboard
Problem: Dashboard is empty even though applications are running
Diagnosis:
# Check if proxy environment variables are set
echo $HTTP_PROXY
echo $HTTPS_PROXY
# Test with curl
curl -x http://localhost:15500 http://httpbin.org/get
# Check Glance logs
glance --log-level debugSolutions:
Set proxy variables:
bashexport HTTP_PROXY=http://localhost:15500 export HTTPS_PROXY=http://localhost:15500Use one-liner setup:
basheval "$(curl -s http://localhost:15501/setup)"Check application proxy settings: Some apps ignore environment variables
Traffic Only Shows HTTP, Not HTTPS
Problem: Only HTTP requests appear, HTTPS requests are missing
Cause: Certificate not trusted or HTTPS proxy not configured
Solution:
- Trust Glance CA certificate (see Certificate Errors above)
- Ensure
HTTPS_PROXYis set:bashexport HTTPS_PROXY=http://localhost:15500
Performance Issues
Slow Request Times
Problem: Requests through Glance are significantly slower
Diagnosis:
# Compare with and without proxy
time curl https://api.github.com
HTTP_PROXY=http://localhost:15500 time curl https://api.github.comSolutions:
Check database size:
bashls -lh ~/.glance.db # If > 1GB, clear old trafficClear traffic: In dashboard, click "Clear Traffic"
Reduce logging: Start with less verbose logging:
bashglance --log-level warn
High Memory Usage
Problem: Glance consuming excessive memory
Solutions:
- Clear traffic regularly
- Limit traffic storage: Configure max entries (if supported)
- Restart Glance periodically
Dashboard Issues
Dashboard Won't Load
Problem: http://localhost:15501 doesn't respond
Diagnosis:
# Check if Glance is running
ps aux | grep glance
# Check if port is listening
lsof -i :15501
# Try accessing via IP
curl http://127.0.0.1:15501Solutions:
Restart Glance:
bashkillall glance glanceCheck firewall: Ensure localhost connections allowed
Try different browser: Could be browser extension interfering
WebSocket Connection Failed
Problem: "WebSocket connection failed" error in dashboard
Cause: Proxy or VPN interfering with WebSocket connection
Solution:
Disable browser proxy for dashboard:
- Add
localhostto proxy exceptions - Or access dashboard without proxy
- Add
Check browser extensions: Disable ad blockers temporarily
Client-Specific Issues
Docker Containers
Problem: Can't capture traffic from Docker containers
Solution:
# Use host network mode
docker run --network host myimage
# Or expose proxy to container
docker run -e HTTP_PROXY=http://host.docker.internal:15500 myimage
# On Linux, use host IP
docker run -e HTTP_PROXY=http://172.17.0.1:15500 myimageAndroid Apps
Problem: Traffic from Android app not visible
Common Causes:
- Certificate pinning: Some apps (banking, security) use pinning
- API level 30+: Requires system certificate or network security config
- VPN interference: Disable VPN on device
Solutions:
- Check if user certificate is trusted: Settings → Security → Trusted credentials
- Use Network Security Config for your app (if you're the developer)
- Install as system certificate (requires root)
Java Applications
Problem: Java app ignoring proxy settings
Solution:
# Use JVM arguments
java -Dhttp.proxyHost=localhost \
-Dhttp.proxyPort=15500 \
-Dhttps.proxyHost=localhost \
-Dhttps.proxyPort=15500 \
-jar app.jar
# Import certificate to Java keystore
keytool -import -trustcacerts -alias glance \
-file glance-ca.crt \
-keystore $JAVA_HOME/lib/security/cacerts \
-storepass changeitMCP Integration Issues
Claude Desktop Can't Connect
Problem: Claude Desktop doesn't show Glance MCP server
Diagnosis:
Check config file exists:
bash# macOS cat ~/Library/Application\ Support/Claude/claude_desktop_config.json # Windows type %APPDATA%\Claude\claude_desktop_config.jsonVerify Glance path:
bashwhich glance # Use this full path in config
Solution:
Correct config format:
json{ "mcpServers": { "glance": { "command": "/opt/homebrew/bin/glance", "args": ["--mcp"] } } }Restart Claude Desktop completely (quit, not just close window)
MCP Server Port Conflict
Problem: MCP server won't start
Solution:
# Use different port
glance --mcp-port 15503
# Update Claude config with new port if neededError Messages
"bind: address already in use"
Cause: Another process using Glance's ports
Solution: See Port Already in Use above
"database is locked"
Cause: Another Glance instance or process accessing the database
Solution:
# Kill all Glance processes
killall glance
# Remove lock file if exists
rm ~/.glance.db-wal ~/.glance.db-shm
# Start Glance
glance"certificate signed by unknown authority"
Cause: Glance CA certificate not trusted
Solution: See Certificate Errors above
Getting More Help
Enable Debug Logging
glance --log-level debugThis shows detailed information about:
- Proxy connections
- Certificate handling
- Database operations
- MCP tool calls
Check Logs
Glance logs to stdout/stderr. Redirect to file:
glance > glance.log 2>&1Report an Issue
If you can't solve the problem:
Gather information:
bash# Glance version glance --version # OS version uname -a # Debug logs glance --log-level debug > debug.log 2>&1Create GitHub issue: github.com/wahyudotdev/glance/issues
Include:
- What you're trying to do
- What happens instead
- Steps to reproduce
- Relevant logs (remove sensitive info!)
Next Steps
- FAQ - Frequently asked questions
- Client Configuration - Platform-specific setup
- Development Guide - Build from source