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

string ‘en_US.UTF-8’ doesn't represent an absolute path #909

Closed
rsoeldner opened this issue Mar 20, 2018 · 1 comment
Closed

string ‘en_US.UTF-8’ doesn't represent an absolute path #909

rsoeldner opened this issue Mar 20, 2018 · 1 comment

Comments

@rsoeldner
Copy link

When I try to deploy my verry first application with the following steps:

cabal2nix . > default.nix with a deployment configuration:

config.nix

let
  region = "eu-east-1";
  accessKeyId = "xxxx";

  ec2 =
    { resources, ... }:
    { deployment.targetEnv = "ec2";
      deployment.ec2.accessKeyId = accessKeyId;
      deployment.ec2.region = region;
      deployment.ec2.instanceType = "m1.small";
      deployment.ec2.keyPair = resources.ec2KeyPairs.my-key-pair;
    };

in
{
  backend = ec2;

  resources.ec2KeyPairs.my-key-pair =
    { inherit region accessKeyId; };
}

as well as release.nix :

{ nixpkgs ? import <nixpkgs> {} }:

nixpkgs.pkgs.haskell.packages.ghc802.callPackage ./default.nix {}

Creating:
nixops create config.nix release.nix -d test
and deploying:
nixops deploy -d test --debug --show-trace

I receive the following error / stacktrace:

error: while evaluating the attribute ‘config.deployment’ at /nix/store/3dl3idgx23vl4bb2di72r3k8h2wxjyf9-nixos-17.09.3159.c665fcca9e7/nixos/lib/attrsets.nix:199:44:
while evaluating anonymous function at /nix/store/3dl3idgx23vl4bb2di72r3k8h2wxjyf9-nixos-17.09.3159.c665fcca9e7/nixos/lib/options.nix:116:41, called from /nix/store/3dl3idgx23vl4bb2di72r3k8h2wxjyf9-nixos-17.09.3159.c665fcca9e7/nixos/lib/attrsets.nix:199:52:
while evaluating ‘scrubOptionValue’ at /nix/store/3dl3idgx23vl4bb2di72r3k8h2wxjyf9-nixos-17.09.3159.c665fcca9e7/nixos/lib/options.nix:112:22, called from /nix/store/3dl3idgx23vl4bb2di72r3k8h2wxjyf9-nixos-17.09.3159.c665fcca9e7/nixos/lib/options.nix:116:44:
while evaluating ‘isDerivation’ at /nix/store/3dl3idgx23vl4bb2di72r3k8h2wxjyf9-nixos-17.09.3159.c665fcca9e7/nixos/lib/attrsets.nix:295:18, called from /nix/store/3dl3idgx23vl4bb2di72r3k8h2wxjyf9-nixos-17.09.3159.c665fcca9e7/nixos/lib/options.nix:113:8:
while evaluating the attribute ‘config’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/lib/eval-config.nix:53:5:
while evaluating the attribute ‘config’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:87:25:
while evaluating ‘yieldConfig’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:74:29, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:73:16:
while evaluating ‘mergeModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:190:26, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:64:17:
while evaluating ‘mergeModules'’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:194:36, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:191:5:
while evaluating ‘concatMap’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:102:18, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:230:9:
while evaluating ‘reverseList’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:279:17, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:64:38:
while evaluating ‘filterModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:93:31, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:64:51:
while evaluating ‘closeModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:101:27, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:62:16:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:94:29, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:103:50, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:94:32:
while evaluating ‘unifyModuleSyntax’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:118:34, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:109:11:
while evaluating ‘applyIfFunction’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:144:29, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:109:39:
string ‘en_US.UTF-8’ doesn't represent an absolute path, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:109:60
error: evaluation of the deployment specification failed

Im running NixOps 1.5.2.

@rsoeldner
Copy link
Author

solved, I was missing machine configuration

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

1 participant