Skip to main content

Exit Codes

Log Files

Each component writes to a log file specified by the logFile parameter in the orchestrator configuration. For migrations created through the Web Interface, logs are stored under the migration directory. Per-migration log structure:
UX Server logs:
Usage tracking:
You can download all logs for a migration as a ZIP file through the Web Interface by opening the migration and clicking Download Logs.

License Issues

License Check Failed (Exit Code 1)

The orchestrator validates the license at startup. If validation fails, it prints an error and exits with code 1. Note that exit code 1 is also used for other operational errors (connection failures, configuration errors, file I/O errors, etc.) — check the log message for the specific cause. Diagnose with:

Usage Cap Exceeded (Exit Code 2)

Some licenses limit total bytes processed. When a cap is reached, the loader exits with code 2. Check current usage through the Web Interface or contact your license provider to increase the cap.

Connection Issues

DSN File Errors

Database Connection Failures

Diagnosis steps:
  1. Test connectivity from the Wirekite host:
  2. Test DNS resolution:
  3. Use the Web Interface Test Connection button to validate credentials
  4. Run a test query with Wiretalk:

Data Migration Issues

Migration Stops Mid-Process

Symptoms: No new data arriving at target, logs show no recent activity. Diagnosis:
Recovery: Restart the migration. Wirekite automatically resumes from the last saved position using the wirekite_progress table.

Duplicate Key Errors During Load

Cause: Table already has data from a previous partial load, and the loader is re-inserting rows. Recovery:
  1. Check if the file was already loaded:
  2. If the record shows finish_time IS NOT NULL, the file completed successfully and should be skipped automatically. If the recovery table is missing the record, truncate the target table and reset:

Schema Mismatch

Symptoms: Data load fails with type mismatch or column not found errors. Cause: Source schema changed after schema extraction, or type mappings are incompatible. Recovery:
  1. Re-run schema extraction to capture the latest source schema
  2. Verify type mappings in the generated SQL
  3. Regenerate and re-apply the create table SQL on the target

Out of Disk Space

Symptoms: File operations fail with no space left on device. Recovery:
  1. Free disk space (check /tmp, log directories, old data files)
  2. Enable removeFiles=true in the mover and loader to clean up processed files
  3. Restart the migration - it resumes from the recovery checkpoint

CDC/Replication Issues

MySQL / MariaDB / SingleStore

Check binlog status:

PostgreSQL / YugaByte / TigerData / AlloyDB

Check replication status:
Drop a stuck slot:

Oracle

SQL Server

Enable CDC:

Cloud Staging Issues

S3/GCS Upload Failures

Diagnosis:
  • AWS: Verify credentials with aws sts get-caller-identity
  • GCS: Verify credentials with gcloud auth list
  • Check bucket access and write permissions
  • Verify the bucket region matches your configuration

Snowflake Stage Errors

Symptoms: PUT or COPY commands fail. Check:
  1. Verify warehouse is running and has available compute
  2. Check that the connection string specifies a valid warehouse
  3. Verify the user has USAGE on the warehouse and stage

Recovery Table Issues

wirekite_action must have 1 row in it

Cause: The wirekite_action table was accidentally emptied or has extra rows. Fix:

High Restart Counts

If the restarts column in wirekite_progress shows high values for a file, the same operation is crashing repeatedly. Diagnosis:
Investigate the component logs for the specific file to find the root cause before restarting again.

UX Server Issues

Cannot Connect to UX Server

  1. Verify the service is running: sudo systemctl status wirekite-ux
  2. Check logs: tail -f /opt/wirekite/ux/logs/ux-server.log
  3. Ensure port 8443 is open: sudo lsof -i :8443
  4. Verify SSL certificates exist at /opt/wirekite/ux/server/certs/

Authentication Issues

  1. Clear browser cookies and retry
  2. Check users.json in the config directory
  3. Restart the UX server to clear all sessions: sudo systemctl restart wirekite-ux

Diagnostic Tools

Wiretalk

Run ad-hoc queries against any configured source or target to diagnose connectivity and data issues. See Wiretalk.

TableValidator

Validate data integrity between source and target after migration. See TableValidator.

Web Interface Diagnostics

The Web Interface provides:
  • Test Connection - Validate database credentials
  • Download Logs - ZIP archive of all migration logs
  • Real-time Progress - Monitor extraction and loading rates
  • Validation - Run data validation with configurable sample size

Pre-Migration Checklist

Before starting a migration, verify:
1

Connectivity

Test connections to both source and target databases.
2

License

Validate your license is current and has sufficient usage cap.
3

Disk Space

Ensure adequate space on the Wirekite host for data files.
4

Replication Prerequisites

If using CDC, enable the required replication features on the source (binlog for MySQL, logical WAL for PostgreSQL, supplemental logging for Oracle, CDC for SQL Server).
5

Permissions

Verify database users have the required privileges for extraction and loading.
6

Schema

Extract and review the schema before starting data migration.