Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
Last active February 5, 2021 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasG77/59bf0bdef945d99a6245c47ce5a11add to your computer and use it in GitHub Desktop.
Save ThomasG77/59bf0bdef945d99a6245c47ce5a11add to your computer and use it in GitHub Desktop.
Test torrent command line from URL using lftp and aria2c
# Work
aria2c http://files.opendatarchives.fr/professionnels.ign.fr/bdtopo/BDTOPO_3-0_2020-12-15/torrents/BDTOPO_3-0_TOUSTHEMES_SQL_WGS84G_FRA_2020-12-15.7z.001.torrent
## Output: work but complains about an error
# 02/05 18:50:23 [NOTICE] Downloading 1 item(s)
# 02/05 18:50:24 [NOTICE] Téléchargement terminé: /home/thomasg/BDTOPO_3-0_TOUSTHEMES_SQL_WGS84G_FRA_2020-12-15.7z.001.torrent
# 02/05 18:50:24 [NOTICE] DHT IPv4 : En écoute sur le port UDP 6886
# 02/05 18:50:24 [NOTICE] IPv4 BitTorrent: listening on TCP port 6958
# 02/05 18:50:24 [NOTICE] IPv6 BitTorrent: listening on TCP port 6958
# 02/05 18:50:24 [ERROR] CUID#27 - Download aborted. URI=http://tracker.computel.fr:80/announce?info_hash=%E0%2B%92%E8j%5D%EA%BDjG%18Uy%EA%8C3%DC%17%26%8C&peer_id=A2-1-33-1-%DC%F4%F6%F3G%B5%7C%3Ci%AB&uploaded=0&downloaded=0&left=4294967296&compact=1&key=%F6%F3G%B5%7C%3Ci%AB&numwant=50&no_peer_id=1&port=6958&event=started&supportcrypto=1
# Exception: [AbstractCommand.cc:351] errorCode=22 URI=http://tracker.computel.fr:80/announce?info_hash=%E0%2B%92%E8j%5D%EA%BDjG%18Uy%EA%8C3%DC%17%26%8C&peer_id=A2-1-33-1-%DC%F4%F6%F3G%B5%7C%3Ci%AB&uploaded=0&downloaded=0&left=4294967296&compact=1&key=%F6%F3G%B5%7C%3Ci%AB&numwant=50&no_peer_id=1&port=6958&event=started&supportcrypto=1
# -> [HttpSkipResponseCommand.cc:239] errorCode=22 La réponse a échoué. Status=502
# *** Download Progress Summary as of Fri Feb 5 18:51:24 2021 ***
# ===========================================================================================================================================
# [#dd7255 1.4GiB/4.0GiB(36%) CN:2 SD:0 DL:26MiB ETA:1m37s]
# FILE: /home/thomasg/BDTOPO_3-0_TOUSTHEMES_SQL_WGS84G_FRA_2020-12-15.7z.001
# -------------------------------------------------------------------------------------------------------------------------------------------
#
# [#dd7255 2.4GiB/4.0GiB(62%) CN:2 SD:0 DL:22MiB ETA:1m8s]
# Fails
lftp -c "torrent http://files.opendatarchives.fr/professionnels.ign.fr/bdtopo/BDTOPO_3-0_2020-12-15/torrents/BDTOPO_3-0_TOUSTHEMES_SQL_WGS84G_FRA_2020-12-15.7z.001.torrent"
## Output: waiting on below where status remains to 0...
# ...EMES_SQL_WGS84G_FRA_2020-12-15.7z.001: dn:0 up:0 complete:0/16384 (0%)
@cquest
Copy link

cquest commented Feb 5, 2021

aria2c indique une erreur sur un tracker, mais pour moi ça download bien le fichier (par HTTP vu que personne ne seed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment