{"record":{"id":"502f59a3ad9806eb","repo":"coollabsio/coolify","slug":"server-was-imported-on-targeturl-but-this-inst","errorCode":null,"errorMessage":"Server was imported on {$targetUrl}, but this instance could not mark it as transferred: {$e->getMessage()}. Retry complete (API: POST /api/v1/servers/{uuid}/complete) so automations stay disabled here. Do not re-import on the target.","messagePattern":"Server was imported on (.+?), but this instance could not mark it as transferred: (.+?)\\. Retry complete \\(API: POST /api/v1/servers/(.+?)/complete\\) so automations stay disabled here\\. Do not re-import on the target\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Services/ServerTransfer/ServerTransferMigrator.php","lineNumber":76,"sourceCode":"            rebindSentinel: $rebindSentinel,\n            preserveUuids: $preserveUuids,\n            adoptMode: $adoptMode,\n        );\n\n        if (is_array(data_get($importBody, 'warnings'))) {\n            $warnings = array_values(array_unique(array_merge($warnings, $importBody['warnings'])));\n        }\n\n        // Cross-instance 2PC is impossible: if complete fails after a successful import, the target\n        // already owns the server. Surface that clearly so the operator can retry complete only.\n        try {\n            $complete = $this->claimer->markTransferred(\n                $server,\n                exportId: is_string($exportId) ? $exportId : null,\n                targetInstanceUrl: $targetUrl,\n            );\n        } catch (Throwable $e) {\n            throw new RuntimeException(\n                \"Server was imported on {$targetUrl}, but this instance could not mark it as transferred: {$e->getMessage()}. \".\n                'Retry complete (API: POST /api/v1/servers/{uuid}/complete) so automations stay disabled here. Do not re-import on the target.',\n                previous: $e\n            );\n        }\n\n        return [\n            'server_uuid' => $server->uuid,\n            'export_id' => is_string($exportId) ? $exportId : null,\n            'target_url' => $targetUrl,\n            'import' => $importBody,\n            'complete' => $complete,\n            'warnings' => $warnings,\n            'message' => 'Server migrated to '.$targetUrl.'. Automations disabled on this instance.',\n        ];\n    }\n\n    private function normalizeTargetUrl(string $targetUrl): string","sourceCodeStart":58,"sourceCodeEnd":94,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Services/ServerTransfer/ServerTransferMigrator.php#L58-L94","documentation":"Error \"Server was imported on {$targetUrl}, but this instance could not mark it as transferred: {$e->getMessage()}. Retry complete (API: POST /api/v1/servers/{uuid}/complete) so automations stay disabled here. Do not re-import on the target.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Services/ServerTransfer/ServerTransferMigrator.php:76 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}