Skip to content

Instantly share code, notes, and snippets.

@tserkov
Created March 27, 2021 03:47
Show Gist options
  • Select an option

  • Save tserkov/9d0ec9478527d2a2ec7367cf746859ec to your computer and use it in GitHub Desktop.

Select an option

Save tserkov/9d0ec9478527d2a2ec7367cf746859ec to your computer and use it in GitHub Desktop.
PACKER_LOG=1 packer build .
2021/03/26 22:39:33 [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64]
2021/03/26 22:39:33 [TRACE] discovering plugins in /home/tserkov/.bin
2021/03/26 22:39:33 [TRACE] discovering plugins in /home/tserkov/.packer.d/plugins
2021/03/26 22:39:33 [TRACE] discovering plugins in .
2021/03/26 22:39:33 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/03/26 22:39:33 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/tserkov/.packerconfig
2021/03/26 22:39:33 [WARN] Config file doesn't exist: /home/tserkov/.packerconfig
2021/03/26 22:39:33 [INFO] Setting cache directory: /home/tserkov/stack/packer/packer_cache
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] Starting internal plugin packer-builder-digitalocean
2021/03/26 22:39:33 Starting plugin: /home/tserkov/.bin/packer []string{"/home/tserkov/.bin/packer", "plugin", "packer-builder-digitalocean"}
2021/03/26 22:39:33 Waiting for RPC address for: /home/tserkov/.bin/packer
2021/03/26 22:39:33 packer-builder-digitalocean plugin: [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64]
2021/03/26 22:39:33 packer-builder-digitalocean plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/03/26 22:39:33 packer-builder-digitalocean plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/tserkov/.packerconfig
2021/03/26 22:39:33 packer-builder-digitalocean plugin: [WARN] Config file doesn't exist: /home/tserkov/.packerconfig
2021/03/26 22:39:33 packer-builder-digitalocean plugin: [INFO] Setting cache directory: /home/tserkov/stack/packer/packer_cache
2021/03/26 22:39:33 packer-builder-digitalocean plugin: args: []string{"packer-builder-digitalocean"}
2021/03/26 22:39:33 packer-builder-digitalocean plugin: Plugin address: unix /tmp/packer-plugin387098692
2021/03/26 22:39:33 packer-builder-digitalocean plugin: Waiting for connection...
2021/03/26 22:39:33 Received unix RPC address for /home/tserkov/.bin/packer: addr is /tmp/packer-plugin387098692
2021/03/26 22:39:33 packer-builder-digitalocean plugin: Serving a plugin connection...
2021/03/26 22:39:33 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:33 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:33 [TRACE] Starting internal plugin packer-provisioner-file
2021/03/26 22:39:33 Starting plugin: /home/tserkov/.bin/packer []string{"/home/tserkov/.bin/packer", "plugin", "packer-provisioner-file"}
2021/03/26 22:39:33 Waiting for RPC address for: /home/tserkov/.bin/packer
2021/03/26 22:39:34 packer-provisioner-file plugin: [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64]
2021/03/26 22:39:34 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/03/26 22:39:34 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/tserkov/.packerconfig
2021/03/26 22:39:34 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /home/tserkov/.packerconfig
2021/03/26 22:39:34 packer-provisioner-file plugin: [INFO] Setting cache directory: /home/tserkov/stack/packer/packer_cache
2021/03/26 22:39:34 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/03/26 22:39:34 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin912071061
2021/03/26 22:39:34 packer-provisioner-file plugin: Waiting for connection...
2021/03/26 22:39:34 Received unix RPC address for /home/tserkov/.bin/packer: addr is /tmp/packer-plugin912071061
2021/03/26 22:39:34 packer-provisioner-file plugin: Serving a plugin connection...
2021/03/26 22:39:34 [TRACE] Starting internal plugin packer-provisioner-shell
2021/03/26 22:39:34 Starting plugin: /home/tserkov/.bin/packer []string{"/home/tserkov/.bin/packer", "plugin", "packer-provisioner-shell"}
2021/03/26 22:39:34 Waiting for RPC address for: /home/tserkov/.bin/packer
2021/03/26 22:39:34 packer-provisioner-shell plugin: [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64]
2021/03/26 22:39:34 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/03/26 22:39:34 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/tserkov/.packerconfig
2021/03/26 22:39:34 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /home/tserkov/.packerconfig
2021/03/26 22:39:34 packer-provisioner-shell plugin: [INFO] Setting cache directory: /home/tserkov/stack/packer/packer_cache
2021/03/26 22:39:34 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2021/03/26 22:39:34 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin432049935
2021/03/26 22:39:34 packer-provisioner-shell plugin: Waiting for connection...
2021/03/26 22:39:34 Received unix RPC address for /home/tserkov/.bin/packer: addr is /tmp/packer-plugin432049935
2021/03/26 22:39:34 packer-provisioner-shell plugin: Serving a plugin connection...
2021/03/26 22:39:34 [TRACE] validateValue: not active for do_token, so skipping
2021/03/26 22:39:34 [TRACE] validateValue: not active for base_system_image, so skipping
2021/03/26 22:39:34 [TRACE] validateValue: not active for region, so skipping
2021/03/26 22:39:34 [TRACE] validateValue: not active for size, so skipping
2021/03/26 22:39:34 Build debug mode: false
2021/03/26 22:39:34 Force build: false
2021/03/26 22:39:34 On error:
2021/03/26 22:39:34 Waiting on builds to complete...
digitalocean.web: output will be in this color.
2021/03/26 22:39:34 Starting build run: digitalocean.web
2021/03/26 22:39:34 Running builder:
2021/03/26 22:39:34 [INFO] (telemetry) Starting builder
==> digitalocean.web: Creating temporary ssh key for droplet...
2021/03/26 22:39:34 packer-builder-digitalocean plugin: temporary ssh key name: packer-605ea8f6-fb97-bab3-a1ec-ffbad72442d2
==> digitalocean.web: Creating droplet...
2021/03/26 22:39:34 packer-builder-digitalocean plugin: [DEBUG] Droplet create paramaters: godo.DropletCreateRequest{Name:"packer-605ea8f5-855a-3087-c4c8-eb448034e03e", Region:"nyc2", Size:"s-1vcpu-1gb", Image:godo.DropletCreateImage{ID:0, Slug:"fedora-33-x64"}, SSHKeys:[godo.DropletCreateSSHKey{ID:29898704, Fingerprint:""}], Backups:false, IPv6:false, PrivateNetworking:false, Monitoring:false, UserData:"", Tags:[], VPCUUID:""}
==> digitalocean.web: Waiting for droplet to become active...
2021/03/26 22:39:35 packer-builder-digitalocean plugin: Waiting for up to 360 seconds for droplet to become active
2021/03/26 22:39:35 packer-builder-digitalocean plugin: Checking droplet status... (attempt: 1)
2021/03/26 22:39:38 packer-builder-digitalocean plugin: Checking droplet status... (attempt: 2)
2021/03/26 22:39:42 packer-builder-digitalocean plugin: Checking droplet status... (attempt: 3)
2021/03/26 22:39:45 packer-builder-digitalocean plugin: Checking droplet status... (attempt: 4)
2021/03/26 22:39:49 packer-builder-digitalocean plugin: Checking droplet status... (attempt: 5)
2021/03/26 22:39:52 packer-builder-digitalocean plugin: Checking droplet status... (attempt: 6)
2021/03/26 22:39:56 packer-builder-digitalocean plugin: Checking droplet status... (attempt: 7)
==> digitalocean.web: Using ssh communicator to connect: 192.241.255.23
2021/03/26 22:39:56 packer-builder-digitalocean plugin: [INFO] Waiting for SSH, up to timeout: 5m0s
==> digitalocean.web: Waiting for SSH to become available...
2021/03/26 22:40:03 packer-builder-digitalocean plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 192.241.255.23:22: connect: connection refused
2021/03/26 22:40:09 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:40:09 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:40:09 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:40:09 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:40:09 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2021/03/26 22:40:16 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:40:16 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:40:16 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:40:17 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:40:17 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2021/03/26 22:40:24 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:40:24 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:40:24 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:40:24 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:40:24 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2021/03/26 22:40:31 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:40:31 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:40:31 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:40:32 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:40:32 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2021/03/26 22:40:39 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:40:39 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:40:39 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:40:39 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:40:39 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2021/03/26 22:40:46 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:40:46 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:40:46 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:40:47 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:40:47 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2021/03/26 22:40:54 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:40:54 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:40:54 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:40:54 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:40:54 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2021/03/26 22:41:01 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:41:01 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:41:01 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:41:02 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:41:02 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2021/03/26 22:41:09 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:41:09 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:41:09 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:41:09 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:41:09 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2021/03/26 22:41:16 packer-builder-digitalocean plugin: [INFO] Attempting SSH connection to 192.241.255.23:22...
2021/03/26 22:41:16 packer-builder-digitalocean plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/03/26 22:41:17 packer-builder-digitalocean plugin: [DEBUG] handshaking with SSH
2021/03/26 22:41:17 packer-builder-digitalocean plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2021/03/26 22:41:17 packer-builder-digitalocean plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
==> digitalocean.web: Error waiting for SSH: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
==> digitalocean.web: Destroying droplet...
==> digitalocean.web: Deleting temporary ssh key...
2021/03/26 22:41:18 [INFO] (telemetry) ending
==> Wait completed after 1 minute 44 seconds
2021/03/26 22:41:18 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2021/03/26 22:41:18 machine readable: digitalocean.web,error []string{"Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain"}
==> Builds finished but no artifacts were created.
2021/03/26 22:41:18 [INFO] (telemetry) Finalizing.
Build 'digitalocean.web' errored after 1 minute 44 seconds: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
==> Wait completed after 1 minute 44 seconds
==> Some builds didn't complete successfully and had errors:
--> digitalocean.web: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
==> Builds finished but no artifacts were created.
2021/03/26 22:41:19 waiting for all plugin processes to complete...
2021/03/26 22:41:19 /home/tserkov/.bin/packer: plugin process exited
2021/03/26 22:41:19 /home/tserkov/.bin/packer: plugin process exited
2021/03/26 22:41:19 /home/tserkov/.bin/packer: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment