Move to Pantech / Troubleshooting
Migrate troubleshooting
Every reason a connection, a scan, an agent, a bucket import, a server copy, a database import or a Kubernetes move fails, and every error the Migrate API returns, with the fix.
Every failure carries a code and a message saying what to do. Errors are problem documents with a stable code; a request with a wrong field fails with 422 VALIDATION_FAILED, and its errors name the field and a code of their own.
A connection or a scan failed
A failed connection or scan carries a failure. The same codes are used for both.
| Code | What happened | Fix |
|---|---|---|
assume_role_denied | Your cloud would not let Pantech in | AWS: check the stack reached CREATE_COMPLETE and still exists, and that the ARN is its RoleArn output. A stack made from another connection's template trusts that connection, not this one. Google Cloud: check the setup script finished, and the project number, pool, provider and service account are the ones it printed. Azure: check the setup script finished, and the tenant and client ids are the ones it printed. Huawei Cloud: check the identity provider and mapping rule, and that its signing key is the current key set. Then retry |
permission_missing | The access you gave is missing a permission, or nothing at all could be read | Update the stack, or run the latest setup again for every project or subscription. If it is already current, look for an organization policy denying it. Then retry, or scan again |
provider_unavailable | Your cloud did not answer in time | Retry in a few minutes |
scan_too_large | The account holds more than one scan can store (8 MiB of inventory) | Contact support to scan it in parts |
agent_offline | No Pantech Migrate agent picked the scan up within an hour | Check the agent is running and enrolled for this connection (its agent.online and last_seen_at), then scan again |
token_rejected | Your cloud refused the token the agent uses | Check the token is still valid and has the scopes it needs, then scan again |
invalid_upload | The agent sent a scan Pantech couldn't read | Update the agent to the latest version and scan again |
internal | Something went wrong on Pantech's side | Retry. If it keeps happening, contact support with the connection or scan id |
To retry a connection check: PATCH /cloud-connections/{connection_id} with {"retry": true}, pantech migrate retry <connection> for AWS, or ask your AI app. To retry a scan, start a new one.
A scan that succeeded can still have skipped parts it could not read: those are its warnings, not failures.
Setting up
- AWS: the identity provider already exists. CloudFormation stops because the account already has Pantech's identity provider from an earlier connection. Create the stack with
CreateOIDCProviderset tofalse. See an account connected before. - AWS: the stack asks for IAM capabilities. It makes an IAM role. In the AWS console, tick the box that allows it; with the AWS CLI, add
--capabilities CAPABILITY_IAM. - AWS: access denied creating IAM resources. Your AWS user needs permission to create IAM roles and identity providers. Ask your AWS administrator to create the stack.
- Azure: a role assignment fails. A new app and role take a minute to appear; the script retries for a while. If it still fails, run it again.
- Azure: no people in the plan. The setup did not grant Graph's
User.Read.All, or admin consent was not given. The scan saysusers_unavailable. Run the setup again withINCLUDE_PEOPLE=trueas someone who can consent, or add people by hand. - Huawei Cloud: it worked, then stopped. Pantech rotated its signing keys and the identity provider still has the old ones. Paste the current
jwks.jsonand retry.
The agent
| What you see | Why | Fix |
|---|---|---|
401 AGENT_UNAUTHENTICATED | The code or credential is unknown, expired, used or revoked. The answer never says which | Issue a new code and enroll again. A code works once, within an hour; a credential not rotated for six hours has expired |
| "Pantech no longer accepts this agent" | The agent was revoked, replaced by another enrollment, or the connection was disconnected | Issue a new code and enroll again, if you still want it |
AGENT_PROTOCOL_UNSUPPORTED | The agent is too old | Install the latest agent |
RATE_LIMITED | More than 600 requests a minute from one agent, or 20 enrollment attempts a minute from one address | Wait the Retry-After seconds |
| "this scan would be refused by Pantech" | pantech-migrate-agent scan found data Pantech would not accept | Update the agent; if it persists, contact support |
| The agent refuses its state file | Others can read it | Make it readable only by the agent's user (chmod 600) |
| The agent refuses the API address | It is not https | Use https://api.pantechdynamics.com |
| The agent stops on a redirect | The API address it was given redirects (to https, or to another host); the agent follows no redirect | Give it https://api.pantechdynamics.com itself |
| "can be changed by other users" | Others can write the agent's configuration file | chmod go-w the file |
| "this agent has nothing to run" | It has no cloud token, no --server-copy, and no database source or kubeconfig in its configuration | Give it what its work needs: see run it. On AWS, Google Cloud, Azure and Huawei Cloud it never scans, so it needs a configuration or --server-copy |
pantech-migrate-agent check fails for a source | The connection string's variable is not set, its file cannot be read or others can read it, or the database refused the connection | Set the variable, chmod 600 the file, or fix the connection string; then run check again |
Migrate API errors
| Status | Code | Why | Fix |
|---|---|---|---|
| 404 | CLOUD_CONNECTION_NOT_FOUND | No connection with this id in your organization | Check the id with GET /cloud-connections. It may have been disconnected |
| 404 | CLOUD_SCAN_NOT_FOUND | No scan with this id in your organization | Only the newest 10 finished scans per connection are kept, and disconnecting deletes them all. Scan again |
| 404 | MIGRATION_NOT_FOUND | No migration with this id in your organization | Check the id with GET /migrations. It may have been deleted |
| 403 | CLOUD_CONNECTION_LIMIT_REACHED | Your organization already has 10 connections | Disconnect one you no longer need |
| 403 | MIGRATION_LIMIT_REACHED | Your organization already has 25 migrations | Delete a plan you no longer need |
| 409 | CLOUD_CONNECTION_NOT_CONNECTED | The connection is not connected, so it cannot be scanned or copied from | Finish connecting: send what the setup printed, or enroll the agent, or fix the failure and retry |
| 409 | CLOUD_CONNECTION_VERIFYING | Pantech is still checking the connection | Wait a minute, then try again |
| 409 | CLOUD_CONNECTION_USES_AGENT | This cloud is read through the agent, so there is no role or federation to send | Enroll the agent instead |
| 409 | CLOUD_SCAN_IN_PROGRESS | A scan of this connection is already queued or running | Wait for it to finish |
| 409 | CLOUD_SCAN_NOT_READY | The scan has not succeeded, so it cannot be planned from | Wait for it, or plan from a scan that succeeded |
| 409 | MIGRATION_PERSON_INVITED | This person was already invited from the plan, so their email and role can't change there | Change their role on Team instead |
| 409 | CONFLICT | The plan was changed at the same time | Read it again, then make your change |
| 409 | IDEMPOTENCY_CONFLICT | This Idempotency-Key was used with a different request | Use a new key for a different request |
| 400 | INVALID_IDEMPOTENCY_KEY | The Idempotency-Key is longer than 255 characters | Use a shorter key, such as a UUID |
| 422 | MIGRATION_TOO_LARGE | The plan is too large to store | Make the plan from a smaller scan, or exclude items you do not need; if that is not enough, contact support |
| 403 | FORBIDDEN | Your role, or an access policy, does not allow this | Ask an Owner or Admin |
| 403 | INSUFFICIENT_SCOPE | The API key's scope does not allow this | Changes need write; deleting a plan from an AI app, and a resync with mirror_deletes, need delete |
| 503 | MIGRATE_UNAVAILABLE | Migrate is not available right now | Try again later. If it persists, contact support |
| 503 | MIGRATE_AGENT_UNAVAILABLE | Connecting through the agent is not available right now | Try again later |
| 503 | MIGRATE_INVITES_UNAVAILABLE | Sending invites from a plan is not available right now | Invite people from Team instead |
| 503 | SERVICE_UNAVAILABLE | A brief problem on Pantech's side | Wait a few seconds, then retry |
Fields that fail with 422 VALIDATION_FAILED:
| Field | Code | Fix |
|---|---|---|
provider | UNSUPPORTED_PROVIDER | Use a provider GET /cloud-providers lists. Copy access is for AWS connections only |
federation | INVALID_FEDERATION | Send exactly what the setup printed (gcp for Google Cloud, azure for Azure, huawei for Huawei Cloud), with 1 to 20 projects or subscriptions |
name | INVALID_NAME | 1 to 100 printable characters |
role_arn | INVALID_ROLE_ARN | Send the stack's RoleArn output, like arn:aws:iam::123456789012:role/name. Retrying a connection that has no role yet also returns this: send the role first |
region | UNKNOWN_REGION | A Pantech region code, from GET /regions |
key | UNKNOWN_ITEM | No item in the plan has this key. Read the plan for the keys |
target | INVALID_TARGET | The change does not apply to this kind of item, or the value is not allowed. See edit the plan |
keys | INVALID_SELECTION | Invite between 1 and 50 people, by their item keys |
scan_id | REQUIRED | Name the scan to plan from |
Bucket imports
Copy access
A bucket in copy-access with ready: false has a failure:
| Code | Fix |
|---|---|
assume_role_denied | Pantech couldn't use the copy role. Check the copy stack still exists and its role ARN is the one set here |
permission_missing | The copy role can't read this bucket. Update the copy stack with the latest template, then retry with {"retry": true} |
provider_unavailable | AWS didn't answer in time. Retry in a few minutes |
An import failed
| Code | What happened | Fix |
|---|---|---|
assume_role_denied | Pantech couldn't use the copy role | Check the copy stack still exists and its role ARN is the one set in copy access |
copy_access_denied | The copy role can't read this bucket | Update the copy stack with the latest template, then resync |
source_bucket_missing | The source bucket no longer exists | |
provider_unavailable | AWS didn't answer for a while | Resync to try again |
destination_unavailable | Pantech object storage didn't answer for a while | Resync to try again |
destination_full | The bucket's size limit or your organization's storage limit is reached | Raise the limit or free space, then resync |
destination_gone | The Pantech bucket was deleted | Start a new import into another bucket |
internal | Something went wrong on Pantech's side | Resync; if it keeps happening, contact support |
Objects that failed one by one are in the import's failures, with a reason: see what is copied.
Errors
| Status | Code | Fix |
|---|---|---|
| 403 | OBJECT_STORAGE_NOT_ENABLED | Object storage is available on request: contact support to turn it on |
| 403 | BUCKET_IMPORT_LIMIT_REACHED | 20 imports are already in progress. Wait for one, or cancel one |
| 403 | BUCKET_IMPORT_TOO_LARGE | The bucket is larger than the storage your organization has left. Ask support to raise the limit, or free space |
| 403 | BUCKET_LIMIT_REACHED | Your organization has the most buckets allowed. Delete one, or copy into an existing bucket with destination_bucket_id |
| 404 | BUCKET_IMPORT_NOT_FOUND | No import with this id in your organization |
| 404 | BUCKET_NOT_FOUND | destination_bucket_id names no bucket of yours |
| 404 | COPY_ACCESS_NOT_FOUND | Choose the buckets to copy for this connection first |
| 409 | COPY_ACCESS_NOT_READY | Grant and verify copy access to this bucket first, or it was withdrawn |
| 409 | COPY_ACCESS_VERIFYING | The copy access is still being checked. Wait, then try again |
| 409 | BUCKET_IMPORT_IN_PROGRESS | The bucket is already being copied by another import |
| 409 | BUCKET_IMPORT_RUNNING | The import is still queued or running. Resync once it has finished |
| 409 | BUCKET_IMPORT_FINISHED | The import has already finished; there is nothing to cancel |
| 409 | BUCKET_NAME_TAKEN | A bucket with that name exists. Choose another destination_bucket_name |
| 409 | BUCKET_DELETED | The Pantech bucket has been deleted. Copy into another bucket |
| Field | Code | Fix |
|---|---|---|
buckets | INVALID_BUCKETS | Name 1 to 50 buckets, each once |
source_bucket | INVALID_BUCKET_NAME | The source bucket's name: 3 to 255 letters, digits, ., - or _ |
destination_bucket_name | INVALID_BUCKET_NAME | 3 to 63 lowercase letters, digits and hyphens, starting and ending with a letter or digit |
destination_bucket_name | INVALID_DESTINATION | Send exactly one of destination_bucket_name and destination_bucket_id |
connection_id | REQUIRED | Name the connection |
Server copies
A copy failed
| Code | What happened | Fix |
|---|---|---|
guest_not_fit | The pre-flight found something that stops the server running on Pantech | See the copy's flags for what to fix, then start a new copy |
expired | The copy wasn't cut over within 14 days, so its data was deleted | Start a new copy |
source_access_denied | Pantech couldn't read the disks with the copy role | Check the copy stack still exists and covers these volumes |
source_unavailable | Pantech couldn't read the source disks. A disk may have changed size, or a snapshot failed | Start a new copy |
snapshot_required | The copy needs a snapshot of every disk | Name them when you sync or cut over |
copy_incomplete | Part of the copy was missing or damaged when it was checked, so nothing was created | Start a new copy |
staging_full | Pantech has no room to hold the copy right now | Try again later |
import_failed | Pantech couldn't turn the copied disks into a server | Contact support with the copy's id |
quota_exceeded | Your organization has reached a limit, so the server wasn't created | Free up capacity or ask support to raise it, then start a new copy |
account_not_in_good_standing | The account isn't in good standing or couldn't pay for the server | Settle billing, then start a new copy |
instance_create_failed | The new server couldn't be created with these settings (plan, network, firewall or SSH key) | Start a new copy with valid ones |
internal | Something went wrong on Pantech's side | Try again; if it keeps happening, contact support |
Errors
| Status | Code | Fix |
|---|---|---|
| 403 | SERVER_COPY_LIMIT_REACHED | Five copies are in progress. Finish or cancel one |
| 404 | SERVER_COPY_NOT_FOUND | No copy with this id in your organization |
| 409 | SERVER_COPY_IN_PROGRESS | This server already has a copy in progress |
| 409 | SERVER_COPY_BUSY | A pass is running, or the server is being created. Wait for it |
| 409 | SERVER_COPY_NOT_SYNCED | The first pass has not finished. Wait for synced |
| 409 | SERVER_COPY_FINISHED | The copy has finished, failed or been cancelled. Start a new one |
| 503 | SERVER_COPY_UNAVAILABLE | Server copies are not available right now. Try again later |
Starting a copy can fail with 422 VALIDATION_FAILED and one of: NOT_COPYABLE (the item is not a planned server), INVALID_PLAN, INVALID_NAME, INVALID_SOURCE (the copy role or the snapshots), WINDOWS_NEEDS_AGENT, INVALID_DISKS, or TARGET_NOT_FOUND (the subnet, security group or SSH key).
Database imports
An import failed
| Code | What happened | Fix |
|---|---|---|
source_unreachable | The agent could not reach the source database | Run the agent where it can reach the source, and check its connection string |
source_auth_failed | The source refused the agent's login | Check the user and password in the agent's configuration |
source_permission_denied | The login cannot read everything the import needs | Grant it read access to every table, and replication for replicate |
source_not_configured | The agent has no source with this source_ref, or cannot read its connection string | Add it under database_sources in the agent's configuration and restart the agent, or start the import with the right name. Run pantech-migrate-agent check to see why a source cannot be opened |
dump_tool_missing | The agent's machine is missing pg_dump or mysqldump | Install the client tools, at least as new as the source server, and run the agent program there (the container has neither) |
source_changed | The source changed in a way the import cannot follow | Start a new import |
replication_unavailable | The source cannot stream its changes, so a low-downtime import cannot continue | Check the replication settings, or use dump |
statement_refused | Your Pantech database refused a statement in the schema | See what the schema may not do. Remove it at the source, then start a new import |
chunk_invalid | The import sent data that could not be applied | Update the agent, then start a new import |
access_revoked | The import's access to your Pantech database was removed while it was copying | Start a new import |
destination_unavailable | Your Pantech database is no longer available | Check the database, then start a new import |
internal | The agent stopped with an internal error | Update the agent and try again; if it keeps happening, contact support |
Before the copy starts, what blocks an import is in readiness.issues, each with its fix: see the readiness check. A table that fails verification leaves the import verifying_failed, with the table named.
Errors
| Status | Code | Fix |
|---|---|---|
| 403 | DATABASE_IMPORT_LIMIT_REACHED | 3 imports are in progress. Finish or cancel one |
| 404 | DATABASE_IMPORT_NOT_FOUND | No import with this id in your organization |
| 409 | DATABASE_IMPORT_DESTINATION_IN_USE | The database already has an import in progress |
| 409 | DATABASE_IMPORT_ITEM_NOT_IMPORTABLE | The item is excluded, or its engine is not offered |
| 409 | DATABASE_IMPORT_INVALID_STATE | The import cannot do this now, for example a readiness check after the copy started |
| 409 | DATABASE_IMPORT_FINISHED | The import has finished |
| 409 | DATABASE_IMPORT_NOT_COPIED | Not every table is copied yet. Wait, then cut over |
| 503 | DATABASE_IMPORT_UNAVAILABLE | Your Pantech database could not be reached right now. Try again in a minute |
Starting an import can fail with 422 VALIDATION_FAILED and one of: UNKNOWN_ITEM or NOT_A_DATABASE on item_key, DATABASE_NOT_FOUND or ENGINE_MISMATCH on destination_database_id, or an invalid source_ref, target_database or mode.
Kubernetes moves
A move or a volume failed
| Code | What happened | Fix |
|---|---|---|
agent_unavailable | The agent didn't pick up the export within an hour | Check it is running and connected, then start the move again |
source_access_denied | The agent's credential can't read the source cluster | Apply the reader manifest from source-access and try again |
source_credential_can_write | The agent was given a credential that can change the source cluster, so it refused to use it | Give it the read-only reader's kubeconfig instead |
source_unreachable | The agent couldn't reach the source cluster's API | Run it where it can reach the cluster |
export_invalid | The export from the agent couldn't be read | Update the agent and start the move again |
export_too_large | The source holds more than one move can carry (2,000 objects, 200 volumes) | Move it a few namespaces at a time |
cluster_not_ready | The Pantech cluster isn't running | Start it, then try again |
cluster_not_found | The Pantech cluster no longer exists | |
cluster_refused_object | The Pantech cluster refused one or more objects | The resources list says which, and why |
cluster_unreachable | Pantech couldn't reach the Pantech cluster's API | Try again in a few minutes |
volume_copy_failed | Copying a volume failed, or the agent refused a copy pod image other than the copier image it runs | Check the agent's kubernetes.copier_image, then sync the volumes again to resume where it stopped |
checksum_mismatch | The copied data didn't match the source when read back | Sync the volumes again |
timed_out | Copying took longer than 24 hours and was stopped | Sync the volumes again to resume |
volume_copy_unavailable | Copying volume data isn't available right now | Try again later, or move without copy_volumes |
internal | Something went wrong on Pantech's side | Try again; if it keeps happening, contact support |
A volume whose copy pod could not run fails with a code naming the side and the reason: source_ or destination_, then copy_pod_failed, copy_pod_vanished, copy_pod_exited_early, copy_pod_deadline_exceeded, copy_pod_evicted, copy_image_pull_failed, copy_pod_cannot_start or copy_pod_unschedulable. Check that cluster can pull the copier image and has room to schedule the pod (on the source, next to the pod using the volume), that the copier role is bound in the namespace, then sync the volumes again.
Objects in the report
An object the Pantech cluster refused in a preview or apply has one of these codes:
| Code | Fix |
|---|---|
kind_not_served | The Pantech cluster doesn't serve this kind or API version. Update the manifest to a version it serves |
namespace_or_owner_missing | Its namespace, or an object it needs, doesn't exist on the Pantech cluster |
rejected_as_invalid | The Pantech cluster found the object invalid |
forbidden_by_cluster | The cluster's admission refused it |
conflict | It conflicts with an object already on the Pantech cluster |
platform_metadata | It carries labels or annotations only Pantech may set |
policy_privileged_namespace | Only a namespace holding a workload you allowed may run privileged pods |
Objects refused by the cluster policy say which rule they broke, and can be included with allow_privileged. Skipped objects say why: a system namespace, an object a controller made, a Secret when you did not choose Secrets, a service account token, a Helm release record, something the cluster creates itself, a namespace you did not choose, a finished Job, or a custom resource without its definition. Cluster-wide roles and admission webhooks are refused.
Errors
| Status | Code | Fix |
|---|---|---|
| 403 | KUBERNETES_MOVE_LIMIT_REACHED | 5 moves are in progress. Finish or cancel one |
| 404 | KUBERNETES_MOVE_NOT_FOUND | No move with this id in your organization |
| 404 | KUBERNETES_CLUSTER_NOT_FOUND | cluster_id names no cluster of yours |
| 404 | KUBERNETES_MOVE_MANIFESTS_NOT_READY | The export has not been read yet. Wait for ready |
| 409 | KUBERNETES_CLUSTER_NOT_RUNNING | Start the Pantech cluster first |
| 409 | KUBERNETES_MOVE_CLUSTER_BUSY | The cluster already has a move in progress |
| 409 | KUBERNETES_MOVE_INVALID_STATE | The move cannot do this now. Check its status |
| 409 | KUBERNETES_MOVE_PREVIEW_REQUIRED | Preview before you apply |
| 409 | KUBERNETES_MOVE_PREVIEW_FAILED | The last preview had refusals. Fix them, or allow them, and preview again |
| 409 | KUBERNETES_MOVE_VOLUMES_NOT_SYNCED | Every volume must be copied before the cutover. Wait, or sync again |
| 422 | KUBERNETES_MOVE_TOO_LARGE | Move the cluster a few namespaces at a time |
| 503 | VOLUME_COPY_UNAVAILABLE | Copying volume data is not available right now. Move without copy_volumes, or try later |
Fields that fail with 422 VALIDATION_FAILED: item_key with UNKNOWN_ITEM, NOT_A_KUBERNETES_CLUSTER or ITEM_NOT_PLANNED (excluded or blocked: check its flags); allow_privileged with NOT_REFUSED_BY_POLICY (name only workloads the policy refused); source_writes_stopped with MUST_BE_TRUE; item_key or cluster_id with REQUIRED; and INVALID_VALUE for a namespace name that isn't valid.
Other questions
- The price comparison shows no figure for my cloud. The scan has
cost_unavailable(AWS: Cost Explorer is off, the role cannot read it, or the bill is in more than one currency) orcost_not_available(the cloud has no read-only spend API). - The price comparison shows no Pantech figure. A planned server has no plan chosen (flag
instance_size_unknown). Pick one, or exclude the server. - A server is missing from the plan. Terminated servers are left out. Check the scan's
warningsfor its region and itstruncatedlist. - A Windows server is unsupported. It is flagged
windows_on_request. Contact support to turn Windows Server on, then make a new plan. - Buckets are unsupported. They are flagged
object_storage_not_available: object storage is not on for your organization. Ask for it, then plan again. - The export leaves a server out. It is excluded or unsupported, or it has no plan chosen, which
main.tfnotes in a comment. Unsupported items are also listed at the end ofmain.tf. - A database import stays
awaiting_agent. No agent has picked it up. Check the connection's agent is running, can reach the database, and has the source named bysource_refunderdatabase_sourcesin its configuration (pantech-migrate-agent check). - A server copy stays
waiting. No agent has been started for it. On the server, enrolled for the plan's connection, runpantech-migrate-agent run --server-copy <copy id>as root (Administrator on Windows). A long-running agent elsewhere never takes a copy. See with the agent on the server. - Scans or imports stopped after a server copy. The agent enrolled on the server replaced the connection's other agent: a connection has one agent at a time. Enroll your long-running agent again with a new code.