The ubuntu 14.04 chef-solo provisioner is working (see line 216 of ubuntu14.04.json)
The ubuntu 16.04 chef-solo provisioner sometimes fails
2017/04/17 13:47:13 ui: ==> vmware-iso: Provisioning with chef-solo
==> vmware-iso: Provisioning with chef-solo
2017/04/17 13:47:13 ui: vmware-iso: Installing Chef...
vmware-iso: Installing Chef...
2017/04/17 13:47:13 packer: 2017/04/17 13:47:13 opening new ssh session
2017/04/17 13:47:13 packer: 2017/04/17 13:47:13 starting remote command: curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -v 12.19.36
2017/04/17 13:47:13 ui: vmware-iso: % Total % Received % Xferd Average Speed Time Time Time Current
vmware-iso: % Total % Received % Xferd Average Speed Time Time Time Current
2017/04/17 13:47:13 ui: vmware-iso: Dload Upload Total Spent Left Speed
vmware-iso: Dload Upload Total Spent Left Speed
2017/04/17 13:47:13 ui: vmware-iso: 100 20500 100 20500 0 0 53129 0 --:--:-- --:--:-- --:--:-- 53246
vmware-iso: 100 20500 100 20500 0 0 53129 0 --:--:-- --:--:-- --:--:-- 53246
2017/04/17 13:47:13 ui: vmware-iso: ubuntu 14.04 x86_64
vmware-iso: ubuntu 14.04 x86_64
2017/04/17 13:47:13 ui: vmware-iso: Getting information for chef stable 12.19.36 for ubuntu...
vmware-iso: Getting information for chef stable 12.19.36 for ubuntu...
2017/04/17 13:47:13 ui: vmware-iso: downloading https://omnitruck.chef.io/stable/chef/metadata?v=12.19.36&p=ubuntu&pv=14.04&m=x86_64
vmware-iso: downloading https://omnitruck.chef.io/stable/chef/metadata?v=12.19.36&p=ubuntu&pv=14.04&m=x86_64
2017/04/17 13:47:13 ui: vmware-iso: to file /tmp/install.sh.1043/metadata.txt
vmware-iso: to file /tmp/install.sh.1043/metadata.txt
2017/04/17 13:47:13 ui: vmware-iso: trying wget...
vmware-iso: trying wget...
2017/04/17 13:47:13 ui: vmware-iso: sha1 a316f74e4a08fd4d2c535460c3aa16d30e09a08e
vmware-iso: sha1 a316f74e4a08fd4d2c535460c3aa16d30e09a08e
2017/04/17 13:47:13 ui: vmware-iso: sha256 fbf44670ab5b76e4f1a1f5357885dafcc79e543ccbbe3264afd40c15d604b6dc
vmware-iso: sha256 fbf44670ab5b76e4f1a1f5357885dafcc79e543ccbbe3264afd40c15d604b6dc
2017/04/17 13:47:13 ui: vmware-iso: url https://packages.chef.io/files/stable/chef/12.19.36/ubuntu/14.04/chef_12.19.36-1_amd64.deb
vmware-iso: url https://packages.chef.io/files/stable/chef/12.19.36/ubuntu/14.04/chef_12.19.36-1_amd64.deb
2017/04/17 13:47:13 ui: vmware-iso: version 12.19.36
vmware-iso: version 12.19.36
2017/04/17 13:47:13 ui: vmware-iso: downloaded metadata file looks valid...
vmware-iso: downloaded metadata file looks valid...
2017/04/17 13:47:13 ui: vmware-iso: downloading https://packages.chef.io/files/stable/chef/12.19.36/ubuntu/14.04/chef_12.19.36-1_amd64.deb
vmware-iso: downloading https://packages.chef.io/files/stable/chef/12.19.36/ubuntu/14.04/chef_12.19.36-1_amd64.deb
2017/04/17 13:47:13 ui: vmware-iso: to file /tmp/install.sh.1043/chef_12.19.36-1_amd64.deb
vmware-iso: to file /tmp/install.sh.1043/chef_12.19.36-1_amd64.deb
2017/04/17 13:47:13 ui: vmware-iso: trying wget...
vmware-iso: trying wget...
2017/04/17 13:47:18 ui: vmware-iso: Comparing checksum with sha256sum...
vmware-iso: Comparing checksum with sha256sum...
2017/04/17 13:47:18 ui: vmware-iso: Installing chef 12.19.36
vmware-iso: Installing chef 12.19.36
2017/04/17 13:47:18 ui: vmware-iso: installing with dpkg...
vmware-iso: installing with dpkg...
2017/04/17 13:47:18 ui: vmware-iso: Selecting previously unselected package chef.
vmware-iso: Selecting previously unselected package chef.
2017/04/17 13:47:19 ui: vmware-iso: (Reading database ... 99000 files and directories currently installed.)
vmware-iso: (Reading database ... 99000 files and directories currently installed.)
2017/04/17 13:47:19 ui: vmware-iso: Preparing to unpack .../chef_12.19.36-1_amd64.deb ...
vmware-iso: Preparing to unpack .../chef_12.19.36-1_amd64.deb ...
2017/04/17 13:47:19 ui: vmware-iso: Unpacking chef (12.19.36-1) ...
vmware-iso: Unpacking chef (12.19.36-1) ...
2017/04/17 13:47:21 ui: vmware-iso: Setting up chef (12.19.36-1) ...
vmware-iso: Setting up chef (12.19.36-1) ...
2017/04/17 13:47:21 ui: vmware-iso: Thank you for installing Chef!
vmware-iso: Thank you for installing Chef!
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 1034 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 317 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 1034 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 317 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 ui: vmware-iso: Creating directory: /tmp/packer-chef-solo
vmware-iso: Creating directory: /tmp/packer-chef-solo
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo mkdir -p '/tmp/packer-chef-solo'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo chmod 0777 '/tmp/packer-chef-solo'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 ui: vmware-iso: Creating directory: /tmp/packer-chef-solo/cookbooks-0
vmware-iso: Creating directory: /tmp/packer-chef-solo/cookbooks-0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo mkdir -p '/tmp/packer-chef-solo/cookbooks-0'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo chmod 0777 '/tmp/packer-chef-solo/cookbooks-0'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Upload dir 'cookbooks/' to '/tmp/packer-chef-solo/cookbooks-0'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Starting remote scp process: scp -rvt /tmp/packer-chef-solo/cookbooks-0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Started SCP session, beginning transfers...
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [DEBUG] scp: Uploading README.md: perms=C0644 size=233
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 SCP session complete, closing stdin pipe.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Waiting for SSH session to complete.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 scp stderr (length 26): Sink: C0644 233 README.md
2017/04/17 13:47:21 ui: vmware-iso: Creating configuration file 'solo.rb'
vmware-iso: Creating configuration file 'solo.rb'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 58 bytes written for 'uploadData'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 [INFO] 58 bytes written for 'uploadData'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Starting remote scp process: scp -vt /tmp/packer-chef-solo
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Started SCP session, beginning transfers...
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Copying input data into temporary file so we can read the length
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [DEBUG] scp: Uploading solo.rb: perms=C0644 size=58
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 SCP session complete, closing stdin pipe.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Waiting for SSH session to complete.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 scp stderr (length 23): Sink: C0644 58 solo.rb
2017/04/17 13:47:21 ui: vmware-iso: Creating JSON attribute file
vmware-iso: Creating JSON attribute file
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 2 bytes written for 'uploadData'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 [INFO] 2 bytes written for 'uploadData'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Starting remote scp process: scp -vt /tmp/packer-chef-solo
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Started SCP session, beginning transfers...
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Copying input data into temporary file so we can read the length
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [DEBUG] scp: Uploading node.json: perms=C0644 size=2
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 SCP session complete, closing stdin pipe.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Waiting for SSH session to complete.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 scp stderr (length 24): Sink: C0644 2 node.json
2017/04/17 13:47:21 ui: vmware-iso: Executing Chef: sudo chef-solo --no-color -c /tmp/packer-chef-solo/solo.rb -j /tmp/packer-chef-solo/node.json
vmware-iso: Executing Chef: sudo chef-solo --no-color -c /tmp/packer-chef-solo/solo.rb -j /tmp/packer-chef-solo/node.json
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo chef-solo --no-color -c /tmp/packer-chef-solo/solo.rb -j /tmp/packer-chef-solo/node.json
2017/04/17 13:47:22 ui: vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /tmp/packer-chef-solo
vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /tmp/packer-chef-solo
2017/04/17 13:47:22 ui: vmware-iso: One version per cookbook
vmware-iso: One version per cookbook
2017/04/17 13:47:22 ui: vmware-iso:
vmware-iso:
2017/04/17 13:47:22 ui: vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Forking chef instance to converge...
vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Forking chef instance to converge...
2017/04/17 13:47:22 ui: vmware-iso: [2017-04-17T19:47:22+00:00] INFO: *** Chef 12.19.36 ***
vmware-iso: [2017-04-17T19:47:22+00:00] INFO: *** Chef 12.19.36 ***
2017/04/17 13:47:22 ui: vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Platform: x86_64-linux
vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Platform: x86_64-linux
2017/04/17 13:47:22 ui: vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Chef-client pid: 1141
vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Chef-client pid: 1141
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/vagrant.vm
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/vagrant.vm
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Run List is []
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Run List is []
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Run List expands to []
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Run List expands to []
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Starting Chef Run for vagrant.vm
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Starting Chef Run for vagrant.vm
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Running start handlers
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Running start handlers
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Start handlers complete.
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Start handlers complete.
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found:
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found:
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Loading cookbooks []
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Loading cookbooks []
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] WARN: Node vagrant.vm has an empty run list.
vmware-iso: [2017-04-17T19:47:24+00:00] WARN: Node vagrant.vm has an empty run list.
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Chef Run complete in 0.051898128 seconds
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Chef Run complete in 0.051898128 seconds
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Running report handlers
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Running report handlers
2017/04/17 13:47:24 ui: vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Report handlers complete
vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Report handlers complete
2017/04/17 13:47:24 packer: 2017/04/17 13:47:24 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:24 [INFO] 1221 bytes written for 'stdout'
2017/04/17 13:47:24 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:24 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:24 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:24 packer: 2017/04/17 13:47:24 [INFO] 1221 bytes written for 'stdout'
2017/04/17 13:47:24 packer: 2017/04/17 13:47:24 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:24 packer: 2017/04/17 13:47:24 [INFO] RPC client: Communicator ended with: 0