{"record":{"id":"29b70a04b8547105","repo":"coollabsio/coolify","slug":"delete-this-directory-backup-schedule-and-its-arch-29b70a","errorCode":null,"errorMessage":"Delete this directory backup schedule and its archives before converting it to a file.","messagePattern":"Delete this directory backup schedule and its archives before converting it to a file\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Livewire/Project/Service/FileStorage.php","lineNumber":192,"sourceCode":"            }\n\n            $this->fileStorage->loadStorageOnServer();\n            $this->syncData();\n            $this->dispatch('success', 'File storage loaded from server.');\n        } catch (\\Throwable $e) {\n            return handleError($e, $this);\n        } finally {\n            $this->dispatch('refreshStorages');\n        }\n    }\n\n    public function convertToFile()\n    {\n        try {\n            $this->authorize('update', $this->resource);\n\n            if ($this->fileStorage->scheduledBackups()->exists()) {\n                throw new \\RuntimeException('Delete this directory backup schedule and its archives before converting it to a file.');\n            }\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 = false;\n            $this->fileStorage->content = null;\n            if (data_get($this->resource, 'settings.is_preserve_repository_enabled')) {\n                $this->fileStorage->is_based_on_git = true;\n            }\n            $this->fileStorage->save();\n            $this->fileStorage->saveStorageOnServer();\n        } catch (\\Throwable $e) {\n            return handleError($e, $this);\n        } finally {\n            $this->dispatch('refreshStorages');","sourceCodeStart":174,"sourceCodeEnd":210,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/Service/FileStorage.php#L174-L210","documentation":"Error \"Delete this directory backup schedule and its archives before converting it to a file.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/Service/FileStorage.php:192 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"}