fleek
fleek copied to clipboard
Error on initial setup: `error: getting status of '/nix/store/XXX-source/.local': No such file or directory`
Describe the bug
On initial setup of fleek on a brand new mac, following the installation instructions, I get this error when applying my initial fleek configuration via nix run github:ublue-os/fleek -- apply:
nix run github:ublue-os/fleek -- apply
[*] Apply fleek configuration
[✓] Writing configuration files
[i] Applying configuration
error: getting status of '/nix/store/2z9a4daib66q500f9cxnnv04qnv4nfj1-source/.local': No such file or directory
ERROR
ERROR Error: exit status 1
ERROR
ERROR
ERROR Error:
ERROR
ERROR There was an internal error. Run with FLEEK_DEBUG=1 for a detailed error message, and consider reporting it at https://github.com/ublue-os/fleek/issues
To Reproduce
- Install nix via the Determinate Systems nix-installer
- Open new shell (to make sure
nixcommand is available) - Install Fleek via
nix run github:ublue-os/fleek -- initper the installation instructions - Apply initial fleek config via
nix run github:ublue-os/fleek -- applyper the same installation instructions - Get the reported error
Expected behavior
Expected successful initial fleek apply run.
Environment
- OS: macOS Ventura 13.3.1
- Shell: bash 3.2.57(1)-release (stock macOS installation)
- fleek version: v0.9.3
Additional context
This is my first hands-on brush with nix, so I'm sorry if this error is common or obvious to folks with more experience!
Here's the verbose output from re-running the apply command with FLEEK_DEBUG=1 enabled:
$ FLEEK_DEBUG=1 nix run github:ublue-os/fleek -- apply
[d] debug enabled
[d] go go1.19.6
path github.com/ublue-os/fleek/cmd/fleek
mod github.com/ublue-os/fleek (devel)
dep atomicgo.dev/cursor v0.1.1
dep atomicgo.dev/keyboard v0.2.9
dep github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8
dep github.com/atotto/clipboard v0.1.4
dep github.com/aymanbagabas/go-osc52/v2 v2.0.1
dep github.com/charmbracelet/bubbles v0.14.0
dep github.com/charmbracelet/bubbletea v0.23.1
dep github.com/charmbracelet/lipgloss v0.7.1
dep github.com/cloudflare/circl v1.1.0
dep github.com/containerd/console v1.0.3
dep github.com/emirpasic/gods v1.18.1
dep github.com/erikgeiser/promptkit v0.8.0
dep github.com/fatih/color v1.15.0
dep github.com/fitv/go-i18n v1.0.4
dep github.com/go-git/gcfg v1.5.0
dep github.com/go-git/go-billy/v5 v5.4.1
dep github.com/go-git/go-git/v5 v5.6.1
dep github.com/google/uuid v1.3.0
dep github.com/gookit/color v1.5.3
dep github.com/hashicorp/go-version v1.6.0
dep github.com/imdario/mergo v0.3.13
dep github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
dep github.com/kevinburke/ssh_config v1.2.0
dep github.com/lithammer/fuzzysearch v1.1.5
dep github.com/lucasb-eyer/go-colorful v1.2.0
dep github.com/mattn/go-colorable v0.1.13
dep github.com/mattn/go-isatty v0.0.17
dep github.com/mattn/go-localereader v0.0.1
dep github.com/mattn/go-runewidth v0.0.14
dep github.com/muesli/ansi v0.0.0-20221106050444-61f0cd9a192a
dep github.com/muesli/cancelreader v0.2.2
dep github.com/muesli/mango v0.1.0
dep github.com/muesli/mango-cobra v1.2.0
dep github.com/muesli/mango-pflag v0.1.0
dep github.com/muesli/reflow v0.3.0
dep github.com/muesli/roff v0.1.0
dep github.com/muesli/termenv v0.15.1
dep github.com/otiai10/copy v1.11.0
dep github.com/pjbgf/sha1cd v0.3.0
dep github.com/pkg/errors v0.9.1
dep github.com/pterm/pterm v0.12.59
dep github.com/rivo/uniseg v0.4.4
dep github.com/riywo/loginshell v0.0.0-20200815045211-7d26008be1ab
dep github.com/sergi/go-diff v1.2.0
dep github.com/skeema/knownhosts v1.1.0
dep github.com/spf13/cobra v1.7.0
dep github.com/spf13/pflag v1.0.5
dep github.com/xanzy/ssh-agent v0.3.3
dep github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e
dep golang.org/x/crypto v0.6.0
dep golang.org/x/net v0.7.0
dep golang.org/x/sys v0.7.0
dep golang.org/x/term v0.7.0
dep golang.org/x/text v0.9.0
dep gopkg.in/warnings.v0 v0.1.2
dep gopkg.in/yaml.v3 v3.0.1
build -compiler=gc
build -tags=netgo
build -trimpath=true
build CGO_ENABLED=0
build GOARCH=arm64
build GOOS=darwin
[d] installed at: /nix/store/1ifgyv65b3cdhvyvgalzgars6kbmppim-fleek-v0.9.3/bin
[d] git autopush: true
[d] git autocommit: true
[d] git autopull: true
[*] Apply fleek configuration
[d] skipping git
[✓] Writing configuration files
[d] skipping git
[i] Applying configuration
error: getting status of '/nix/store/2z9a4daib66q500f9cxnnv04qnv4nfj1-source/.local': No such file or directory
ERROR
ERROR Error: exit status 1
ERROR
[d] Command stderr:
[d]
ExecutionID:a179b69c497d433598c54fa4dc8554f9
I had the same error on Debian.
I had to do:
cd .local/share/fleek/
git init .
git add .
git commit -m 'initial commit trying to get past file not found error'
and also:
cd ; mkdir backup ; mv .bashrc .profile backup/
and it worked:
nix run "https://getfleek.dev/latest.tar.gz" -- apply