Skip to content
This repository was archived by the owner on Mar 24, 2024. It is now read-only.

Fresh Fleek install emits "Could not find suitable profile directory" error, other usability notes #188

Open
1024bees opened this issue Apr 30, 2023 · 6 comments

Comments

@1024bees
Copy link
Contributor

1024bees commented Apr 30, 2023

Describe the bug
Fleek failed to apply after following the installation instructions

To Reproduce

sh <(curl -L https://nixos.org/nix/install) --daemon # I installed nix for this :) 
mkdir -p ~/.config/nix\
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
nix run github:ublue-os/fleek -- generate --help\
nix run github:ublue-os/fleek -- init
nix run github:ublue-os/fleek -- apply

And I observed the error : Could not find suitable profile directory, tried /home/james/.local/state/home-manager/profiles and /nix/var/nix/profiles/per-user/james

I created the first directory and tried to reapply and saw the same failure -- after I created /nix/var/nix/profiles/per-user/james fleek worked like a charm

Expected behavior
There should be no failure. Very likely that this is a nix specific because i didnt use the zero to nix installation. Figure I'd post for posterity :)

Environment

  • OS: Ubuntu 20.04
  • Shell: zsh
  • fleek version: boostrapped, 0.9.0

Additional context
Following the error message resolved this issue! Figure I would post anyway so people aren't suprised in the Future. Excited to explore fleek! Seems like a great tool.

Would love to have some sort of forum how to do a little Q+. Now im trying to figure out how I can customize my zshrc and have fleek version control that. After some googling, I see that nix programs are the way to go. The concept of a program makes sense and seems very powerful but how they plug into fleek is a little bit confusing. (e.g. where do I create a file to describe my program? Or is a file required at all?).

UPDATE 1: I found the programs.nix file! Its in the same directory as the fleek.yml file -- just had to follow the symlink

@adefemi171
Copy link

@1024bees I tried this steps but I was still getting the same error. Was there any content in those files you created?

@1024bees
Copy link
Contributor Author

@adefemi171 unfortunately no, all i did was mkdir -p /nix/var/nix/profiles/per-user/james and mkdir -p /home/james/.local/state/home-manager/profiles

@adefemi171
Copy link

Thanks, for some reason I retried it again after few hours and it worked

@t9999clint
Copy link

last time I had this error, all I had to do was reboot.
Did you reboot after you installed NIX?

@1024bees
Copy link
Contributor Author

1024bees commented Jun 7, 2023

No, I think I just opened a new shell

@tml
Copy link
Contributor

tml commented Jun 13, 2023

#194 (comment) appears to provide a workaround for this issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants