checksum Post-Processing not running

73 views
Skip to first unread message

Stuart Luscombe

unread,
Jul 9, 2017, 7:49:59 AM7/9/17
to Packer
For some reason I cannot get the checksum Post-Processing to run correctly.

The error I'm getting is:

* Post-processor failed: unable to create file packer-centos73/<no value>_<no value>.checksum: open packer-centos73/<no value>_<no value>.checksum: The filename, directory name, or volume label syntax is incorrect.

==> Some builds didn't complete successfully and had errors:
--> hyperv-iso: 1 error(s) occurred:

* Post-processor failed: unable to create file packer-centos73/<no value>_<no value>.checksum: open packer-centos73/<no value>_<no value>.checksum: The filename, directory name, or volume label syntax is incorrect.

Below is the post-processors part of my packer json.

  "post-processors":[
   {
     "type": "checksum",
     "checksum_types": ["sha1"],
     "output": "{{user `output_directory`}}/{{.BuildName}}_{{.ChecksumType}}.checksum"
   },
   {
     "type": "manifest",
     "output": "{{user `output_directory`}}/manifest.json",
     "strip_path": true
   }
 ]

The manifest part is running OK and is creating the file, so I don't understand why the checksum is not working.

Platform I'm building on is Windows 10 1703 and builder type is hyperv-iso.

Any ideas?

Rickard von Essen

unread,
Jul 9, 2017, 3:41:08 PM7/9/17
to packe...@googlegroups.com
You found a bug. I'll submit a patch shortly. I'll get pack with a PR #.
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packer-tool...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/62656d04-30c5-4c32-bfe0-7681a6a27e9e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Rickard von Essen

unread,
Jul 9, 2017, 3:53:18 PM7/9/17
to packe...@googlegroups.com

Stuart Luscombe

unread,
Jul 10, 2017, 3:54:32 AM7/10/17
to Packer
Hurrah, I've never found a bug before! :-)

Thanks for the quick PR. Does this get incorporated straight into a downloadable build from packer.io, or should I just clone/build from the repo?

Rickard von Essen

unread,
Jul 10, 2017, 4:59:00 AM7/10/17
to packe...@googlegroups.com
It has been merged to master and will be in the next release (1.0.3).
But it's quite simple to build from source, see
https://github.com/hashicorp/packer/blob/master/CONTRIBUTING.md#setting-up-go-to-work-on-packer
(at least if your not on Windows).
> https://groups.google.com/d/msgid/packer-tool/82a0d875-94cd-48ef-9b07-a0b1e14cc71b%40googlegroups.com.

Stuart Luscombe

unread,
Jul 10, 2017, 8:09:10 AM7/10/17
to Packer
I am running Windows, but I like a challenge, so I'll give it a go! :-)

Rickard von Essen

unread,
Jul 10, 2017, 8:15:15 AM7/10/17
to packe...@googlegroups.com
shouldn't be too hard. Just some more steps and things to install
(git, make, and go )
> https://groups.google.com/d/msgid/packer-tool/86777379-cfa7-4614-83cc-8aaaa31d85e0%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages