1

當試圖與awsebcli OSX上的優勝美地和Python 3.4部署我得到以下輸出和錯誤:彈性魔豆CLI部署郵編錯誤

Creating application version archive "app-150701_094953". 
ERROR: ValueError :: ZIP does not support timestamps before 1980 

似乎有什麼不對的拉鍊服務,但我已經一直在尋找,到目前爲止我還沒有找到一個可行的解決方案。

編輯:

Retrieving logs... 
(edify)7ddf32e17a6ac5:edify me$ eb deploy --debug 
2015-07-01 14:18:08,842 (DEBUG) eb : logging initialized for 'eb' using  
LoggingLogHandler 
2015-07-01 14:18:08,842 (DEBUG) cement.ext.ext_plugin : plugin config 
dir /etc/eb/plugins.d does not exist. 
2015-07-01 14:18:08,843 (DEBUG) cement.ext.ext_plugin : plugin config 
dir /Users/me/.eb/plugins.d does not exist. 
2015-07-01 14:18:08,844 (DEBUG) eb : collecting arguments/commands for 
<ebcli.core.base.EbBaseController object at 0x10bfdc908> 
2015-07-01 14:18:08,848 (DEBUG) eb : collecting arguments/commands for 
<ebcli.controllers.deploy.DeployController object at 0x10bfea3c8> 
-- EBCLI Version: 3.4.5 
-- Python Version: 3.4.3 (default, Feb 25 2015, 21:28:45) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] 
2015-07-01 14:18:08,854 (DEBUG) ebcli.core.fileoperations : Project 
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,869 (DEBUG) ebcli.objects.sourcecontrol : Git  
Version: git version 2.1.3.36.g8e36a6d 
2015-07-01 14:18:08,878 (DEBUG) ebcli.objects.sourcecontrol : git 
symbolic-ref result: refs/heads/master 
2015-07-01 14:18:08,879 (DEBUG) ebcli.core.fileoperations : Project 
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,882 (DEBUG) ebcli.core.fileoperations : Project 
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,885 (DEBUG) ebcli.core.fileoperations : Project 
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,892 (DEBUG) ebcli.objects.sourcecontrol : Git 
Version: git version 2.1.3.36.g8e36a6d 
2015-07-01 14:18:08,896 (DEBUG) ebcli.objects.sourcecontrol : git 
symbolic-ref result: refs/heads/master 
2015-07-01 14:18:08,897 (DEBUG) ebcli.core.fileoperations : Project 
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,900 (DEBUG) ebcli.core.fileoperations : Project 
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,902 (DEBUG) ebcli.core.fileoperations : Project  
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,905 (DEBUG) ebcli.core.fileoperations : Project 
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,907 (DEBUG) ebcli.core.fileoperations : Project 
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,914 (DEBUG) ebcli.objects.sourcecontrol : Git 
Version: git version 2.1.3.36.g8e36a6d 
2015-07-01 14:18:08,918 (DEBUG) ebcli.objects.sourcecontrol : git  
symbolic-ref result: refs/heads/master 
2015-07-01 14:18:08,918 (DEBUG) ebcli.core.fileoperations : Project  
root found at: /Users/me/PycharmProjects/edify 
2015-07-01 14:18:08,921 (ERROR) eb : This branch does not have a 
default environment. You must either specify an environment by typing 
"deploy my-env-name" or set a default environment by typing "eb use my- 
env-name". 
+0

嘿!你能添加更多的細節,比如你使用的確切的CLI命令等嗎? – sap1ens

+0

您可以使用--debug選項運行,這將爲您提供堆棧跟蹤和(可能)更多信息。 –

+0

感謝您的調試標誌的建議,這給了我需要修復命令。所以我使用'eb deploy',但沒有默認配置文件或區域設置,因此失敗。拉鍊錯誤真的讓我失望了。任何想法爲什麼出來? –

回答

1

你可能忘了提交項目(不要忘記ebcli運行基於Git倉庫項目!)

+0

對,謝謝。這個問題實際上沒有我的eb檔案中所需的信息。奇怪的錯誤,但。 –

0

我想你可以使用本地文件,而不是通過傳遞部署腳本--staged標誌,因爲你至少已經進行了更改。

0

您可以運行eb deploy -v來確認錯誤源於何處。對於我來說,在嘗試將express應用程序部署到彈性beanstalk時,我遇到了這個錯誤。通過運行上面的命令,我發現錯誤是因爲uglify-js的錯誤版本,其中包含1969年的時間戳文件。簡單地將uglify js從v2.8.28降級到v2.8.27,它沒有1969年的時間戳,爲我解決了這個問題。你讀了關於這個問題here