Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nixops on Darwin – cannot find bash/users-groups.json #240

Closed
lovek323 opened this issue Nov 2, 2014 · 5 comments
Closed

Nixops on Darwin – cannot find bash/users-groups.json #240

lovek323 opened this issue Nov 2, 2014 · 5 comments

Comments

@lovek323
Copy link
Member

lovek323 commented Nov 2, 2014

I'm trying the example deployment to virtualbox on an OS X system (I'm using the latest darwin-clang-stdenv branch for nixpkgs and the 1.2 release for nixops). Everything seems to build fine, but when it gets to copying the paths to the virtual machine, I get some interesting errors.

-bash: line 1: /nix/store/005j6bnfbw25as730ar6zc21c2h578f2-bash42-045.drv: No such file or directory
-bash: line 2: /nix/store/g1dlyn1686dd0sd4hzldjlimcgf9hk8y-users-groups.json: No such file or directory
copying 200 missing paths to ‘[email protected]’...
terminate called after throwing an instance of 'nix::SysError'

Any help would be greatly appreciated. 😄

@rened
Copy link

rened commented Nov 2, 2014

While I haven't seen this exact error, installation on OSX of nix/nixops is currently quite tricky - the functionality is there, but it is important to install the very latest versions. You might want to take a look at #238 and https://github.com/rened/nixops-mac-setup to get to a working environment quickly.

@lovek323
Copy link
Member Author

lovek323 commented Nov 2, 2014

Thanks @rened, I'll take a look.

@lovek323
Copy link
Member Author

lovek323 commented Nov 2, 2014

I had already done most of the things in that repository, so, unfortunately, that didn't resolve my problem. However, I have managed to fix it (albeit in an extremely hacky way).

The deploy was giving a "Permission denied" error for a particular patch for bash (/nix/store/005j6bnfbw25as730ar6zc21c2h578f2-bash42-045.drv). The permissions were -r--r--r--, which is what I would have expected. However, when I changed to 777, the install worked. I'd love to find out more about what was going on here, but I haven't been able to track down the exact command that was failing with permission denied.

@domenkozar
Copy link
Member

@lovek323 is this still an issue nowadays?

@domenkozar
Copy link
Member

Merging into #560

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

No branches or pull requests

4 participants