0

我正在切换到全新安装 Windows 10 Pro 的新计算机,并且遇到了一个非常奇怪的 EB CLI 问题。我无法使用 Windows Power Shell 运行“eb deploy”,我收到以下错误:

ERROR: OSError - [WinError 145] The directory is not empty: '.elasticbeanstalk\\app_versions'

我和 EB CLI 一起卸载/重新安装了 Python,但结果相同。

注意:我能够运行所有其他 EB 命令,例如eb ssheb logs没有问题。

在观看“.elasticbeanstalk”文件夹时,我能够观察到,我看到“app_versions”文件夹与该文件夹中的应用程序 zip 一起创建。一旦命令失败,ZIP 文件会在“app_versions”文件夹中保留大约 10 到 15 秒,然后才会被删除。我检查了 S3 并上传了 zip 文件...

我已经查看了另一个 Stack Overflow 问题:AWS Elastic Beanstalk deploy not working

我没有在我正在工作的目录上运行 Google/Dropbox 或 OneDrive。为了安全起见,我暂停了 OneDrive,但仍然没有。

拜托,任何帮助都会很棒!

更新

eb deploy --debug

在上传完成之前没有错误,通过检查 S3 存储桶并查看最新上传来确认这一点。

2019-02-04 14:50:06,522 (INFO) eb : Traceback (most recent call last):
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\ebcli\core\ebrun.py", line 62, in run_app
    app.run()
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\cement\core\foundation.py", line 797, in run
    return_val = self.controller._dispatch()
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\cement\core\controller.py", line 472, in _dispatch
    return func()
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\cement\core\controller.py", line 478, in _dispatch
    return func()
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\ebcli\core\abstractcontroller.py", line 94, in default
    self.do_command()
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\ebcli\controllers\deploy.py", line 78, in do_command
    staged=self.staged, timeout=self.timeout, source=self.source)
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\ebcli\operations\deployops.py", line 59, in deploy
    build_config=build_config
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\ebcli\operations\commonops.py", line 538, in create_app_version
    fileoperations.delete_app_versions()
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\ebcli\core\fileoperations.py", line 432, in delete_app_versions
    delete_directory(app_version_folder)
  File "C:\Users\winng\AppData\Roaming\Python\Python37\site-packages\ebcli\core\fileoperations.py", line 425, in delete_directory
    shutil.rmtree(location)
  File "c:\users\winng\appdata\local\programs\python\python37\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "c:\users\winng\appdata\local\programs\python\python37\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "c:\users\winng\appdata\local\programs\python\python37\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: '.elasticbeanstalk\\app_versions'

2019-02-04 14:50:06,526 (INFO) eb : OSError - [WinError 145] The directory is not empty: '.elasticbeanstalk\\app_versions'
4

0 回答 0