ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.
Python ai-agentsamdcomfyuidockerllama-cppllmlocal-ain8nnvidiaopen-webuiragself-hostedspeech-to-textstrix-halotext-to-speechworkflow-automation
fix(installer): name who holds a busy port, and every busy Dashboard port at once (#8307)
Mike Bradleyda3eaa71ad9b
diff --git a/ods/installers/phases/04-requirements.sh b/ods/installers/phases/04-requirements.shindex ad0ac4047..a95877fbb 100755--- a/ods/installers/phases/04-requirements.sh+++ b/ods/installers/phases/04-requirements.sh@@ -239,6 +239,78 @@ _phase04_own_whisper_publishes() {[[ " $host_ports " == *" $port "* ]]}+# The running Docker container that publishes host TCP PORT, read from the+# host side of `docker ps` bindings (HOST_IP:START[-END]->...; its publish+# filter can match the container side instead). Fails when Docker is+# missing or unreadable without a prompt.+_phase04_docker_port_owner() {+ local port="$1" name ports binding start end+ local binding_pattern=':([0-9]+)(-([0-9]+))?->[0-9]+(-[0-9]+)?/tcp$'+ local -a bindings+ command -v docker >/dev/null 2>&1 || return 1+ # Read-only and best effort: the port is reported busy either way.+ while IFS='|' read -r name ports; do+ IFS=',' read -ra bindings <<< "$ports"+ for binding in ${bindings[@]+"${bindings[@]}"}; do+ [[ "$binding" =~ $binding_pattern ]] || continue+ start="${BASH_REMATCH[1]}"+ end="${BASH_REMATCH[3]:-$start}"+ if (( start <= port && port <= end )); then+ printf '%s' "$name"+ return 0+ fi+ done+ done < <(docker ps --format '{{.Names}}|{{.Ports}}' 2>/dev/null)+ return 1+}++# Name the Docker container behind a conflict that check_port_conflict saw+# only as docker-proxy, or could not see at all.+_phase04_name_docker_owner() {+ local name+ [[ -z "${PORT_CONFLICT_PROC:-}" || "$PORT_CONFLICT_PROC" == docker-proxy ]] || return 0+ name="$(_phase04_docker_port_owner "$1")" || return 0+ PORT_CONFLICT_PROC="Docker container $name"+ PORT_CONFLICT_PID=""+}++# Who holds PORT, after check_port_conflict, for a message. An unseen owner+# comes with the command, among this host's tools, that names it.+_phase04_port_owner() {+ local finder+ if [[ -n "${PORT_CONFLICT_PROC:-}" ]]; then+ printf '%s%s' "$PORT_CONFLICT_PROC" "${PORT_CONFLICT_PID:+ (PID $PORT_CONFLICT_PID)}"+ elif [[ -n "${PORT_CONFLICT_PID:-}" ]]; then+ printf 'PID %s' "$PORT_CONFLICT_PID"+ else+ if command -v ss >/dev/null 2>&1; then+ finder="sudo ss -ltnp 'sport = :$1'"+ elif command -v lsof >/dev/null 2>&1; then+ finder="sudo lsof -i :$1 -sTCP:LISTEN"+ else+ finder="sudo netstat -tlnp | grep :$1"+ fi+ printf 'a program this account cannot see (%s names it)' "$finder"+ fi+}++# _phase04_free_port_hint DEFAULT [TAKEN...]: a port for a rerun example near+# DEFAULT, every 10 up to DEFAULT+90, that nothing listens on and that is not+# another ODS service's, a Dashboard port or one of TAKEN. Fails when none is.+_phase04_free_port_hint() {+ local default="$1" candidate taken+ shift+ taken=" ${SERVICE_PORTS[*]:-} ${DASHBOARD_PORT:-} ${DASHBOARD_REMOTE_PORT:-} $* "+ for ((candidate = default + 10; candidate <= default + 90 && candidate <= 65535; candidate += 10)); do+ [[ "$taken" != *" $candidate "* ]] || continue+ if ! check_port_conflict "$candidate" false; then+ printf '%s' "$candidate"+ return 0+ fi+ done+ return 1+}+check_port_conflict() {local port="$1"local allow_owned_port="${2:-true}"@@ -256,8 +328,10 @@ check_port_conflict() {port_tool_found=trueif lsof -i ":${port}" -sTCP:LISTEN >/dev/null 2>&1; thenPORT_CONFLICT_PID=$(lsof -t -i ":${port}" -sTCP:LISTEN 2>/dev/null | head -1)- PORT_CONFLICT_PROC=$(ps -p "$PORT_CONFLICT_PID" -o comm= 2>/dev/null || echo "unknown")+ # Empty when the process has exited since: its name is then unknown.+ PORT_CONFLICT_PROC=$(ps -p "$PORT_CONFLICT_PID" -o comm= 2>/dev/null) || PORT_CONFLICT_PROC=""PORT_CONFLICT=true+ _phase04_name_docker_owner "$port"return 0fifi@@ -272,11 +346,11 @@ check_port_conflict() {ss_line=$(ss -tlnp 2>/dev/null | grep -E ":${port}(\s|$)" | head -1)if [[ "$ss_line" =~ pid=([0-9]+) ]]; thenPORT_CONFLICT_PID="${BASH_REMATCH[1]}"- PORT_CONFLICT_PROC=$(ps -p "$PORT_CONFLICT_PID" -o comm= 2>/dev/null || echo "unknown")- else- PORT_CONFLICT_PROC="unknown"+ # Empty when the process has exited since: its name is then unknown.+ PORT_CONFLICT_PROC=$(ps -p "$PORT_CONFLICT_PID" -o comm= 2>/dev/null) || PORT_CONFLICT_PROC=""fiPORT_CONFLICT=true+ _phase04_name_docker_owner "$port"return 0fifi@@ -291,10 +365,9 @@ check_port_conflict() {if [[ "$netstat_line" =~ ([0-9]+)/([^ ]+) ]]; thenPORT_CONFLICT_PID="${BASH_REMATCH[1]}"PORT_CONFLICT_PROC="${BASH_REMATCH[2]}"- else- PORT_CONFLICT_PROC="unknown"fiPORT_CONFLICT=true+ _phase04_name_docker_owner "$port"return 0fifi@@ -313,8 +386,10 @@ check_port_conflict() {# eventual Docker bind fail.if declare -F ods_windows_host_port_in_use >/dev/null 2>&1 \&& ods_windows_host_port_in_use "$port"; then- PORT_CONFLICT_PROC="Windows host process"PORT_CONFLICT=true+ # Docker Desktop's own published ports show up here too.+ _phase04_name_docker_owner "$port"+ PORT_CONFLICT_PROC="${PORT_CONFLICT_PROC:-Windows host process}"return 0fi@@ -346,7 +421,8 @@ _phase04_own_dashboard_publishes() {}_phase04_check_dashboard_ports() {- local key default port+ local key default port hint keys example=""+ local -a busy=() taken=()for key in DASHBOARD_PORT DASHBOARD_REMOTE_PORT; dodefault=3001[[ "$key" != DASHBOARD_REMOTE_PORT ]] || default=3011@@ -362,15 +438,31 @@ _phase04_check_dashboard_ports() {printf -v "$key" '%s' "$port"export "$key"if ! _phase04_own_dashboard_publishes "$port" && check_port_conflict "$port" false; then- warn "Required Dashboard port $port is in use by ${PORT_CONFLICT_PROC:-another process}."- warn "Choose a free $key in the environment or installed .env, then rerun the installer."- return 1+ warn "Required Dashboard port $port ($key) is in use by $(_phase04_port_owner "$port")."+ busy+=("$key")fidoneif [[ "$DASHBOARD_PORT" == "$DASHBOARD_REMOTE_PORT" ]]; thenwarn "DASHBOARD_PORT and DASHBOARD_REMOTE_PORT must use different host ports."return 1fi+ (( ${#busy[@]} )) || return 0+ # Every busy port is named above, so one rerun can fix them all.+ for key in "${busy[@]}"; do+ hint="$(_phase04_free_port_hint "${!key}" ${taken[@]+"${taken[@]}"})" || continue+ taken+=("$hint")+ example+=" $key=$hint"+ done+ keys="${busy[0]}"+ (( ${#busy[@]} == 1 )) || keys="${busy[0]} and ${busy[1]}"+ if [[ -n "$example" ]]; then+ # The example stands on its own line, ready to copy.+ warn "Choose a free port for $keys in the environment or installed .env, then rerun the installer, for example with:"+ warn " $example"+ else+ warn "Choose a free port for $keys in the environment or installed .env, then rerun the installer."+ fi+ return 1}# Fail before .env regeneration or Compose startup, including in non-interactive mode. Do not@@ -450,7 +542,7 @@ _phase04_check_inference_port() {export OLLAMA_PORT="$port"SERVICE_PORTS[llama-server]="$port"if ! _phase04_own_inference_publishes "$port" && check_port_conflict "$port" false; then- warn "Required local model port $port is in use by ${PORT_CONFLICT_PROC:-another process}."+ warn "Required local model port $port is in use by $(_phase04_port_owner "$port")."warn "If Ollama is running on Windows, quit it from the system tray first. Otherwise stop or reconfigure the conflicting service."warn "Alternatively choose a free OLLAMA_PORT in the environment or installed .env and rerun. Windows PowerShell: \$env:OLLAMA_PORT='11435' (choose a free port)."warn "Installation stopped before configuration or service startup; this port conflict cannot be bypassed with Continue anyway."@@ -518,11 +610,7 @@ fifor port in $PORTS_TO_CHECK; doif check_port_conflict "$port"; then- if [[ -n "$PORT_CONFLICT_PID" ]]; then- warn "Port $port is in use by ${PORT_CONFLICT_PROC} (PID ${PORT_CONFLICT_PID})"- else- warn "Port $port is in use by ${PORT_CONFLICT_PROC}"- fi+ warn "Port $port is in use by $(_phase04_port_owner "$port")"REQUIREMENTS_MET=falsefidonediff --git a/ods/tests/ci-suite.txt b/ods/tests/ci-suite.txtindex 1b10310ad..495e0877a 100644--- a/ods/tests/ci-suite.txt+++ b/ods/tests/ci-suite.txt@@ -7,6 +7,7 @@tests/test-installer-dry-run-jq.shtests/test-phase06-gpu-env-rerun.pytests/test-inference-port-admission.sh+tests/test-port-conflict-owner.shtests/contracts/test-amd-llamacpp-contracts.shtests/contracts/test-host-native-llm-contracts.shtests/contracts/test-host-native-llm-cpu-fallback.shdiff --git a/ods/tests/test-inference-port-admission.sh b/ods/tests/test-inference-port-admission.shindex 27a0ad9df..3be82e77b 100644--- a/ods/tests/test-inference-port-admission.sh+++ b/ods/tests/test-inference-port-admission.sh@@ -42,6 +42,7 @@ run_case() ([[ "${*: -1}" == ods-llama-server && -n "$own" ]] || return 1printf '%s\n' "${own//@install/$INSTALL_DIR}" ;;'ps --filter') echo foreign-id ;;+ 'ps --format') ;; # no container publishes a busy port here'inspect --format') echo "$INSTALL_DIR|ods" ;;*) echo "unexpected Docker mutation: $*" >&2; return 88 ;;esac@@ -78,6 +79,8 @@ expect 'Windows Ollama port stops noninteractive install' blocked windows=11434grep -q 'quit it from the system tray' "$tmp/output"expect 'Continue anyway cannot waive required inference port' blocked windows=11434 interactive=trueexpect 'Native Linux listener also stops install' blocked linux=:11434+# The process behind lsof's PID has gone, so the PID alone names it.+grep -qx 'Required local model port 11434 is in use by PID 987654.' "$tmp/output"expect 'Free default is admitted and selected consistently' 'ADMITTED 11434 11434'expect 'Explicit free port avoids occupied default' 'ADMITTED 11435 11435' windows=11434 explicit=11435expect 'Retained quoted override is checked' blocked windows=12434 "retained='12434'"diff --git a/ods/tests/test-port-conflict-owner.sh b/ods/tests/test-port-conflict-owner.shnew file mode 100755index 000000000..cd3b4fae2--- /dev/null+++ b/ods/tests/test-port-conflict-owner.sh@@ -0,0 +1,146 @@+#!/usr/bin/env bash+# The requirements check (phase 04) names who holds a busy port and, for the+# required Dashboard ports, names every conflict at once with a free port to+# rerun with:+# - a process this account can see: its name and PID;+# - a Docker container's published TCP port: the container's name, for+# IPv4, IPv6, loopback and port-range bindings, also when only+# docker-proxy, a netstat line or a Windows listener is visible; never a+# container whose binding only ends in the same digits or is UDP;+# - a listener of another user or root: says so, with the command among+# this host's tools (ss, lsof, netstat) that names it;+# - both Dashboard ports busy: both named, and a rerun example with a free+# port for each that is not another ODS service's port, below 65536.+# Runs the real phase 04 functions with fake lsof, ss, netstat, ps, sudo and+# docker.+# shellcheck disable=SC2034,SC2329 # variables and stubs read by the sourced phase+set -euo pipefail++ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"+PHASE04="$ROOT_DIR/installers/phases/04-requirements.sh"+PASS=0+fail() { printf '[FAIL] %s\n' "$*" >&2; exit 1; }+pass() { printf '[PASS] %s\n' "$*"; PASS=$((PASS + 1)); }++# The port functions, up to the line that runs the Dashboard check, and the+# loop that reports the optional services' ports.+functions="$(sed -n '/^_port_check_warned=false$/,/^# Fail before \.env regeneration/p' "$PHASE04")"+[[ "$functions" == *'_phase04_check_dashboard_ports() {'* ]] || fail "phase 04's port functions were not found"+optional_loop="$(sed -n '/^for port in \$PORTS_TO_CHECK; do$/,/^done$/p' "$PHASE04")"+[[ "$optional_loop" == *'is in use by'* ]] || fail "phase 04's optional port loop was not found"++# probe [VAR=value...] -- COMMAND...: run COMMAND with the port functions and+# fakes. FAKE_LSOF (PORT:PID), FAKE_SS (ports ss lists), FAKE_SS_USERS (its+# users column), FAKE_NETSTAT (ports netstat lists), FAKE_DOCKER_PS+# (NAME|PORTS rows) and FAKE_WINDOWS (ports a Windows program holds)+# describe the host.+probe() (+ while [[ "$1" != -- ]]; do export "${1?}"; shift; done+ shift+ warn() { printf 'WARN %s\n' "$*"; }+ log() { :; }+ external_llm_env_value() { return 1; }+ lsof() {+ [[ -n "${FAKE_LSOF:-}" ]] || return 1+ local port="${FAKE_LSOF%%:*}" pid="${FAKE_LSOF#*:}"+ [[ " $* " == *" :$port "* ]] || return 1+ [[ "$1" != -t ]] || printf '%s\n' "$pid"+ }+ ss() {+ local port+ for port in ${FAKE_SS:-}; do+ printf 'LISTEN 0 511 0.0.0.0:%s 0.0.0.0:*%s\n' "$port" "${FAKE_SS_USERS:+ $FAKE_SS_USERS}"+ done+ }+ netstat() {+ local port+ for port in ${FAKE_NETSTAT:-}; do+ printf 'tcp 0 0 0.0.0.0:%s 0.0.0.0:* LISTEN -\n' "$port"+ done+ }+ ps() { case "$2" in 4242) echo node ;; 777) echo docker-proxy ;; *) return 1 ;; esac; }+ sudo() { return 1; }+ docker() {+ case "$1 ${2:-}" in+ 'ps --format') printf '%b' "${FAKE_DOCKER_PS:-}" ;;+ 'ps --filter') ;;+ 'container inspect') return 1 ;;+ *) echo "unexpected docker $*" >&2; return 88 ;;+ esac+ }+ ods_windows_host_port_in_use() { [[ " ${FAKE_WINDOWS:-} " == *" $1 "* ]]; }+ declare -A SERVICE_PORTS=([open-webui]=3000 [dashboard-api]=3002 [searxng]=8888)+ [[ -z "${EXTRA_SERVICE_PORT:-}" ]] || SERVICE_PORTS[extra]="$EXTRA_SERVICE_PORT"+ INSTALL_DIR=/nonexistent-ods-install+ eval "$functions"+ "$@"+)++owner() { probe "$@" -- eval 'check_port_conflict "$PORT" false && _phase04_port_owner "$PORT"'; }+unseen="a program this account cannot see (sudo ss -ltnp 'sport = :3011' names it)"++[[ "$(owner PORT=3011 FAKE_LSOF=3011:4242)" == 'node (PID 4242)' ]] || fail "a visible process must be named with its PID"+[[ "$(owner PORT=3011 FAKE_SS=3011)" == "$unseen" ]] || fail "an unseen listener must say so: $(owner PORT=3011 FAKE_SS=3011)"+[[ "$(owner PORT=3011 FAKE_LSOF=3011:5555)" == 'PID 5555' ]] || fail "a process that has exited keeps its PID"+[[ "$(owner PORT=3011 FAKE_WINDOWS=3011)" == 'Windows host process' ]] || fail "a Windows listener keeps its name"+[[ "$(owner PORT=3011 FAKE_NETSTAT=3011)" == "$unseen" ]] || fail "a netstat listener without a program is unseen"+# The finder named for an unseen owner is one this host has.+finder() (+ eval "$functions"+ PORT_CONFLICT_PROC="" PORT_CONFLICT_PID=""+ local tool+ for tool in "$@"; do eval "$tool() { :; }"; done+ PATH=/nonexistent-ods-bin _phase04_port_owner 3011+)+[[ "$(finder ss lsof)" == "$unseen" \+ && "$(finder lsof)" == 'a program this account cannot see (sudo lsof -i :3011 -sTCP:LISTEN names it)' \+ && "$(finder)" == 'a program this account cannot see (sudo netstat -tlnp | grep :3011 names it)' ]] \+ || fail "the finder must be a tool the host has: $(finder lsof) / $(finder)"+pass "a visible process is named with its PID; an unseen listener says so and how this host finds it"++container() { owner PORT=3011 FAKE_SS=3011 "FAKE_DOCKER_PS=$1"; }+for row in 'grafana|0.0.0.0:3011->3000/tcp, :::3011->3000/tcp' 'grafana|127.0.0.1:3011->3000/tcp' \+ 'grafana|[::]:3011->3000/tcp' 'grafana|0.0.0.0:3000-3015->3000-3015/tcp'; do+ [[ "$(container "$row\n")" == 'Docker container grafana' ]] || fail "binding '$row' must name the container"+done+for row in 'other|127.0.0.1:13011->80/tcp' 'other|0.0.0.0:3011->3011/udp' 'other|3011/tcp' \+ 'other|0.0.0.0:3012-3020->3012-3020/tcp' 'other|'; do+ [[ "$(container "$row\n")" == "$unseen" ]] || fail "binding '$row' must not name a container for 3011"+done+grafana='grafana|0.0.0.0:3011->3000/tcp\n'+[[ "$(owner PORT=3011 FAKE_SS=3011 'FAKE_SS_USERS=users:(("docker-proxy",pid=777,fd=4))' "FAKE_DOCKER_PS=$grafana")" \+ == 'Docker container grafana' ]] || fail "docker-proxy must give way to the container's name"+[[ "$(owner PORT=3011 FAKE_NETSTAT=3011 "FAKE_DOCKER_PS=$grafana")" == 'Docker container grafana' ]] \+ || fail "a netstat-only listener must be named by its container"+[[ "$(owner PORT=3011 FAKE_WINDOWS=3011 "FAKE_DOCKER_PS=$grafana")" == 'Docker container grafana' ]] \+ || fail "Docker Desktop's published port must be named by its container"+[[ "$(owner PORT=3011 FAKE_LSOF=3011:4242 "FAKE_DOCKER_PS=$grafana")" == 'node (PID 4242)' ]] \+ || fail "a named process must not be replaced by a container"+pass "a Docker container is named for its published TCP port and range, through docker-proxy, netstat or Windows"++[[ "$(probe FAKE_LSOF=3000:4242 PORTS_TO_CHECK=3000 REQUIREMENTS_MET=true -- eval "$optional_loop")" \+ == 'WARN Port 3000 is in use by node (PID 4242)' ]] || fail "an optional service's busy port must name its owner"+pass "an optional service's busy port names its owner"++dashboard() { probe "$@" -- _phase04_check_dashboard_ports; }+set +e+both="$(dashboard 'FAKE_SS=3001 3011')"; both_rc=$?+remote="$(dashboard FAKE_SS=3011 EXTRA_SERVICE_PORT=3021)"; remote_rc=$?+full="$(dashboard "FAKE_SS=3011 $(seq -s ' ' 3021 10 3101)")"; full_rc=$?+free="$(dashboard FAKE_SS=8080)"; free_rc=$?+top="$(probe 'FAKE_SS=65510 65520 65530' -- _phase04_free_port_hint 65500)"; top_rc=$?+set -e+[[ "$both_rc" == 1 && "$both" == "WARN Required Dashboard port 3001 (DASHBOARD_PORT) is in use by a program this account cannot see (sudo ss -ltnp 'sport = :3001' names it).+WARN Required Dashboard port 3011 (DASHBOARD_REMOTE_PORT) is in use by $unseen.+WARN Choose a free port for DASHBOARD_PORT and DASHBOARD_REMOTE_PORT in the environment or installed .env, then rerun the installer, for example with:+WARN DASHBOARD_PORT=3021 DASHBOARD_REMOTE_PORT=3031" ]] \+ || fail "both busy Dashboard ports must be named with a distinct free port each (rc=$both_rc): $both"+[[ "$remote_rc" == 1 && "$remote" == *$'\nWARN DASHBOARD_REMOTE_PORT=3031' && "$remote" != *'(DASHBOARD_PORT)'* ]] \+ || fail "the example must skip another ODS service's port (rc=$remote_rc): $remote"+[[ "$full_rc" == 1 && "$full" == *'then rerun the installer.' && "$full" != *'for example'* ]] \+ || fail "no example without a free nearby port (rc=$full_rc): $full"+[[ "$free_rc" == 0 && -z "$free" ]] || fail "free Dashboard ports must pass quietly (rc=$free_rc): $free"+[[ "$top_rc" == 1 && -z "$top" ]] || fail "an example port must stay below 65536 (rc=$top_rc): $top"+pass "busy Dashboard ports are all named at once, with a free port for each that is not another ODS service's"++printf '\nResult: %s passed, 0 failed\n' "$PASS"diff --git a/ods/tests/test-port-ollama-detection.sh b/ods/tests/test-port-ollama-detection.shindex 40cea85a9..ef13e4112 100755--- a/ods/tests/test-port-ollama-detection.sh+++ b/ods/tests/test-port-ollama-detection.sh@@ -30,7 +30,7 @@ echo ""# Source only the functions under test (phase scripts expect installer env).SCRIPT_DIR="$ROOT_DIR"source "$ROOT_DIR/installers/lib/detection.sh"-source <(sed -n '/^_phase04_current_install_owns_docker_port\s*()\s*{/,/^}/p;/^check_port_conflict\s*()\s*{/,/^}/p;/^check_ollama_conflict\s*()\s*{/,/^}/p' \+source <(sed -n '/^_phase04_current_install_owns_docker_port\s*()\s*{/,/^}/p;/^_phase04_docker_port_owner\s*()\s*{/,/^}/p;/^_phase04_name_docker_owner\s*()\s*{/,/^}/p;/^check_port_conflict\s*()\s*{/,/^}/p;/^check_ollama_conflict\s*()\s*{/,/^}/p' \"$ROOT_DIR/installers/phases/04-requirements.sh") || {echo -e "${RED}✗ FAIL${NC} - Cannot load functions from 04-requirements.sh"exit 1diff --git a/ods/tests/test-wsl-windows-port-detection.sh b/ods/tests/test-wsl-windows-port-detection.shindex 26fc586ae..c1d4c32cc 100644--- a/ods/tests/test-wsl-windows-port-detection.sh+++ b/ods/tests/test-wsl-windows-port-detection.sh@@ -38,7 +38,7 @@ SCRIPT_DIR="$ROOT_DIR"source "$ROOT_DIR/installers/lib/detection.sh"warn() { :; }_port_check_warned=false-source <(sed -n '/^_phase04_current_install_owns_docker_port\s*()\s*{/,/^}/p;/^check_port_conflict\s*()\s*{/,/^}/p' \+source <(sed -n '/^_phase04_current_install_owns_docker_port\s*()\s*{/,/^}/p;/^_phase04_docker_port_owner\s*()\s*{/,/^}/p;/^_phase04_name_docker_owner\s*()\s*{/,/^}/p;/^check_port_conflict\s*()\s*{/,/^}/p' \"$ROOT_DIR/installers/phases/04-requirements.sh")ods_windows_host_port_in_use 9000