{"record":{"id":"407795a90a836534","repo":"coollabsio/coolify","slug":"s3-storage-configuration-is-missing-or-has-been-de","errorCode":null,"errorMessage":"S3 storage configuration is missing or has been deleted (S3 storage ID: {$previousS3StorageId ?? 'null'}). S3 backup has been disabled for this schedule.","messagePattern":"S3 storage configuration is missing or has been deleted \\(S3 storage ID: (.+?)\\)\\. S3 backup has been disabled for this schedule\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Jobs/DatabaseBackupJob.php","lineNumber":743,"sourceCode":"        }\n    }\n\n    private function calculate_size()\n    {\n        return instant_remote_process([\"du -b $this->backup_location | cut -f1\"], $this->server, false, false, null, disableMultiplexing: true);\n    }\n\n    private function upload_to_s3(): void\n    {\n        if (is_null($this->s3)) {\n            $previousS3StorageId = $this->backup->s3_storage_id;\n\n            $this->backup->update([\n                'save_s3' => false,\n                's3_storage_id' => null,\n            ]);\n\n            throw new \\Exception('S3 storage configuration is missing or has been deleted (S3 storage ID: '.($previousS3StorageId ?? 'null').'). S3 backup has been disabled for this schedule.');\n        }\n\n        try {\n            $key = $this->s3->key;\n            $secret = $this->s3->secret;\n            // $region = $this->s3->region;\n            $bucket = $this->s3->bucket;\n            $endpoint = $this->s3->endpoint;\n            $this->s3->testConnection(shouldSave: true);\n            if (data_get($this->backup, 'database_type') === ServiceDatabase::class) {\n                $network = $this->database->service->destination->network;\n            } else {\n                $network = $this->database->destination->network;\n            }\n            $safeNetwork = escapeshellarg($network);\n\n            $fullImageName = $this->getFullImageName();\n","sourceCodeStart":725,"sourceCodeEnd":761,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Jobs/DatabaseBackupJob.php#L725-L761","documentation":"Error \"S3 storage configuration is missing or has been deleted (S3 storage ID: {$previousS3StorageId ?? 'null'}). S3 backup has been disabled for this schedule.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Jobs/DatabaseBackupJob.php:743 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"}