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

ERROR: Download of https://dl.bintray.com/lovell/sharp/... failed #841

Closed
smithb1994 opened this issue Jun 12, 2017 · 16 comments
Closed

ERROR: Download of https://dl.bintray.com/lovell/sharp/... failed #841

smithb1994 opened this issue Jun 12, 2017 · 16 comments
Milestone

Comments

@smithb1994
Copy link

It appears the link to the binary for sharp is having issues on npm install.
I'm getting this error:
ERROR: Download of https://dl.bintray.com/lovell/sharp/libvips-8.5.5-linux-x64.tar.gz failed: Response code 500 (Internal Server Error)

It appears the link https://dl.bintray.com/lovell/sharp/libvips-8.5.5-linux-x64.tar.gz is having issues.

@smithb1994
Copy link
Author

Never mind, the error must have been temporary with the website. It's working fine now.

@bmathews
Copy link

Happens pretty frequently lately. 😬

@lovell
Copy link
Owner

lovell commented Jun 16, 2017

Please check http://status.bintray.com/ for any relevant announcements and direct feedback to https://twitter.com/bintray

@lovell
Copy link
Owner

lovell commented Jun 16, 2017

@lovell lovell changed the title ERROR: Download on npm install ERROR: Download of https://dl.bintray.com/lovell/sharp/libvips-8.5.5-linux-x64.tar.gz failed Jun 16, 2017
@lovell lovell changed the title ERROR: Download of https://dl.bintray.com/lovell/sharp/libvips-8.5.5-linux-x64.tar.gz failed ERROR: Download of https://dl.bintray.com/lovell/sharp/... failed Jun 16, 2017
@lovell
Copy link
Owner

lovell commented Jun 16, 2017

@jbaruch I've been getting a lot of negative feedback about Bintray availability recently. Are you able to help/comment?

http://status.bintray.com/incidents/lp493rrr4xqm claims an hour of "degraded download speeds" today but messages, comments and issues I've seen, when added to a collapse in download stats, suggest this has been ongoing since around 07:30 UTC, with problems reaching a peak around 14:00 UTC today and lasting for about 5 hours.

I'm thinking of switching to Github Releases for binary distribution... are you able to tempt/convince me not to?

@lovell
Copy link
Owner

lovell commented Jun 16, 2017

@develar
Copy link

develar commented Jun 18, 2017

@lovell Please consider to use Github releases instead of unreliable Bintray. e.g. electron-builder migrated to Github and now users are happy (last month Bintray returns or 404, or 500 error). Or releases to both and fallback to GitHub :)

@aberezkin
Copy link

It's better to do something with this issue asap. I can't push my project in production because of it and I think I'm not the only one.

@lovell
Copy link
Owner

lovell commented Jun 20, 2017

With ~6k downloads/day, it looks like we're hitting Bintray's 1TB/month limit.

As a workaround for deployments, you can either (a) globally install libvips first, or (b) create a node_modules/sharp/packaging directory, place the relevant libvips-*.tar.gz file in it and run npm rebuild to use it instead of attempting a download.

@aberezkin
Copy link

aberezkin commented Jun 20, 2017

I use Heroku for production and I believe there is no way to install libvips using any of these workarounds. Is there some another way?

Anyway, thank you for your help.

@lovell
Copy link
Owner

lovell commented Jun 20, 2017

@aberezkin https://github.com/alex88/heroku-buildpack-vips or one of its more recently updated forks may help.

@jms
Copy link

jms commented Jun 20, 2017

looks like Bintray is no reliable today. Github could be a good alternative

> [email protected] install /Users/jenkins/tests/node_modules/sharp
> node-gyp rebuild

ERROR: Download of https://dl.bintray.com/lovell/sharp/libvips-8.4.2-darwin-x64.tar.gz 
failed: Response code 500 (Internal Server Error)

@lovell
Copy link
Owner

lovell commented Jun 20, 2017

Commit 502ae78 will allow the base URL for the Bintray-hosted binary dependencies to be changed via the SHARP_DIST_BASE_URL environment variable. This will be in v0.18.2 onwards.

For example:

SHARP_DIST_BASE_URL="https://hostname/path/" npm install sharp

...should attempt to download https://hostname/path/libvips-8.5.5-linux-x64.tar.gz on Linux instead of using Bintray. This will at least allow for self-hosting of the binary dependencies whilst I work out Github releases (or similar).

@lovell
Copy link
Owner

lovell commented Jun 20, 2017

Bintray are reporting more problems today - see http://status.bintray.com/incidents/v4ghm1s1xrp9 - in my experience these errors occur well before and after the reported time window. 😿

@lovell
Copy link
Owner

lovell commented Jun 20, 2017

Created #851 for the move to Github Releases.

lovell added a commit that referenced this issue Jul 1, 2017
@lovell
Copy link
Owner

lovell commented Jul 1, 2017

v0.18.2 now available with support for SHARP_DIST_BASE_URL. Let's use #851 to track support for Github Releases.

@lovell lovell closed this as completed Jul 1, 2017
Repository owner locked and limited conversation to collaborators Jul 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants