rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.05k stars 412 forks source link

Event 'event.download.erased' failed: Bad return code. #1051

Open th0ma7 opened 3 years ago

th0ma7 commented 3 years ago

While updating SynoCommunity rutorrent package (https://github.com/SynoCommunity/spksrc/pull/4234) we encountered the following issue when uploading a .torrent file:

  1. rutorrent says that torrent was added to rTorrent successfully
  2. the torrent is stays in STOP mode
  3. in rtorrent the screen session shows the following message: ( 8:37:43) Download event action failed: Bad return code. with the following status:
    debian-edu-10.6.0-amd64-netinst.iso
    [CLOSED]     0.0 /  419.0 MB Rate:   0.0 /   0.0 KB Uploaded:     0.0 MB                 [   R: 0.00]
    Inactive:
  4. Starting the torrent manually works alright and successfully complete.
    debian-edu-10.6.0-amd64-netinst.iso
            done      419.0 MB Rate:   0.0 /   0.0 KB Uploaded:     0.0 MB                 [   R: 0.00]
pyroscope commented 3 years ago
th0ma7 commented 3 years ago

I've set the log to debug:

log.open_file = "rtorrent.log", "/usr/local/rutorrent/var/rtorrent.log"
log.add_output = "debug", "rtorrent.log"

Looking at the github wiki I haven't found documentation on what your require exactly. Pointer to that would be appreciated.

In the meantime using debug I got the following when adding a new .torrent:

2260 1605205448 I B505E0F54DCD18E0BC2FF291A0C55212BB031684->tracker_list: added tracker (group:0 url:http://bttracker.debian.org:6969/announce)
2261 1605205448 I B505E0F54DCD18E0BC2FF291A0C55212BB031684->tracker_list: added tracker (group:1 url:dht://)
2262 1605205448 I Upload unchoked slots adjust; currently:1 adjust:0
2263 1605205448 I Upload unchoked slots adjust; currently:1 adjust:0
2264 1605205448 I Download unchoked slots adjust; currently:0 adjust:0
2265 1605205448 I Download unchoked slots adjust; currently:0 adjust:0
2266 1605205448 I B505E0F54DCD18E0BC2FF291A0C55212BB031684->download_list: Closing download directly.
2267 1605205448 I B505E0F54DCD18E0BC2FF291A0C55212BB031684->download_list: Inserting download.
2268 1605205448 I B505E0F54DCD18E0BC2FF291A0C55212BB031684->download_list: Resuming download: flags:0.
2269 1605205448 I B505E0F54DCD18E0BC2FF291A0C55212BB031684->download_list: Pausing download: flags:0.
pyroscope commented 3 years ago

log.execute

th0ma7 commented 3 years ago

Added the following: log.execute = "/usr/local/rutorrent/var/rtorrent-execute.log"

which resulted into:

---
sh -c /bin/id -u ; /bin/id -G ; echo ~ 
---
Captured output:
235120
225005 65538
/usr/local/rutorrent/var

--- Success ---

---
sh /volume1/web/rutorrent/php/test.sh python /volume1/web/rutorrent/share/settings/922042969 /usr/local/rutorrent/env/bin/python3
---

--- Success ---

---
sh /volume1/web/rutorrent/php/test.sh php /volume1/web/rutorrent/share/settings/654592411 /bin/php
---

--- Success ---

---
sh /volume1/web/rutorrent/php/test.sh pgrep /volume1/web/rutorrent/share/settings/1668570003 /usr/local/rutorrent/bin/pgrep
---

--- Success ---

---
sh /volume1/web/rutorrent/php/test.sh mediainfo /volume1/web/rutorrent/share/settings/2013180787 /usr/local/rutorrent/bin/mediainfo
---

--- Success ---

---
sh /volume1/web/rutorrent/php/test.sh curl /volume1/web/rutorrent/share/settings/407130240 /usr/local/rutorrent/bin/curl
---

--- Success ---

---
sh /volume1/web/rutorrent/php/test.sh ffmpeg /volume1/web/rutorrent/share/settings/528989557
---

--- Success ---

---
sh /volume1/web/rutorrent/php/test.sh sox /volume1/web/rutorrent/share/settings/119197462 /usr/local/rutorrent/bin/sox
---

--- Success ---

---
sh /volume1/web/rutorrent/php/test.sh unzip /volume1/web/rutorrent/share/settings/1313925993
---

--- Success ---

---
sh /volume1/web/rutorrent/php/test.sh unrar /volume1/web/rutorrent/share/settings/464479042
---

--- Success ---

---
sh -c '/bin/php' '/volume1/web/rutorrent/plugins/erasedata/update.php' '' &
---

--- Success ---
/bin/php: /usr/local/rutorrent/lib/libz.so.1: no version information available (required by /bin/php)

---
sh -c '/bin/php' '/volume1/web/rutorrent/plugins/erasedata/update.php' '' &
---

--- Success ---
/bin/php: /usr/local/rutorrent/lib/libz.so.1: no version information available (required by /bin/php)

---
sh -c '/bin/php' '/volume1/web/rutorrent/plugins/erasedata/update.php' '' &
---

--- Success ---
/bin/php: /usr/local/rutorrent/lib/libz.so.1: no version information available (required by /bin/php)