Troubleshooting¶
Common issues and solutions for AAP Bridge.
Connection Issues¶
Cannot connect to source AAP¶
Symptoms:
Solutions:
- Verify the URL is correct in
.env - Check network connectivity:
curl -I https://source-aap.example.com/api/v2/ping/ - Verify the API token is valid
- Check firewall rules
Cannot connect to target AAP (Platform Gateway)¶
Symptoms:
Solution:
For AAP 2.6+, use the Platform Gateway URL:
# Wrong
TARGET__URL=https://target-aap.example.com/api/v2
# Correct
TARGET__URL=https://target-aap.example.com/api/controller/v2
Authentication errors¶
Symptoms:
Solutions:
- Regenerate API token in AAP UI
- Ensure token has admin privileges
- Check token hasn't expired
Database Issues¶
Cannot connect to PostgreSQL¶
Symptoms:
Solutions:
- Verify PostgreSQL is running:
systemctl status postgresql - Check connection string format:
- Verify user permissions:
State database corruption¶
Symptoms:
Solution:
Reset the state database:
Warning
This will require re-running the full migration.
Export Issues¶
Export runs out of memory¶
Symptoms:
Solutions:
- Reduce batch sizes in
config/config.yaml:
- Enable file splitting:
Export takes too long¶
Solutions:
- Export specific resource types:
- Increase concurrency (if AAP can handle it):
Import Issues¶
"SKIPPED - no importer" warning¶
Symptoms:
Cause: Missing entry in export_import.py method_map.
Solution: This is a code issue. Check
docs/developer-guide/adding-resource-types.md for how to add new resource
types.
Resource already exists¶
Symptoms:
Behavior: AAP Bridge handles this automatically by:
- Comparing existing resource with import data
- Updating if different, skipping if identical
- Recording the ID mapping
This is not an error - it's idempotent behavior.
Unresolved dependency¶
Symptoms:
Causes:
- Dependency wasn't exported
- Dependency export failed
- Resources exported out of order
Solutions:
- Check if the dependency exists in exports
- Re-run export for the missing type
- Check state database for mapping
Bulk import errors¶
Symptoms:
Solutions:
- Check for invalid host data (duplicate names, invalid characters)
- Reduce batch size:
- Check target AAP logs for details
Validation Issues¶
Count mismatch¶
Symptoms:
Causes:
- Some resources failed to import
- Some resources were skipped (duplicates)
- Import still in progress
Solutions:
- Check import logs for errors
- Review skipped resources in state database
- Re-run import (idempotent - safe to repeat)
Performance Issues¶
Migration is slow¶
Solutions:
- Increase concurrency:
-
Use bulk APIs (enabled by default for hosts)
-
Check AAP instance capacity - it may be the bottleneck
Rate limiting errors¶
Symptoms:
Solutions:
- Reduce rate limit:
- Reduce concurrency:
Logging and Debugging¶
Enable debug logging¶
Check log files¶
Enable payload logging¶
In config/config.yaml:
Warning
Payload logging may contain sensitive data. Use only for debugging.
Getting Help¶
If you can't resolve an issue:
- Check the GitHub Issues
- Search existing issues for similar problems
- Open a new issue with:
- AAP Bridge version
- Source/Target AAP versions
- Error messages (scrubbed of secrets)
- Relevant log excerpts