coollabsio/coolify · error · RuntimeException

Server transfer export requires sensitive data access (read:

Error message

Server transfer export requires sensitive data access (read:sensitive).

What it means

Error "Server transfer export requires sensitive data access (read:sensitive)." thrown in coollabsio/coolify.

Source

Thrown at app/Services/ServerTransfer/ServerTransferExporter.php:90

    /**
     * @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);
        $dependencies = $this->collectDependencies($server, $applications, $databases, $services);

        $sourceInstanceUrl = rtrim((string) (instanceSettings()->fqdn ?: config('app.url')), '/');
        $warnings = $this->buildWarnings($applications, $dependencies, $sourceInstanceUrl);

View on GitHub (pinned to 70b9acc424)

When it happens

Trigger: Thrown at app/Services/ServerTransfer/ServerTransferExporter.php:90 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/c3219766b29cdb2d. Report an issue: GitHub.