2
我正在嘗試將golang docker部署到AWS。AWS Docker Golang。 'eb deploy'錯誤
- 我使用預定義的FROM golang:1.4.2-onbuild
- EB本地運行 - 精美的作品,沒有任何問題。
- 如果我壓縮並上傳壓縮文件,它可以在AWS上正常工作。
- ...但是當我嘗試'eb deploy'時,我總是收到這個錯誤。
任何建議,請。
謝謝。
bash-3.2$ eb deploy
WARNING: Deploying a previously deployed commit.
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
WARN: Failed to build Docker image aws_beanstalk/staging-app, retrying...
ERROR: Failed to build Docker image aws_beanstalk/staging-app: urce files in /go/src/app
[0mtime="2015-08-28T03:48:44Z" level="info" msg="The command [/bin/sh -c go-wrapper install] returned a non-zero code: 1" . Check snapshot logs for details.
ERROR: [Instance: i-bf189879] Command failed on instance. Return code: 1 Output: (TRUNCATED)...n-zero code: 1"
Failed to build Docker image aws_beanstalk/staging-app: urce files in /go/src/app
[0mtime="2015-08-28T03:48:44Z" level="info" msg="**The command [/bin/sh -c go-wrapper install] returned a non-zero code: 1**" . Check snapshot logs for details.
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03build.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
ERROR: Unsuccessful command execution on instance id(s) 'i-bf189879'. Aborting the operation.
ERROR: Failed to deploy application.
您能從網絡界面獲取快照日誌嗎?它可以給你更多的信息。我不知道它是否也可以用'eb'命令訪問,但它應該是。 –
謝謝你的回覆。這裏是詳細的調試日誌。希望你能在這裏看到一些東西。 [日誌文件](https://docs.google.com/document/d/1pR_10oNtDqCvg0df4Jhh9G18LsydbRNmt9H00X_gROM/edit?usp=sharing) – AlexNa
我沒有看到該日誌中的錯誤。我記住的日誌與我記憶中的格式不同。它也會顯示來自docker的日誌。如果你進入你的環境,你可以得到它,點擊左邊菜單上的日誌,然後點擊「請求日誌」下拉菜單中的「最後100行」。你也可以要求「完整日誌」,但最後100通常就足夠了。 –