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

Deploy fails: code E401 "Incorrect or missing password" #570

Closed
joeflack4 opened this issue Sep 20, 2023 · 4 comments
Closed

Deploy fails: code E401 "Incorrect or missing password" #570

joeflack4 opened this issue Sep 20, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@joeflack4
Copy link
Member

Overview

Siggie went to deploy today, accidentally deploying from the develop branch. However, that gave us an early warning that this branch is currently undeployable.

Errors

The frontend dev GH action failed. See: log

Critical part of log

npm ERR! code E401
npm ERR! Incorrect or missing password.
npm ERR! If you were trying to login, change your password, create an
npm ERR! authentication token or enable two-factor authentication then
npm ERR! that means you likely typed your password in incorrectly.
npm ERR! Please try again, or recover your password at:
npm ERR!     https://www.npmjs.com/forgot
npm ERR! 
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR!     npm login

npm ERR! A complete log of this run can be found in: /github/home/.npm/_logs/2023-09-19T22_18_20_089Z-debug-0.log

Possible causes

I think this has something to do with the addition of "@termhub/sdk": "^0.1.0", to package.json.

Here's the diff(s): diffs.zip
This diff was made via git diff usage-stats develop.
The usage-stats branch consists of 1 small commit that was made after branching off of deployment-2023-09-07, which is a git tag for the last stable commit we deployed from.

Possible solutions

Assuming termhub/sdk is the issue:
a. Remove the TermHub SDK work from develop and work on it on a PR until we figure out how to fix the deploy
b. Fix it now
@Sigfried I'm thinking (a). You know this work better than I. Do you have any better understanding of how this is causing our GH action to fail? If so, can you communicate that to the infrastructure team to see if they can help us?

@joeflack4 joeflack4 added the bug Something isn't working label Sep 20, 2023
@joeflack4
Copy link
Member Author

Note per #568, I was able to successfully redeploy the last successful commit from Sept 7. And I even was able to add the "usage statistics" JS snippet on top of that and successfully redeploy (#569).

I then tested out to see if deploying from develop would fail again w/ the same message, and it did.

@Sigfried
Copy link
Collaborator

Good find. I think we need to add an environment variable secret. I'll see if I can figure out where to do that

@Sigfried
Copy link
Collaborator

I commented out the code causing the problem. It's not clear how to fix it yet. See #548

@joeflack4
Copy link
Member Author

I see the code commented out. You're thinking it'll let us deploy now? I was thinking more would be needed, but if that solves the deployment problem in the interim, that's good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 5. Done
Development

No branches or pull requests

2 participants