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

can't init / pull an existing project #10740

Closed
5 tasks done
davidgamify opened this issue Jul 11, 2022 · 5 comments
Closed
5 tasks done

can't init / pull an existing project #10740

davidgamify opened this issue Jul 11, 2022 · 5 comments
Labels
platform-init Issues related to initializing a new Amplify project

Comments

@davidgamify
Copy link

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v14.16.0

Amplify CLI Version

9.1.0

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No manual changes made

Amplify Categories

auth, storage, function, api, analytics

Amplify Commands

init, pull

Describe the bug

When we do either an amplify init (with an existing project) or an amplify pull on a new machine (or VM), we receive the following error:
Could not initialize 'staging': ENOENT: no such file or directory, stat '/aws/mde/work/lyferize/amplify/.temp/#current-cloud-backend/function/lyferizeUtils/lib/python/venv/bin/python'

Expected behavior

The command should prompt us whether we want to update the backend and then allow us to develop using the framework.

Reproduction steps

  1. amplify init --appId dcjj80gy8efkc
    Note: It is recommended to run this command from the root of your app directory
    ? Do you want to use an existing environment? Yes
    ? Choose the environment you would like to use: staging
    Using default provider awscloudformation
    ⠧ Initializing your environment: staging🛑 Could not initialize 'staging': EEXIST: file already exists, symlink '../../../../../../../../../../../.pyenv/versions/3.8.8/bin/python' -> '/aws/mde/work/lyferize/amplify/.temp/#current-cloud-backend/function/lyferizeUtils/lib/python/venv/bin/python'

GraphQL schema(s)

# Put schemas below this line

Project Identifier

/var/folders/c2/5229qw4n3593qffh12m5xs_c0000gn/T/lyferize/report-1657577723600.zip

Log output

# Put your logs below this line


Additional information

This is a critical issue as we can only deploy our product from exactly one laptop. If something happens to this laptop, we cannot deliver any updates/fixes to our product.

@josefaidt josefaidt added functions Issues tied to the functions category pending-triage Issue is pending triage labels Jul 12, 2022
@josefaidt
Copy link
Contributor

Hey @davidgamify 👋 thanks for raising this! To better understand the context of the issue and provide a suitable workaround may I ask for the steps needed to reproduce this issue? Can you try following the steps of this gist to manually remove the symlink from your #current-cloud-backend archive? https://gist.github.com/josefaidt/be56f2a8a821b084b66e40ce51e20b44

@josefaidt josefaidt added pending-response Issue is pending response from the issue author and removed functions Issues tied to the functions category labels Jul 12, 2022
@davidgamify
Copy link
Author

davidgamify commented Jul 12, 2022 via email

@josefaidt
Copy link
Contributor

This issue seems similar to #10138 (comment), which was previously closed. What are the steps you followed prior to receiving this issue?

@davidgamify
Copy link
Author

davidgamify commented Jul 14, 2022 via email

@ykethan
Copy link
Contributor

ykethan commented Jul 18, 2022

Glad to hear that you were able to mitigate the issue. Please feel free in reaching out to us again if you are observing any behaviors.

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2022
@ykethan ykethan added platform-init Issues related to initializing a new Amplify project and removed pending-response Issue is pending response from the issue author pending-triage Issue is pending triage labels Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-init Issues related to initializing a new Amplify project
Projects
None yet
Development

No branches or pull requests

3 participants