$this->error='Server is not reachable. Please validate your configuration and connection.<br>Check this <a target="_blank" class="text-black underline dark:text-white" href="https://coolify.io/docs/knowledge-base/server/openssh">documentation</a> for further help. <br><br><div class="text-error">Error: '.$error.'</div>';
$server->update([
'validation_logs'=>$this->error,
]);
thrownew\Exception($this->error);
}
$this->supported_os_type=$server->validateOS();
if(!$this->supported_os_type){
$this->error='Server OS type is not supported. Please install Docker manually before continuing: <a target="_blank" class="text-black underline dark:text-white" href="https://docs.docker.com/engine/install/#server">documentation</a>.';
$this->error="Prerequisites ({$missingCommands}) are not installed. Please install them before continuing or use the validation with installation endpoint.";