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

Seeing 500s from yarnpkg.com #3353

Closed
glasser opened this issue May 8, 2017 · 26 comments
Closed

Seeing 500s from yarnpkg.com #3353

glasser opened this issue May 8, 2017 · 26 comments

Comments

@glasser
Copy link

glasser commented May 8, 2017

I'm seeing sporadic errors like

error An unexpected error occurred: "https://registry.yarnpkg.com/react-apollo/-/react-apollo-0.7.1.tgz: Request failed \"500 Internal Server Error\"".

They are occurring at a high enough rate to prevent me from working or deploying.

Is there a status page somewhere for issues with registry.yarnpkg.com?

@SEAPUNK
Copy link

SEAPUNK commented May 8, 2017

Confirmed; our CI builds are failing because of this error.

error An unexpected error occurred: "https://registry.yarnpkg.com/@kadira/storybook-addons/-/storybook-addons-1.6.1.tgz: Request failed \"500 Internal Server Error\"".

@devony
Copy link

devony commented May 8, 2017

It also looks like this can corrupt packages that are concurrently being installed. On clean caches we saw these instances. If a later version of yarn resolves this, apologies:

20:50:24 WARNING:retry.api:local() encountered an error (return code 1) while executing 'yarn --no-progress --cache-folder /mnt/npm-caches/yarn/executor-7', retrying in 10 seconds...
20:50:34 [STATS_MARKER] starting yarn
20:50:34 yarn install v0.21.3
20:50:35 [1/4] Resolving packages...
20:50:35 [2/4] Fetching packages...
20:50:36 error An unexpected error occurred: "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.61.tgz: Request failed \"500 Internal Server Error\"".
20:50:36 info If you think this is a bug, please open a bug report with the information provided in "/mnt/jenkins-slave/workspace/mmcd-prod-ping-email/backend/yarn-error.log".
20:50:36 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
20:50:36 
20:50:36 Fatal error: local() encountered an error (return code 1) while executing 'yarn --no-progress --cache-folder /mnt/npm-caches/yarn/executor-7'
20:50:36 
20:50:36 Aborting.
20:50:36 [localhost] local: yarn --no-progress --cache-folder /mnt/npm-caches/yarn/executor-7
20:50:36 [localhost] local: git rev-parse HEAD
20:50:36 [STATS_MARKER] finished yarn
20:50:36 WARNING:retry.api:local() encountered an error (return code 1) while executing 'yarn --no-progress --cache-folder /mnt/npm-caches/yarn/executor-7', retrying in 20 seconds...
20:50:56 [STATS_MARKER] starting yarn
20:50:56 yarn install v0.21.3
20:50:57 [1/4] Resolving packages...
20:50:58 [2/4] Fetching packages...
20:51:00 error Error parsing JSON at "/mnt/npm-caches/yarn/executor-7/npm-once-1.3.3-b2e261557ce4c314ec8304f3fa82663e4297ca20/.yarn-metadata.json", "/mnt/npm-caches/yarn/executor-7/npm-once-1.3.3-b2e261557ce4c314ec8304f3fa82663e4297ca20/.yarn-metadata.json: Unexpected end of JSON input".
20:51:00 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
20:51:00 
20:51:00 Fatal error: local() encountered an error (return code 1) while executing 'yarn --no-progress --cache-folder /mnt/npm-caches/yarn/executor-7'
20:51:00 
20:51:00 Aborting.
20:51:00 [localhost] local: yarn --no-progress --cache-folder /mnt/npm-caches/yarn/executor-7
20:51:00 [localhost] local: git rev-parse HEAD
20:51:00 [STATS_MARKER] finished yarn

@glasser
Copy link
Author

glasser commented May 9, 2017

This seems to have cleared up, but it would really be great if there was a status page and a documented place to report outages.

@Daniel15
Copy link
Member

I'm considering setting up a status page using Cachet (https://cachethq.io/), but I'll need to see whether the rest of the team think it's a good idea.

Apart from that, there's an open GitHub issue around having some optional logging for request failures so we can see how often they happen. I suspect the numbers that CloudFlare give us in their reports aren't capturing all the failures, so having our own data would be useful to see how often this occurs.

You can either use the --registry flag or run yarn config set registry to set a different registry mirror, for example CloudFlare's one:

yarn config set registry https://registry.npmjs.cf/

@bestander
Copy link
Member

I agree with you @Daniel15

@blackholegalaxy
Copy link

Bug is still occuring.

@export-mike
Copy link

It seems to be happening right now.

yarn install v0.21.3
[1/4] Resolving packages...
⠁ [2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/markdown-it-emoji/-/markdown-it-emoji-1.3.0.tgz: Request failed "500 Internal Server Error"".
info If you think this is a bug, please open a bug report with the information provided in "/home/ubuntu/jerrick-media-magazine/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
yarn returned exit code 1
Action failed: yarn

this is via Circle CI. circleci.com

@export-mike
Copy link

Whats strange is I request https://registry.yarnpkg.com/markdown-it-emoji/-/markdown-it-emoji-1.3.0.tgz manually and it works fine

@bestander
Copy link
Member

Should be fixed via #2849, feel free to send a PR

@SEAPUNK
Copy link

SEAPUNK commented Jun 19, 2017

@bestander This will only partially fix this issue. The second half of the solution should be to implement a status page for the Yarn registry for the times it really starts having problems, and the 500s don't go away on next request (which is what was happening at the time the OP was posted).

@bestander
Copy link
Member

@SEAPUNK, that is a good idea, we already expose stats for the downloads per day https://stats.yarnpkg.com/.

According to the CDN logs we only have 100s of 500 responses a day out of 100s of millions, hopefully that fix should be good enough.
But we can take it one step further if the issue still affects people.

@glasser
Copy link
Author

glasser commented Jun 19, 2017

It is pretty easy to set up a status page with something like statuspage.io or status.io.

@export-mike
Copy link

As a work around use the npm registry with Yarn. https://registry.npmjs.org/

@Daniel15
Copy link
Member

it would really be great if there was a status page

I added a status page at https://status.yarnpkg.com/ that we can use to report any major issues.

@Vanuan
Copy link

Vanuan commented Jun 21, 2017

Happened approximately one hour (58-59 minutes) ago

error An unexpected error occurred: "https://registry.yarnpkg.com/@storybook/addon-links/-/addon-links-3.0.0.tgz: Request failed \"500 Internal Server Error\"".

@BYK
Copy link
Member

BYK commented Oct 30, 2017

This is no longer an issue so closing.

@BYK BYK closed this as completed Oct 30, 2017
@kylemh
Copy link

kylemh commented Jan 16, 2018

@BYK I'm still receiving the same issue, even from the same package as @Vanuan

It's happened 5 times in the past month.

screen shot 2018-01-15 at 7 11 08 pm

@vancouverwill
Copy link

vancouverwill commented May 16, 2018

@BYK seeing this multiple times today

image

@sortigoza
Copy link

Same issue here: error An unexpected error occurred: "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.7.0.tgz: Request failed \"500 Internal Server Error\"". :(

@OmgImAlexis
Copy link

Seeing this as well but we're also getting an issue about the signature a little further down the logs.

> Verifying integrity...
gpg: key 86E50310: public key "Yarn Packaging <yarn@dan.cx>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
gpg: Signature made Wed 23 May 2018 09:02:50 PM UTC using RSA key ID B6FF4DE3
gpg: BAD signature from "Yarn Packaging <yarn@dan.cx>"
> GPG signature for this Yarn release is invalid! This is BAD and may mean the release has been tampered with. It is strongly recommended that you report this to the Yarn developers.

@matt-blanchette
Copy link

Same issue as well: [ERROR] error An unexpected error occurred: "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz: Request failed \"500 Internal Server Error\"".

@justindra
Copy link

Yep, just started receiving this in our CI

 An unexpected error occurred: "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz: Request failed \"500 Internal Server Error\"".

@darrendahl
Copy link

Also receiving in our CI -
error An unexpected error occurred: "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz: Request failed \"500 Internal Server Error\""

@cice
Copy link

cice commented Aug 16, 2018

happening to us intermittently as well:
(at 2018-08-16 13:16:11 UTC)
error An unexpected error occurred: "https://registry.yarnpkg.com/async-each-series/-/async-each-series-1.1.0.tgz: Request failed \"500 Internal Server Error\"".

@veksen
Copy link

veksen commented Sep 5, 2018

This happens several times a day for us. On CircleCI. I assume it's some kind of rate limiting.

@tsuna
Copy link

tsuna commented Sep 6, 2018

We started seeing those in our CI system as soon as we switching to yarn as well. If it was rate limiting then I wouldn't expect a 500 response as those are for internal errors.

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

No branches or pull requests