This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[Help] Install FlexGet into a Jail

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
max_d
NewUser
NewUser
Posts: 2
Joined: 11 Sep 2014 11:25
Status: Offline

[Help] Install FlexGet into a Jail

Post by max_d »

I hope that this topic will change its name to [HOWTO] ...

Why is not [HOWTO] read at the end of the topic.
I could not get FlexGet work correctly in Nas4Free and hope to help the community.

Description:
FlexGet is a multipurpose automation tool for content like torrents, nzbs, podcasts, comics, series, movies, etc. It can use different kinds of sources like RSS-feeds, html pages, csv files, search engines and there are even plugins for sites that do not provide any kind of useful feeds.

There are numerous plugins that allow utilizing FlexGet in interesting ways and more are being added continuously.

FlexGet is extremely useful in conjunction with applications which have watch directory support or provide interface for external utilities like FlexGet.
For creating and managing jails I use TheBrig - [HOWTO] Install TheBrig - one Jail manager for N4F

1. Enter the Jail

Code: Select all

jexec <number_of_jail> sh
2. Install required and optional packages

Code: Select all

pkg install -y net/py-urllib3 databases/py-sqlite3 devel/py-pip
3. Install FlexGet

Code: Select all

pip install --no-cache-dir flexget
4. Install the package required for transmission control

Code: Select all

pip install transmissionrpc
The result of the installation

Code: Select all

# flexget -V
1.2.289
You are on the latest release.
Congratulations, you can now go directly to configuring FlexGet!

For more information about the configuration read on the official wiki project
Although the installation went smoothly, there is a problem, not giving FlexGet use to the fullest.

The problem is that established in jail (or full nas4free) FlexGet can not add torrent jobs in the transmission or download a torrent file. But fleksget on ubuntu 14.10 or Windows 7 performs the task without problems.

Example of my config.yml

Code: Select all

tasks:
  lostfilm:
    verify_ssl_certificates: no
    headers:
      cookie: "uid=*******;pass=******************************;usess=********************"
    rss:
      url: 'http://www.lostfilm.tv/rssdd.xml'
      ascii: yes
    urlrewrite:
      newlost:
        regexp: 'https://lostfilm.tv/download.php\?(?P<details>.*)'
        format: 'https://www.lostfilm.tv/download.php\?(?g<details>)'
    download:
      path: '/mnt/data/download'
#    regexp:
#      accept:
#         - '12 Monkeys'
#      reject:
#        - '720p'
#        - 'x264'
#        - 'XviD'
#        - 'MP4'
#        - 'Complete'
#        - '1080p'
As a result FlexGet must parse RRS feed and download (or start a new job transmission) necessary files. RRS feed is parsed correctly, but the error occurs when you try to download a file or run a job on the transmission.

crash_report.2015.03.04.083021365817.log:

Code: Select all

2015-03-04 08:30 DEBUG    manager                       Figuring out config load paths
2015-03-04 08:30 DEBUG    manager                       Found config: /root/.config/flexget/config.yml
2015-03-04 08:30 DEBUG    manager                       Config file /root/.config/flexget/config.yml selected
2015-03-04 08:30 VERBOSE  task_queue                    There are 1 tasks to execute. Shutdown will commence when they have completed.
2015-03-04 08:30 VERBOSE  details       lostfilm        Produced 15 entries.
2015-03-04 08:30 VERBOSE  task          lostfilm        ACCEPTED: `(Hawaii Five-0).  (Kuka\'awale) [1080p]. (S05E17)` by regexp plugin$
2015-03-04 08:30 VERBOSE  task          lostfilm        ACCEPTED: `(The Walking Dead).  (Remember) [1080p]. (S05E12)` by regexp plugin$
2015-03-04 08:30 VERBOSE  task          lostfilm        ACCEPTED: `(The Musketeers).   (A Marriage of Inconvenience) [1080p]. (S02E07)$
2015-03-04 08:30 VERBOSE  task          lostfilm        ACCEPTED: `(Bitten).  (Dead Meat) [1080p]. (S02E04)` by regexp plugin because $
2015-03-04 08:30 VERBOSE  task          lostfilm        ACCEPTED: `12  (12 Monkeys).  (The Keys) [1080p]. (S01E07)` by regexp plugin b$
2015-03-04 08:30 INFO     download      lostfilm        Downloading: (Hawaii Five-0).  (Kuka\'awale) [1080p]. (S05E17)
2015-03-04 08:30 CRITICAL task          lostfilm        BUG: Unhandled error in plugin download: __str__ returned non-string (type Err$
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/flexget/task.py", line 435, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/flexget/event.py", line 22, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 90, in on_task_download
    tmp_path=tmp)
  File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 175, in get_temp_files
    self.get_temp_file(task, entry, require_path, handle_magnets, fail_html, tmp_path)
  File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 128, in get_temp_file
    error = self.process_entry(task, entry, url, tmp_path)
  File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 195, in process_entry
    self.download_entry(task, entry, url, tmp_path)
  File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 232, in download_entry
    response = task.requests.get(url, auth=auth, raise_status=False)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 473, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/flexget/utils/requests.py", line 146, in request
    result = requests.Session.request(self, method, url, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/usr/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
I will appreciate any help or advice to solve this problem.

Post Reply

Return to “Jails”