coollabsio/coolify · error · Exception

Destination not found.

Error message

Destination not found.

What it means

Error "Destination not found." thrown in coollabsio/coolify.

Source

Thrown at app/Livewire/Project/New/GitlabPrivateRepository.php:183

            $validator = validator([
                'selected_repository_path' => $this->selected_repository_path,
                'selected_branch_name' => $this->selected_branch_name,
                'docker_compose_location' => $this->docker_compose_location,
            ], [
                'selected_repository_path' => 'required|string',
                'selected_branch_name' => ['required', 'string', new ValidGitBranch],
                'docker_compose_location' => ValidationPatterns::filePathRules(),
            ]);

            if ($validator->fails()) {
                throw new \RuntimeException('Invalid repository data: '.$validator->errors()->first());
            }

            $destination_uuid = $this->query['destination'] ?? null;
            $destination = find_destination_for_current_team($destination_uuid);
            if (! $destination) {
                throw new \Exception('Destination not found.');
            }
            $destination_class = $destination->getMorphClass();

            $project = Project::ownedByCurrentTeam()->where('uuid', $this->parameters['project_uuid'])->firstOrFail();
            $environment = $project->environments()->where('uuid', $this->parameters['environment_uuid'])->firstOrFail();

            $gitlab_app = $this->getGitlabApp();

            $application = Application::create([
                'name' => generate_application_name($this->selected_repository_path, $this->selected_branch_name),
                'repository_project_id' => $this->selected_project_id,
                'git_repository' => $this->selected_repository_path,
                'git_branch' => str($this->selected_branch_name)->trim()->toString(),
                'build_pack' => $this->build_pack,
                'ports_exposes' => $this->port,
                'publish_directory' => $this->publish_directory,
                'base_directory' => $this->base_directory,
                'environment_id' => $environment->id,

View on GitHub (pinned to 70b9acc424)

When it happens

Trigger: Thrown at app/Livewire/Project/New/GitlabPrivateRepository.php:183 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of coollabsio/coolify@70b9acc424 (2026-08-17). Data as JSON: /api/errors/61a434d10b3220b8. Report an issue: GitHub.