Amplify-cli: amplify pull - dest already exists

Created on 15 Apr 2020  ยท  2Comments  ยท  Source: aws-amplify/amplify-cli

Describe the bug

amplify pull then Ctrl-C'ing out of the process leaves both amplify and amplify-backup folders, so amplify pull a second time returns:

โฏ amplify pull
dest already exists.
Error: dest already exists.
    at doRename (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/node_modules/fs-extra/lib/move-sync/move-sync.js:25:34)
    at Object.moveSync (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/node_modules/fs-extra/lib/move-sync/move-sync.js:17:10)
    at backupAmplifyFolder (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/attach-backend.js:66:12)
    at attachBackend (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/attach-backend.js:13:5)
    at Object.run (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/commands/pull.js:44:19)
    at Object.executeAmplifyCommand (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/index.js:94:25)
    at executePluginModuleCommand (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/execution-manager.js:47:32)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
    at startup (internal/bootstrap/node.js:283:19)

Amplify CLI Version

4.13.3

To Reproduce

  1. amplify pull
  2. Ctrl-C during the project selection screen.
  3. amplify pull

Expected behavior

Cleanup on SIGINT.

Desktop (please complete the following information):

  • OS: Mac
  • Node Version. v10.16.3
enhancement platform

Most helpful comment

+1 having the same issue, here is how I fixed it:
mv amplify amplify_backup && amplify pull

All 2 comments

+1 experiencing the same issue while attempting to re-build my development environment on Cloud9.

+1 having the same issue, here is how I fixed it:
mv amplify amplify_backup && amplify pull

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kangks picture kangks  ยท  3Comments

nicksmithr picture nicksmithr  ยท  3Comments

davo301 picture davo301  ยท  3Comments

zjullion picture zjullion  ยท  3Comments

darrentarrant picture darrentarrant  ยท  3Comments