packer version 1.5.6
{
"variables": {
"aws_access_key": "{{env AWS_ACCESS_KEY_ID}}",
"aws_secret_key": "{{env AWS_SECRET_ACCESS_KEY}}"
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user aws_access_key}}",
"secret_key": "{{user aws_secret_key}}",
"region": "us-east-1",
"source_ami": "ami-fce3c696",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "packer_AWS {{timestamp}}"
}
]
"provisioners": [
{
"type": "file",
"source": "../test",
"destination": "/tmp/test"
}
]
}
////////////////////////////////////////////////////////////////////////////////////////////////////
output log
2020/05/13 10:58:38 packer: 2020/05/13 10:58:38 [INFO] 530 bytes written for 'uploadData'
2020/05/13 10:58:38 packer: 2020/05/13 10:58:38 opening new ssh session
2020/05/13 10:58:38 [INFO] 530 bytes written for 'uploadData'
2020/05/13 10:58:38 packer: 2020/05/13 10:58:38 Starting remote scp process: scp -vt /tmp
2020/05/13 10:58:39 packer: 2020/05/13 10:58:39 Started SCP session, beginning transfers...
2020/05/13 10:58:39 packer: 2020/05/13 10:58:39 [DEBUG] scp: Uploading test.sh: perms=C0644 size=530
2020/05/13 10:58:39 packer: 2020/05/13 10:58:39 SCP session complete, closing stdin pipe.
2020/05/13 10:58:39 packer: 2020/05/13 10:58:39 Waiting for SSH session to complete.
2020/05/13 10:58:39 packer: 2020/05/13 10:58:39 non-zero exit status: 1
==> Upload failed: Process exited with status 1
2020/05/13 10:58:39 ui error: Upload failed: Process exited with status 1
when we try to upload the file by provisioner still getting same problems with the packer version 1.5.6
Hey @ssk199441 ! Thanks for opening, this error you had is not very communicative !
So I opened https://github.com/hashicorp/packer/pull/9217 to try and make it more verbose. Could you please try the same thing again with these binaries and share the output log with us again ? Thanks !
2020/05/13 15:54:58 packer_linux_amd64 plugin: [DEBUG] Opening new ssh session
2020/05/13 15:54:58 [INFO] 3207 bytes written for 'uploadData'
2020/05/13 15:54:58 packer_linux_amd64 plugin: [INFO] 3207 bytes written for 'uploadData'
test.sh 3.13 KiB / 3.13 KiB [===========================================================] 100.00%
test.sh 3.13 KiB / 3.13 KiB [===========================================================] 100.00%
2020/05/13 15:54:59 packer_linux_amd64 plugin: [DEBUG] Started SCP session, beginning transfers...
2020/05/13 15:54:59 packer_linux_amd64 plugin: [DEBUG] scp: Uploading test.sh: perms=C0775 size=3207
2020/05/13 15:54:59 packer_linux_amd64 plugin: [DEBUG] SCP session complete, closing stdin pipe.
2020/05/13 15:54:59 packer_linux_amd64 plugin: [DEBUG] Waiting for SSH session to complete.
2020/05/13 15:54:59 packer_linux_amd64 plugin: [DEBUG] scp stderr (length 83): WARNING: Your password has expired.
2020/05/13 15:54:59 packer_linux_amd64 plugin: Password change required but no TTY available.
2020/05/13 15:54:59 packer_linux_amd64 plugin: [DEBUG] non-zero exit status: 1, Process exited with status 1
2020/05/13 15:54:59 packer_linux_amd64 plugin: [DEBUG] scp output:
==> Upload failed: Process exited with status 1
2020/05/13 15:54:59 packer_linux_amd64 plugin: closing
2020/05/13 15:54:59 closing
test.sh 3.13 KiB / 3.13 KiB [========================================================] 100.00% 0s
2020/05/13 15:54:59 [INFO] (telemetry) ending file
Is it still failing or have you tried addressing this? 👇
WARNING: Your password has expired.
I raised an issue regarding this, can you give me some time, will give you an update
Thanks, guys, it's all set and working fine now,
How long I can use these binaries?
Circle CI doesn't guarantee how long they'll leave the binaries up but we've got nightlies that come out every week now, and anecdotally the binaries in circle last longer than that.
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
I raised an issue regarding this, can you give me some time, will give you an update