wiki: add Windows sshd and Ollama/Tailscale sleep articles; update indexes to 47
- 05-troubleshooting/networking/windows-sshd-stops-after-reboot.md - 05-troubleshooting/ollama-macos-sleep-tailscale-disconnect.md - SUMMARY.md, index.md, README.md: count 45 → 47, add 5 missing articles (3 from 2026-03-16 + 2 today) - MajorWiki-Deploy-Status.md: session update 2026-03-17 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,3 +26,7 @@ Practical fixes for common Linux, networking, and application problems.
|
||||
## 📝 Application Specific
|
||||
- [Obsidian Vault Recovery — Loading Cache Hang](obsidian-cache-hang-recovery.md)
|
||||
- [Gemini CLI Manual Update](gemini-cli-manual-update.md)
|
||||
|
||||
## 🤖 AI / Local LLM
|
||||
- [Ollama Drops Off Tailscale When Mac Sleeps](ollama-macos-sleep-tailscale-disconnect.md)
|
||||
- [Windows OpenSSH Server (sshd) Stops After Reboot](networking/windows-sshd-stops-after-reboot.md)
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
# Windows OpenSSH Server (sshd) Stops After Reboot
|
||||
|
||||
## 🛑 Problem
|
||||
|
||||
SSH connections to MajorRig from a mobile device or Tailscale client time out on port 22. No connection refused error — just a timeout. The OpenSSH Server service is installed but not running.
|
||||
|
||||
---
|
||||
|
||||
## 🔍 Diagnosis
|
||||
|
||||
From an **elevated** PowerShell on MajorRig:
|
||||
|
||||
```powershell
|
||||
Get-Service sshd
|
||||
```
|
||||
|
||||
If the output shows `Stopped`, the service is not running. This is the cause of the timeout.
|
||||
|
||||
---
|
||||
|
||||
## ✅ Fix
|
||||
|
||||
Run the following from an **elevated** PowerShell (Win+X → Terminal (Admin)):
|
||||
|
||||
```powershell
|
||||
Start-Service sshd
|
||||
Set-Service -Name sshd -StartupType Automatic
|
||||
Get-Service sshd
|
||||
```
|
||||
|
||||
The final command should confirm `Running`. SSH connections will resume immediately — no reboot required.
|
||||
|
||||
---
|
||||
|
||||
## 🔄 Why This Happens
|
||||
|
||||
| Trigger | Reason |
|
||||
|---|---|
|
||||
| Windows Update reboot | If `sshd` startup type is Manual, it won't restart after a reboot |
|
||||
| WSL2 export/import/rebuild | WSL2 reinstall operations often involve reboots that expose the same issue |
|
||||
| Fresh Windows install | OpenSSH Server is installed but startup type defaults to Manual |
|
||||
|
||||
The Windows OpenSSH Server is installed as a Windows Feature (`Add-WindowsCapability`), not a WSL2 package. It runs entirely on the Windows side. However, its **default startup type is Manual**, meaning it will not survive a reboot unless explicitly set to Automatic.
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ Key Notes
|
||||
|
||||
- **This is a Windows-side issue** — WSL2 itself is unaffected. The service must be started and configured from Windows, not from within WSL2.
|
||||
- **Elevated PowerShell required** — `Start-Service` and `Set-Service` for sshd will return "Access is denied" if run without Administrator privileges.
|
||||
- **Port 2222 is also affected** — both the standard port 22 and the bypass port 2222 on MajorRig are served by the same `sshd` service.
|
||||
- **Default shell still works once fixed** — MajorRig's sshd is configured to use `C:\Windows\System32\wsl.exe` as the default shell, dropping SSH sessions directly into WSL2/Bash. This config is preserved across service restarts.
|
||||
|
||||
---
|
||||
|
||||
## 🔎 Quick Reference
|
||||
|
||||
```powershell
|
||||
# Check status (run as Admin)
|
||||
Get-Service sshd
|
||||
|
||||
# Start and set to auto-start (run as Admin)
|
||||
Start-Service sshd
|
||||
Set-Service -Name sshd -StartupType Automatic
|
||||
|
||||
# Verify firewall rule exists
|
||||
Get-NetFirewallRule -DisplayName "*ssh*" | Select DisplayName, Enabled, Direction, Action
|
||||
```
|
||||
@@ -0,0 +1,68 @@
|
||||
---
|
||||
title: "Ollama Drops Off Tailscale When Mac Sleeps"
|
||||
domain: troubleshooting
|
||||
category: ai-inference
|
||||
tags: [ollama, tailscale, macos, sleep, open-webui, majormac]
|
||||
status: published
|
||||
created: 2026-03-17
|
||||
updated: 2026-03-17
|
||||
---
|
||||
|
||||
# Ollama Drops Off Tailscale When Mac Sleeps
|
||||
|
||||
Open WebUI loses its Ollama connection when the host Mac goes to sleep. Models stop appearing, and curl to the Ollama API times out from other machines on the tailnet.
|
||||
|
||||
## The Short Answer
|
||||
|
||||
Disable sleep when plugged into AC power:
|
||||
|
||||
```bash
|
||||
sudo pmset -c sleep 0
|
||||
```
|
||||
|
||||
Or via **System Settings → Energy → Prevent automatic sleeping when the display is off**.
|
||||
|
||||
## Background
|
||||
|
||||
macOS suspends network interfaces when the machine sleeps, which drops the Tailscale tunnel. Ollama becomes unreachable over the tailnet even though it was running fine before sleep. Open WebUI doesn't reconnect automatically — it just shows no models until the connection is manually refreshed after the Mac wakes.
|
||||
|
||||
The `-c` flag in `pmset` limits the setting to AC power only, so the machine will still sleep normally on battery.
|
||||
|
||||
## Diagnosis
|
||||
|
||||
From any other machine on the tailnet:
|
||||
|
||||
```bash
|
||||
tailscale status | grep majormac
|
||||
```
|
||||
|
||||
If it shows `offline, last seen Xm ago` or is routing through a relay instead of direct, the Mac is asleep or the tunnel is degraded.
|
||||
|
||||
```bash
|
||||
curl http://100.74.124.81:11434/api/tags
|
||||
```
|
||||
|
||||
Timeout = Ollama unreachable. After waking the Mac, this should return a JSON list of models immediately.
|
||||
|
||||
## Fix
|
||||
|
||||
```bash
|
||||
# Disable sleep on AC power (run on MajorMac)
|
||||
sudo pmset -c sleep 0
|
||||
|
||||
# Verify
|
||||
pmset -g | grep sleep
|
||||
```
|
||||
|
||||
The display can still sleep — only system sleep needs to be off for Ollama and Tailscale to stay available.
|
||||
|
||||
## Gotchas & Notes
|
||||
|
||||
- **Display sleep is fine** — `pmset -c displaysleep 15` or whatever you prefer won't affect Ollama availability.
|
||||
- **Battery behavior unchanged** — `-c` flag means AC only; normal sleep on battery is preserved.
|
||||
- **Open WebUI won't auto-reconnect** — after waking the Mac, go to Settings → Connections and hit the verify button, or just reload the page.
|
||||
- This affects any service bound to the Tailscale interface on MajorMac, not just Ollama.
|
||||
|
||||
## See Also
|
||||
|
||||
- [[MajorMac]] — device config and known issues
|
||||
Reference in New Issue
Block a user