Troubleshooting Connection Issues
Last Updated: January 7, 2026 Estimated Reading Time: 7 minutes
Overview
This guide helps you diagnose and resolve ServiceNow connection issues in cmdbx. Most connection problems fall into one of five categories: authentication, network, permissions, configuration, or ServiceNow instance issues.
Quick Diagnosis
Test Your Connection
- Navigate to Settings > Connection
- Click Test Connection
- Review the result:
- Success: Connection working
- Authentication Failed: Credentials issue
- Connection Timeout: Network issue
- Insufficient Permissions: Role issue
- Instance Not Found: URL issue
Always run "Test Connection" first. The error message provides specific guidance for most common issues.
Authentication Errors
Error: "Authentication failed"
Symptom: Connection test shows "401 Unauthorized" or "Authentication failed"
Common Causes:
1. Incorrect Username or Password
Solution:
- Verify credentials in ServiceNow:
- Log into ServiceNow UI with same credentials
- If login fails, reset password in ServiceNow
- Update credentials in cmdbx:
- Settings > Connection → Edit Connection
- Re-enter username and password
- Save and test
2. Account Locked or Disabled
Solution:
- In ServiceNow, navigate to User Administration → Users
- Search for service account
- Check:
- Active: Must be checked
- Locked out: Must be unchecked
- Account enabled: Yes
- If locked, click Unlock Account
- Test connection in cmdbx
3. Password Expired
Solution:
- In ServiceNow, check password expiration date
- If expired:
- Reset password
- Update in cmdbx
- Consider enabling "Password never expires" for service accounts
- Test connection
4. OAuth Token Expired (if using OAuth)
Solution:
- Settings > Connection → OAuth Settings
- Click Refresh Token
- If refresh fails, regenerate OAuth credentials:
- In ServiceNow: System OAuth → Application Registry
- Edit cmdbx application
- Generate new client secret
- Update in cmdbx
- Test connection
For service accounts, enable "Password never expires" to prevent unexpected authentication failures. Rotate credentials manually on a schedule instead.
Error: "Invalid OAuth configuration"
Symptom: OAuth authentication failing
Solution:
-
Verify OAuth Settings in ServiceNow:
- Navigate to System OAuth → Application Registry
- Find cmdbx application
- Check:
- Client ID matches cmdbx configuration
- Redirect URL is correct:
https://app.cmdbx.com/api/auth/callback - Token expiration settings are reasonable
-
Regenerate OAuth Credentials:
- In ServiceNow OAuth app, click Regenerate Secret
- Copy new Client ID and Secret
- In cmdbx: Settings > Connection
- Enter new credentials
- Save and test
-
Check OAuth Scopes:
- Ensure OAuth app has access to CMDB tables
- Grant
useraccountscope
Network Errors
Error: "Connection timeout"
Symptom: Test connection hangs then times out after 30 seconds
Common Causes:
1. Firewall Blocking cmdbx
Solution:
- Check if your firewall blocks outbound connections from ServiceNow
- Whitelist cmdbx IP addresses in your firewall:
52.87.143.2254.165.201.8934.201.45.123
- Contact your network team if needed
- Test connection
2. ServiceNow IP Whitelist Blocking cmdbx
Solution:
- In ServiceNow: System Security → IP Address Access Control
- Check if IP restrictions are enabled
- Add cmdbx IP addresses:
- Create new rule for each IP
- Type: Allow
- IP Address: (enter cmdbx IP)
- Save
- Test connection
3. Corporate Proxy
Solution:
- If ServiceNow is behind corporate proxy:
- Settings > Connection → Advanced
- Enable Use Proxy
- Enter proxy details:
- Host:
proxy.yourcompany.com - Port:
8080 - Username/Password (if required)
- Host:
- Save and test
4. VPN Required
Solution:
- If ServiceNow only accessible via VPN, cmdbx cannot connect
- Options:
- Configure ServiceNow to allow connections from cmdbx IPs
- Use a private or dedicated deployment model if required
- Set up site-to-site connectivity as part of an Enterprise or MSP engagement
Error: "SSL certificate error"
Symptom: "SSL certificate verification failed" or "Certificate invalid"
Solution:
-
Self-Signed Certificate:
- ServiceNow production instances should use valid SSL certificates
- For dev instances with self-signed certs:
- Settings > Connection → Advanced
- Enable Allow Self-Signed Certificates (not recommended for production)
- Better: Install valid certificate on ServiceNow instance
-
Expired Certificate:
- Check ServiceNow certificate expiration
- Renew certificate in ServiceNow
- Test connection
-
Hostname Mismatch:
- Ensure ServiceNow URL matches certificate common name
- Use correct instance URL (no trailing slash)
Permission Errors
Error: "Insufficient permissions"
Symptom: "403 Forbidden" or "User lacks required roles"
Solution:
-
Check Required Roles:
- Service account needs:
itilrolecmdb_readrole (minimum)cmdb_writerole (if using CSDM Workbench)cmdb_adminrole (for service modeling)
- Service account needs:
-
Assign Roles in ServiceNow:
- Navigate to User Administration → Users
- Find service account
- Scroll to Roles section
- Click Edit
- Add missing roles
- Save
-
Verify Role Assignment:
- In ServiceNow, navigate to System Web Services → REST API Explorer
- Test API call to
cmdb_ci_servertable - If succeeds: cmdbx should work
- If fails: Role assignment issue
"Web Service Access Only" accounts need roles assigned at the user level, not inherited from groups. Directly assign roles to the service account.
Error: "Cannot access table"
Symptom: "ACL Error" or "Table not accessible"
Solution:
-
Check Table ACLs:
- In ServiceNow: System Security → Access Control (ACL)
- Search for CMDB table (e.g.,
cmdb_ci_server) - Verify service account's roles grant read access
- Add role to ACL if needed
-
Custom CI Classes:
- If syncing custom CI classes:
- Verify service account has read access to custom tables
- Check if custom tables inherit CMDB ACLs
- Grant specific access if needed
- If syncing custom CI classes:
Configuration Errors
Error: "Invalid instance URL"
Symptom: "Instance not found" or "404 Not Found"
Solution:
-
Verify URL Format:
- Correct:
https://yourinstance.service-now.com - Wrong:
http://yourinstance.service-now.com(no HTTP, must be HTTPS) - Wrong:
https://yourinstance.service-now.com/(no trailing slash) - Wrong:
https://yourinstance.service-now.com/nav_to.do(no path)
- Correct:
-
Check Instance Name:
- Ensure instance name is correct
- Dev instances:
https://dev12345.service-now.com - Production:
https://yourcompany.service-now.com
-
ServiceNow Instance Active:
- Verify instance is not hibernated (dev instances hibernate if inactive)
- Log into ServiceNow UI to wake up instance
- Test cmdbx connection again
Error: "Connection already exists"
Symptom: Cannot create new connection
Solution:
- Check if connection to same instance URL already exists
- Either:
- Edit existing connection instead of creating new
- Delete old connection (if truly duplicate)
- Note: Same instance URL cannot be used for multiple environments
ServiceNow Instance Issues
ServiceNow Instance Down
Symptom: Connection worked before, now fails consistently
Solution:
-
Check ServiceNow Status:
- Visit https://status.servicenow.com
- Check if your instance/region has issues
- Wait for ServiceNow to resolve
-
Maintenance Window:
- Check if ServiceNow is in scheduled maintenance
- ServiceNow upgrade windows typically 2-4 hours
- Wait and retry after maintenance
-
Instance Hibernation (Dev instances):
- Dev instances hibernate after 7 days inactivity
- Log into ServiceNow UI to wake instance
- Takes 2-3 minutes to wake
- Retry cmdbx connection
API Rate Limiting
Symptom: Connection succeeds but sync fails with "429 Too Many Requests"
Solution:
-
Reduce Sync Frequency:
- Settings > Sync Config
- Change from hourly to daily
- Reduce parallel threads from 5 to 3
-
Reduce Batch Size:
- Settings > Sync Config → Advanced
- Reduce batch size from 1000 to 500
-
Contact ServiceNow Admin:
- Request increased API rate limits
- Verify no other integrations exhausting API quota
-
Review ServiceNow API Entitlements:
- Some ServiceNow editions have lower API limits
- Confirm your current quota and raise limits if needed
Advanced Troubleshooting
Enable Debug Logging
For persistent issues:
- Navigate to Settings > Connection → Advanced
- Enable Debug Logging
- Set Log Level: Verbose
- Test connection
- View logs: Settings > Sync Status → Connection Logs
- Look for detailed error messages
- Share logs with [email protected] if needed
Test with cURL
Test connection outside cmdbx:
curl -X GET \
'https://yourinstance.service-now.com/api/now/table/cmdb_ci_server?sysparm_limit=1' \
-H 'Accept: application/json' \
-u 'username:password'
Expected: 200 OK with JSON data
If fails: Issue is with ServiceNow configuration, not cmdbx
ServiceNow REST API Explorer
Test credentials in ServiceNow:
- In ServiceNow: System Web Services → REST API Explorer
- Select API: Table API
- Select Method: Retrieve records from a table
- Set Table:
cmdb_ci_server - Set
sysparm_limit: 1 - Click Send
- Verify 200 OK response
If this fails, credentials/permissions are the issue.
Getting Help
Before Contacting Support
Gather this information:
- Error Message: Exact text from "Test Connection"
- ServiceNow Version: Help → About ServiceNow
- Instance URL: (you can redact company name)
- Roles Assigned: Screenshot of service account roles
- Recent Changes: Any changes to ServiceNow or network
- Connection Logs: Settings > Sync Status → Connection Logs (last 24 hours)
Contact Support
Email: [email protected]
Include:
- Tenant ID
- Environment name
- Error details above
- Best time to contact you
Response Time:
- Professional: 48 hours
- Business: 24 hours
- Enterprise: 4 hours
- MSP: Custom
Prevention
Monitoring Connection Health
-
Enable Connection Monitoring:
- Settings > Connection → Monitoring
- Enable Connection Health Checks
- Frequency: Every 15 minutes
-
Set Up Alerts:
- Settings > Connection → Notifications
- Enable Connection Failure Alert
- Recipients: CMDB Admins
- Email immediately on failure
-
Review Connection Logs:
- Weekly review of connection logs
- Investigate any failures
- Address issues proactively
Best Practices
- Use Service Account: Never use personal accounts for integration
- Document Configuration: Keep record of settings
- Test Changes: Test in dev before production
- Monitor ServiceNow Status: Subscribe to status.servicenow.com
- Coordinate Upgrades: Plan cmdbx maintenance with ServiceNow upgrades
- Rotate Credentials Carefully: Update cmdbx immediately after rotation
- Keep Roles Minimal: Only assign required roles, no more
Related Articles
- ServiceNow Setup - Initial configuration
- Sync Problems - Troubleshooting syncs
- Common Errors - General error reference
- Security - Secure configuration
Need Help?
Contact [email protected] with error details and we'll help resolve your connection issue.