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

packer crash when using a json variables file #8910

Closed
jhawk28 opened this issue Mar 19, 2020 · 5 comments · Fixed by #8914
Closed

packer crash when using a json variables file #8910

jhawk28 opened this issue Mar 19, 2020 · 5 comments · Fixed by #8914
Assignees
Labels

Comments

@jhawk28
Copy link
Contributor

jhawk28 commented Mar 19, 2020

I'm not sure if its a configuration issue, but this is the crash that is occurring when I try to test changes from my vsphere_export_ovf branch. I built it using go install

$ packer build -on-error=ask -var-file variables.json ubuntu-18.04-amd64-docker.json
2020/03/19 00:06:27 [INFO] Packer version: 1.5.5-dev [go1.14 windows amd64]
2020/03/19 00:06:27 Checking 'PACKER_CONFIG' for a config file path
2020/03/19 00:06:27 'PACKER_CONFIG' not set; checking the default config file path
2020/03/19 00:06:27 Attempting to open config file: C:\Users\jhawk28\AppData\Roaming\packer.config
2020/03/19 00:06:27 [WARN] Config file doesn't exist: C:\Users\jhawk28\AppData\Roaming\packer.config
2020/03/19 00:06:27 Setting cache directory: C:\Users\jhawk28\repos\infrastructure\packer\packer_cache
cannot determine if process is in background: Process background check error: not implemented yet
2020/03/19 00:06:27 waiting for all plugin processes to complete...
panic: assignment to entry in nil map

goroutine 1 [running]:
github.com/hashicorp/packer/command.(*Meta).Core(0xc00007c460, 0xc0004e20b0, 0xc0004e20b0, 0x0, 0x0)
        C:/Users/jhawk28/repos/packer/command/meta.go:54 +0x16a
github.com/hashicorp/packer/command.(*BuildCommand).GetBuilds(0xc00007c460, 0xc0000466c0, 0x1e, 0x6, 0x1, 0x7fffffffffffffff, 0xc00004e11a)
        C:/Users/jhawk28/repos/packer/command/build.go:155 +0x196
github.com/hashicorp/packer/command.(*BuildCommand).RunContext(0xc00007c460, 0x47a5700, 0xc000078200, 0xc000138020, 0x4, 0x6, 0xc000078200)
        C:/Users/jhawk28/repos/packer/command/build.go:185 +0xd1
github.com/hashicorp/packer/command.(*BuildCommand).Run(0xc00007c460, 0xc000138020, 0x4, 0x6, 0x0)
        C:/Users/jhawk28/repos/packer/command/build.go:55 +0x1d6
github.com/mitchellh/cli.(*CLI).Run(0xc0000cc3c0, 0xc0000cc3c0, 0x1, 0x1)
        C:/Users/jhawk28/pkg/mod/github.com/mitchellh/cli@v1.0.0/cli.go:255 +0x1e1
main.wrappedMain(0x0)
        C:/Users/jhawk28/repos/packer/main.go:238 +0x828
main.realMain(0x0)
        C:/Users/jhawk28/repos/packer/main.go:124 +0xec
main.main()
        C:/Users/jhawk28/repos/packer/main.go:34 +0x29
@jhawk28 jhawk28 added the bug label Mar 19, 2020
@jhawk28
Copy link
Contributor Author

jhawk28 commented Mar 19, 2020

I just verified that it is also happening on master.

@jhawk28
Copy link
Contributor Author

jhawk28 commented Mar 19, 2020

@azr I think its related to this commit: c8300b6

@jhawk28 jhawk28 changed the title packer crash packer crash when using a json variables file Mar 19, 2020
@azr
Copy link
Contributor

azr commented Mar 19, 2020

Hey @jhawk28 thanks for this ! I'm on it.

@azr
Copy link
Contributor

azr commented Mar 19, 2020

#8914 contains a fix and another fix !

@azr azr closed this as completed in #8914 Mar 19, 2020
@ghost
Copy link

ghost commented Apr 19, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants