Skip to content

Instantly share code, notes, and snippets.

@jarbaugh5
Last active January 17, 2017 03:32
Show Gist options
  • Save jarbaugh5/3f54e0285cebff4adf66a6ae2d568e2b to your computer and use it in GitHub Desktop.
Save jarbaugh5/3f54e0285cebff4adf66a6ae2d568e2b to your computer and use it in GitHub Desktop.
Crash log from Packer build 1/16/17
2017/01/16 22:20:48 [INFO] Packer version: 0.12.1
2017/01/16 22:20:48 Packer Target OS/Arch: darwin amd64
2017/01/16 22:20:48 Built with Go Version: go1.7.3
2017/01/16 22:20:48 Detected home directory from env var: /Users/Jon
2017/01/16 22:20:48 Using internal plugin for vmware-vmx
2017/01/16 22:20:48 Using internal plugin for amazon-ebsvolume
2017/01/16 22:20:48 Using internal plugin for azure-arm
2017/01/16 22:20:48 Using internal plugin for cloudstack
2017/01/16 22:20:48 Using internal plugin for googlecompute
2017/01/16 22:20:48 Using internal plugin for parallels-pvm
2017/01/16 22:20:48 Using internal plugin for amazon-ebs
2017/01/16 22:20:48 Using internal plugin for hyperv-iso
2017/01/16 22:20:48 Using internal plugin for oneandone
2017/01/16 22:20:48 Using internal plugin for virtualbox-ovf
2017/01/16 22:20:48 Using internal plugin for parallels-iso
2017/01/16 22:20:48 Using internal plugin for vmware-iso
2017/01/16 22:20:48 Using internal plugin for amazon-chroot
2017/01/16 22:20:48 Using internal plugin for amazon-instance
2017/01/16 22:20:48 Using internal plugin for file
2017/01/16 22:20:48 Using internal plugin for null
2017/01/16 22:20:48 Using internal plugin for openstack
2017/01/16 22:20:48 Using internal plugin for digitalocean
2017/01/16 22:20:48 Using internal plugin for docker
2017/01/16 22:20:48 Using internal plugin for profitbricks
2017/01/16 22:20:48 Using internal plugin for qemu
2017/01/16 22:20:48 Using internal plugin for virtualbox-iso
2017/01/16 22:20:48 Using internal plugin for chef-client
2017/01/16 22:20:48 Using internal plugin for chef-solo
2017/01/16 22:20:48 Using internal plugin for file
2017/01/16 22:20:48 Using internal plugin for puppet-masterless
2017/01/16 22:20:48 Using internal plugin for puppet-server
2017/01/16 22:20:48 Using internal plugin for shell-local
2017/01/16 22:20:48 Using internal plugin for windows-shell
2017/01/16 22:20:48 Using internal plugin for ansible
2017/01/16 22:20:48 Using internal plugin for ansible-local
2017/01/16 22:20:48 Using internal plugin for powershell
2017/01/16 22:20:48 Using internal plugin for salt-masterless
2017/01/16 22:20:48 Using internal plugin for shell
2017/01/16 22:20:48 Using internal plugin for windows-restart
2017/01/16 22:20:48 Using internal plugin for docker-tag
2017/01/16 22:20:48 Using internal plugin for googlecompute-export
2017/01/16 22:20:48 Using internal plugin for vagrant
2017/01/16 22:20:48 Using internal plugin for vagrant-cloud
2017/01/16 22:20:48 Using internal plugin for shell-local
2017/01/16 22:20:48 Using internal plugin for vsphere
2017/01/16 22:20:48 Using internal plugin for amazon-import
2017/01/16 22:20:48 Using internal plugin for checksum
2017/01/16 22:20:48 Using internal plugin for compress
2017/01/16 22:20:48 Using internal plugin for docker-import
2017/01/16 22:20:48 Using internal plugin for docker-save
2017/01/16 22:20:48 Using internal plugin for artifice
2017/01/16 22:20:48 Using internal plugin for atlas
2017/01/16 22:20:48 Using internal plugin for docker-push
2017/01/16 22:20:48 Using internal plugin for manifest
2017/01/16 22:20:48 Detected home directory from env var: /Users/Jon
2017/01/16 22:20:48 Attempting to open config file: /Users/Jon/.packerconfig
2017/01/16 22:20:48 [WARN] Config file doesn't exist: /Users/Jon/.packerconfig
2017/01/16 22:20:48 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file] PostProcessors:map[artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum atlas:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest] Provisioners:map[ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file]}
2017/01/16 22:20:48 Setting cache directory: /Users/Jon/Development/litboi/packer_cache
2017/01/16 22:20:48 Detected home directory from env var: /Users/Jon
2017/01/16 22:20:48 Loading builder: amazon-ebs
2017/01/16 22:20:48 Plugin could not be found. Checking same directory as executable.
2017/01/16 22:20:48 Current exe path: /usr/local/bin/packer
2017/01/16 22:20:48 Creating plugin client for path: /usr/local/bin/packer
2017/01/16 22:20:48 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-amazon-ebs"}
2017/01/16 22:20:48 Waiting for RPC address for: /usr/local/bin/packer
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 [INFO] Packer version: 0.12.1
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Packer Target OS/Arch: darwin amd64
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Built with Go Version: go1.7.3
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Detected home directory from env var: /Users/Jon
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Attempting to open config file: /Users/Jon/.packerconfig
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 [WARN] Config file doesn't exist: /Users/Jon/.packerconfig
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Setting cache directory: /Users/Jon/Development/litboi/packer_cache
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 args: []string{"packer-builder-amazon-ebs"}
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Plugin minimum port: 10000
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Plugin maximum port: 25000
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Detected home directory from env var: /Users/Jon
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Plugin address: unix /var/folders/ys/m5gmss1s65l48mr2qjf5w46w0000gn/T/packer-plugin178932452
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Waiting for connection...
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Serving a plugin connection...
2017/01/16 22:20:48 Loading provisioner: ansible
2017/01/16 22:20:48 Plugin could not be found. Checking same directory as executable.
2017/01/16 22:20:48 Current exe path: /usr/local/bin/packer
2017/01/16 22:20:48 Creating plugin client for path: /usr/local/bin/packer
2017/01/16 22:20:48 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-ansible"}
2017/01/16 22:20:48 Waiting for RPC address for: /usr/local/bin/packer
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 [INFO] Packer version: 0.12.1
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Packer Target OS/Arch: darwin amd64
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Built with Go Version: go1.7.3
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Detected home directory from env var: /Users/Jon
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Attempting to open config file: /Users/Jon/.packerconfig
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 [WARN] Config file doesn't exist: /Users/Jon/.packerconfig
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Setting cache directory: /Users/Jon/Development/litboi/packer_cache
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 args: []string{"packer-provisioner-ansible"}
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Plugin minimum port: 10000
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Plugin maximum port: 25000
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Detected home directory from env var: /Users/Jon
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Plugin address: unix /var/folders/ys/m5gmss1s65l48mr2qjf5w46w0000gn/T/packer-plugin082385712
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Waiting for connection...
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Serving a plugin connection...
2017/01/16 22:20:48 ui: amazon-ebs output will be in this color.
2017/01/16 22:20:48 ui:
2017/01/16 22:20:48 Build debug mode: false
2017/01/16 22:20:48 Force build: false
2017/01/16 22:20:48 On error:
2017/01/16 22:20:48 Preparing build: amazon-ebs
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 Config: {PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[]} AccessConfig:{AccessKey: SecretKey: RawRegion:us-west-2 SkipValidation:false Token: ProfileName:} AMIConfig:{AMIName:WebAppServer 1484623248 AMIDescription: AMIVirtType: AMIUsers:[] AMIGroups:[] AMIProductCodes:[] AMIRegions:[] AMISkipRegionValidation:false AMITags:map[Group:web Name:WebAppServer] AMIEnhancedNetworking:false AMIForceDeregister:false AMIForceDeleteSnapshot:false AMIEncryptBootVolume:false AMIKmsKeyId: SnapshotTags:map[] SnapshotUsers:[] SnapshotGroups:[]} BlockDevices:{AMIBlockDevices:{AMIMappings:[{DeleteOnTermination:true DeviceName:/dev/xvdf Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType:gp2 VolumeSize:8}]} LaunchBlockDevices:{LaunchMappings:[]}} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:t2.micro RunTags:map[] SourceAmi:ami-b7a114d7 SourceAmiFilter:{Filters:map[] Owners:[] MostRecent:false} SpotPrice: SpotPriceAutoProduct: DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] SubnetId: TemporaryKeyPairName:packer_587d8d90-e44a-fe90-a767-491194b874eb UserData: UserDataFile: WindowsPasswordTimeout:10m0s VpcId: InstanceInitiatedShutdownBehavior:stop Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:ubuntu SSHPassword: SSHPrivateKey: SSHPty:false SSHTimeout:5m0s SSHAgentAuth:false SSHDisableAgent:false SSHHandshakeAttempts:10 SSHBastionHost: SSHBastionPort:0 SSHBastionUsername: SSHBastionPassword: SSHBastionPrivateKey: SSHFileTransferMethod:scp WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0 WinRMTimeout:0s WinRMUseSSL:false WinRMInsecure:false WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHPrivateIp:false} VolumeRunTags:map[] ctx:{Data:<nil> Funcs:map[clean_ami_name:0x4fbb10] UserVariables:map[] EnableEnv:false BuildName:amazon-ebs BuildType:amazon-ebs TemplatePath:/Users/Jon/Development/litboi/packer.json}}
2017/01/16 22:20:48 packer: 2017/01/16 22:20:48 ansible-playbook version: 2.2.1.0
2017/01/16 22:20:48 Waiting on builds to complete...
2017/01/16 22:20:48 Starting build run: amazon-ebs
2017/01/16 22:20:48 Running builder: amazon-ebs
2017/01/16 22:20:48 ui: ==> amazon-ebs: Prevalidating AMI Name...
2017/01/16 22:20:49 packer: 2017/01/16 22:20:49 Using AMI Filters {
2017/01/16 22:20:49 packer: ImageIds: ["ami-b7a114d7"]
2017/01/16 22:20:49 packer: }
2017/01/16 22:20:50 ui:  amazon-ebs: Found Image ID: ami-b7a114d7
2017/01/16 22:20:50 ui: ==> amazon-ebs: Creating temporary keypair: packer_587d8d90-e44a-fe90-a767-491194b874eb
2017/01/16 22:20:50 ui: ==> amazon-ebs: Creating temporary security group for this instance...
2017/01/16 22:20:50 packer: 2017/01/16 22:20:50 Temporary group name: packer 587d8d92-ba16-e31b-971e-fa977fadae4f
2017/01/16 22:20:50 ui: ==> amazon-ebs: Authorizing access to port 22 the temporary security group...
2017/01/16 22:20:51 packer: 2017/01/16 22:20:51 [DEBUG] Waiting for tempSecurityGroup: sg-e782209f
2017/01/16 22:20:51 packer: 2017/01/16 22:20:51 [DEBUG] Found security group sg-e782209f
2017/01/16 22:20:51 ui: ==> amazon-ebs: Launching a source AWS instance...
2017/01/16 22:20:52 ui:  amazon-ebs: Instance ID: i-096cddd460881f290
2017/01/16 22:20:52 ui: ==> amazon-ebs: Waiting for instance (i-096cddd460881f290) to become ready...
2017/01/16 22:20:52 packer: 2017/01/16 22:20:52 Waiting for state to become: running
2017/01/16 22:20:52 packer: 2017/01/16 22:20:52 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2017/01/16 22:20:52 packer: 2017/01/16 22:20:52 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
2017/01/16 22:21:10 packer: 2017/01/16 22:21:10 [INFO] Not using winrm communicator, skipping get password...
2017/01/16 22:21:10 packer: 2017/01/16 22:21:10 [INFO] Waiting for SSH, up to timeout: 5m0s
2017/01/16 22:21:10 ui: ==> amazon-ebs: Waiting for SSH to become available...
2017/01/16 22:21:21 packer: 2017/01/16 22:21:21 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 35.161.117.86:22: getsockopt: connection refused
2017/01/16 22:21:27 packer: 2017/01/16 22:21:27 [INFO] Attempting SSH connection...
2017/01/16 22:21:27 packer: 2017/01/16 22:21:27 reconnecting to TCP connection for SSH
2017/01/16 22:21:27 packer: 2017/01/16 22:21:27 handshaking with SSH
2017/01/16 22:21:27 packer: 2017/01/16 22:21:27 handshake complete!
2017/01/16 22:21:27 packer: 2017/01/16 22:21:27 opening new ssh session
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 [INFO] agent forwarding enabled
2017/01/16 22:21:28 ui: ==> amazon-ebs: Connected to SSH!
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 Running the provision hook
2017/01/16 22:21:28 ui: ==> amazon-ebs: Provisioning with Ansible...
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 SSH proxy: serving on 127.0.0.1:59491
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 Executing Ansible: ansible-playbook /Users/Jon/Development/litboi/web_bootstrap_playbook.yml -i /var/folders/ys/m5gmss1s65l48mr2qjf5w46w0000gn/T/packer-provisioner-ansible373475298 --private-key /var/folders/ys/m5gmss1s65l48mr2qjf5w46w0000gn/T/ansible-key080377039
2017/01/16 22:21:28 ui:  amazon-ebs: [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and
2017/01/16 22:21:28 ui:  amazon-ebs: make sure become_method is 'sudo' (default).
2017/01/16 22:21:28 ui:  amazon-ebs: This feature will be removed in a
2017/01/16 22:21:28 ui:  amazon-ebs: future release. Deprecation warnings can be disabled by setting
2017/01/16 22:21:28 ui:  amazon-ebs: deprecation_warnings=False in ansible.cfg.
2017/01/16 22:21:28 ui:  amazon-ebs:
2017/01/16 22:21:28 ui:  amazon-ebs: PLAY [all] *********************************************************************
2017/01/16 22:21:28 ui:  amazon-ebs:
2017/01/16 22:21:28 ui:  amazon-ebs: TASK [Install Python] **********************************************************
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 SSH proxy: accepted connection
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 authentication attempt from 127.0.0.1:59492 to 127.0.0.1:59491 as ubuntu using none
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 authentication attempt from 127.0.0.1:59492 to 127.0.0.1:59491 as ubuntu using publickey
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 ansible provisioner pty-req request
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 new env request: LANG=en_US.UTF-8
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 new exec request: sudo -H -S -n -u root /bin/sh -c 'echo BECOME-SUCCESS-pqniulttgxozdgyydnwtjvwrstocvoac; sudo apt-get -y install python'
2017/01/16 22:21:28 packer: 2017/01/16 22:21:28 opening new ssh session
2017/01/16 22:21:29 packer: 2017/01/16 22:21:29 starting remote command: sudo -H -S -n -u root /bin/sh -c 'echo BECOME-SUCCESS-pqniulttgxozdgyydnwtjvwrstocvoac; sudo apt-get -y install python'
2017/01/16 22:21:33 packer: 2017/01/16 22:21:33 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:33 [INFO] 4708 bytes written for 'stdout'
2017/01/16 22:21:33 [INFO] 401 bytes written for 'stderr'
2017/01/16 22:21:33 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:33 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:33 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:33 packer: 2017/01/16 22:21:33 [INFO] 4708 bytes written for 'stdout'
2017/01/16 22:21:33 packer: 2017/01/16 22:21:33 [INFO] 401 bytes written for 'stderr'
2017/01/16 22:21:33 packer: 2017/01/16 22:21:33 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:33 packer: 2017/01/16 22:21:33 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:33 ui:  amazon-ebs: changed: [default]
2017/01/16 22:21:33 ui:  amazon-ebs:
2017/01/16 22:21:33 ui:  amazon-ebs: TASK [Gathering facts] *********************************************************
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 new env request: LANG=en_US.UTF-8
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 new exec request: /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087 `" && echo ansible-tmp-1484623294.16091-147590138557087="` echo ~/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087 `" ) && sleep 0'
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 opening new ssh session
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 starting remote command: /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087 `" && echo ansible-tmp-1484623294.16091-147590138557087="` echo ~/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087 `" ) && sleep 0'
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:34 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:34 [INFO] 116 bytes written for 'stdout'
2017/01/16 22:21:34 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:34 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:34 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 [INFO] 116 bytes written for 'stdout'
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 new env request: LANG=en_US.UTF-8
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 new exec request: scp -t /home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087/setup.py
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 opening new ssh session
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 [INFO] 95210 bytes written for 'uploadData'
2017/01/16 22:21:34 [INFO] 95210 bytes written for 'uploadData'
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 Starting remote scp process: scp -vt /home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 Started SCP session, beginning transfers...
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 [DEBUG] scp: Uploading setup.py: perms=C0600 size=95210
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 SCP session complete, closing stdin pipe.
2017/01/16 22:21:34 packer: 2017/01/16 22:21:34 Waiting for SSH session to complete.
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 scp stderr (length 27): Sink: C0600 95210 setup.py
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 new env request: LANG=en_US.UTF-8
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 new exec request: /bin/sh -c 'chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087/ /home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087/setup.py && sleep 0'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 opening new ssh session
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 starting remote command: /bin/sh -c 'chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087/ /home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087/setup.py && sleep 0'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:35 [INFO] 0 bytes written for 'stdout'
2017/01/16 22:21:35 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:35 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:35 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:35 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] 0 bytes written for 'stdout'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 ansible provisioner pty-req request
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 new env request: LANG=en_US.UTF-8
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 new exec request: /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-lmfeznmupbqxgtuezewuxvobzejxfiml; /usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087/setup.py; rm -rf "/home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087/" > /dev/null 2>&1'"'"' && sleep 0'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 opening new ssh session
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 starting remote command: /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-lmfeznmupbqxgtuezewuxvobzejxfiml; /usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087/setup.py; rm -rf "/home/ubuntu/.ansible/tmp/ansible-tmp-1484623294.16091-147590138557087/" > /dev/null 2>&1'"'"' && sleep 0'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:35 [INFO] 10777 bytes written for 'stdout'
2017/01/16 22:21:35 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:35 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:35 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:35 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] 10777 bytes written for 'stdout'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:35 ui:  amazon-ebs: ok: [default]
2017/01/16 22:21:35 ui:  amazon-ebs:
2017/01/16 22:21:35 ui:  amazon-ebs: TASK [Install nginx] ***********************************************************
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 new env request: LANG=en_US.UTF-8
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 new exec request: /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112 `" && echo ansible-tmp-1484623295.967522-28119280903112="` echo ~/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112 `" ) && sleep 0'
2017/01/16 22:21:35 packer: 2017/01/16 22:21:35 opening new ssh session
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 starting remote command: /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112 `" && echo ansible-tmp-1484623295.967522-28119280903112="` echo ~/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112 `" ) && sleep 0'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:36 [INFO] 116 bytes written for 'stdout'
2017/01/16 22:21:36 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:36 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:36 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:36 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] 116 bytes written for 'stdout'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 new env request: LANG=en_US.UTF-8
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 new exec request: scp -t /home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112/apt.py
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 opening new ssh session
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] 81939 bytes written for 'uploadData'
2017/01/16 22:21:36 [INFO] 81939 bytes written for 'uploadData'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 Starting remote scp process: scp -vt /home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 Started SCP session, beginning transfers...
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [DEBUG] scp: Uploading apt.py: perms=C0600 size=81939
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 SCP session complete, closing stdin pipe.
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 Waiting for SSH session to complete.
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 scp stderr (length 25): Sink: C0600 81939 apt.py
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 new env request: LANG=en_US.UTF-8
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 new exec request: /bin/sh -c 'chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112/ /home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112/apt.py && sleep 0'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 opening new ssh session
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 starting remote command: /bin/sh -c 'chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112/ /home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112/apt.py && sleep 0'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:36 [INFO] 0 bytes written for 'stdout'
2017/01/16 22:21:36 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:36 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:36 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:36 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] 0 bytes written for 'stdout'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 ansible provisioner pty-req request
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 new env request: LANG=en_US.UTF-8
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 new exec request: /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ujtjgsbnntdtvfwtrfgktvbqhqpglhlb; /usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112/apt.py; rm -rf "/home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112/" > /dev/null 2>&1'"'"' && sleep 0'
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 opening new ssh session
2017/01/16 22:21:36 packer: 2017/01/16 22:21:36 starting remote command: /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ujtjgsbnntdtvfwtrfgktvbqhqpglhlb; /usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112/apt.py; rm -rf "/home/ubuntu/.ansible/tmp/ansible-tmp-1484623295.967522-28119280903112/" > /dev/null 2>&1'"'"' && sleep 0'
2017/01/16 22:21:46 packer: 2017/01/16 22:21:46 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:46 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:46 [INFO] 7296 bytes written for 'stdout'
2017/01/16 22:21:46 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:46 [INFO] RPC endpoint: Communicator ended with: 0
2017/01/16 22:21:46 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:46 packer: 2017/01/16 22:21:46 [INFO] RPC client: Communicator ended with: 0
2017/01/16 22:21:46 packer: 2017/01/16 22:21:46 [INFO] 7296 bytes written for 'stdout'
2017/01/16 22:21:46 packer: 2017/01/16 22:21:46 [INFO] 0 bytes written for 'stderr'
2017/01/16 22:21:46 packer: 2017/01/16 22:21:46 [INFO] 0 bytes written for 'stdin'
2017/01/16 22:21:46 ui:  amazon-ebs: changed: [default]
2017/01/16 22:21:46 ui:  amazon-ebs:
2017/01/16 22:21:46 ui:  amazon-ebs: PLAY RECAP *********************************************************************
2017/01/16 22:21:46 ui:  amazon-ebs: default : ok=3 changed=2 unreachable=0 failed=0
2017/01/16 22:21:46 ui:  amazon-ebs:
2017/01/16 22:21:47 packer: 2017/01/16 22:21:47 shutting down the SSH proxy
2017/01/16 22:21:47 ui: ==> amazon-ebs: Stopping the source instance...
2017/01/16 22:21:47 ui: ==> amazon-ebs: Waiting for the instance to stop...
2017/01/16 22:21:47 packer: 2017/01/16 22:21:47 Waiting for state to become: stopped
2017/01/16 22:21:47 packer: 2017/01/16 22:21:47 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2017/01/16 22:21:47 packer: 2017/01/16 22:21:47 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
2017/01/16 22:22:36 ui: ==> amazon-ebs: Creating the AMI: WebAppServer 1484623248
2017/01/16 22:22:36 ui:  amazon-ebs: AMI: ami-a5b905c5
2017/01/16 22:22:36 ui: ==> amazon-ebs: Waiting for AMI to become ready...
2017/01/16 22:22:36 packer: 2017/01/16 22:22:36 Waiting for state to become: available
2017/01/16 22:22:36 packer: 2017/01/16 22:22:36 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2017/01/16 22:22:36 packer: 2017/01/16 22:22:36 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
2017/01/16 22:24:20 ui: ==> amazon-ebs: Terminating the source AWS instance...
2017/01/16 22:24:20 packer: 2017/01/16 22:24:20 Waiting for state to become: terminated
2017/01/16 22:24:20 packer: 2017/01/16 22:24:20 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2017/01/16 22:24:20 packer: 2017/01/16 22:24:20 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
2017/01/16 22:24:27 ui: ==> amazon-ebs: Cleaning up any extra volumes...
2017/01/16 22:24:28 ui: ==> amazon-ebs: No volumes to clean up, skipping
2017/01/16 22:24:28 ui: ==> amazon-ebs: Deleting temporary security group...
2017/01/16 22:24:28 ui: ==> amazon-ebs: Deleting temporary keypair...
2017/01/16 22:24:28 packer: panic: runtime error: invalid memory address or nil pointer dereference
2017/01/16 22:24:28 packer: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1dab87]
2017/01/16 22:24:28 packer:
2017/01/16 22:24:28 packer: goroutine 35 [running]:
2017/01/16 22:24:28 packer: panic(0xfc4be0, 0xc4200120c0)
2017/01/16 22:24:28 packer: /usr/local/Cellar/go/1.7.3/libexec/src/runtime/panic.go:500 +0x1a1
2017/01/16 22:24:28 packer: github.com/mitchellh/packer/builder/amazon/ebs.(*stepCreateAMI).Run(0xc4201522a8, 0x1a1b960, 0xc42034e570, 0x0)
2017/01/16 22:24:28 packer: /Users/mwhooker/go/src/github.com/mitchellh/packer/builder/amazon/ebs/step_create_ami.go:72 +0x917
2017/01/16 22:24:28 packer: github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep.(*BasicRunner).Run(0xc4202abec0, 0x1a1b960, 0xc42034e570)
2017/01/16 22:24:28 packer: /Users/mwhooker/go/src/github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep/basic_runner.go:70 +0x207
2017/01/16 22:24:28 packer: github.com/mitchellh/packer/builder/amazon/ebs.(*Builder).Run(0xc42026af00, 0x1a1e200, 0xc42033adc0, 0x1a17260, 0xc42033ea70, 0x1a1cfe0, 0xc420152260, 0xc4202d8030, 0x0, 0x0, ...)
2017/01/16 22:24:28 packer: /Users/mwhooker/go/src/github.com/mitchellh/packer/builder/amazon/ebs/builder.go:196 +0x11cb
2017/01/16 22:24:28 packer: github.com/mitchellh/packer/packer/rpc.(*BuilderServer).Run(0xc42028a480, 0x1, 0xc4202c40d0, 0x0, 0x0)
2017/01/16 22:24:28 packer: /Users/mwhooker/go/src/github.com/mitchellh/packer/packer/rpc/builder.go:93 +0x218
2017/01/16 22:24:28 packer: reflect.Value.call(0xc4201635c0, 0xc4201521c8, 0x13, 0x12063f7, 0x4, 0xc420543ed0, 0x3, 0x3, 0x0, 0x0, ...)
2017/01/16 22:24:28 packer: /usr/local/Cellar/go/1.7.3/libexec/src/reflect/value.go:434 +0x5c8
2017/01/16 22:24:28 packer: reflect.Value.Call(0xc4201635c0, 0xc4201521c8, 0x13, 0xc420543ed0, 0x3, 0x3, 0x16506, 0xc420302a78, 0x1)
2017/01/16 22:24:28 packer: /usr/local/Cellar/go/1.7.3/libexec/src/reflect/value.go:302 +0xa4
2017/01/16 22:24:28 packer: net/rpc.(*service).call(0xc4202aa040, 0xc4202aa000, 0xc42020db68, 0xc42016d880, 0xc42028a760, 0xf16a40, 0xc4202c40cc, 0x18a, 0xeeb640, 0xc4202c40d0, ...)
2017/01/16 22:24:28 packer: /usr/local/Cellar/go/1.7.3/libexec/src/net/rpc/server.go:383 +0x148
2017/01/16 22:24:28 packer: created by net/rpc.(*Server).ServeCodec
2017/01/16 22:24:28 packer: /usr/local/Cellar/go/1.7.3/libexec/src/net/rpc/server.go:477 +0x421
2017/01/16 22:24:28 ui error: Build 'amazon-ebs' errored: unexpected EOF
2017/01/16 22:24:28 /usr/local/bin/packer: plugin process exited
2017/01/16 22:24:28 Builds completed. Waiting on interrupt barrier...
2017/01/16 22:24:28 machine readable: error-count []string{"1"}
2017/01/16 22:24:28 ui error:
==> Some builds didn't complete successfully and had errors:
2017/01/16 22:24:28 machine readable: amazon-ebs,error []string{"unexpected EOF"}
2017/01/16 22:24:28 ui error: --> amazon-ebs: unexpected EOF
2017/01/16 22:24:28 ui:
==> Builds finished but no artifacts were created.
2017/01/16 22:24:28 waiting for all plugin processes to complete...
2017/01/16 22:24:28 /usr/local/bin/packer: plugin process exited
--------- template.json ----------
{
"variables": {
},
"builders": [
{
"type": "amazon-ebs",
"region": "us-west-2",
"ssh_username": "ubuntu",
"instance_type": "t2.micro",
"source_ami": "ami-b7a114d7",
"ami_name": "WebAppServer {{timestamp}}",
"tags": {
"Name": "WebAppServer",
"Group": "web"
},
"ami_block_device_mappings": [
{
"volume_type": "gp2",
"device_name": "/dev/xvdf",
"delete_on_termination": true,
"volume_size": 8
}
]
}
],
"provisioners": [
{
"type": "ansible",
"playbook_file": "./web_bootstrap_playbook.yml",
"user": "ubuntu"
}
]
}
----------- playbook ------------
---
- hosts: all
remote_user: ubuntu
sudo: yes
gather_facts: no
pre_tasks:
- name: Install Python
raw: sudo apt-get -y install python
tasks:
- name: Gathering facts
setup:
- name: Install nginx
apt:
name: nginx
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment