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

[Major outage] Quota limit for termux-packages is reached #4358

Closed
ghost opened this issue Sep 30, 2019 · 24 comments
Closed

[Major outage] Quota limit for termux-packages is reached #4358

ghost opened this issue Sep 30, 2019 · 24 comments

Comments

@ghost
Copy link

ghost commented Sep 30, 2019

What happened ?

We received more download requests than expected and hit our quota limit. Repository https://dl.bintray.com/termux/termux-packages-24 was suspended.

Current status: appears to be resolved

What to do ?

Either wait or try repo snapshot on IPFS (expect high latency or download timeout, it's p2p and seeded from my PC):

Gateway 0:

deb https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr/ stable main

Gateway 1:

deb https://cloudflare-ipfs.com/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr/ stable main

Gateway 2:

deb https://ipfs.eternum.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr/ stable main

Gateway 3:

deb https://hardbin.com/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr/ stable main

Don't forget to temporarily comment out the bintray link in your sources.list before using mirror. Note that links above will no longer be valid after fixing the issue.

Script for automatic mirror switching:

curl -o add-mirror.sh https://linx.li/add-mirror.sh
sh add-mirror.sh 0

it will comment out the termux-packages repository and put the selected mirror (0-3) to alternate sources.list config.

To remove changes applied with add-mirror.sh, do:

curl -o remove-mirror.sh https://linx.li/remove-mirror.sh
sh remove-mirror.sh
@ghost ghost pinned this issue Sep 30, 2019
@Merith-TK
Copy link

approximately how long do we need to wait?
because I just reinstalled termux (storage issues) and I don't have a single text editor installed

@ghost
Copy link
Author

ghost commented Oct 1, 2019

approximately how long do we need to wait?

One day, probably more.

@goodevilgenius
Copy link

Any way to increases the timeout when using ipfs? I keep getting:

Operation too slow. Less than 10 bytes/sec transferred the last 120 seconds

@RossComputerGuy
Copy link
Contributor

@landfillbaby It's too many requests causing the quota to cap out

@ParaDoxX08
Copy link

$ deb https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr/ stable main
No command 'deb' found, did you mean:
Command 'derb' from package 'icu-devtools'
Command 'dub' from package 'ldc'
$

@RossComputerGuy
Copy link
Contributor

@ParaDoxX08 It's not a command, that is a line to add into the apt sources file

@landfillbaby
Copy link
Member

landfillbaby commented Oct 1, 2019

mkdir -p $PREFIX/etc/apt/sources.list.d
echo 'deb https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr stable main' \
> $PREFIX/etc/apt/sources.list.d/temp_outage.list

is what i've done personally, apt update still has the error but works anyway

@karjok
Copy link

karjok commented Oct 1, 2019

I have this error. I will try to fixing it.

@karjok
Copy link

karjok commented Oct 1, 2019

Yeah,
deb https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr/ stable main
Work fine for me !

@ghost ghost deleted a comment from millersultani Oct 1, 2019
@ghost ghost deleted a comment from millersultani Oct 1, 2019
@ghost ghost deleted a comment from Merith-TK Oct 1, 2019
@ghost ghost deleted a comment from millersultani Oct 1, 2019
@ghost ghost deleted a comment from Merith-TK Oct 1, 2019
@ghost ghost deleted a comment from millersultani Oct 1, 2019
@ghost ghost deleted a comment from RossComputerGuy Oct 1, 2019
@ghost ghost deleted a comment from millersultani Oct 1, 2019
@ghost ghost deleted a comment from RossComputerGuy Oct 1, 2019
@ghost ghost deleted a comment from wirabae Oct 1, 2019
@ikhsanh
Copy link

ikhsanh commented Oct 1, 2019

Ign:1 https://dl.bintray.com/termux/termux-packages-24 stable InRelease
Hit:2 https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr stable InRelease
Ign:3 https://dl.bintray.com/grimler/game-packages-24 games InRelease
Ign:4 https://dl.bintray.com/grimler/science-packages-24 science InRelease
Err:5 https://dl.bintray.com/termux/termux-packages-24 stable Release
403 Forbidden
Get:6 https://dl.bintray.com/grimler/game-packages-24 games Release [5344 B]
Hit:6 https://dl.bintray.com/grimler/game-packages-24 games Release
Get:8 https://dl.bintray.com/grimler/science-packages-24 science Release [5348 B]
Hit:8 https://dl.bintray.com/grimler/science-packages-24 science Release
Reading package lists... Done
E: The repository 'https://dl.bintray.com/termux/termux-packages-24 stable Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
$

How to fix this? I have been add deb https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr/ stable main in termux/termux but not working. Plz help me

@yubrajbhoi
Copy link

@ikhsanh Try doing it like described in @landfillbaby comment. It worked for me.

@ghost ghost mentioned this issue Oct 1, 2019
@ikhsanh
Copy link

ikhsanh commented Oct 1, 2019

@yubrajbhoi
I tried it, but it doesn't work

@dragonmaus
Copy link

dragonmaus commented Oct 1, 2019

I get the following:

$ mkdir -p $PREFIX/etc/apt/sources.list.d
$ echo deb https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr/ stable main > $PREFIX/etc/apt/sources.list.d/temp_outage.list
$ pkg update
Hit:1 https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr stable InRelease
Ign:2 https://dl.bintray.com/termux/termux-packages-24 stable InRelease
Err:3 https://dl.bintray.com/termux/termux-packages-24 stable Release
  403  Forbidden
Reading package lists... Done
E: The repository 'https://dl.bintray.com/termux/termux-packages-24 stable Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

(I removed the games and science repos to reduce the output.)

@ghost
Copy link
Author

ghost commented Oct 1, 2019

Comment out the line containing https://dl.bintray.com/termux/termux-packages-24 in $PREFIX/etc/apt/sources.list.

@ghost
Copy link
Author

ghost commented Oct 1, 2019

You don't have problem with ipfs link

Hit:1 https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr stable InRelease

@ghost
Copy link
Author

ghost commented Oct 1, 2019

Or you can just ignore that error without commenting anything. Index will be fetched anyway.

@ghost
Copy link
Author

ghost commented Oct 1, 2019

See comment #4358 (comment).
There 2 variants, appending line directly to $PREFIX/etc/apt/sources.list or creating new sources file in $PREFIX/etc/apt/sources.list.d/

@ghost
Copy link
Author

ghost commented Oct 1, 2019

@amida141 Since you now have Hit:1 https://ipfs.io/ipfs/QmVAkuhfFfLBeTKCYYXWBvb3WxgZqDvd8qd7cvQjyrSvhr stable InRelease - it works. You can ignore error about termux-packages.

@yubrajbhoi
Copy link

@amida141 Your IPFS link seems to be working so just comment out the line containing https://dl.bintray.com/termux/termux-packages-24 in $PREFIX/etc/apt/sources.list.

@dragonmaus
Copy link

dragonmaus commented Oct 1, 2019

@xeffyr
The error prevents apt/pkg from continuing. Commenting out the default repo is necessary.

@ghost
Copy link
Author

ghost commented Oct 1, 2019

It may prevent pkg from continuing but with just apt update then apt install <some packages> works.

I added script for automating this:

curl -o add-mirror.sh https://linx.li/add-mirror.sh
sh add-mirror.sh 0

run without arguments to see available mirror shortcuts.
Later will add another script for undoing changes.

@ghost
Copy link
Author

ghost commented Oct 1, 2019

Seems termux-packages is now restored and working.
Mirror link can be removed. Those who used script/commands from #4358 (comment) or #4358 (comment) can use

curl -o remove-mirror.sh https://linx.li/remove-mirror.sh
sh remove-mirror.sh

@ghost ghost closed this as completed Oct 1, 2019
@ghost ghost unpinned this issue Oct 2, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Oct 2, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants