{"record":{"id":"ab3d3619d54d20b5","repo":"coollabsio/coolify","slug":"the-configured-s3-storage-is-not-available","errorCode":null,"errorMessage":"The configured S3 storage is not available.","messagePattern":"The configured S3 storage is not available\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Services/AvatarStorageService.php","lineNumber":79,"sourceCode":"                ->delete($user->avatar_path);\n        }\n\n        $user->update([\n            'avatar_path' => null,\n            'avatar_storage_type' => null,\n            'avatar_s3_storage_id' => null,\n        ]);\n    }\n\n    protected function disk(string $storageType, ?int $s3StorageId): FilesystemAdapter\n    {\n        if ($storageType !== 's3') {\n            return Storage::disk('local');\n        }\n\n        $storage = S3Storage::query()->whereKey($s3StorageId)->where('is_usable', true)->first();\n        if (! $storage) {\n            throw new RuntimeException('The configured S3 storage is not available.');\n        }\n\n        return $storage->filesystem();\n    }\n\n    protected function compress(UploadedFile $upload): string\n    {\n        $imageInfo = getimagesize($upload->getRealPath());\n        if ($imageInfo && $imageInfo['mime'] === 'image/jpeg' && $imageInfo[0] <= 256 && $imageInfo[1] <= 256) {\n            return file_get_contents($upload->getRealPath());\n        }\n\n        if (extension_loaded('imagick')) {\n            $image = new \\Imagick($upload->getRealPath());\n            $image->setIteratorIndex(0);\n            $image->autoOrient();\n            $image->cropThumbnailImage(256, 256);\n            $image->stripImage();","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Services/AvatarStorageService.php#L61-L97","documentation":"Error \"The configured S3 storage is not available.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Services/AvatarStorageService.php:79 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"}