Closed avh4 closed 1 year ago
The "invalid argument" error is likely occurring when chezmoi tries to open its persistent state file. This uses BoltDB, which requires a filesystem that supports locking.
What's the output of mount
? Is there anything non-standard about your machine?
Ah, thanks, that solves it! I'm doing some trial runs of the install, and currently have /home
mounted as a shared drive.
For reference, mount includes:
$ mount
...
staging-home on /home type 9p (rw,relatime,sync,dirsync,access=client,msize=16384,trans=virtio)
If I mount a different fs over ./config/chezmoi
, then everything works :white_check_mark:
If the error had included something like "unable to acquire lock for ./config/chezmoi/chezmoistate.boltdb" that would have been helpful.
Describe the bug
I'm setting up chezmoi on a new computer.
chezmoi init ssh://git@...
succeeded, andchezmoi status
andchezmoi diff
show the correct, expected output. Butchezmoi apply
immediately dies with "chezmoi: invalid argument
".To reproduce
Expected behavior
chezmoi apply
should succeed (or print a helpful error message if there is actually something wrong)Output of command with the
--verbose
flagOutput of
chezmoi doctor
Additional context