Can't Connect
Connection or authentication issues are preventing access. Here's how to diagnose and fix them.
Quick Diagnosis
Check these first:
- Is the data source reachable? Verify network connectivity
- Are credentials correct? Check connection string, keys, tokens
- Has anything changed? Keys rotated, firewall rules, network changes
Step-by-Step Diagnosis
1. Check Connection Status
In your workspace, check the connection status indicator:
| Status | Meaning | Action |
|---|---|---|
| Connected | Working normally | Issue is elsewhere |
| Connecting | Attempting connection | Wait, then retry |
| Error | Connection failed | Check details below |
| Disconnected | Not attempting | Check configuration |
2. Verify Credentials
The most common cause is credential issues:
For IoT Hub connections:
- Check the connection string is complete
- Verify the shared access policy has correct permissions
- Ensure the key hasn't been rotated
For Event Hub connections:
- Check namespace and event hub names
- Verify connection string includes EntityPath
- Check SAS token hasn't expired
If credentials recently changed in Azure, you'll need to update them in OpenIndustrial. Changes don't sync automatically.
3. Check Network Access
Firewall and network issues:
| Symptom | Likely Cause | Solution |
|---|---|---|
| Timeout errors | Firewall blocking | Add OI IPs to allowlist |
| Connection refused | Port blocked | Check port 443/5671 open |
| SSL errors | Certificate issue | Verify SSL/TLS settings |
4. Test the Source Directly
Before troubleshooting further, verify your data source works:
For IoT Hub:
- Can you see device telemetry in Azure Portal?
- Is the device registered and sending data?
- Does the device show "Connected" in Azure?
For Event Hub:
- Can you see messages in Azure Portal?
- Is the producer sending events?
- Are consumer groups available?
Common Error Messages
"Connection string is invalid"
Cause: Malformed or incomplete connection string
Solution:
- Copy the full connection string from Azure Portal
- Ensure no characters are truncated
- Check for extra spaces or line breaks
"Authentication failed"
Cause: Invalid credentials or expired token
Solution:
- Regenerate keys in Azure Portal
- Update connection in OpenIndustrial
- Verify policy permissions
"Resource not found"
Cause: Incorrect resource name or deleted resource
Solution:
- Verify the resource exists in Azure
- Check spelling of namespace/hub name
- Ensure you're in the correct Azure subscription
"Connection timeout"
Cause: Network issue or firewall blocking
Solution:
- Check firewall allows outbound HTTPS
- Verify network connectivity
- Check for proxy configuration needs
Azure-Specific Issues
IoT Hub
Common issues:
- Using device connection string instead of IoT Hub connection string
- Missing ServiceConnect permission on policy
- Consumer group already in use
Event Hub
Common issues:
- Missing EntityPath in connection string
- Consumer group doesn't exist
- Partition count changed
Still Can't Connect?
Gather this information:
- Exact error message
- Connection type (IoT Hub, Event Hub, etc.)
- When it last worked (if ever)
- Any recent changes
Related
On this page
- FrontmatterVersion: 1 DocumentType: Guide Title: "Can't Connect" Summary: "Diagnose a connection or authentication failure: check reachability and credentials, read the status indicator, and match the error message." Created: 2026-01-19
- Can't Connect