Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after running dce system deploy second time #70

Open
nathanagood opened this issue Feb 5, 2020 · 0 comments
Open

Error after running dce system deploy second time #70

nathanagood opened this issue Feb 5, 2020 · 0 comments

Comments

@nathanagood
Copy link
Contributor

nathanagood commented Feb 5, 2020

Version information

  • DCE CLI v0.3.0+
  • Mac OS: Darwin 18.7.0 Darwin Kernel Version 18.7.0
  • go version go1.13.5 darwin/amd64
  • 0.12?

Describe the bug

I can run dce system deploy fine once, but after destroying the infra when I run the command again I get the following error:

reading file in zip archive: file already exists: <HOME>/.dce/.cache/dce/0.23.0/lambda/accounts.zip

To Reproduce

Steps to reproduce the behavior:

  1. When I type this Command, I get the following output

    $ dce system deploy
    
  2. Then when I type this other command, I get the following error

    $ cd ~/.dce/.cache/module/
    $ ../terraform/<version>/terraform destroy -auto-approve -no-color
    $ dce system deploy
    'main.tf' already exists and --use-cached specified; using existing file
    Initializing
    Creating DCE infrastructure
    Retrieving artifacts location
    Artifacts bucket =  <some bucket>
    Deploying code assets to DCE infrastructure
    Downloading DCE code assets
    reading file in zip archive: file already exists: ~/.dce/.cache/dce/0.23.0/lambda/accounts.zip
    

Expected behavior

Additional context

Workaround: remove the ~/.dce/.cache directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant