{"record":{"id":"cc4fa17549c46ebc","repo":"coollabsio/coolify","slug":"server-not-found-for-this-service-database","errorCode":null,"errorMessage":"Server not found for this service database.","messagePattern":"Server not found for this service database\\.","errorType":"http","errorClass":"HttpException","httpStatus":404,"severity":"error","filePath":"app/Livewire/Project/Database/ImportForm.php","lineNumber":336,"sourceCode":"            }\n        } else {\n            abort(404);\n        }\n\n        $this->authorize('view', $resource);\n\n        // Store IDs for Livewire serialization\n        $this->resourceId = $resource->id;\n        $this->resourceType = get_class($resource);\n\n        // Store view-friendly properties\n        $this->resourceStatus = $resource->status ?? '';\n\n        // Handle ServiceDatabase server access differently\n        if ($resource->getMorphClass() === ServiceDatabase::class) {\n            $server = $resource->service?->server;\n            if (! $server) {\n                abort(404, 'Server not found for this service database.');\n            }\n            $this->serverId = $server->id;\n            $this->container = $resource->name.'-'.$resource->service->uuid;\n            $this->resourceUuid = $resource->uuid; // Use ServiceDatabase's own UUID\n\n            // Determine database type for ServiceDatabase\n            $dbType = $resource->databaseType();\n            if (str_contains($dbType, 'postgres')) {\n                $this->resourceDbType = 'standalone-postgresql';\n            } elseif (str_contains($dbType, 'mysql')) {\n                $this->resourceDbType = 'standalone-mysql';\n            } elseif (str_contains($dbType, 'mariadb')) {\n                $this->resourceDbType = 'standalone-mariadb';\n            } elseif (str_contains($dbType, 'mongo')) {\n                $this->resourceDbType = 'standalone-mongodb';\n            } else {\n                $this->resourceDbType = $dbType;\n            }","sourceCodeStart":318,"sourceCodeEnd":354,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/Database/ImportForm.php#L318-L354","documentation":"Error \"Server not found for this service database.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/Database/ImportForm.php:336 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"}