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

Error using 'file.owner' - 'LookupGroup requires cgo' #629

Open
dmlemos opened this issue Jun 17, 2017 · 0 comments
Open

Error using 'file.owner' - 'LookupGroup requires cgo' #629

dmlemos opened this issue Jun 17, 2017 · 0 comments

Comments

@dmlemos
Copy link

dmlemos commented Jun 17, 2017

$ cat setup.hcl

param "dir" {
  default = "dir1"
}

file.directory "dir" {
  destination = "{{param `dir`}}"
}

file.owner "dir" {
  destination = "{{lookup `file.directory.dir.destination`}}"
  group = "root"

  recursive = true
  depends   = ["file.directory.dir"]
}

$ converge plan --local setup.hcl

Error

2017-06-17T16:46:11+01:00 |WARN| setting session-local token    token=xxx
2017-06-17T16:46:11+01:00 |WARN| no SSL config in use, server will accept unencrypted connections    component=rpc
2017-06-17T16:46:11+01:00 |INFO| serving GRPC   addr=http://127.0.0.1:47740 component=rpc
2017-06-17T16:46:11+01:00 |INFO| serving REST   addr=http://127.0.0.1:47740 component=rpc
2017-06-17T16:46:11+01:00 |WARN| skipping module verification   component=client
2017-06-17T16:46:11+01:00 |WARN| root/file.owner.dir no status for node root/file.directory.dir status-reference=root/file.directory.dir
2017-06-17T16:46:11+01:00 |INFO| got status     component=client file=setup.hcl id=root/param.dir run=STARTED stage=PLAN
2017-06-17T16:46:11+01:00 |INFO| got status     component=client file=setup.hcl id=root/file.directory.dir run=STARTED stage=PLAN
2017-06-17T16:46:11+01:00 |INFO| got status     component=client file=setup.hcl id=root/file.owner.dir run=STARTED stage=PLAN
2017-06-17T16:46:11+01:00 |ERROR| planning failed       component=rpc error=1 error(s) occurred:

* root/file.owner.dir: user: LookupGroup requires cgo function=executor.Plan location=setup.hcl runID=dd893439-bd88-4c9f-a9bd-b66d2ca198c5
 2017-06-17T16:46:11+01:00 |FATAL| could not get responses      component=client error=error getting status response: rpc error: code = 2 desc = planning setup.hcl: 1 error(s) occurred:

* root/file.owner.dir: user: LookupGroup requires cgo file=setup.hcl

OS: macOS 10.12.5

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