Termux-packages: [Major outage] Quota limit for termux-packages is reached

Created on 1 Oct 2019  路  22Comments  路  Source: termux/termux-packages

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

Most helpful comment

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

All 22 comments

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

approximately how long do we need to wait?

One day, probably more.

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

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

$ 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'
$

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

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

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

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

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

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

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.)

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

You don't have problem with ipfs link

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

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

See comment https://github.com/termux/termux-packages/issues/4358#issuecomment-536875603.
There 2 variants, appending line directly to $PREFIX/etc/apt/sources.list or creating new sources file in $PREFIX/etc/apt/sources.list.d/

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

@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.

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

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.

Seems termux-packages is now restored and working.
Mirror link can be removed. Those who used script/commands from https://github.com/termux/termux-packages/issues/4358#issuecomment-536875603 or https://github.com/termux/termux-packages/issues/4358#issuecomment-537015509 can use

curl -o remove-mirror.sh https://linx.li/remove-mirror.sh
sh remove-mirror.sh
Was this page helpful?
0 / 5 - 0 ratings

Related issues

thurask picture thurask  路  3Comments

tigran123 picture tigran123  路  3Comments

Zuccace picture Zuccace  路  3Comments

neitsab picture neitsab  路  3Comments

Cyb3rD3m0n picture Cyb3rD3m0n  路  3Comments