Repository navigation
Troubleshooting and FAQ
This guide documents solutions for known installation errors, container environment issues, testing failures, and GitHub branch ruleset constraints encountered when working on SafaiOS.
| Category | Common Symptom | Immediate Resolution |
|---|---|---|
| Docker / WSL |
npipe:////./pipe/dockerDesktopLinuxEngine connection error |
Enable Virtual Machine Platform in Windows or use Linux/Codespaces |
| Python | Huge (>12GB) CUDA download during torch install | Install CPU-only PyTorch wheel with index-url parameter |
| PowerShell | cannot be loaded because running scripts is disabled |
Run Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
|
| Supabase | Port 54322 already in use |
Stop conflicting container: docker stop $(docker ps -q --filter publish=54322)
|
| Git / PR | Rejection: Merge commits are prohibited on main
|
Rebase onto upstream main: git fetch upstream && git rebase upstream/main
|
| GitHub CI | Missing check Quality Gates & Verification (20.x)
|
Ensure PR targets main and test scripts pass locally |
open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.47/version":
open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
Docker Desktop on Windows requires a functional Linux backend. On modern Windows installations, this is provided by WSL 2. If the Windows optional feature Virtual Machine Platform is disabled in the OS or CPU Virtualization (VT-x / AMD-V) is disabled in the BIOS/UEFI firmware, the Linux engine fails to initialize.
-
Verify BIOS Hardware Virtualization:
- Open Task Manager (
Ctrl + Shift + Esc). - Click the Performance tab -> CPU.
- Confirm that Virtualization is listed as Enabled.
- If disabled, reboot into BIOS/UEFI firmware and enable Intel VT-x or AMD SVM.
- Open Task Manager (
-
Enable Virtual Machine Platform Feature (Requires Administrator): Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Reboot your PC to finalize Windows feature installation.
-
Install or Update WSL Kernel:
wsl --update wsl --set-default-version 2
-
Verify Docker Desktop Settings:
- Open Docker Desktop Settings.
- Under General, check
Use the WSL 2 based engine. - Under Resources -> WSL Integration, enable integration with your default distro.
- Click Apply & Restart.
-
Cloud Alternative (Zero Docker Setup): If you cannot modify your local Windows host or lack administrative permissions, you can develop SafaiOS in:
- GitHub Codespaces: Cloud Linux environment with pre-installed Docker and Python.
- WSL 2 Ubuntu terminal: Directly inside an isolated Ubuntu instance.
File C:\Users\...\activate.ps1 cannot be loaded because running scripts is disabled on this system.
Fix: Set execution policy for the current shell session only (no admin required):
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\.venv\Scripts\Activate.ps1By default, running pip install torch on Windows may download CUDA binaries exceeding 2.5 GB compressed (unpacks to 12 GB+). If you are developing locally on a CPU or laptop, install the lightweight CPU build:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpuThen install SafaiOS development dependencies:
pip install -e ".[dev]"If pytest or Python scripts report ModuleNotFoundError: No module named 'safai', ensure SafaiOS is installed in editable mode inside your virtual environment:
pip install -e .Verify the installation:
python -c "import safai; print(safai.__file__)"Install the official Supabase CLI:
-
Via npm (cross-platform):
npm install -g supabase
-
Via Scoop (Windows):
scoop bucket add supabase https://github.com/supabase/scoop-bucket.git scoop install supabase
-
Via Homebrew (macOS / Linux):
brew install supabase/tap/supabase
If local PostgreSQL or another container is occupying ports required by Supabase (such as port 54322 for PostgreSQL or 54321 for the API gateway):
-
Stop existing Supabase instances:
supabase stop
-
Identify and stop conflicting Docker containers: Substitute the specific conflicting port (e.g.
54322or54321):docker ps --filter "publish=<PORT>"Stop only the specific container binding that port (avoid stopping unrelated containers):
docker stop $(docker ps -q --filter publish=<PORT>) -
Check for host-level services (Host PostgreSQL / system processes): If Docker reports no containers binding the port, a host service (such as native PostgreSQL or pgAdmin) may be running:
- On Windows (PowerShell):
Get-NetTCPConnection -LocalPort <PORT> -ErrorAction SilentlyContinue | Select-Object OwningProcess Get-Process -Id <PID> # Stop host PostgreSQL service if appropriate Stop-Service postgresql* -ErrorAction SilentlyContinue
- On Linux / macOS:
sudo lsof -i :<PORT> sudo systemctl stop postgresql
- On Windows (PowerShell):
-
Alternative: Adjust the configured Supabase port: If the conflicting host service cannot be terminated, update
supabase/config.tomlto bind an alternate port (for example under[db]setport = 54325). -
Restart Supabase:
supabase start
If you modify supabase/migrations/ and receive a PostgreSQL error during supabase db reset:
- Check the terminal output for the exact line number and SQL statement.
- Ensure all custom functions define
set search_path = public, extensions. - Confirm all
grant select, insert, updatestatements include the target role (e.g.to authenticated;). - Validate table constraints before applying them.
SafaiOS enforces branch protection on main to preserve code quality and linear history.
The ruleset requires linear history. Merge commits created with git merge will be rejected by GitHub when pushed.
Fix: Rebase your feature branch against the project upstream main:
git checkout feature/my-feature
# Configure upstream remote if not already added
git remote add upstream https://github.com/TheVicky1/Safai_OS.git 2>/dev/null || true
git fetch upstream
git rebase upstream/main
git push --force-with-lease origin feature/my-featureThe branch ruleset requires two checks to pass:
Quality Gates & Verification (20.x)Dependency Health & Vulnerability Scan (20.x)
If your PR shows checks pending or missing:
- Verify that your PR is opened against the
mainbranch. - Check the Actions tab on GitHub to see if a workflow failed.
- Confirm that your branch contains the latest
.github/workflows/definitions.
GitHub blocks merging if there are unresolved comments from code reviews.
- Navigate to the Files changed tab on your PR.
- Address each reviewer comment.
- Click Resolve conversation for every thread.
A: No. All 151 unit tests and inference verification routines are designed to run cleanly on CPU. SafaiOS automatically falls back to CPU tensor operations when CUDA or Apple MPS hardware is absent.
- Fork
TheVicky1/Safai_OSon GitHub. - Clone your fork locally and create a descriptive branch:
git checkout -b fix/issue-title. - Make atomic, well-documented changes.
- Run tests:
pytest tests/ -v(151 passing). - Run secret scan:
node scripts/secret-scan.mjs. - Push to your fork and submit a PR to
main. - Once approved and checks pass, the maintainers will squash-merge your PR.
Open an issue using the Dataset Expansion Proposal template or start a thread in GitHub Discussions under the Computer Vision & Datasets category. Provide details on class definition, visual characteristics in urban environments, and potential confusion with existing classes.
Please do not open public issues for security vulnerabilities. Follow the instructions in SECURITY.md or contact the core maintainers directly.