[{"data":1,"prerenderedAt":696},["ShallowReactive",2],{"docs-\u002Fdocs\u002Freference\u002Ftroubleshooting":3},{"id":4,"title":5,"body":6,"description":688,"extension":689,"meta":690,"navigation":691,"path":692,"seo":693,"stem":694,"__hash__":695},"docs\u002Fdocs\u002Freference\u002Ftroubleshooting.md","Troubleshooting",{"type":7,"value":8,"toc":678},"minimark",[9,13,17,22,188,192,305,309,381,385,449,453,642,646],[10,11,5],"h1",{"id":12},"troubleshooting",[14,15,16],"p",{},"Refusals are deliberate. Each one names the rule it enforces, and nothing was changed. Read the message first; it usually says exactly what to fix.",[18,19,21],"h2",{"id":20},"setup-and-ssh","Setup and SSH",[23,24,25,41],"table",{},[26,27,28],"thead",{},[29,30,31,35,38],"tr",{},[32,33,34],"th",{},"Symptom",[32,36,37],{},"Likely cause",[32,39,40],{},"What to do",[42,43,44,75,92,108,130,153,167],"tbody",{},[29,45,46,53,67],{},[47,48,49],"td",{},[50,51,52],"code",{},"sg: loading configuration: …",[47,54,55,56,59,60,63,64],{},"Bad ",[50,57,58],{},"SG_ENV",", ",[50,61,62],{},"SG_LOG_LEVEL"," or ",[50,65,66],{},"SG_STATE_DIR",[47,68,69,70],{},"Fix the variable. See ",[71,72,74],"a",{"href":73},"\u002Fdocs\u002Freference\u002Fenvironment-variables","Environment variables",[29,76,77,83,86],{},[47,78,79,82],{},[50,80,81],{},"sg: unknown group \"\u003Cx>\""," (exit 2)",[47,84,85],{},"A typo, or a flag before the group",[47,87,88,89],{},"Use ",[50,90,91],{},"sg \u003Cgroup> \u003Cverb> [flags]",[29,93,94,99,105],{},[47,95,96,82],{},[50,97,98],{},"--config requires …",[47,100,101,102],{},"Missing ",[50,103,104],{},"--config",[47,106,107],{},"Pass the spec path",[29,109,110,116,123],{},[47,111,112,113],{},"Host-key or SSH failure during ",[50,114,115],{},"plan",[47,117,118,119,122],{},"Host not in ",[50,120,121],{},"~\u002F.ssh\u002Fknown_hosts",", or the wrong private key",[47,124,125,126,129],{},"SSH in once yourself and verify the fingerprint. ",[50,127,128],{},"sg"," never edits known_hosts",[29,131,132,138,146],{},[47,133,134,137],{},[50,135,136],{},"bootstrap.deploy_user.key_path"," names a private or invalid key",[47,139,140,141,145],{},"The deploy key must be a ",[142,143,144],"strong",{},"public"," key file",[47,147,148,149,152],{},"Point it at the ",[50,150,151],{},".pub",". A missing companion file is never searched for or generated",[29,154,155,158,164],{},[47,156,157],{},"A tool probe fails with unexpected output",[47,159,160,161,163],{},"A presence check didn't return its exact marker. ",[50,162,128],{}," fails closed rather than guess",[47,165,166],{},"Check the host's shell environment. Exit 127 alone isn't taken as \"not installed\"",[29,168,169,179,182],{},[47,170,171,174,175,178],{},[50,172,173],{},"firewall.tables"," fails while ",[50,176,177],{},"nft"," is missing",[47,180,181],{},"The guard needs nftables",[47,183,184,185,187],{},"Make sure the ",[50,186,177],{}," tool is installed on the host",[18,189,191],{"id":190},"specs-and-registration","Specs and registration",[23,193,194,206],{},[26,195,196],{},[29,197,198,201,204],{},[32,199,200],{},"Code or message",[32,202,203],{},"Cause",[32,205,40],{},[42,207,208,225,250,270,283],{},[29,209,210,219,222],{},[47,211,212,215,216],{},[50,213,214],{},"sg:invalid-spec"," \u002F ",[50,217,218],{},"sg:invalid-application-spec",[47,220,221],{},"The spec failed validation",[47,223,224],{},"The message names the first broken rule",[29,226,227,235,245],{},[47,228,229,215,232],{},[50,230,231],{},"secret is unavailable: \u003CVAR>",[50,233,234],{},"sg:secret-unavailable",[47,236,237,238,63,241,244],{},"An ",[50,239,240],{},"auth_key_env",[50,242,243],{},"admin_password_env"," variable is unset or empty",[47,246,247,248],{},"Export it in the shell that runs ",[50,249,128],{},[29,251,252,260,263],{},[47,253,254,215,257],{},[50,255,256],{},"sg:unknown-cluster",[50,258,259],{},"sg:cluster-not-ready",[47,261,262],{},"The application's cluster isn't registered or formed",[47,264,265,266,269],{},"Run ",[50,267,268],{},"sg cluster create"," in the same directory first",[29,271,272,277,280],{},[47,273,274],{},[50,275,276],{},"sg:application-name-conflict",[47,278,279],{},"The name is bound to another spec file or cluster",[47,281,282],{},"Use a new name. Bindings never move silently",[29,284,285,293,299],{},[47,286,287,215,290],{},[50,288,289],{},"sg:application-placement-invalid",[50,291,292],{},"sg:application-cluster-mismatch",[47,294,295,298],{},[50,296,297],{},"target"," names a non-member, or the cluster changed",[47,300,301,302],{},"Match placements to ",[50,303,304],{},"cluster.yaml",[18,306,308],{"id":307},"plans-and-runs","Plans and runs",[23,310,311,322],{},[26,312,313],{},[29,314,315,318,320],{},[32,316,317],{},"Code",[32,319,203],{},[32,321,40],{},[42,323,324,338,354,368],{},[29,325,326,332,335],{},[47,327,328,331],{},[50,329,330],{},"sg:plan-stale"," (409)",[47,333,334],{},"Live state changed after you approved the plan",[47,336,337],{},"Plan again and re-approve",[29,339,340,345,348],{},[47,341,342,331],{},[50,343,344],{},"sg:run-active",[47,346,347],{},"Another panel run is active",[47,349,350,351],{},"Wait, or stop it with ",[50,352,353],{},"POST \u002Fapi\u002Fv1\u002Fruns\u002F{id}\u002Fstop",[29,355,356,362,365],{},[47,357,358,361],{},[50,359,360],{},"sg:observation-unavailable"," (503)",[47,363,364],{},"Members couldn't be observed",[47,366,367],{},"Check connectivity, then Refresh",[29,369,370,375,378],{},[47,371,372],{},[50,373,374],{},"stopped: run … failed",[47,376,377],{},"A change failed its step or its check",[47,379,380],{},"Fix what it names on the host, then run the same command again",[18,382,384],{"id":383},"clusters-and-machines","Clusters and machines",[23,386,387,397],{},[26,388,389],{},[29,390,391,393,395],{},[32,392,317],{},[32,394,203],{},[32,396,40],{},[42,398,399,419,438],{},[29,400,401,406,412],{},[47,402,403],{},[50,404,405],{},"sg:cluster-teardown-unsupported",[47,407,408,409],{},"Plain ",[50,410,411],{},"sg cluster destroy",[47,413,414,415,418],{},"Only ",[50,416,417],{},"--with-machines"," completes today",[29,420,421,426,432],{},[47,422,423],{},[50,424,425],{},"sg:machine-in-cluster",[47,427,428,431],{},[50,429,430],{},"sg machine destroy"," on a cluster member",[47,433,434,435,437],{},"Destroy the cluster with ",[50,436,417],{}," instead",[29,439,440,443,446],{},[47,441,442],{},"Members \"diverge in LXD channel or version\"",[47,444,445],{},"Members aren't on the same LXD",[47,447,448],{},"Bring them to the same channel before forming",[18,450,452],{"id":451},"applications","Applications",[23,454,455,465],{},[26,456,457],{},[29,458,459,461,463],{},[32,460,317],{},[32,462,203],{},[32,464,40],{},[42,466,467,480,497,514,537,554,567,580,601,629],{},[29,468,469,474,477],{},[47,470,471],{},[50,472,473],{},"sg:rollback-unavailable",[47,475,476],{},"There's no valid generation N-1",[47,478,479],{},"Nothing to roll back to. Deploy deliberately",[29,481,482,487,490],{},[47,483,484],{},[50,485,486],{},"sg:volume-share-unsafe",[47,488,489],{},"A volume is shared on one member without approval",[47,491,492,493,496],{},"Review it; pass ",[50,494,495],{},"--force-volume-share \u003Cvolume>"," only if you mean it",[29,498,499,504,507],{},[47,500,501],{},[50,502,503],{},"sg:service-data-on-root",[47,505,506],{},"Service data appears to live on a root disk",[47,508,509,510,513],{},"Review it; ",[50,511,512],{},"--confirm-root-data \u003Cinstance>"," allows only a root-preserving restart",[29,515,516,524,527],{},[47,517,518,215,521],{},[50,519,520],{},"sg:exposure-conflict",[50,522,523],{},"sg:load-balancer-listen-conflict",[47,525,526],{},"A port collides on a member, or uses a reserved control port",[47,528,529,530,63,533,536],{},"Choose another ",[50,531,532],{},"expose",[50,534,535],{},"listen"," port",[29,538,539,544,551],{},[47,540,541],{},[50,542,543],{},"sg:service-version-unavailable",[47,545,546,547,550],{},"No release matches ",[50,548,549],{},"version"," in the vendor repository for both amd64 and arm64",[47,552,553],{},"Use an available release",[29,555,556,561,564],{},[47,557,558],{},[50,559,560],{},"sg:service-version-incompatible",[47,562,563],{},"The version change isn't safe for the existing data",[47,565,566],{},"Stay within the major, or migrate the data yourself",[29,568,569,574,577],{},[47,570,571],{},[50,572,573],{},"sg:application-destroy-unsafe",[47,575,576],{},"The spec shrinks a volume or changes its content type",[47,578,579],{},"Restore the volume's size and type",[29,581,582,587,594],{},[47,583,584],{},[50,585,586],{},"Asked for a VM but image is of type container",[47,588,589,590,593],{},"A ",[50,591,592],{},"type: vm"," group names an image published from a container",[47,595,596,597],{},"Build the image from a VM. See ",[71,598,600],{"href":599},"\u002Fdocs\u002Fapplications\u002Fvms","Launch a VM",[29,602,603,612,626],{},[47,604,605,608,609],{},[50,606,607],{},"LXD VM agent is not currently running"," at ",[50,610,611],{},"app.health",[47,613,614,615,618,619,622,623,625],{},"The VM was ",[50,616,617],{},"Running"," but not booted far enough for ",[50,620,621],{},"lxc exec",". ",[50,624,128],{}," tries the health check once",[47,627,628],{},"Wait a few seconds and deploy again. The second deploy only re-checks",[29,630,631,636,639],{},[47,632,633],{},[50,634,635],{},"workstation cannot reach \u003Caddr>:\u003Cport>",[47,637,638],{},"Deploy's exposure check failed",[47,640,641],{},"Is your workstation on the tailnet? Is the app actually listening on that port inside the instance?",[18,643,645],{"id":644},"still-stuck","Still stuck",[647,648,649,659,666],"ul",{},[650,651,652,653,63,655,658],"li",{},"Run the read-only verb (",[50,654,115],{},[50,656,657],{},"status",") and read every row.",[650,660,661,662,665],{},"Set ",[50,663,664],{},"SG_LOG_LEVEL=debug"," for more detail.",[650,667,668,669,673,674,677],{},"Ask a coding agent with ",[71,670,672],{"href":671},"\u002Fdocs\u002Fagents","the slo-gen guide"," loaded to read the output with you. Tell it not to use any ",[50,675,676],{},"--force"," flags.",{"title":679,"searchDepth":680,"depth":680,"links":681},"",2,[682,683,684,685,686,687],{"id":20,"depth":680,"text":21},{"id":190,"depth":680,"text":191},{"id":307,"depth":680,"text":308},{"id":383,"depth":680,"text":384},{"id":451,"depth":680,"text":452},{"id":644,"depth":680,"text":645},"The errors and refusal codes you're most likely to see, what causes them and what to do.","md",{},true,"\u002Fdocs\u002Freference\u002Ftroubleshooting",{"title":5,"description":688},"docs\u002Freference\u002Ftroubleshooting","5W8uWoe0RIWiwbfZSoawLUMtJfJF2XWlP8Dpc8uRBKs",1796464240887]