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

Can not run deploy-krops #421

Open
emnvn opened this issue Nov 4, 2021 · 4 comments
Open

Can not run deploy-krops #421

emnvn opened this issue Nov 4, 2021 · 4 comments

Comments

@emnvn
Copy link

emnvn commented Nov 4, 2021

Hello,

I m trying to run example script to build nix-bitcoin node, but when I run the script deploy-krops.sh in examples folder, I saw the output:

[centos@ip-172-31-23-238 examples]$ ./deploy-krops.sh
Running script in nix shell env...
Building the target VM
/nix/store/5va9c9frhpapcr5mn4kq1xw5qml6wd2g-krops-deploy
Building the nix-bitcoin node
./deploy-krops.sh: line 95: 26815 Killed                  nix-build --out-link $tmpDir/store-paths -E '
let
  system = (import <nixpkgs/nixos> { configuration = <krops-vm-configuration.nix>; }).system;
  pkgsUnstable = (import <nix-bitcoin/pkgs/nixpkgs-pinned.nix>).nixpkgs-unstable;
  pkgs = import <nixpkgs> {};
in
  pkgs.closureInfo { rootPaths = [ system pkgsUnstable ]; }
' > /dev/null

I setup nixos on our CentOS server. Our server info:

Linux ip-172-31-23-238.ap-southeast-1.compute.internal 3.10.0-1062.1.2.el7.x86_64 #1 SMP Mon Sep 30 14:19:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Our NixOS version: I install some days ago from latest guide but I did not get the version.

Hope that someone know the reason or show me the guide to troubleshoot it.

Thanks.

@erikarvstedt
Copy link
Collaborator

Does the regular deploy-qemu-vm.sh script work on your system?

@emnvn
Copy link
Author

emnvn commented Nov 4, 2021

Hello @erikarvstedt,

I tried the deploy-qemu-vm.sh script, it show the result:

[centos@ip-172-31-23-238 examples]$ ./deploy-qemu-vm.sh
Running script in nix shell env...
Building VM
./deploy-qemu-vm.sh: line 35: 27468 Killed                  nix-build --out-link $tmpDir/vm - <<'EOF'
(import <nixpkgs/nixos> {
  configuration = {
    imports = [
      <configuration.nix>
      <qemu-vm/vm-config.nix>
    ];
    nix-bitcoin.generateSecrets = true;
  };
}).vm
EOF

[centos@ip-172-31-23-238 examples]$

Do you know the reason ?

@erikarvstedt
Copy link
Collaborator

What happens if you run nix run in the root directory of the nix-bitcoin repo?

@nixbitcoin
Copy link
Member

Can we close this @emnvn?

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

No branches or pull requests

3 participants