Flexget / Flexget

The official FlexGet repository
http://www.flexget.com
MIT License
1.74k stars 473 forks source link

From_Transmission removal failing #2707

Closed specie77 closed 4 years ago

specie77 commented 4 years ago

Expected behaviour:

Remove old torrents from transmission.

Actual behaviour:

Flexget log shows critical error with Python error statements, torrent not removed from transmission.

Steps to reproduce:

flexget --test execute --tasks "Trans_Clean_Up" --dump

Config:

C:\Users\User>flexget execute --task "Trans_Clean_Up" --dump-config 2020-07-02 10:01:22 VERBOSE task_queue There are 1 tasks to execute. Shutdown will commence when they have completed. --- config from task: Trans_Clean_Up disable:

Log:

flexget.log

Attached and below:

(click to expand) ``` 2020-07-02 10:06:20 VERBOSE task_queue There are 1 tasks to execute. Shutdown will commence when they have completed. 2020-07-02 10:06:22 CRITICAL task Trans_Clean_Up BUG: Unhandled error in plugin from_transmission: [Errno 22] Invalid argument Traceback (most recent call last): File "c:\users\user\appdata\local\programs\python\python36\lib\threading.py", line 884, in _bootstrap self._bootstrap_inner() │ └ File "c:\users\user\appdata\local\programs\python\python36\lib\threading.py", line 916, in _bootstrap_inner self.run() │ └ File "c:\users\user\appdata\local\programs\python\python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) │ │ │ │ │ └ {} │ │ │ │ └ │ │ │ └ () │ │ └ │ └ > └ File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\flexget\task_queue.py", line 46, in run self.current_task.execute() │ │ └ │ └ File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\flexget\task.py", line 80, in wrapper return func(self, *args, **kw) │ │ │ └ {} │ │ └ () │ └ File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\flexget\task.py", line 710, in execute self._execute() │ └ File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\flexget\task.py", line 676, in _execute self.__run_task_phase(phase) │ └ 'input' └ File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\flexget\task.py", line 502, in __run_task_phase response = self.__run_plugin(plugin, phase, args) │ │ │ └ (, {'host': '****', 'port': ****, 'username': ... │ │ └ 'input' │ └ > File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\flexget\task.py", line 535, in __run_plugin result = method(*args, **kwargs) │ │ └ {} │ └ (, {'host': '****', 'port': ****, 'username': ... └ File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\flexget\event.py", line 22, in __call__ return self.func(*args, **kwargs) │ │ │ └ {} │ │ └ (, {'host': '****', 'port': ****, 'username': ... │ └ File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\flexget\plugins\clients\transmission.py", line 196, in on_task_input seed_ratio_ok, idle_limit_ok = self.check_seed_limits(torrent, session) │ │ │ │ └ │ │ │ └ │ │ └ │ └ └ True File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\flexget\plugins\clients\transmission.py", line 118, in check_seed_limits torrent.date_active + timedelta(minutes=session.idle_seeding_limit) │ │ │ └ │ │ └ │ └ File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\transmissionrpc\torrent.py", line 215, in date_active return datetime.datetime.fromtimestamp(self._fields['activityDate'].value) │ │ │ │ └ {'activityDate': Field(value=0, dirty=False), 'addedDate': Field(value=1591069664, dirty=False), 'bandwidthPriority': Field(v... │ │ │ └ │ │ └ │ └ OSError: [Errno 22] Invalid argument 2020-07-02 10:06:22 CRITICAL manager Trans_Clean_Up An unexpected crash has occurred. Writing crash report to C:\Users\user\flexget\crash_report.2020.07.02.100622455469.log. Please verify you are running the latest version of flexget by using "flexget -V" from CLI or by using version_checker plugin at http://flexget.com/wiki/Plugins/version_checker. You are currently using version 3.1.66 2020-07-02 10:06:22 WARNING task Trans_Clean_Up Aborting task (plugin: from_transmission) ```

Additional information:

specie77 commented 4 years ago

Migrated to new host, installed transmissionrpc, seems to have resolved the problem.