Skip to main content

Connectivity Issues

Diagnose and resolve agent communication problems, network connectivity issues, and firewall configuration errors.

Systematic Approach

Follow the diagnostic steps in order to quickly identify and resolve connectivity problems.


Common Symptoms

SymptomDescription
Agent OfflineAgent cannot establish connection to CastellanAI backend
Intermittent DropsAgent alternates between online and offline status
Events Not AppearingAgent connected but events not transmitted
High LatencyEvents take longer than 30 seconds to appear

Diagnostic Steps

Step 1: Check Agent Service Status

Verify the CastellanAI agent service is running.

Windows:

Get-Service CastellanAgent | Select-Object Status, StartType

Linux:

sudo systemctl status castellan-agent
StatusAction
RunningProceed to Step 2
StoppedStart the service
Not FoundReinstall agent

Common Issues and Solutions

SSL Certificate Validation Failures

Symptom: Logs show "SSL certificate validation failed"

SolutionDescription
Check Date/TimeEnsure system clock is accurate
Update CertificatesInstall latest root certificates
Corporate CAImport corporate CA certificate if using SSL inspection
Update AgentLatest version has updated certificate bundle

Automated Connectivity Test

CastellanAI provides a built-in connectivity test tool.

Run the test:

castellan-agent test-connection

Expected output for healthy connection:

Connectivity Test Results:
✓ DNS Resolution: api.castellanai.com → 52.168.10.5
✓ HTTPS Connection: Port 443 (200 OK)
✓ WebSocket Connection: Port 443 (Connected)
✓ Authentication: Token valid
✓ Event Transmission: Test event sent successfully

Status: All checks passed
Failed Checks

If any checks fail, the tool provides specific error messages and resolution suggestions.


Prevention Best Practices

PracticeDescription
Monitor Agent HealthEnable notifications for offline agents
Document Network RequirementsProvide firewall teams with complete requirements
Keep Agents UpdatedEnable automatic updates for connectivity fixes
Test After ChangesRun connectivity tests after network maintenance
📝 Connectivity Troubleshooting Checklist
  • Verify agent service is running
  • Test network connectivity to CastellanAI endpoints
  • Review agent logs for specific errors
  • Check firewall rules allow required ports
  • Verify proxy configuration if applicable
  • Run automated connectivity test
  • Contact support if issue persists

What's Next?

GuideDescription
Agent Health MonitoringMonitor agent status and configure alerts
Agent TroubleshootingComprehensive agent troubleshooting guide
Performance OptimizationOptimize agent performance