Symptom
The Leader cannot create a config bundle for an Edge Fleet. Nodes stay on the previous config version and show a config version warning. The Leader log repeats these messages:
ConfExport error "failed to dump config" filename: vars.yml ConfExport warn "failed to squash the config layers" ConfExport error "failed to bundle, cleaning up" Bundler error "creating group bundle failed" TypeError: s.startsWith is not a function
The stack runs through decrypt and loadFromDirs, then squash, squashPacks, and createBundleFromAncestors. Every Fleet that includes the affected Pack fails, including older commits. Fleets that do not include that Pack still build bundles.
Environment
- Cribl Edge Fleets managed by a Cribl Cloud Leader
- Leader 4.20.4
- Edge nodes 4.19.0
- A custom Pack installed on a parent Fleet
Resolution
Note: Do not restart the Leader or re-enroll nodes. Bundle creation fails on the Leader before any Fleet receives the new config. Delete the broken Pack only after routes point at the corrected Pack.
- Open the Leader log and find the
failed to dump configevent forvars.yml. - Read
rootDiron that event and note the Fleet name and Pack directory in the path. - Navigate to Processing > Packs on the Fleet that owns the Pack, including the parent Fleet when child Fleets inherit it.
- Select Export for that Pack.
- Select Merge.
- Extract the
.crblfile. - Open
default/vars.yml. - Change each unsupported
typeto a supported type:string,number,encryptedString,boolean,array,object,expression, orany. - Use
booleanfor a true or false switch. Do not usebool. - Change each unquoted
valueto a quoted string. For a boolean, use'true'or'false'. - Increase
versioninpackage.json. - Set a new
nameinpackage.jsonwhen an import of the same Pack ID would collide with the installed Pack. - Pack the edited directory into a new
.crblfile. - Select Add Pack and import the corrected file on each Fleet that has the broken Pack, including parent Fleets.
- Open each route that sends data through the broken Pack.
- Select the corrected Pack on that route.
- Delete the broken Pack from every Fleet that still has it installed.
- Select Commit & Deploy for one Fleet.
- Confirm the Leader log no longer shows
failed to dump configforvars.ymlorcreating group bundle failedfor that Fleet. - Deploy the remaining Fleets.
Example of an invalid boolean variable:
enable_feature: type: bool lib: custom value: true
Example of the corrected variable:
enable_feature: type: boolean lib: custom value: 'true'
Cause
vars.yml stores each variable value as a string. An entry with type: bool and an unquoted YAML boolean makes that value a non-string. While the Leader loads the Pack, decrypt calls startsWith on that value and throws TypeError: s.startsWith is not a function. The layer squash stops, so bundle creation fails for every Fleet that includes the Pack, including Fleets that inherit it.
The Variables page does not list these entries. A Global Variables API request can also return no variables, because the load throws before it returns them. That response does not mean the file is empty.
Additional Information
Supported types and the value string format are described in the Variables Library and in vars.yml
The same vars.yml shape is used for Worker Group variables. This article covers the Pack case that blocks Edge Fleet bundles.
