{"record":{"id":"93d9ef13f0d8bc96","repo":"coollabsio/coolify","slug":"this-server-cannot-be-transferred-because-one-or-m","errorCode":null,"errorMessage":"This server cannot be transferred because one or more applications use additional destinations (multi-server / multi-destination deploy). Remove all additional destinations from those applications, then retry the export.","messagePattern":"This server cannot be transferred because one or more applications use additional destinations \\(multi-server / multi-destination deploy\\)\\. Remove all additional destinations from those applications, then retry the export\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Services/ServerTransfer/ServerTransferExporter.php","lineNumber":788,"sourceCode":"    /**\n     * Multi-server / multi-destination applications cannot be transferred safely:\n     * the bundle is per-server and additional destinations may live on other hosts.\n     *\n     * @param  Collection<int, Application>  $applications\n     */\n    private function assertNoAdditionalDestinations(Server $server, Collection $applications): void\n    {\n        $involvesThisServer = DB::table('additional_destinations')\n            ->where('server_id', $server->id)\n            ->exists();\n\n        $appIds = $applications->pluck('id')->filter()->all();\n        $involvesTheseApps = $appIds !== [] && DB::table('additional_destinations')\n            ->whereIn('application_id', $appIds)\n            ->exists();\n\n        if ($involvesThisServer || $involvesTheseApps) {\n            throw new RuntimeException(\n                'This server cannot be transferred because one or more applications use additional destinations (multi-server / multi-destination deploy). '\n                .'Remove all additional destinations from those applications, then retry the export.'\n            );\n        }\n    }\n\n    /**\n     * @param  Collection<int, SharedEnvironmentVariable>|iterable<int, SharedEnvironmentVariable>  $variables\n     * @return list<array<string, mixed>>\n     */\n    private function exportSharedEnvVars(iterable $variables): array\n    {\n        $out = [];\n        foreach ($variables as $variable) {\n            // Skip auto COOLIFY_SERVER_* — recreated on server create.\n            if (in_array($variable->key, ['COOLIFY_SERVER_UUID', 'COOLIFY_SERVER_NAME'], true)) {\n                continue;\n            }","sourceCodeStart":770,"sourceCodeEnd":806,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Services/ServerTransfer/ServerTransferExporter.php#L770-L806","documentation":"Error \"This server cannot be transferred because one or more applications use additional destinations (multi-server / multi-destination deploy). Remove all additional destinations from those applications, then retry the export.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Services/ServerTransfer/ServerTransferExporter.php:788 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"}