fix: browser wrapper permanent pour SingletonLock après redémarrage

- chrome-wrapper.sh : nettoie les lock files avant de lancer Chrome
- openclaw.json : executablePath pointe vers le wrapper
- start-chrome-cdp.sh : script de secours manuel
- oc-up.sh : mis à jour (plus de démarrage manuel Chrome nécessaire)
- MEMORY.md : documentation du fix
This commit is contained in:
Nox
2026-02-27 10:42:54 +00:00
parent 29c59b6bf1
commit e4128f9788
39 changed files with 2668 additions and 1 deletions
+13 -1
View File
@@ -70,10 +70,14 @@
- `fal-ai/flux/schnell` — génération rapide, bon pour photos/art
- `fal-ai/nano-banana-pro` — Gemini 3 Pro Image, bon pour affiches/texte/édition d'images
- **Browser OpenClaw (outil `browser`)** : ✅ OPÉRATIONNEL — headless Chromium Playwright, profil `openclaw`
- Config : `attachOnly: false`, `executablePath: /home/node/.cache/ms-playwright/chromium-1208/chrome-linux64/chrome`
- Config : `attachOnly: false`, `executablePath: /home/node/.openclaw/workspace/chrome-wrapper.sh`
- Le `chrome-wrapper.sh` nettoie les lock files résiduels AVANT de lancer Chrome (fix permanent pour le bug SingletonLock après redémarrage)
- Chrome réel : `/home/node/.cache/ms-playwright/chromium-1208/chrome-linux64/chrome` (appelé par le wrapper)
- CDP port : 18800, user-data-dir : `/home/node/.openclaw/browser/openclaw/user-data`
- Utiliser pour : snapshots ARIA, interactions UI, screenshots, sessions persistantes
- Se lance automatiquement au premier appel `browser action=start profile=openclaw`
- **Toujours sauvegarder les fichiers dans le workspace** — `/tmp` est bloqué pour l'envoi Telegram
- ⚠️ Si le browser ne répond plus : vérifier que Chrome tourne (`curl -sf http://127.0.0.1:18800/json/version`) — relancer via `bash /home/node/.openclaw/workspace/start-chrome-cdp.sh`
- **Playwright direct (Node.js)** : pour interception réseau, scripts sur mesure, scraping avancé
- Installé dans `/home/node/.openclaw/workspace/node_modules/playwright`
- `executablePath``/home/node/.cache/ms-playwright/chromium-1208/chrome-linux64/chrome`
@@ -197,6 +201,14 @@ send({ type: 'lovelace/config', url_path: 'vue-par-pieces' })
## Sites & Flux RSS
- **Korben.info** : utiliser le flux RSS `https://korben.info/feed` pour récupérer les articles (plus propre que scraper la homepage)
## Veilles actives
### 📡 XGS-PON CMTD — Montlieu-la-Garde
- Christophe est sur le réseau **CMTD** (RIP, géré par Orange) actuellement en GPON → plafond ~1 Gbps
- Migration XGS-PON en cours, prévue fin 2026
- **Quand XGS-PON dispo** → recommander passage **Freebox Ultra grand public** (moins cher que FreePro, mêmes features + 8 Gbps sym)
- Vérifier 1x/mois via heartbeat
## Leçons apprises
- **Toujours prendre un snapshot du LXC 145** (`mini-pc`) avant toute modification de config ou installation qui pourrait casser OpenClaw
- Commande : `curl -sk -X POST -H "Authorization: PVEAPIToken=$PVE_TOKEN" -H "Content-Type: application/json" -d '{"snapname":"<nom>","description":"<desc>"}' "$PVE_URL/api2/json/nodes/mini-pc/lxc/145/snapshot"`