package_control icon indicating copy to clipboard operation
package_control copied to clipboard

Fallback for channel_v3.json

Open dogancelik opened this issue 10 years ago • 9 comments

Website is down, so we can't reach https://packagecontrol.io/channel_v3.json The default cache_length is 300 seconds, so it gets emptied quickly. A fallback URL for JSON files would be nice or a CDN (CloudFlare?) that only serves JSON data under different URLs, something like:

  • https://**cdn.**packagecontrol.io/channel_v3.json
  • https://**backup.**packagecontrol.io/channel_v3.json

dogancelik avatar Nov 01 '15 19:11 dogancelik

+1

jakebian avatar Jan 01 '16 16:01 jakebian

+1 I'm using this one for the time being: https://web.archive.org/web/20150905194312/https://packagecontrol.io/channel_v3.json

thotypous avatar Jan 01 '16 23:01 thotypous

Times out: https://packagecontrol.io/channel_v3.json

Fails instantly: https://backup.packagecontrol.io/channel_v3.json https://cdn.packagecontrol.io/channel_v3.json

"works" https://web.archive.org/web/20150905194312/https://packagecontrol.io/channel_v3.json

Thanks thotypous

Gubith avatar Jan 02 '16 04:01 Gubith

I would recommend against using 3-month-old package metadata.

wbond avatar Jan 02 '16 05:01 wbond

BTW, this would be a great time to consider a $2.50 a month donation to PC. If I could get a good number of users doing so, I could set up a more fault tolerant architecture.

wbond avatar Jan 02 '16 05:01 wbond

I would recommend against using 3-month-old package metadata.

Of course I enabled it as only during the time Linode was offline, for an emergency plugin install ;)

What about adding a subdomain cached by CloudFlare pointing to the same Linode box which hosts the main domain? Should be fairly easy to setup and provide some level of fallback for free.

thotypous avatar Jan 02 '16 23:01 thotypous

PS. In case you’re wondering how to donate to @wbond for a more robust architecture, here’s the link to the page on the web site:

https://packagecontrol.io/say_thanks

(Might be an idea to make that more prevalent and to add it to the readme on the repo also. No shame in asking.) :)

aral avatar Jan 03 '16 16:01 aral

I have created a mirror in my server. but only http

(@wbond removed URL since it was insecure and the channel is back up)

whirlwind110 avatar Jan 04 '16 09:01 whirlwind110

For users coming here after the recent outage, please see #1057 for more information.

wbond avatar Jan 04 '16 12:01 wbond