pi-harness-runtime 0.9.19 → 0.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +11 -4
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -290,10 +290,17 @@ export default function (pi: ExtensionAPI) {
|
|
|
290
290
|
syncOptions: { cachePath: cookieCachePath },
|
|
291
291
|
onEvent: (event) => {
|
|
292
292
|
if (event.kind === "sync-error" || event.kind === "watcher-error") {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
293
|
+
const msg = "message" in event ? event.message : "";
|
|
294
|
+
if (msg.includes("ENOSPC")) {
|
|
295
|
+
console.error(
|
|
296
|
+
"[pi-harness] cookie-sanitizer: ENOSPC — inotify watchers exhausted.\n" +
|
|
297
|
+
" Fix (run once as sudo):\n" +
|
|
298
|
+
" echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/99-watch.conf\n" +
|
|
299
|
+
" sudo sysctl --system",
|
|
300
|
+
);
|
|
301
|
+
} else {
|
|
302
|
+
console.error("[pi-harness] cookie-sanitizer:", msg);
|
|
303
|
+
}
|
|
297
304
|
}
|
|
298
305
|
// A successful sync means the canonical cache is fresh; the
|
|
299
306
|
// next autoFetchQuota() should pick it up immediately. Reset
|
package/package.json
CHANGED