Page 1 of 5

SOLVED: Unable to find preset tv for feed

Posted: October 21st, 2011, 6:38 pm
by jgni
Hi!

When I run

Code: Select all

root@ubuntu:/var/lib/deluge# sudo -H -u deluge flexget --test -v
I get the following:

Code: Select all

2011-10-21 19:32 INFO     manager                       Test mode, creating a copy from database ...
2011-10-21 19:32 INFO     manager                       Test database created
2011-10-21 19:32 CRITICAL preset                        Unable to find preset tv for feed EZRSS
2011-10-21 19:32 INFO     feed                          Aborting feed (plugin: preset)
2011-10-21 19:32 CRITICAL preset                        Unable to find preset tv for feed CSI Miami
2011-10-21 19:32 INFO     feed                          Aborting feed (plugin: preset)
2011-10-21 19:32 CRITICAL preset                        Unable to find preset tv for feed Big Bang Theory
2011-10-21 19:32 INFO     feed                          Aborting feed (plugin: preset)
2011-10-21 19:32 CRITICAL preset                        Unable to find preset tv for feed CSI New York
2011-10-21 19:32 INFO     feed                          Aborting feed (plugin: preset)
2011-10-21 19:32 INFO     manager                       Removed test database


Why :?: :!:

Any help will be greatly appreciated :!:

I have the following:

Code: Select all

a70109@ubuntu:/$ sudo find / -name config.yml
/var/lib/deluge/.flexget/config.yml

Re: Unable to find preset tv for feed

Posted: October 21st, 2011, 9:44 pm
by Ian
Hi there and welcome to the forums. Flexget can cause a bit of head scratching until you get used to it, can't it.

Please upload the contents of your config.yml in your next post please. I suspect there's a label missing or something similar.

Thanks. :thumbup:

Ian.

Re: Unable to find preset tv for feed

Posted: October 21st, 2011, 11:30 pm
by jgni
Ian wrote:...I suspect there's a label missing or something similar.


I found the error, but thank you anyway.

Now when I run

Code: Select all

a70109@ubuntu:~/torrents$ flexget --check
I get this:

Code: Select all

a70109@ubuntu:~/torrents$ flexget --check
2011-10-22 00:25 ERROR    main                          [Errno 13] Permission denied: '/home/a70109/.flexget/.config-lock'
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r2437-py2.6.egg/flexget/__init__.py", line 27, in main
    manager = Manager(options)
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r2437-py2.6.egg/flexget/manager.py", line 76, in __init__
    self.initialize()
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r2437-py2.6.egg/flexget/manager.py", line 100, in initialize
    self.acquire_lock()
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r2437-py2.6.egg/flexget/manager.py", line 399, in acquire_lock
    f = file(self.lockfile, 'w')
IOError: [Errno 13] Permission denied: '/home/a70109/.flexget/.config-lock'
2011-10-22 00:25 ERROR    main                          [Errno 13] Permission denied: '/home/a70109/.flexget/.config-lock'
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r2437-py2.6.egg/flexget/__init__.py", line 27, in main
    manager = Manager(options)
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r2437-py2.6.egg/flexget/manager.py", line 76, in __init__
    self.initialize()
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r2437-py2.6.egg/flexget/manager.py", line 100, in initialize
    self.acquire_lock()
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r2437-py2.6.egg/flexget/manager.py", line 399, in acquire_lock
    f = file(self.lockfile, 'w')
IOError: [Errno 13] Permission denied: '/home/a70109/.flexget/.config-lock'


I manually moved config.yml to /home/a70109/.flexget but that's definitely wrong! Something is off here?
It's recided here /var/lib/deluge/.flexget/config.yml

Re: Unable to find preset tv for feed

Posted: October 21st, 2011, 11:35 pm
by Ian
Hi,

If you've followed my instructions to install and configure flexget then you'll need to run it as the flexget user. So:

Code: Select all

sudo -H -u deluge flexget --check


Ian.

Re: Unable to find preset tv for feed

Posted: October 21st, 2011, 11:37 pm
by jgni
Ian wrote:Hi,

If you've followed my instructions to install and configure flexget then you'll need to run it as the flexget user. So:

Code: Select all

sudo -H -u deluge flexget --check


Ian.


That worked!

Re: Unable to find preset tv for feed

Posted: October 21st, 2011, 11:40 pm
by Ian
Cool :thumbup:

Re: Unable to find preset tv for feed

Posted: October 22nd, 2011, 12:04 am
by jgni
So now I have it in my cron as it says in your tut.
So as I have understood, the next time a show comes up, it will automatically download through Deluge?

One other thing. Do you know of a way to test the email-settings? Some how force it to an email test!

Re: Unable to find preset tv for feed

Posted: October 22nd, 2011, 9:57 am
by Ian
jgni wrote:So now I have it in my cron as it says in your tut.
So as I have understood, the next time a show comes up, it will automatically download through Deluge?


Correct.

jgni wrote:One other thing. Do you know of a way to test the email-settings? Some how force it to an email test!


Good question. Apart from forcing it to start downloading something I do not know of another way of making it send an email. If you've taken the values from your /etc/ssmtp/ssmtp.conf file then it should work OK.

Ian.

Re: Unable to find preset tv for feed

Posted: October 22nd, 2011, 9:05 pm
by jgni
Ian wrote:Good question. Apart from forcing it to start downloading something I do not know of another way of making it send an email. If you've taken the values from your /etc/ssmtp/ssmtp.conf file then it should work OK.


I'll see if I can test. Do you know of any shows which would be good for putting in for testing? A show which airs daily f.ex.

Re: Unable to find preset tv for feed

Posted: October 23rd, 2011, 10:38 am
by Ian
Hi,

See line 47 of the script on this page: http://www.havetheknowhow.com/Install-t ... -file.html
This line pulls down all available episodes from a particular TV Show rather than the latest one or two episodes. You could use this to check whether your email settings are correct.

That string is created by saving the results of a show search on eztv as an RSS feed.

Ian.