arakasi72 / rtinst

seedbox installation script for Ubuntu and Debian systems
MIT License
1.22k stars 259 forks source link

timeout settings in check_url function causing "Some of your Debian mirrors are down, try again later" #621

Open eXhumer opened 1 year ago

eXhumer commented 1 year ago

I keep on getting the "Some of your Debian mirrors are down, try again later", but this is not true. I can access the URLs normally with wget -S --spider $url.

exhumer@EXHUMER-PI3BP:~ $ sudo rtinst
Debian GNU/Linux 11 (bullseye)

Checking the web sites we will need are accessible
Checking Debian mirrors
http://deb.debian.org/debian/: FAIL
http://security.debian.org/debian-security: FAIL
http://deb.debian.org/debian/: FAIL

Checking major 3rd party components
Rtorrent: FAIL
xmlrpc-c: FAIL
RuTorrent: FAIL
Autodl-irssi: FAIL

Some of your Debian mirrors are down, try again later

The real reason for the FAILs are due to the -T 3 (3 second timeout) option of wget command in rtinst.check_url and rtupdate.check_url. Removing -T 3 fixes the problem for me.

exhumer@EXHUMER-PI3BP:~ $ sudo rtinst
Debian GNU/Linux 11 (bullseye)

Checking the web sites we will need are accessible
Checking Debian mirrors
http://deb.debian.org/debian/: OK
http://security.debian.org/debian-security: OK
http://deb.debian.org/debian/: OK

Checking major 3rd party components
Rtorrent: OK
xmlrpc-c: OK
RuTorrent: OK
Autodl-irssi: OK

Will it be possible to provide some sort of option to disable the timeout while using rtinst script?

blixten85 commented 11 months ago

I keep on getting the "Some of your Debian mirrors are down, try again later", but this is not true. I can access the URLs normally with wget -S --spider $url.

exhumer@EXHUMER-PI3BP:~ $ sudo rtinst
Debian GNU/Linux 11 (bullseye)

Checking the web sites we will need are accessible
Checking Debian mirrors
http://deb.debian.org/debian/: FAIL
http://security.debian.org/debian-security: FAIL
http://deb.debian.org/debian/: FAIL

Checking major 3rd party components
Rtorrent: FAIL
xmlrpc-c: FAIL
RuTorrent: FAIL
Autodl-irssi: FAIL

Some of your Debian mirrors are down, try again later

The real reason for the FAILs are due to the -T 3 (3 second timeout) option of wget command in rtinst.check_url and rtupdate.check_url. Removing -T 3 fixes the problem for me.

exhumer@EXHUMER-PI3BP:~ $ sudo rtinst
Debian GNU/Linux 11 (bullseye)

Checking the web sites we will need are accessible
Checking Debian mirrors
http://deb.debian.org/debian/: OK
http://security.debian.org/debian-security: OK
http://deb.debian.org/debian/: OK

Checking major 3rd party components
Rtorrent: OK
xmlrpc-c: OK
RuTorrent: OK
Autodl-irssi: OK

Will it be possible to provide some sort of option to disable the timeout while using rtinst script?

https://swizzin.ltd/