Skip to content

Troubleshooting

Common issues and solutions for mcp-datahub.

Connection Issues

"unauthorized: invalid or missing token"

Cause: Invalid or expired DataHub token.

Solution: 1. Verify DATAHUB_TOKEN is set correctly 2. Generate a new token from DataHub Settings > Access Tokens 3. Ensure the token hasn't expired

"connection refused"

Cause: Cannot reach DataHub server.

Solution: 1. Verify DATAHUB_URL is correct 2. Check network connectivity to DataHub 3. Ensure DataHub is running and accessible

"certificate verify failed"

Cause: TLS certificate issue.

Solution: 1. Ensure DataHub uses a valid SSL certificate 2. Check if corporate proxy is intercepting traffic 3. Verify the certificate chain is complete

Search Issues

"no results found"

Cause: Query doesn't match any entities.

Solution: 1. Try broader search terms 2. Remove entity type filter 3. Verify entities exist in DataHub

"too many results"

Cause: Query is too broad.

Solution: 1. Add more specific search terms 2. Use entity type filter: entity_type: "DATASET" 3. Reduce limit parameter

Lineage Issues

"lineage depth exceeded"

Cause: Requested depth exceeds configured maximum.

Solution: 1. Reduce depth parameter 2. Increase DATAHUB_MAX_LINEAGE_DEPTH if needed

"no lineage found"

Cause: Entity has no upstream/downstream dependencies.

Solution: 1. Verify lineage exists in DataHub UI 2. Check if lineage is ingested for this platform

Performance Issues

Slow responses

Cause: Large result sets or deep lineage traversal.

Solution: 1. Reduce search limits 2. Reduce lineage depth 3. Increase timeout: DATAHUB_TIMEOUT=60

Timeouts

Cause: Request exceeds timeout limit.

Solution: 1. Increase timeout value 2. Reduce query complexity 3. Check DataHub server performance

Configuration Issues

"invalid configuration"

Cause: Missing or invalid configuration values.

Solution: 1. Verify all required env vars are set 2. Check for typos in variable names 3. Ensure numeric values are valid

Environment variables not loaded

Cause: Variables not exported or shell not reloaded.

Solution:

# Export variables
export DATAHUB_URL=https://datahub.company.com
export DATAHUB_TOKEN=your_token

# Or use .env file with direnv

Getting Help

If you're still having issues:

  1. Check GitHub Issues
  2. Search existing discussions
  3. Open a new issue with:
  4. mcp-datahub version
  5. DataHub version
  6. Error messages
  7. Steps to reproduce