{"record":{"id":"d01a5f1ed04c5e9a","repo":"coollabsio/coolify","slug":"passphrase-is-required-to-encrypt-the-bundle","errorCode":null,"errorMessage":"Passphrase is required to encrypt the bundle.","messagePattern":"Passphrase is required to encrypt the bundle\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Livewire/Server/Transfer.php","lineNumber":119,"sourceCode":"    {\n        $this->ensureDevelopmentAvailability();\n\n        try {\n            $this->authorize('view', $this->server);\n            if ($this->isLocalhost) {\n                throw new \\RuntimeException('The Coolify host (localhost) cannot be transferred.');\n            }\n\n            $bundle = $exporter->export($this->server, includeSensitive: true);\n            $this->exportId = data_get($bundle, 'export_id');\n            $this->lastWarnings = array_values((array) data_get($bundle, 'warnings', []));\n            $this->lastResultJson = null;\n\n            $payload = $bundle;\n            $fileName = 'server-transfer-'.$this->server->uuid.'.json';\n            if ($this->encryptBundle) {\n                if (blank($this->passphrase)) {\n                    throw new \\RuntimeException('Passphrase is required to encrypt the bundle.');\n                }\n                $payload = ServerTransferBundle::encryptWithPassphrase($bundle, $this->passphrase);\n                $fileName = 'server-transfer-'.$this->server->uuid.'.encrypted.json';\n            }\n\n            $json = json_encode($payload, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);\n            if ($json === false) {\n                throw new \\RuntimeException('Failed to encode transfer bundle.');\n            }\n\n            $this->dispatch('success', 'Transfer bundle ready for download.');\n\n            return response()->streamDownload(function () use ($json) {\n                echo $json;\n            }, $fileName, [\n                'Content-Type' => 'application/json',\n            ]);\n        } catch (Throwable $e) {","sourceCodeStart":101,"sourceCodeEnd":137,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Server/Transfer.php#L101-L137","documentation":"Error \"Passphrase is required to encrypt the bundle.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Server/Transfer.php:119 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"}