coollabsio/coolify · error · RuntimeException
Server has no private key to export.
Error message
Server has no private key to export.
What it means
Error "Server has no private key to export." thrown in coollabsio/coolify.
Source
Thrown at app/Services/ServerTransfer/ServerTransferExporter.php:86
'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();
$this->assertNoAdditionalDestinations($server, $applications);
$projectIds = $this->collectProjectIds($applications, $databases, $services);
$projects = Project::query()->whereIn('id', $projectIds)->orderBy('name')->get();
$destinationUuidByKey = $this->destinationUuidMap($server);View on GitHub (pinned to 70b9acc424)
When it happens
Trigger: Thrown at app/Services/ServerTransfer/ServerTransferExporter.php:86 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/ff4fcc23046bfd88.
Report an issue: GitHub.