{"record":{"id":"7cf7409c947d7693","repo":"coollabsio/coolify","slug":"host-file-mounts-are-bind-only-and-cannot-be-conve","errorCode":null,"errorMessage":"Host file mounts are bind-only and cannot be converted.","messagePattern":"Host file mounts are bind-only and cannot be converted\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Livewire/Project/Service/FileStorage.php","lineNumber":151,"sourceCode":"            $this->fileStorage->is_based_on_git = $this->isBasedOnGit;\n            $this->fileStorage->is_preview_suffix_enabled = $this->isPreviewSuffixEnabled;\n\n            $this->fileStorage->save();\n        } else {\n            // Sync from model\n            $this->content = $this->fileStorage->content;\n            $this->isBasedOnGit = $this->fileStorage->is_based_on_git;\n            $this->isPreviewSuffixEnabled = $this->fileStorage->is_preview_suffix_enabled ?? true;\n        }\n    }\n\n    public function convertToDirectory()\n    {\n        try {\n            $this->authorize('update', $this->resource);\n\n            if ($this->fileStorage->is_host_file) {\n                throw new \\Exception('Host file mounts are bind-only and cannot be converted.');\n            }\n\n            $this->fileStorage->deleteStorageOnServer();\n            $this->fileStorage->is_directory = true;\n            $this->fileStorage->content = null;\n            $this->fileStorage->is_based_on_git = false;\n            $this->fileStorage->save();\n            $this->fileStorage->saveStorageOnServer();\n        } catch (\\Throwable $e) {\n            return handleError($e, $this);\n        } finally {\n            $this->dispatch('refreshStorages');\n        }\n    }\n\n    public function loadStorageOnServer()\n    {\n        try {","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/Service/FileStorage.php#L133-L169","documentation":"Error \"Host file mounts are bind-only and cannot be converted.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/Service/FileStorage.php:151 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"}