当尝试在osx Yosemite和python 3.4上使用awsebcli进行部署时,我得到以下输出和错误:
Creating application version archive "app-150701_094953".
ERROR: ValueError :: ZIP does not support timestamps before 1980看起来zip服务出了点问题,但我一直在寻找,到目前为止我还没有找到一个有效的解决方案。
编辑:
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".发布于 2017-06-23 14:13:20
您可以运行eb deploy -v来验证错误的确切来源。对我来说,在尝试将express应用程序部署到elastic beanstalk时,我遇到了这个错误。通过运行上面的命令,我发现这个错误是由于uglify-js的一个错误版本造成的,该版本包含的文件带有1969年的时间戳。简单地将uglify js从v2.8.28降级到v2.8.27,它没有1969年的时间戳,为我解决了这个问题。你在here上读到了这个问题
发布于 2015-07-26 13:30:23
您可能忘记了提交项目(不要忘记ebcli在git存储库中运行项目!)
发布于 2019-01-29 18:33:09
我找到了解决方案here
添加到您的package.json脚本中:
"scripts": {
"install": "find ./node_modules/* -mtime +10950 -exec touch {} \\;"
}https://stackoverflow.com/questions/31166275
复制相似问题