My team is having some intermittent issues with the file provisioner failing for an unknown reason. It doesn't return why it failed, only that it did.
2017/07/07 11:06:09 packer: 2017/07/07 11:06:09 Upload dir './build/cookbooks' to '/tmp'
2017/07/07 11:06:09 packer: 2017/07/07 11:06:09 opening new ssh session
2017/07/07 11:06:09 packer: 2017/07/07 11:06:09 Starting remote scp process: scp -rvt /tmp
2017/07/07 11:06:09 packer: 2017/07/07 11:06:09 Started SCP session, beginning transfers...
2017/07/07 11:06:09 packer: 2017/07/07 11:06:09 No trailing slash, creating the source directory name
2017/07/07 11:06:09 packer: 2017/07/07 11:06:09 SCP: starting directory upload: cookbooks
2017/07/07 11:06:09 packer: 2017/07/07 11:06:09 SCP session complete, closing stdin pipe.
2017/07/07 11:06:09 packer: 2017/07/07 11:06:09 Waiting for SSH session to complete.
2017/07/07 11:06:09 packer: 2017/07/07 11:06:09 non-zero exit status: 1
I've poked around inside the build instance after one of these failures, and haven't been able to find much out about what is going on here. It happens a couple times a day max when trying to re-create it, but it's a slight annoyance in our deployment pipeline that I'm trying to iron out.
Has anyone seen this before and know what could be going on? Any ideas on where to look to debug this further?
We're building on RHEL 6 and 7.