{"record":{"id":"e35b4a0630694d56","repo":"abiosoft/colima","slug":"error-starting-network-w","errorCode":null,"errorMessage":"error starting network: %w","messagePattern":"error starting network: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"environment/vm/lima/daemon.go","lineNumber":120,"sourceCode":"\t\t})\n\t}\n\n\t// network failure is not fatal\n\tif err := a.Exec(); err != nil {\n\t\tif useVmnet {\n\t\t\tfunc() {\n\t\t\t\tinstalled, _ := ctx.Value(networkInstalledKey).(bool)\n\t\t\t\tif !installed {\n\t\t\t\t\tlog.Warnln(fmt.Errorf(\"error setting up network dependencies: %w\", err))\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tstatus, ok := ctx.Value(statusKey).(daemon.Status)\n\t\t\t\tif !ok {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tif !status.Running {\n\t\t\t\t\tlog.Warnln(fmt.Errorf(\"error starting network: %w\", err))\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tfor _, p := range status.Processes {\n\t\t\t\t\t// TODO: handle inotify separate from network\n\t\t\t\t\tif p.Name == inotify.Name {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tif !p.Running {\n\t\t\t\t\t\tctx = context.WithValue(ctx, daemon.CtxKey(p.Name), false)\n\t\t\t\t\t\tlog.Warnln(fmt.Errorf(\"error starting %s: %w\", p.Name, err))\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}()\n\t\t}\n\t}\n\n\t// check if inotify is running","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/abiosoft/colima/blob/c3a5f9184d83a197184f897a9f07eb3c01b3bc88/environment/vm/lima/daemon.go#L102-L138","documentation":"A non-fatal warning logged when the daemon chain failed, network dependencies WERE installed, but the daemon's status (ctx statusKey) reports the daemon overall is not Running — i.e. the network daemon process died or never launched after installation. Distinguished from 'error setting up network dependencies' by the installed flag being true here.","triggerScenarios":"'colima start --network-address' where installation succeeded but the root daemon immediately exits: vmnet interface creation denied by macOS, the daemon binary crashing (version mismatch after upgrade), OOM, or its runtime dependencies missing; the status probe then reports Running=false and this warning fires instead of a fatal error because network is best-effort.","commonSituations":"macOS upgrades breaking vmnet; colima upgraded while the VM was resumed (old daemon binary path); concurrent starts racing over the daemon socket; security software killing the privileged helper.","solutions":["Check daemon vitals in the guest: 'colima ssh -- ps aux | grep -i daemon' and its logs to find why it exited after install.","Restart cleanly to re-spawn the daemon: 'colima stop -f && colima start --network-address'.","After macOS upgrades, reinstall helpers and recreate: 'brew reinstall socket_vmnet' then 'colima delete -f && colima start --network-address'.","If you don't need addressable VMs, drop the flag — 'colima start' — and the warning path is skipped entirely."],"exampleFix":null,"handlingStrategy":"retry","validationCode":"// probe daemon liveness before declaring failure\nif s, err := l.daemon.Running(ctx, conf); err == nil && s.Running {\n    // safe to proceed with network-dependent steps\n} else {\n    log.Warnln(\"network daemon not running; addressable networks unavailable\")\n}","typeGuard":null,"tryCatchPattern":"status, ok := ctx.Value(statusKey).(daemon.Status)\nif ok && !status.Running {\n    // one re-spawn attempt before warning\n    if s2, err := l.daemon.Running(ctx, conf); err != nil || !s2.Running {\n        log.Warnln(fmt.Errorf(\"error starting network: %w\", err))\n    }\n}","preventionTips":["Recreate the VM after macOS upgrades that break vmnet entitlements.","Keep the daemon binary version in sync with colima (recreate VM after brew upgrades).","Don't run multiple colima starts concurrently — they race over the daemon socket."],"tags":["network","vmnet","daemon","non-fatal","startup"],"backgroundTag":null,"analyzedSha":"c3a5f9184d83a197184f897a9f07eb3c01b3bc88","analyzedAt":"2026-08-15T18:58:08.334Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}