{"record":{"id":"3b596fa36ba6805d","repo":"coollabsio/coolify","slug":"server-not-found-for-this-database","errorCode":null,"errorMessage":"Server not found for this database.","messagePattern":"Server not found for this database\\.","errorType":"http","errorClass":"HttpException","httpStatus":404,"severity":"error","filePath":"app/Livewire/Project/Database/ImportForm.php","lineNumber":358,"sourceCode":"            $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            }\n        } else {\n            $server = $resource->destination?->server;\n            if (! $server) {\n                abort(404, 'Server not found for this database.');\n            }\n            $this->serverId = $server->id;\n            $this->container = $resource->uuid;\n            $this->resourceUuid = $resource->uuid;\n            $this->resourceDbType = $resource->type();\n        }\n\n        if (str($resource->status)->startsWith('running')) {\n            $this->containers[] = $this->container;\n        }\n\n        if (\n            $resource->getMorphClass() === StandaloneRedis::class ||\n            $resource->getMorphClass() === StandaloneKeydb::class ||\n            $resource->getMorphClass() === StandaloneDragonfly::class ||\n            $resource->getMorphClass() === StandaloneClickhouse::class\n        ) {\n            $this->unsupported = true;","sourceCodeStart":340,"sourceCodeEnd":376,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/Database/ImportForm.php#L340-L376","documentation":"Error \"Server not found for this database.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/Database/ImportForm.php:358 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"}