jimrollenhagen / pywhatauto

IRC bot to auto-download torrents and more.
95 stars 27 forks source link

"Unknown filesystem as it seems" Error #23

Open delize opened 8 years ago

delize commented 8 years ago

Having just pulled down a copy of WHATauto.py today (3/9), pywhatauto mistakenly reports my drives as full/unknown filesystem only for automated downloads hitting a filter.

When downloading manually from command line through IRC, or through the "send-to-bot" script/button, it works as intended:

03/09-21:45:28 DEBUG Downloading ID: 617837, site: broadcasthenet, filter: False, location: False, network: <main.autoBOT instance at 0x7fdf2c087290>, target: #shuld, retries: 0, email: False, announce False, name False 03/09-21:45:29 INFO btn Torrent (id: 617837) successfully downloaded! Size 564.39 MB, retries: 0, filename: [HorribleSubs] Detective Conan - 811 [1080p].mkv.torrent to /home/rtorrent/pywhatauto/downloads/TV

Otherwise, when the automated download occurs, the below appears:

03/09-14:13:38 INFO btn (617837) >> Download starting from broadcasthenet 03/09-14:13:38 ERROR Unknown filesystem as it seems... 03/09-14:13:38 DEBUG Free HD space: 1.0 03/09-14:13:38 ERROR btn You have reached your free space limit. Torrent is being placed in an overflow folder. TO COME 03/09-14:13:38 DEBUG Downloading ID: 617837, site: broadcasthenet, filter: BTN_WEBRip_1080p_Scene, location: /home/rtorrent/pywhatauto/downloads/, network: False, target: False, retries: 0, email: False, announce Detective Conan | S25E08 | Episode | 2016 | MKV | H.264 | WEBRip | 1080p | No | Yes | 617837 | lhdlovebooh | Foreign - 17 | [HorribleSubs] Detective Conan - 811 [1080p], name False 03/09-14:13:44 INFO btn (617837) No Size check. 03/09-14:13:44 INFO btn Torrent (id: 617837) successfully downloaded! Size 564.39 MB, retries: 0, filename: [HorribleSubs] Detective Conan - 811 [1080p].mkv.torrent to /home/rtorrent/pywhatauto/downloads/

This obviously dumps the torrent file into the root folder, rather than the watch folder:

$ ls -l /home/rtorrent/pywhatauto/downloads/ total 108 -rw-rw-r-- 1 rtorrent rtorrent 17236 Mar 9 11:09 American.Dad.S13E07.1080p.WEB-DL.DD5.1.H.264-ViSUM.mkv.torrent drwxrwxr-x 2 rtorrent rtorrent 4096 Feb 11 22:05 Apps drwxrwxr-x 2 rtorrent rtorrent 4096 Feb 11 22:06 Books drwxrwxr-x 2 rtorrent rtorrent 4096 Mar 7 22:06 Film drwxrwxr-x 2 rtorrent rtorrent 4096 Mar 3 12:20 Games -rw-rw-r-- 1 rtorrent rtorrent 45623 Mar 9 14:13 [HorribleSubs] Detective Conan - 811 [1080p].mkv.torrent drwxrwxr-x 2 rtorrent rtorrent 4096 Mar 2 22:55 Music drwxrwxr-x 3 rtorrent rtorrent 20480 Mar 9 08:43 TV

Because this is happening with BTN most frequently, here is the credentials.conf entry:

[broadcasthenet] ;BTN has a wierd irckey system - you will need to identify to the bot once manually. nickowner=numbers@User.Guru.BroadcasThe.Net chanfilter=#btn-whatauto username=user password=[omit] botnick=user|pyWA nickservpass=[omit] watch=/home/rtorrent/pywhatauto/downloads/TV

Current disk space from df -h:

$sudo df -h Filesystem Size Used Avail Use% Mounted on /dev/sdd1 1.4T 205G 1.1T 16% /media/torr /dev/sdg1 220G 25G 185G 12% /home

And then finally the relevant setup.conf:

$ cat /home/rtorrent/pywhatauto/setup.conf ;WHATauto setup.conf [setup] torrentDir=/home/rtorrent/pywhatauto/downloads/ drive=/media/torr/downloads/ verbosity=debug log= 1 chatter= 0 delay=5 freePercent= 1

delize commented 8 years ago

Is there a way to completely gut and remove the "Freespace" section from pywhat without causing too much trouble?

ghost commented 7 years ago

I believe #54 fixes this. At least it did for me on Linux

lolgithub commented 4 years ago

For anyone finding this via google or issue search, the process to apply #54 which worked for me was :

1) go to the copy of WHATauto.py in that commit, "view file," click on "raw," get a URL like : https://raw.githubusercontent.com/jimrollenhagen/pywhatauto/b151a7a44ab8181c4d164b1434d62e744caf683d/WHATauto.py 2) wget or otherwise download that file and replace the stock WHATauto.py 3) modify setup.conf's [setup] section at the top, adding a line that says "hdcheck=60" in order to check for disk space once an hour