amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

I have just ran amplify upgrade and now amplify doesn't work at all

Open rafaelfaria opened this issue 3 years ago • 1 comments

Before opening, please confirm:

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

How did you install the Amplify CLI?

npm install -g @aws-amplify/cli

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

v16.16.0

Amplify CLI Version

can't see anymore

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

Amplify Categories

Not applicable

Amplify Commands

push

Describe the bug

After installing the latest upgrade, my amplify doesn't work anymore.

$ node -v
v16.16.0
➜  Sites/raf/myapp  git:(master)
$ amplify -v
➜  Sites/raf/myapp  git:(master)
$ amplify push --forcePush --yes
➜  Sites/raf/myapp  git:(master)
$ amplify status
➜  Sites/raf/myapp  git:(master)

It just goes to the next line. Nothing happens at all.

Expected behavior

To work? :P

Reproduction steps

  1. I got a warning saying that there was a new version for amplify.
  2. I ran amplify upgrade. It asked me for root.
  3. so I ran sudo amplify upgrade
  4. It finished installing
  5. When I try amplify status or amplify push nothing happens

GraphQL schema(s)

# Put schemas below this line


Project Identifier

No response

Log output

# Put your logs below this line


Additional information

No response

rafaelfaria avatar Aug 09 '22 13:08 rafaelfaria

Hey @rafaelfaria :wave: thanks for raising this! To better understand the context of the issue I have a few follow-up questions:

I ran amplify upgrade. It asked me for root.

What did the messaging say when it prompted for root? Was the CLI or npm installed with sudo?

Is the CLI hanging and you are exiting the flow with ctrl+c before it responds, or is it simply not responding and returning the new line?

What version are you upgrading from?

josefaidt avatar Aug 09 '22 13:08 josefaidt

Closing due to inactivity

josefaidt avatar Aug 31 '22 19:08 josefaidt

Hi @josefaidt , I'm facing the same issue. None of the amplify commands run after the upgrade. It just returns a blank new line (doesn't hang or anything). The error messaging said this pkrishnu@147ddada7eb4 mapfundingcalculator % amplify upgrade Downloading latest Amplify CLI 0% [ ] 0.0 seconds left🛑 EACCES: permission denied, open '/Users/pkrishnu/.amplify/bin/amplify-pkg-macos' Error: EACCES: permission denied, open '/Users/pkrishnu/.amplify/bin/amplify-pkg-macos' pkrishnu@147ddada7eb4 mapfundingcalculator % sudo amplify upgrade Password: Downloading latest Amplify CLI 100% [========================================] 0.0 seconds left Successfully upgraded to Amplify CLI version 10.4.1!

krishnu9 avatar Nov 15 '22 18:11 krishnu9

Facing the same issue here after running sudo amplify upgrade

jackmandelkorn avatar Mar 22 '23 20:03 jackmandelkorn

Facing the same issue here after running sudo amplify upgrade

Same! :/

LachlanKI avatar Apr 24 '23 11:04 LachlanKI

same issue

AkshathaLaxmi avatar May 19 '23 10:05 AkshathaLaxmi

same issue

chrsle avatar Dec 11 '23 07:12 chrsle

same issue

exai-sukh avatar Dec 28 '23 21:12 exai-sukh

Hey folks :wave: please open a new bug report if you are experiencing this issue

josefaidt avatar Dec 30 '23 00:12 josefaidt

same issue!

thecloudslayer avatar Jan 10 '24 13:01 thecloudslayer

this can be solved with sudo chown -R $(whoami):$(id -gn) ~/.amplify

chrsle avatar Jan 23 '24 06:01 chrsle