Server validation rejects Arch-derived distros: validateOS() reads ID and ignores ID_LIKE
What happens
Adding a server running an Arch derivative fails validation at the Supported OS type checkpoint with "Server OS type is not supported. Please install Docker manually before continuing", even when Docker Engine and Docker Compose are already installed and working on that host.
Why
app/Models/Server.php::validateOS() matches only ID from /etc/os-release. The ID_LIKE lookup exists but is commented out:
$ID = data_get($collectedData, 'ID');
// $ID_LIKE = data_get($collectedData, 'ID_LIKE');SUPPORTED_OS (in bootstrap/helpers/constants.php) contains 'arch', but a derivative reports ID=omarchy / ID_LIKE=arch, so nothing matches and Actions/Server/ValidateServer.php:76 throws — before the prerequisite and Docker checkpoints run. That ordering is why the error text ("install Docker manually") is misleading: Docker was already installed, and those checks never executed.
Affected distributions
Any distro that identifies through ID_LIKE:
ID_LIKE=arch: Omarchy, EndeavourOS, CachyOS, Garuda, ManjaroID_LIKE=ubuntu/debian: Linux Mint, Zorin OS, elementary OS
Steps to reproduce
- Install Docker Engine + Compose on an Arch-derived host (e.g.
ID=omarchy,ID_LIKE=arch) - Add it in Coolify as a server (Manual, root, key auth)
- Press Validate Server & Install Docker Engine
- Validation fails at "Supported OS type"; the Docker checkpoints never report
Environment
- Coolify
4.3.23 - Target server: Omarchy 4.0.4 (Arch-based), Docker
29.7.2, Docker Compose5.5.1
Workaround
Temporarily set ID=arch in /etc/os-release on the target, validate, then revert. validateOS() is only reachable from operator-triggered paths (ValidateAndInstallServerJob, Livewire/Server/ValidateAndInstall, ValidateServer, InstallDocker, InstallPrerequisites) and no scheduled job calls it, so reverting does not affect steady-state operation.
Suggested fix
Fall back to ID_LIKE tokens when ID does not match, preserving the existing exactly-one-match semantics:
$candidates = collect([data_get($collectedData, 'ID')])
->merge(str(data_get($collectedData, 'ID_LIKE'))->explode(' '))
->filter();
foreach ($candidates as $candidate) {
$supported = collect(SUPPORTED_OS)->filter(fn ($os) => str($os)->contains($candidate));
if ($supported->count() === 1) {
return str($supported->first());
}
}
return false;Separately, it may be worth moving the "install Docker manually" wording off the OS checkpoint, since that checkpoint failing says nothing about Docker's presence.
Source: coollabsio/coolify