Documentation

esc
    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.

    CodeWhat happenedFix
    assume_role_deniedYour cloud would not let Pantech inAWS: 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_missingThe access you gave is missing a permission, or nothing at all could be readUpdate 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_unavailableYour cloud did not answer in timeRetry in a few minutes
    scan_too_largeThe account holds more than one scan can store (8 MiB of inventory)Contact support to scan it in parts
    agent_offlineNo Pantech Migrate agent picked the scan up within an hourCheck the agent is running and enrolled for this connection (its agent.online and last_seen_at), then scan again
    token_rejectedYour cloud refused the token the agent usesCheck the token is still valid and has the scopes it needs, then scan again
    invalid_uploadThe agent sent a scan Pantech couldn't readUpdate the agent to the latest version and scan again
    internalSomething went wrong on Pantech's sideRetry. 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 CreateOIDCProvider set to false. 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 says users_unavailable. Run the setup again with INCLUDE_PEOPLE=true as 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.json and retry.

    The agent

    What you seeWhyFix
    401 AGENT_UNAUTHENTICATEDThe code or credential is unknown, expired, used or revoked. The answer never says whichIssue 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 disconnectedIssue a new code and enroll again, if you still want it
    AGENT_PROTOCOL_UNSUPPORTEDThe agent is too oldInstall the latest agent
    RATE_LIMITEDMore than 600 requests a minute from one agent, or 20 enrollment attempts a minute from one addressWait the Retry-After seconds
    "this scan would be refused by Pantech"pantech-migrate-agent scan found data Pantech would not acceptUpdate the agent; if it persists, contact support
    The agent refuses its state fileOthers can read itMake it readable only by the agent's user (chmod 600)
    The agent refuses the API addressIt is not httpsUse https://api.pantechdynamics.com
    The agent stops on a redirectThe API address it was given redirects (to https, or to another host); the agent follows no redirectGive it https://api.pantechdynamics.com itself
    "can be changed by other users"Others can write the agent's configuration filechmod 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 configurationGive 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 sourceThe connection string's variable is not set, its file cannot be read or others can read it, or the database refused the connectionSet the variable, chmod 600 the file, or fix the connection string; then run check again

    Migrate API errors

    StatusCodeWhyFix
    404CLOUD_CONNECTION_NOT_FOUNDNo connection with this id in your organizationCheck the id with GET /cloud-connections. It may have been disconnected
    404CLOUD_SCAN_NOT_FOUNDNo scan with this id in your organizationOnly the newest 10 finished scans per connection are kept, and disconnecting deletes them all. Scan again
    404MIGRATION_NOT_FOUNDNo migration with this id in your organizationCheck the id with GET /migrations. It may have been deleted
    403CLOUD_CONNECTION_LIMIT_REACHEDYour organization already has 10 connectionsDisconnect one you no longer need
    403MIGRATION_LIMIT_REACHEDYour organization already has 25 migrationsDelete a plan you no longer need
    409CLOUD_CONNECTION_NOT_CONNECTEDThe connection is not connected, so it cannot be scanned or copied fromFinish connecting: send what the setup printed, or enroll the agent, or fix the failure and retry
    409CLOUD_CONNECTION_VERIFYINGPantech is still checking the connectionWait a minute, then try again
    409CLOUD_CONNECTION_USES_AGENTThis cloud is read through the agent, so there is no role or federation to sendEnroll the agent instead
    409CLOUD_SCAN_IN_PROGRESSA scan of this connection is already queued or runningWait for it to finish
    409CLOUD_SCAN_NOT_READYThe scan has not succeeded, so it cannot be planned fromWait for it, or plan from a scan that succeeded
    409MIGRATION_PERSON_INVITEDThis person was already invited from the plan, so their email and role can't change thereChange their role on Team instead
    409CONFLICTThe plan was changed at the same timeRead it again, then make your change
    409IDEMPOTENCY_CONFLICTThis Idempotency-Key was used with a different requestUse a new key for a different request
    400INVALID_IDEMPOTENCY_KEYThe Idempotency-Key is longer than 255 charactersUse a shorter key, such as a UUID
    422MIGRATION_TOO_LARGEThe plan is too large to storeMake the plan from a smaller scan, or exclude items you do not need; if that is not enough, contact support
    403FORBIDDENYour role, or an access policy, does not allow thisAsk an Owner or Admin
    403INSUFFICIENT_SCOPEThe API key's scope does not allow thisChanges need write; deleting a plan from an AI app, and a resync with mirror_deletes, need delete
    503MIGRATE_UNAVAILABLEMigrate is not available right nowTry again later. If it persists, contact support
    503MIGRATE_AGENT_UNAVAILABLEConnecting through the agent is not available right nowTry again later
    503MIGRATE_INVITES_UNAVAILABLESending invites from a plan is not available right nowInvite people from Team instead
    503SERVICE_UNAVAILABLEA brief problem on Pantech's sideWait a few seconds, then retry

    Fields that fail with 422 VALIDATION_FAILED:

    FieldCodeFix
    providerUNSUPPORTED_PROVIDERUse a provider GET /cloud-providers lists. Copy access is for AWS connections only
    federationINVALID_FEDERATIONSend exactly what the setup printed (gcp for Google Cloud, azure for Azure, huawei for Huawei Cloud), with 1 to 20 projects or subscriptions
    nameINVALID_NAME1 to 100 printable characters
    role_arnINVALID_ROLE_ARNSend 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
    regionUNKNOWN_REGIONA Pantech region code, from GET /regions
    keyUNKNOWN_ITEMNo item in the plan has this key. Read the plan for the keys
    targetINVALID_TARGETThe change does not apply to this kind of item, or the value is not allowed. See edit the plan
    keysINVALID_SELECTIONInvite between 1 and 50 people, by their item keys
    scan_idREQUIREDName the scan to plan from

    Bucket imports

    Copy access

    A bucket in copy-access with ready: false has a failure:

    CodeFix
    assume_role_deniedPantech couldn't use the copy role. Check the copy stack still exists and its role ARN is the one set here
    permission_missingThe copy role can't read this bucket. Update the copy stack with the latest template, then retry with {"retry": true}
    provider_unavailableAWS didn't answer in time. Retry in a few minutes

    An import failed

    CodeWhat happenedFix
    assume_role_deniedPantech couldn't use the copy roleCheck the copy stack still exists and its role ARN is the one set in copy access
    copy_access_deniedThe copy role can't read this bucketUpdate the copy stack with the latest template, then resync
    source_bucket_missingThe source bucket no longer exists
    provider_unavailableAWS didn't answer for a whileResync to try again
    destination_unavailablePantech object storage didn't answer for a whileResync to try again
    destination_fullThe bucket's size limit or your organization's storage limit is reachedRaise the limit or free space, then resync
    destination_goneThe Pantech bucket was deletedStart a new import into another bucket
    internalSomething went wrong on Pantech's sideResync; 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

    StatusCodeFix
    403OBJECT_STORAGE_NOT_ENABLEDObject storage is available on request: contact support to turn it on
    403BUCKET_IMPORT_LIMIT_REACHED20 imports are already in progress. Wait for one, or cancel one
    403BUCKET_IMPORT_TOO_LARGEThe bucket is larger than the storage your organization has left. Ask support to raise the limit, or free space
    403BUCKET_LIMIT_REACHEDYour organization has the most buckets allowed. Delete one, or copy into an existing bucket with destination_bucket_id
    404BUCKET_IMPORT_NOT_FOUNDNo import with this id in your organization
    404BUCKET_NOT_FOUNDdestination_bucket_id names no bucket of yours
    404COPY_ACCESS_NOT_FOUNDChoose the buckets to copy for this connection first
    409COPY_ACCESS_NOT_READYGrant and verify copy access to this bucket first, or it was withdrawn
    409COPY_ACCESS_VERIFYINGThe copy access is still being checked. Wait, then try again
    409BUCKET_IMPORT_IN_PROGRESSThe bucket is already being copied by another import
    409BUCKET_IMPORT_RUNNINGThe import is still queued or running. Resync once it has finished
    409BUCKET_IMPORT_FINISHEDThe import has already finished; there is nothing to cancel
    409BUCKET_NAME_TAKENA bucket with that name exists. Choose another destination_bucket_name
    409BUCKET_DELETEDThe Pantech bucket has been deleted. Copy into another bucket
    FieldCodeFix
    bucketsINVALID_BUCKETSName 1 to 50 buckets, each once
    source_bucketINVALID_BUCKET_NAMEThe source bucket's name: 3 to 255 letters, digits, ., - or _
    destination_bucket_nameINVALID_BUCKET_NAME3 to 63 lowercase letters, digits and hyphens, starting and ending with a letter or digit
    destination_bucket_nameINVALID_DESTINATIONSend exactly one of destination_bucket_name and destination_bucket_id
    connection_idREQUIREDName the connection

    Server copies

    A copy failed

    CodeWhat happenedFix
    guest_not_fitThe pre-flight found something that stops the server running on PantechSee the copy's flags for what to fix, then start a new copy
    expiredThe copy wasn't cut over within 14 days, so its data was deletedStart a new copy
    source_access_deniedPantech couldn't read the disks with the copy roleCheck the copy stack still exists and covers these volumes
    source_unavailablePantech couldn't read the source disks. A disk may have changed size, or a snapshot failedStart a new copy
    snapshot_requiredThe copy needs a snapshot of every diskName them when you sync or cut over
    copy_incompletePart of the copy was missing or damaged when it was checked, so nothing was createdStart a new copy
    staging_fullPantech has no room to hold the copy right nowTry again later
    import_failedPantech couldn't turn the copied disks into a serverContact support with the copy's id
    quota_exceededYour organization has reached a limit, so the server wasn't createdFree up capacity or ask support to raise it, then start a new copy
    account_not_in_good_standingThe account isn't in good standing or couldn't pay for the serverSettle billing, then start a new copy
    instance_create_failedThe new server couldn't be created with these settings (plan, network, firewall or SSH key)Start a new copy with valid ones
    internalSomething went wrong on Pantech's sideTry again; if it keeps happening, contact support

    Errors

    StatusCodeFix
    403SERVER_COPY_LIMIT_REACHEDFive copies are in progress. Finish or cancel one
    404SERVER_COPY_NOT_FOUNDNo copy with this id in your organization
    409SERVER_COPY_IN_PROGRESSThis server already has a copy in progress
    409SERVER_COPY_BUSYA pass is running, or the server is being created. Wait for it
    409SERVER_COPY_NOT_SYNCEDThe first pass has not finished. Wait for synced
    409SERVER_COPY_FINISHEDThe copy has finished, failed or been cancelled. Start a new one
    503SERVER_COPY_UNAVAILABLEServer 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

    CodeWhat happenedFix
    source_unreachableThe agent could not reach the source databaseRun the agent where it can reach the source, and check its connection string
    source_auth_failedThe source refused the agent's loginCheck the user and password in the agent's configuration
    source_permission_deniedThe login cannot read everything the import needsGrant it read access to every table, and replication for replicate
    source_not_configuredThe agent has no source with this source_ref, or cannot read its connection stringAdd 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_missingThe agent's machine is missing pg_dump or mysqldumpInstall the client tools, at least as new as the source server, and run the agent program there (the container has neither)
    source_changedThe source changed in a way the import cannot followStart a new import
    replication_unavailableThe source cannot stream its changes, so a low-downtime import cannot continueCheck the replication settings, or use dump
    statement_refusedYour Pantech database refused a statement in the schemaSee what the schema may not do. Remove it at the source, then start a new import
    chunk_invalidThe import sent data that could not be appliedUpdate the agent, then start a new import
    access_revokedThe import's access to your Pantech database was removed while it was copyingStart a new import
    destination_unavailableYour Pantech database is no longer availableCheck the database, then start a new import
    internalThe agent stopped with an internal errorUpdate 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

    StatusCodeFix
    403DATABASE_IMPORT_LIMIT_REACHED3 imports are in progress. Finish or cancel one
    404DATABASE_IMPORT_NOT_FOUNDNo import with this id in your organization
    409DATABASE_IMPORT_DESTINATION_IN_USEThe database already has an import in progress
    409DATABASE_IMPORT_ITEM_NOT_IMPORTABLEThe item is excluded, or its engine is not offered
    409DATABASE_IMPORT_INVALID_STATEThe import cannot do this now, for example a readiness check after the copy started
    409DATABASE_IMPORT_FINISHEDThe import has finished
    409DATABASE_IMPORT_NOT_COPIEDNot every table is copied yet. Wait, then cut over
    503DATABASE_IMPORT_UNAVAILABLEYour 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

    CodeWhat happenedFix
    agent_unavailableThe agent didn't pick up the export within an hourCheck it is running and connected, then start the move again
    source_access_deniedThe agent's credential can't read the source clusterApply the reader manifest from source-access and try again
    source_credential_can_writeThe agent was given a credential that can change the source cluster, so it refused to use itGive it the read-only reader's kubeconfig instead
    source_unreachableThe agent couldn't reach the source cluster's APIRun it where it can reach the cluster
    export_invalidThe export from the agent couldn't be readUpdate the agent and start the move again
    export_too_largeThe source holds more than one move can carry (2,000 objects, 200 volumes)Move it a few namespaces at a time
    cluster_not_readyThe Pantech cluster isn't runningStart it, then try again
    cluster_not_foundThe Pantech cluster no longer exists
    cluster_refused_objectThe Pantech cluster refused one or more objectsThe resources list says which, and why
    cluster_unreachablePantech couldn't reach the Pantech cluster's APITry again in a few minutes
    volume_copy_failedCopying a volume failed, or the agent refused a copy pod image other than the copier image it runsCheck the agent's kubernetes.copier_image, then sync the volumes again to resume where it stopped
    checksum_mismatchThe copied data didn't match the source when read backSync the volumes again
    timed_outCopying took longer than 24 hours and was stoppedSync the volumes again to resume
    volume_copy_unavailableCopying volume data isn't available right nowTry again later, or move without copy_volumes
    internalSomething went wrong on Pantech's sideTry 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:

    CodeFix
    kind_not_servedThe Pantech cluster doesn't serve this kind or API version. Update the manifest to a version it serves
    namespace_or_owner_missingIts namespace, or an object it needs, doesn't exist on the Pantech cluster
    rejected_as_invalidThe Pantech cluster found the object invalid
    forbidden_by_clusterThe cluster's admission refused it
    conflictIt conflicts with an object already on the Pantech cluster
    platform_metadataIt carries labels or annotations only Pantech may set
    policy_privileged_namespaceOnly 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

    StatusCodeFix
    403KUBERNETES_MOVE_LIMIT_REACHED5 moves are in progress. Finish or cancel one
    404KUBERNETES_MOVE_NOT_FOUNDNo move with this id in your organization
    404KUBERNETES_CLUSTER_NOT_FOUNDcluster_id names no cluster of yours
    404KUBERNETES_MOVE_MANIFESTS_NOT_READYThe export has not been read yet. Wait for ready
    409KUBERNETES_CLUSTER_NOT_RUNNINGStart the Pantech cluster first
    409KUBERNETES_MOVE_CLUSTER_BUSYThe cluster already has a move in progress
    409KUBERNETES_MOVE_INVALID_STATEThe move cannot do this now. Check its status
    409KUBERNETES_MOVE_PREVIEW_REQUIREDPreview before you apply
    409KUBERNETES_MOVE_PREVIEW_FAILEDThe last preview had refusals. Fix them, or allow them, and preview again
    409KUBERNETES_MOVE_VOLUMES_NOT_SYNCEDEvery volume must be copied before the cutover. Wait, or sync again
    422KUBERNETES_MOVE_TOO_LARGEMove the cluster a few namespaces at a time
    503VOLUME_COPY_UNAVAILABLECopying 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) or cost_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 warnings for its region and its truncated list.
    • 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.tf notes in a comment. Unsupported items are also listed at the end of main.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 by source_ref under database_sources in 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, run pantech-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.

    Was this page helpful?

    Updated