{"record":{"id":"2343b556292b6e55","repo":"coollabsio/coolify","slug":"destination-not-found-2343b5","errorCode":null,"errorMessage":"Destination not found.","messagePattern":"Destination not found\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Livewire/Project/New/DockerImage.php","lineNumber":120,"sourceCode":"        // Build the full Docker image string\n        if ($this->imageSha256) {\n            // Strip 'sha256:' prefix if user pasted it\n            $sha256Hash = preg_replace('/^sha256:/i', '', trim($this->imageSha256));\n            $dockerImage = $this->imageName.'@sha256:'.$sha256Hash;\n        } elseif ($this->imageTag) {\n            $dockerImage = $this->imageName.':'.$this->imageTag;\n        } else {\n            $dockerImage = $this->imageName.':latest';\n        }\n\n        // Parse using DockerImageParser to normalize the image reference\n        $parser = new DockerImageParser;\n        $parser->parse($dockerImage);\n\n        $destination_uuid = $this->query['destination'] ?? null;\n        $destination = find_resource_destination_for_current_team($destination_uuid);\n        if (! $destination) {\n            throw new \\Exception('Destination not found.');\n        }\n        $destination_class = $destination->getMorphClass();\n\n        $project = Project::ownedByCurrentTeam()->where('uuid', $this->parameters['project_uuid'])->firstOrFail();\n        $environment = $project->environments()->where('uuid', $this->parameters['environment_uuid'])->firstOrFail();\n\n        // Append @sha256 to image name if using digest and not already present\n        $imageName = $parser->getFullImageNameWithoutTag();\n        if ($parser->isImageHash() && ! str_ends_with($imageName, '@sha256')) {\n            $imageName .= '@sha256';\n        }\n\n        // Determine the image tag based on whether it's a hash or regular tag\n        $imageTag = $parser->isImageHash() ? 'sha256-'.$parser->getTag() : $parser->getTag();\n\n        $application = new Application([\n            'name' => 'docker-image-'.new_public_id(),\n            'repository_project_id' => 0,","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/New/DockerImage.php#L102-L138","documentation":"Error \"Destination not found.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/New/DockerImage.php:120 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"}