coollabsio/coolify · error · RuntimeException

No destination available for imported resource.

Error message

No destination available for imported resource.

What it means

Error "No destination available for imported resource." thrown in coollabsio/coolify.

Source

Thrown at app/Services/ServerTransfer/ServerTransferImporter.php:1586

        return $count;
    }

    /**
     * @param  array<string, StandaloneDocker|SwarmDocker>  $destinationMap
     */
    private function resolveDestination(?string $uuid, array $destinationMap): StandaloneDocker|SwarmDocker
    {
        if ($uuid && isset($destinationMap[$uuid])) {
            return $destinationMap[$uuid];
        }

        $first = reset($destinationMap);
        if ($first instanceof StandaloneDocker || $first instanceof SwarmDocker) {
            return $first;
        }

        throw new RuntimeException('No destination available for imported resource.');
    }

    /**
     * @param  class-string  $modelClass
     * @param  array<string, mixed>  $attributes
     * @return array<string, mixed>
     */
    private function onlyExistingColumns(string $modelClass, array $attributes): array
    {
        /** @var Model $model */
        $model = new $modelClass;
        $columns = Schema::getColumnListing($model->getTable());

        return collect($attributes)
            ->only($columns)
            ->all();
    }
}

View on GitHub (pinned to 70b9acc424)

When it happens

Trigger: Thrown at app/Services/ServerTransfer/ServerTransferImporter.php:1586 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/30dfcdeaefcbca1d. Report an issue: GitHub.