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

403 error page from CloudFlare on https://registry.yarnpkg.com #5885

Closed
schneidmaster opened this issue May 25, 2018 · 85 comments
Closed

403 error page from CloudFlare on https://registry.yarnpkg.com #5885

schneidmaster opened this issue May 25, 2018 · 85 comments
Assignees
Labels

Comments

@schneidmaster
Copy link

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

yarn add <anything> returns 403, which makes sense because https://registry.yarnpkg.com shows an error from CloudFlare:

screenshot 2018-05-25 18 35 33

This article suggests it's caused by a DNS misconfiguration?

What is the expected behavior?

Package successfully installs.

Please mention your node.js, yarn and operating system version.

node 8.9, yarn 1.6, macOS 10.13.4 (though I doubt any of that is relevant 🙂)

@ghost ghost assigned kaylie-alexa May 25, 2018
@ghost ghost added the triaged label May 25, 2018
@melroy89
Copy link

You are not alone! Do not panic!

@BirknerAlex
Copy link

I got the same issue on my builds.

@melroy89
Copy link

OK.. I'm panicking..

@sandersky
Copy link

It is worth noting the issue happens when trying to visit the npm registry and thus is probably not yarn's fault. http://registry.npmjs.com/

@urish
Copy link

urish commented May 25, 2018

Same here on Win 10 with Yarn 1.7.0.

Interestingly, I'm also getting the error for the npm registry page, as @sandersky noted, but npm install works perfectly whereas yarn fails for the very same project (and I do not have all the dependencies locally cached),

@melroy89
Copy link

melroy89 commented May 25, 2018

@sandersky No, it's Cloudflare fault. Sorry, it's npm fault they make changes in the registry which is pushed to Cloudflare, impacting yarn. https://status.npmjs.org/incidents/t3j62lxb7jg3

@schneidmaster
Copy link
Author

@sandersky Interesting -- though npm is having a different issue (Error 1016 compared to 1014 for yarn). 1016 sounds like a more garden-variety DNS error (Cloudflare simply can't resolve the DNS hostname) while 1014 is an error about a DNS record pointing at a domain in a different Cloudflare account. I wonder if npm's issue is causing yarn's, or if Cloudflare threw the switch on something that broke both at the same time.

@BirknerAlex
Copy link

Maybe Cloudflare broke something, never deploy changes on a friday. 🍺

@ktalebian
Copy link

npm install works, but yarn install fails.

@schneidmaster
Copy link
Author

@sandersky Oh, npm's registry lives at https://registry.npmjs.org (not .com). It seems to be working fine, which explains why everyone can npm install successfully.

@ktalebian
Copy link

https://status.yarnpkg.com/ is green; hopefully somebody from Yarn will get on top of this.

@arunesh90
Copy link

arunesh90 commented May 25, 2018

According to https://status.npmjs.org/ npm is making changes to their registry. My guess is that one of those changes was moving to Cloudflare. And as Cloudflare doesn't allow CNAMEs that point to other domains that also make use of Cloudflare, I'm guessing that that's what happened here.

Possible solutions for this problem are

@bradennapier
Copy link

bradennapier commented May 25, 2018

yarn ded :( - now my colleagues say "see - npm is the best option" and I lose all my hard work in making everyone use it :-P

heh - anyway - im sure you guys will figure it out

@jzila
Copy link

jzila commented May 25, 2018

+1 on both dev machines and AWS CI machines.

@jakwuh
Copy link

jakwuh commented May 25, 2018

The fun stuff is that I just switched to yarn because of npm issues (e.g. npm/npm#20434)
And 10 mins later yarn registry is failing. Lol 😄

@ktalebian
Copy link

ktalebian commented May 25, 2018

@arunesh90 how do you make yarn use npmjs registry?

@schneidmaster
Copy link
Author

npm confirmed that they are currently moving to CloudFlare (tweet). So it sounds like @arunesh90's explanation is the right one.

@melroy89
Copy link

@jakwuh let's go back to PHP.. 🤣

@francocorreasosa
Copy link

Getting 403s too 😭

@ktalebian
Copy link

To quote @alexbrazier never deploy on a Friday (or ever. You can't break anything if you don't change anything).

@fathyb
Copy link

fathyb commented May 25, 2018

As a temporary workaround you can config yarn to use the npm registry :

yarn config set registry "https://registry.npmjs.org"

Edit: @jaredLunde noted that it doesn't work with yarn install, use yarn install --no-lockfile

@bradennapier
Copy link

bradennapier commented May 25, 2018

@fathyb MY HERO! <3

@AviVahl
Copy link

AviVahl commented May 25, 2018

https://status.yarnpkg.com/ should probably reflect registry is down.

@melroy89
Copy link

@AviVahl npm was indeed testing if status.yarnpkg.com is working, whenever the registry is down. And it's not 🙃

@BirknerAlex
Copy link

It seems the yarn team has fixed the issue and added a http redirect to https://skimdb.npmjs.com/?

@ktalebian
Copy link

@BirknerAlex my installations are still failing.

@BirknerAlex
Copy link

Strange. If I open up the url I get redirected to the npm url on my workstation. But on my server it's still failing. Maybe a DNS caching issue.

@transitive-bullshit
Copy link

If this was a DNS change, it'll likely take a variable amount of time to propagate for different peeps.

@ktalebian
Copy link

I still cannot install

@MarshallOfSound
Copy link

I'm now just getting a whole bunch of

error sending request or no backends responded in time. Error: no backends responded in time

@eGust
Copy link

eGust commented May 26, 2018

> yarn add lodash --verbose
yarn add v1.7.0
...
verbose 0.266 current time: 2018-05-26T00:59:34.218Z
[1/4] 🔍  Resolving packages...
verbose 0.721 Performing "GET" request to "https://registry.yarnpkg.com/lodash".
verbose 15.821 Request "https://registry.yarnpkg.com/lodash" finished with status code 503.
verbose 15.823 Error: Received malformed response from registry for undefined. The registry may be down.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:243:66)
    at new MessageError (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:272:123)
    at Function.<anonymous> (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:52175:15)
    at Generator.next (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:98:30)
    at /usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:116:14
    at new Promise (<anonymous>)
    at new F (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:23451:28)
    at Function.<anonymous> (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:95:12)
    at Function.findVersionInRegistryResponse (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:52217:19)
error Received malformed response from registry for undefined. The registry may be down.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
> curl https://registry.yarnpkg.com/lodash
error sending request or no backends responded in time. Error: no backends responded in time

@haocse
Copy link

haocse commented May 26, 2018

Setting registry "https://registry.npmjs.org" seems work better, but still got status code 503 sometimes?

@tayler-king
Copy link

tayler-king commented May 26, 2018

Also not working for GitHub. I assume yarn just directs all queries to NPM to resolve packages.

Edit: Seems as though it might be back up now?

@leonardfactory
Copy link

leonardfactory commented May 26, 2018

On development machine (macOS), flushing dns with sudo killall -HUP mDNSResponder did the trick. Not sure if this, or yarn fixed my issue right while typing it 😄

@afuno
Copy link

afuno commented May 26, 2018

Now everything works.

@rheilgm
Copy link

rheilgm commented May 26, 2018

seems good now!

@germmand
Copy link

Everything is working flawlessly now. Yass! 🍺 🍺

@transitive-bullshit
Copy link

Agreed with @leonardfactory, flushing my dns cache resolved the issue locally.

@ceejbot
Copy link

ceejbot commented May 26, 2018

We've worked with Cloudflare & the yarn team to set up a temporary workaround-- it's now a cname to yarn.npmjs.org, which we set up outside of Cloudflare. We'll have to come up with another solution soon, however, but this unblocks you all.

@haocse
Copy link

haocse commented May 26, 2018

3 hours panicking and now it works haha 😂
Thanks.

@Kangaroux
Copy link

Thanks for being so responsive.

@kevryan2
Copy link

@ceejbot does that mean for now that everyone who utilizes the registry will either need to work directly with npm to fix their cname or just continue to be down until further notice?

@Daniel15
Copy link
Member

OK I'm going to close this out now that it seems to be fully fixed. Happy Friday everyone (at least in US timezones). Go out and enjoy your weekend :)

@arcanis
Copy link
Member

arcanis commented May 26, 2018

Glad to see everything working again! 😌

Thanks to Cloudflare and the npm team for being reactive about this issue! Seeing cooperation in practice feels great 🙂

@schneidmaster
Copy link
Author

@kevryan2 No, yarn is back up as of 30-45 minutes ago. @ceejbot was describing the temporary workaround that they implemented to fix yarn.

@schneidmaster
Copy link
Author

cheers to @arcanis @Daniel15 @ceejbot et al for the responsiveness! have a great weekend 🙂

@coltonmercurio
Copy link

Thanks, all working now. Appreciate the effort

@shashidhargm
Copy link

Still same issue!

@SupremeTechnopriest
Copy link

SupremeTechnopriest commented May 29, 2018

Error: Received malformed response from registry for undefined. The registry may be down.

As of a few minutes ago. Was working fine all afternoon.

@elixiao
Copy link

elixiao commented May 30, 2018

yarn add @angular/material
yarn add v1.7.0
[1/4] 🔍  Resolving packages...
error Received malformed response from registry for undefined. The registry may be down.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

@rdsedmundo
Copy link

Not sure if it's related, but I'm receiving 429 - Too Many Requests error while running the yarn install command.

+ yarn install --pure-lockfile --prefer-offline --cache-folder yarn-cache
yarn install v1.6.0
(node:33) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/json5/-/json5-0.4.0.tgz: Request failed \"429 Too Many Requests\"".
info If you think this is a bug, please open a bug report with the information provided in "/opt/atlassian/pipelines/agent/build/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

@arcanis
Copy link
Member

arcanis commented May 30, 2018

I think those issues are coming directly from the npm registry, unfortunately 🙁

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

No branches or pull requests