Setup of FlexGet
Setup of FlexGet
Hi
I've been trying to setup FlexGet to automatically download my favorite programs using the following config.yml
Basically, it's one I found on the web and using it for testing purposes.
The config.yml and the system's reply are attached.
I have deluge setup with deluge/deluge user/pw, and added deluge to the "yoram" group
to grant it file creation permissions (is it the right way) to "Libs" and "TV series" directories
Yoram
yoram@CAROLINE:~$ sudo -u deluge vim /var/lib/deluge/.flexget/config.yml
series:
settings:
HDTV:
exact: yes
set:
content_filename: "%(series_name)s - S%(series_season)02dE%(series_episode)02d"
path: "/var/storage/libs/incomplete"
movedone: "/mnt/storage/libs/TV series/%(series_name)s/Season %(series_season)s/"
HDTV:
- Glee
- South Park
- Stargate Universe
- Supernatural
- Modern Family
- Primeval
- Robot Chicken
- Futurama
- The Simpsons
- House
feeds:
EZRSS:
rss: http://www.ezrss.it/feed/
preset: TV
yoram@CAROLINE:~$ sudo -H -u deluge flexget
2011-02-28 23:27 INFO feed EZRSS Produced 30 entries.
2011-02-28 23:27 INFO feed EZRSS Accepted: 0 (Rejected: 1 Undecided: 29 Failed: 0)
yoram@CAROLINE:~$
I've been trying to setup FlexGet to automatically download my favorite programs using the following config.yml
Basically, it's one I found on the web and using it for testing purposes.
The config.yml and the system's reply are attached.
I have deluge setup with deluge/deluge user/pw, and added deluge to the "yoram" group
to grant it file creation permissions (is it the right way) to "Libs" and "TV series" directories
Yoram
yoram@CAROLINE:~$ sudo -u deluge vim /var/lib/deluge/.flexget/config.yml
series:
settings:
HDTV:
exact: yes
set:
content_filename: "%(series_name)s - S%(series_season)02dE%(series_episode)02d"
path: "/var/storage/libs/incomplete"
movedone: "/mnt/storage/libs/TV series/%(series_name)s/Season %(series_season)s/"
HDTV:
- Glee
- South Park
- Stargate Universe
- Supernatural
- Modern Family
- Primeval
- Robot Chicken
- Futurama
- The Simpsons
- House
feeds:
EZRSS:
rss: http://www.ezrss.it/feed/
preset: TV
yoram@CAROLINE:~$ sudo -H -u deluge flexget
2011-02-28 23:27 INFO feed EZRSS Produced 30 entries.
2011-02-28 23:27 INFO feed EZRSS Accepted: 0 (Rejected: 1 Undecided: 29 Failed: 0)
yoram@CAROLINE:~$
- The_Matrix
- Member
- Posts: 18
- Joined: February 14th, 2011, 4:47 pm
Re: Setup of FlexGet
Hi Yoram,
With flexget the indentation of the config file is crucial. Your screendump shows everything as being in column 1 which I'm sure is not the case in reality.
So, to kick-start getting everything sorted please issue the following command and send us the output in your next post:
Ta.
With flexget the indentation of the config file is crucial. Your screendump shows everything as being in column 1 which I'm sure is not the case in reality.
So, to kick-start getting everything sorted please issue the following command and send us the output in your next post:
Code: Select all
sudo -H -u deluge flexget --test -v
Ta.
Re: Setup of FlexGet
Hi The_Matrix
You are absolutely right. The YML is indented. Somehow it got flattened on the copy/past
following are the results of the command posted. I never got the prompt back. Seems that it was stuck ^q or ^c did not help either.
However acess to deluge from the browser at Servername:8112 is OK and I could access it with deluge:delude
Thanks, Yoram
yoram@CAROLINE:~$ sudo -H -u deluge flexget --test -v
[sudo] password for yoram:
Sorry, try again.
[sudo] password for yoram:
Sorry, try again.
[sudo] password for yoram:
2011-03-02 20:53 INFO manager Test mode, creating a copy from database ...
2011-03-02 20:53 INFO manager Test database created
2011-03-02 20:53 INFO deluge Using deluge 1.2 api
2011-03-02 20:53 INFO feed EZRSS Produced 30 entries.
+ filter series Accepted House 7x14 [720P - HDTV - DIMENSION] (only choice)
2011-03-02 20:53 INFO feed EZRSS Accepted: 1 (Rejected: 0 Undecided: 29 Failed: 0)
2011-03-02 20:53 INFO download EZRSS Would download: House 7x14 [720P - HDTV - DIMENSION]
2011-03-02 20:53 INFO deluge EZRSS Connecting to daemon at localhost:58846..
2011-03-02 20:53 INFO deluge EZRSS Connected to daemon at localhost:58846..
2011-03-02 20:53 ERROR deluge EZRSS RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: daemon.login(deluge, deluge)
--------------------------------------------------------------------------------
File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 259, in dispatch
ret = component.get("AuthManager").authorize(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/deluge/core/authmanager.py", line 87, in authorize
raise BadLoginError("Username does not exist")
BadLoginError: Username does not exist
--------------------------------------------------------------------------------
2011-03-02 20:53 INFO deluge EZRSS Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
2011-03-02 20:53 CRITICAL deluge EZRSS Could not connect to deluge daemon
2011-03-02 20:53 INFO feed EZRSS Aborting feed (plugin: deluge)
2011-03-02 20:53 INFO manager Removed test database
You are absolutely right. The YML is indented. Somehow it got flattened on the copy/past
following are the results of the command posted. I never got the prompt back. Seems that it was stuck ^q or ^c did not help either.
However acess to deluge from the browser at Servername:8112 is OK and I could access it with deluge:delude
Thanks, Yoram
yoram@CAROLINE:~$ sudo -H -u deluge flexget --test -v
[sudo] password for yoram:
Sorry, try again.
[sudo] password for yoram:
Sorry, try again.
[sudo] password for yoram:
2011-03-02 20:53 INFO manager Test mode, creating a copy from database ...
2011-03-02 20:53 INFO manager Test database created
2011-03-02 20:53 INFO deluge Using deluge 1.2 api
2011-03-02 20:53 INFO feed EZRSS Produced 30 entries.
+ filter series Accepted House 7x14 [720P - HDTV - DIMENSION] (only choice)
2011-03-02 20:53 INFO feed EZRSS Accepted: 1 (Rejected: 0 Undecided: 29 Failed: 0)
2011-03-02 20:53 INFO download EZRSS Would download: House 7x14 [720P - HDTV - DIMENSION]
2011-03-02 20:53 INFO deluge EZRSS Connecting to daemon at localhost:58846..
2011-03-02 20:53 INFO deluge EZRSS Connected to daemon at localhost:58846..
2011-03-02 20:53 ERROR deluge EZRSS RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: daemon.login(deluge, deluge)
--------------------------------------------------------------------------------
File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 259, in dispatch
ret = component.get("AuthManager").authorize(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/deluge/core/authmanager.py", line 87, in authorize
raise BadLoginError("Username does not exist")
BadLoginError: Username does not exist
--------------------------------------------------------------------------------
2011-03-02 20:53 INFO deluge EZRSS Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
2011-03-02 20:53 CRITICAL deluge EZRSS Could not connect to deluge daemon
2011-03-02 20:53 INFO feed EZRSS Aborting feed (plugin: deluge)
2011-03-02 20:53 INFO manager Removed test database
- The_Matrix
- Member
- Posts: 18
- Joined: February 14th, 2011, 4:47 pm
Re: Setup of FlexGet
Hi Yoram,
Just curious but did you follow this Flexget guide at all?
Looks like you missed out this step:
Would that be so? Does it help?
Please let me know
Just curious but did you follow this Flexget guide at all?
Looks like you missed out this step:
Code: Select all
sudo -u deluge vim /var/lib/deluge/auth
This will open a file called auth which lives in the /var/lib/deluge folder.
There is already one line in this file but we need to insert an extra line. So press the [Insert] key once (to go into "edit" mode) and insert a new blank line. Next type or paste the following string into this new blank line:Code: Select all
deluge:deluge
Now press the [Esc] key once and type the following:Code: Select all
:wq
This should save your changes and bring you back to the command line. If you make a mistake editing the file then issue :q! instead of :wq to abort your changes
Would that be so? Does it help?
Please let me know
Re: Setup of FlexGet
yes I did . . . .
yoram@CAROLINE:~$ sudo -u deluge vim /var/lib/deluge/auth
[sudo] password for yoram:
deluge:deluge
~
~
~
~
It seems that my inserted deluge:deluge is in the second line after a blank line.
There was no other line before that
(tried to remove that blank one no success)
yoram
yoram@CAROLINE:~$ sudo -u deluge vim /var/lib/deluge/auth
[sudo] password for yoram:
deluge:deluge
~
~
~
~
It seems that my inserted deluge:deluge is in the second line after a blank line.
There was no other line before that
(tried to remove that blank one no success)
yoram
- The_Matrix
- Member
- Posts: 18
- Joined: February 14th, 2011, 4:47 pm
Re: Setup of FlexGet
Add the following lines to your deluge config file:
deluge:
user: deluge
pass: deluge
It needs to be indented to the same level as the "preset: TV" line
deluge:
user: deluge
pass: deluge
It needs to be indented to the same level as the "preset: TV" line
Re: Setup of FlexGet
Hi
I'm running in circles . . .
I have rechecked. There is deluge:deluge in the auth file. there are the deluge entries in the YML file.
First line in the auth is blank (???)
When invoking "sudo -H -u deluge flexget --test -v"
I still get :
this is the YML
I'm running in circles . . .
I have rechecked. There is deluge:deluge in the auth file. there are the deluge entries in the YML file.
First line in the auth is blank (???)
When invoking "sudo -H -u deluge flexget --test -v"
I still get :
yoram@CAROLINE:~$ sudo -H -u deluge flexget --test -v
2011-03-03 16:26 INFO manager Test mode, creating a copy from database ...
2011-03-03 16:26 INFO manager Test database created
2011-03-03 16:26 INFO deluge Using deluge 1.2 api
2011-03-03 16:26 INFO backlog EZRSS Added 14 entries from backlog
2011-03-03 16:26 INFO feed EZRSS Produced 44 entries.
+ filter seen Rejected Modern Family 2x17 [HDTV - LOL]
2011-03-03 16:26 INFO feed EZRSS Accepted: 0 (Rejected: 1 Undecided: 43 Failed: 0)
2011-03-03 16:26 INFO deluge EZRSS Connecting to daemon at localhost:58846..
2011-03-03 16:26 INFO deluge EZRSS Connected to daemon at localhost:58846..
2011-03-03 16:26 ERROR deluge EZRSS RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: daemon.login(deluge, deluge)
--------------------------------------------------------------------------------
File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 259, in dispatch
ret = component.get("AuthManager").authorize(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/deluge/core/authmanager.py", line 87, in authorize
raise BadLoginError("Username does not exist")
BadLoginError: Username does not exist
--------------------------------------------------------------------------------
2011-03-03 16:26 INFO deluge EZRSS Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
2011-03-03 16:26 CRITICAL deluge EZRSS Could not connect to deluge daemon
2011-03-03 16:26 INFO feed EZRSS Aborting feed (plugin: deluge)
2011-03-03 16:27 INFO manager Removed test database
this is the YML
Code: Select all
yoram@CAROLINE:~$ sudo -u deluge vim /var/lib/deluge/.flexget/config.yml
presets:
TV:
series:
settings:
HDTV:
exact: yes
set:
content_filename: "%(series_name)s - S%(series_season)02dE%(series_episode)02d"
path: "/var/storage/libs/incomplete"
movedone: "/mnt/storage/libs/TV series/%(series_name)s/Season %(series_season)s/"
HDTV:
- Glee
- South Park
- Stargate Universe
- Supernatural
- Modern Family
- Primeval
- Robot Chicken
- Futurama
- The Simpsons
- House
deluge:
user: deluge
pass: deluge
feeds:
EZRSS:
rss: http://www.ezrss.it/feed/
preset: TV
~
~
- The_Matrix
- Member
- Posts: 18
- Joined: February 14th, 2011, 4:47 pm
Re: Setup of FlexGet
Yoram,
OK, please check you do not have more than one auth file on your server:
Check the output and then type the following to come out of sudo
Whilst you're at it, please also attach your Deluge config files (called /etc/default/deluge-daemon & /etc/init.d/deluge-daemon in the havetheknowhow.com guide)
OK, please check you do not have more than one auth file on your server:
Code: Select all
sudo su
Code: Select all
cd /
Code: Select all
find -name auth
Check the output and then type the following to come out of sudo
Code: Select all
exit
Whilst you're at it, please also attach your Deluge config files (called /etc/default/deluge-daemon & /etc/init.d/deluge-daemon in the havetheknowhow.com guide)
Re: Setup of FlexGet
I found some . . . I assume that the one under /yoram is a leftover from first installation under user yoram
gave the files .txt extension cause it wouldn't upload otherwise (windows)
I found somewhere in the deluge userguide/authentication that a localclient entry is required in the auth file
Is it true for the deamon operation as well or only for local-ui only?
Thanks so much for your help
Yoram
root@CAROLINE:/# find -name auth
./var/lib/pam/auth
./var/lib/deluge/auth
./var/lib/deluge/.config/deluge/auth
./usr/share/doc/samba-doc/examples/auth
./usr/lib/dovecot/modules/auth
./home/yoram/.config/deluge/auth
root@CAROLINE:/#
gave the files .txt extension cause it wouldn't upload otherwise (windows)
I found somewhere in the deluge userguide/authentication that a localclient entry is required in the auth file
Is it true for the deamon operation as well or only for local-ui only?
Thanks so much for your help
Yoram
- Attachments
-
- etc-init-d-deluge-deamon.txt
- (4.25 KiB) Downloaded 264 times
-
- etc-default-deluge-deamon.txt
- (179 Bytes) Downloaded 257 times
- The_Matrix
- Member
- Posts: 18
- Joined: February 14th, 2011, 4:47 pm
Re: Setup of FlexGet
Thanks for this.
I'm a bit rusty on the exact details of where it looks for the auth file but try adding the "deluge:deluge" line to the ./home/yoram/.config/deluge/auth file and try again
I'm a bit rusty on the exact details of where it looks for the auth file but try adding the "deluge:deluge" line to the ./home/yoram/.config/deluge/auth file and try again