如何解决在开发环境打包程序上进行部署时,构建失败,没有任何特定错误
我是初学者。任何帮助都非常感谢。以下是我得到的日志:
{
"ansible_job_id": "675768132500.14402","attempts": 2,"changed": true,"cmd": [
"packer","build","-machine-readable","-var","base_dir=/home/rishabhj/Desktop/Changes/api/deploy","packer_security_group=sg-a6fa26dd","packer_subnet=subnet-3fc58005","build_number=rishabhjaiswal-85c16697-1b19-4c87-969d-7ee24845bf7e","deploy_env=dev","base_ami=ami-1e220265","/home/rishabhj/Desktop/","Changes/api/deploy/packer/packer-api.json"
],"delta": "0:00:03.950760","end": "2020-11-09 16:21:39.061193","finished": 1,"msg": "non-zero return code","rc": 1,"start": "2020-11-09 16:21:35.110433","stderr": "","stderr_lines": [],"stdout": "1604919097,ui,say,Usage: packer build [options] TEMPLATE\\n\\n Will execute multiple builds in parallel as defined in the template.\\n The various artifacts created by the template will be outputted.\\n\\nOptions:\\n\\n -color=false Disable color output. (Default: color)\\n -debug Debug mode enabled for builds.\\n -except=foo%!(PACKER_COMMA)bar%!(PACKER_COMMA)baz Run all builds and post-procesors other than these.\\n -only=foo%!(PACKER_COMMA)bar%!(PACKER_COMMA)baz Build only the specified builds.\\n -force Force a build to continue if artifacts exist%!(PACKER_COMMA) deletes existing artifacts.\\n -machine-readable Produce machine-readable output.\\n -on-error=[cleanup|abort|ask|run-cleanup-provisioner] If the build fails do: clean up (default)%!(PACKER_COMMA) abort%!(PACKER_COMMA) ask%!(PACKER_COMMA) or run-cleanup-provisioner.\\n -parallel-builds=1 Number of builds to run in parallel. 1 disables parallelization. 0 means no limit (Default: 0)\\n -timestamp-ui Enable prefixing of each ui output with an RFC3339 timestamp.\\n -var 'key=value' Variable for templates%!(PACKER_COMMA) can be used multiple times.\\n -var-file=path JSON file containing user variables.","stdout_lines": [
"1604919097,Usage: packer build [options] TEMPLATE\\n\\n Will execute multiple builds in parallel as defined in the template.\\n The various artifacts created by the template will be outputted.\\n\\nOptions:\\n\\n -color=false Disable color output. (Default: color)\\n -debug Debug mode enabled for builds.\\n -except=foo%!(PACKER_COMMA)bar%!(PACKER_COMMA)baz Run all builds and post-procesors other than these.\\n -only=foo%!(PACKER_COMMA)bar%!(PACKER_COMMA)baz Build only the specified builds.\\n -force Force a build to continue if artifacts exist%!(PACKER_COMMA) deletes existing artifacts.\\n -machine-readable Produce machine-readable output.\\n -on-error=[cleanup|abort|ask|run-cleanup-provisioner] If the build fails do: clean up (default)%!(PACKER_COMMA) abort%!(PACKER_COMMA) ask%!(PACKER_COMMA) or run-cleanup-provisioner.\\n -parallel-builds=1 Number of builds to run in parallel. 1 disables parallelization. 0 means no limit (Default: 0)\\n -timestamp-ui Enable prefixing of each ui output with an RFC3339 timestamp.\\n -var 'key=value' Variable for templates%!(PACKER_COMMA) can be used multiple times.\\n -var-file=path JSON file containing user variables."
]
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。