{"record":{"id":"f87d1dc2cf26d76d","repo":"coollabsio/coolify","slug":"the-selected-avatar-storage-is-not-available","errorCode":null,"errorMessage":"The selected avatar storage is not available.","messagePattern":"The selected avatar storage is not available\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"app/Livewire/Settings/Advanced.php","lineNumber":237,"sourceCode":"    }\n\n    private function saveAvatarStorageSetting(): void\n    {\n        if ($this->avatar_storage === 'local') {\n            $this->settings->avatar_storage_type = 'local';\n            $this->settings->avatar_s3_storage_id = null;\n\n            return;\n        }\n\n        $storageId = (int) str($this->avatar_storage)->after('s3:')->value();\n        $storage = S3Storage::query()\n            ->whereTeamId(0)\n            ->where('is_usable', true)\n            ->find($storageId);\n\n        if (! $storage || $this->avatar_storage !== 's3:'.$storage->id) {\n            throw new \\InvalidArgumentException('The selected avatar storage is not available.');\n        }\n\n        $this->settings->avatar_storage_type = 's3';\n        $this->settings->avatar_s3_storage_id = $storage->id;\n    }\n\n    public function clearDomainConnectPrivateKey(): void\n    {\n        try {\n            if (! isCloud()) {\n                return;\n            }\n            $this->authorize('update', $this->settings);\n            $this->settings->domain_connect_private_key = null;\n            $this->settings->save();\n            $this->domain_connect_private_key = null;\n            $this->dispatch('success', 'Domain Connect private key removed.');\n        } catch (\\Exception $e) {","sourceCodeStart":219,"sourceCodeEnd":255,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Settings/Advanced.php#L219-L255","documentation":"Error \"The selected avatar storage is not available.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Settings/Advanced.php:237 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"}