coollabsio/coolify · error · RuntimeException
The Coolify host (localhost) cannot be transferred between i
Error message
The Coolify host (localhost) cannot be transferred between instances.
What it means
Error "The Coolify host (localhost) cannot be transferred between instances." thrown in coollabsio/coolify.
Source
Thrown at app/Services/ServerTransfer/ServerTransferExporter.php:79
'deleted_at',
'environment_id',
'destination_id',
'destination_type',
'source_id',
'source_type',
'private_key_id',
'additional_servers_count',
'additional_networks_count',
'server_status',
];
/**
* @return array<string, mixed>
*/
public function export(Server $server, bool $includeSensitive = true): array
{
if ($server->id === 0) {
throw new RuntimeException('The Coolify host (localhost) cannot be transferred between instances.');
}
$server->loadMissing(['settings', 'privateKey', 'standaloneDockers', 'swarmDockers', 'cloudProviderToken', 'sslCertificates']);
$privateKey = $server->privateKey;
if (! $privateKey instanceof PrivateKey) {
throw new RuntimeException('Server has no private key to export.');
}
if (! $includeSensitive) {
throw new RuntimeException('Server transfer export requires sensitive data access (read:sensitive).');
}
// applications() also includes multi-destination attachments on this server;
// unique by id so a multi-dest app is only considered once for validation/export.
$applications = $server->applications()->unique('id')->values();
$databases = collect($server->databases())->unique(fn ($db) => $db::class.':'.$db->id)->values();
$services = $server->services()->get()->unique('id')->values();View on GitHub (pinned to 70b9acc424)
When it happens
Trigger: Thrown at app/Services/ServerTransfer/ServerTransferExporter.php:79 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of coollabsio/coolify@70b9acc424 (2026-08-17).
Data as JSON: /api/errors/cc240931c1fe4079.
Report an issue: GitHub.