Project

General

Profile

grabber does not show up in configuration (internal grabber)

Added by Tom Underscore about 11 years ago

I just installed a xmltv grabber on my synology dsj212, but I cant get it to show up in the EPG configuration of tvheadend.
The grabber runs fine from command-line, the xml is valid.

I also checked the following:

The name starts with
tv_grab_

I can successfully run
tv_grab_de_tvmovie_clickfinder --description

and
tv_grab_de_tvmovie_clickfinder --capabilities

the executable is in /usr/bin, but tvheadend does not find it.

Unfortunately, the Module row of the web configuration interface only gives me Disabled as an option. I tried clicking XMLTV under External Interfaces - but no success.

the user that is running the tvheadend process is tvheadend, and I tried grabbing with that user from command line, which was successful. Nevertheless, I think it is a permission issue... any ideas?


Replies (23)

RE: grabber does not show up in configuration (internal grabber) - Added by Tom Underscore about 11 years ago

After digging a little, I found out that the grabber is not configured for the tvheadend user. Unfortunately, I cannot login as the tvheadend user as I do not know the default password. Does anyone know the default password for the tvheadend user?

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

Hello
I have the same problem with not showing EPG Grabber module. I have only DISABLED option... I have installed other grabber xmltv.

My tvheadend is start on Steve Smith. What is the password to this user ? Default password.

I login to GUI on user admin with my create password.

Please help me.

RE: grabber does not show up in configuration (internal grabber) - Added by Prof Yaffle about 11 years ago

Can you not su to the tvheadend user? Or change its password, anyway - IIRC, you log into a Synology box as admin or as root, so you have full control.

Or can you chmod the grabber to +x for other?

Or chown it to tvheadend, or chgrp it to user if that's the right group for the tvheadend process?

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

I used to login to the gui TVHEADEND as ADMIN which was created poczas SPK installation package for Synology.
Admin user has all permissions as I can with the GUI to configure tuners, channels, etc.

But I only have internal grabber DISABLED option and there is no other.

In the directory / usr / bin files:
tv_find_grabbers
tv_grabb_file

permission to 0755 and is owned by toor. This data shows me the program WinSCP when connected SSH to Synology.

What do you mean I do not understand ... Can you explain further?

Or chown it to tvheadend, or chgrp it to user if that's the right group for the tvheadend process?

On my Synology TVHEADEND processes running on the user "tvheadend"

RE: grabber does not show up in configuration (internal grabber) - Added by Prof Yaffle about 11 years ago

I was guessing at permissions... chown would move the ownership of the file from whatever it is (e.g. root) to tvheadend, giving the tvheadend user more rights over the file. chgrp similarly, but this time for all members of the same group. As it happens, if you've a permission of 755 (rwxr-xr-x) then all users can execute this script already.

I'll continue guessing for you, since I don't have tvheadend on a Synology box to look myself!

  • Are all grabbers files 0755? Is the directory readable to tvheadend (it should be, it's a system directory)?
  • Is /usr/bin the right place, or should it be /usr/local/bin? (should make no difference at all, though)
  • Have you restarted tvheadend since you installed the grabber?
  • Do you need to run tv_find_grabbers to register any new grabbers with XMLTV, or otherwise tell it what's there?

This post may be relevant as well: http://forum.xbmc.org/showthread.php?tid=166207&page=2

The last post in that trail suggests that the path to bash needs to be edited in the first line of your grabber file.

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

•Are all grabbers files 0755? Is the directory readable to tvheadend (it should be, it's a system directory)?

I only have my file internal grabber

•Is /usr/bin the right place, or should it be /usr/local/bin? (should make no difference at all, though)

I copy to /usr/local/bin the file tv_find_grabbers and tv_grab_file

and tvheadend aftre restart still not see internal grabber

•Have you restarted tvheadend since you installed the grabber?

Yes
•Do you need to run tv_find_grabbers to register any new grabbers with XMLTV, or otherwise tell it what's there?

DS213> /usr/bin/tv_find_grabbers
/volume1/@appstore/epguide/epguide-1.8.0-Alpha1/tv_grab_pl_epguide|Poland (epguide using teleman.pl)
DS213>

I changed in file grabber line from #!/bin/bash => #!/opt/bin/bash and nothing. Aftrer changed i restart tvheadend.

I changed chown
DS213> pwd
/usr/bin
DS213> chown tvheadend:root /usr/bin/tv_grab_file
DS213> chown tvheadend:root /usr/bin/tv_find_grabbers

and as the same in /usr/local/bin

Aftrer that restart tvheadend and still nothing... :(

RE: grabber does not show up in configuration (internal grabber) - Added by Prof Yaffle about 11 years ago

Now check all the permissions and ownership of the tv_grab_pl_epguide file and the ..../epguide-1.8.0-Alpha1 directory, please, and check the bash path in that as well (as well as checking - "which bash" or "ls /opt/bin/bash" - that the path is correct).

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

Catalog /volume1/@appstore/epguide/epguide-1.8.0-Alpha1 has owner and group ROOT

Do I have to change the owner on TVHEADEND? And how ?

How i can do this ?
check the bash path in that as well (as well as checking - "which bash" or "ls /opt/bin/bash" - that the path is correct

Sorry i dont know as well LINUX and a little English :(

RE: grabber does not show up in configuration (internal grabber) - Added by Prof Yaffle about 11 years ago

lepszy niż mój polski :-)

Type these and post the output:

ls -la /usr/bin/tv*

ls -la /volume1/@appstore/epguide/epguide-1.8.0-Alpha1

head /volume1/@appstore/epguide/epguide-1.8.0-Alpha1/tv_grab_pl*

(I need to disappear for a few hours now, though, sorry - later...)

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

DS213> ls -la /usr/bin/tv*
-rwxr-xr-x 1 tvheaden root 109 Oct 19 12:44 /usr/bin/tv_find_grabbers
-rwxr-xr-x 1 tvheaden root 1088 Oct 19 13:13 /usr/bin/tv_grab_file
DS213>

DS213> ls la /volume1/@appstore/epguide/epguide-1.8.0-Alpha1
drwxr-xr-x 7 root root 4096 Oct 14 22:20 .
drwxrwxrwx 4 root root 4096 Oct 13 21:37 ..
-rw-rw-r-
1 1000 1000 322 Apr 14 2013 AUTHORS
rw-rw-r- 1 1000 1000 2932 Sep 30 21:56 CHANGES
rw-rw-r- 1 1000 1000 17992 Jan 5 2013 LICENSE
rw-rw-r- 1 1000 1000 58 Jan 5 2013 MANIFEST.in
rw-rw-r- 1 1000 1000 2133 Sep 30 21:56 README
rw-rw-r- 1 1000 1000 46 Apr 14 2013 TODO
drwxrwxr-x 2 1000 1000 4096 Oct 13 21:37 bin
drwxrwxr-x 4 1000 1000 4096 Oct 14 21:23 epguide
drwxrwxr-x 2 1000 1000 4096 Oct 13 21:37 epguide.egg-info
rwxrwxr-x 1 1000 1000 434 Oct 13 19:54 epguide_run
-rw-rw-r-
1 1000 1000 1467 Oct 13 20:33 setup.py
drwxrwxr-x 5 1000 1000 4096 Oct 13 21:37 test
rw-r--r- 1 root root 0 Oct 14 22:20 tv_grab_file_epguide
-rwxrwxr-x 1 1000 1000 130 Oct 14 22:12 tv_grab_pl_epguide
drwxrwxr-x 2 1000 1000 4096 Oct 12 21:28 tv_grab_pl_epguide.ini
DS213>

DS213> head /volume1/@appstore/epguide/epguide-1.8.0-Alpha1/tv_grab_pl*
> /volume1/@appstore/epguide/epguide-1.8.0-Alpha1/tv_grab_pl_epguide <
#!/usr/bin/python

from epguide.tv_grab_pl_epguide import RunTvGrabPlEpguide

if name '__main__':
RunTvGrabPlEpguide()
> /volume1/@appstore/epguide/epguide-1.8.0-Alpha1/tv_grab_pl_epguide.ini <==
head: /volume1/@appstore/epguide/epguide-1.8.0-Alpha1/tv_grab_pl_epguide.ini: Input/output error
DS213>

This is epguide who tried to run http://code.google.com/p/epguide/

RE: grabber does not show up in configuration (internal grabber) - Added by Prof Yaffle about 11 years ago

Immediate observation: most of your grabber files are owned by user 1000, group 1000 - which means they're owned by a user and group that don't exist on your system, otherwise they would list names, not numbers. So let's fix that.

Second observation: the grabber itself has rwxr-xr-x so that should run if we correct the ownership - but we might need to come back to that.

Try this:

cd /volume1/@appstore/epguide/epguide-1.8.0-Alpha1
chown -R tvheadend *
chgrp -R root *

Then:

ls -la /volume1/@appstore/epguide/epguide-1.8.0-Alpha1

... to check that all the 1000s have disappeared.

This will change all files to owner = tvheadend (chown) and group = root (chgrp). I don't know about the group bit, but that's what you've got on the main grabber files so I'm presuming to match that.

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

This is the results :

DS213> cd /volume1/@appstore/epguide/epguide-1.8.0-Alpha1
DS213> pwd
/volume1/@appstore/epguide/epguide-1.8.0-Alpha1
DS213> chown R tvheadend *
DS213> chgrp -R root *
DS213> ls -la /volume1/@appstore/epguide/epguide-1.8.0-Alpha1
drwxr-xr-x 7 root root 4096 Oct 14 22:20 .
drwxrwxrwx 4 root root 4096 Oct 13 21:37 ..
-rw-rw-r-
1 tvheaden root 322 Apr 14 2013 AUTHORS
rw-rw-r- 1 tvheaden root 2932 Sep 30 21:56 CHANGES
rw-rw-r- 1 tvheaden root 17992 Jan 5 2013 LICENSE
rw-rw-r- 1 tvheaden root 58 Jan 5 2013 MANIFEST.in
rw-rw-r- 1 tvheaden root 2133 Sep 30 21:56 README
rw-rw-r- 1 tvheaden root 46 Apr 14 2013 TODO
drwxrwxr-x 2 tvheaden root 4096 Oct 13 21:37 bin
drwxrwxr-x 4 tvheaden root 4096 Oct 14 21:23 epguide
drwxrwxr-x 2 tvheaden root 4096 Oct 13 21:37 epguide.egg-info
rwxrwxr-x 1 tvheaden root 434 Oct 13 19:54 epguide_run
-rw-rw-r-
1 tvheaden root 1467 Oct 13 20:33 setup.py
drwxrwxr-x 5 tvheaden root 4096 Oct 13 21:37 test
rw-r--r- 1 tvheaden root 0 Oct 14 22:20 tv_grab_file_epguide
-rwxrwxr-x 1 tvheaden root 130 Oct 14 22:12 tv_grab_pl_epguide
drwxrwxr-x 2 tvheaden root 4096 Oct 12 21:28 tv_grab_pl_epguide.ini
DS213>

RE: grabber does not show up in configuration (internal grabber) - Added by Prof Yaffle about 11 years ago

Now check the tv_grab_pl_epguide file to see if it includes the right bash path as above.

Then restart tvheadend and see if anything's changed...

... if it hasn't, then I'm out of ideas, I'm afraid. You may need to look into using the python script via the external interface instead of as a true XMLTV grabber. Let's see.

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

This is the content of the file ...

#!/usr/bin/python

from epguide.tv_grab_pl_epguide import RunTvGrabPlEpguide

if name == '__main__':
RunTvGrabPlEpguide()

There is no paths to bash ...

RE: grabber does not show up in configuration (internal grabber) - Added by Prof Yaffle about 11 years ago

You do have python installed? And it's in /usr/bin?

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

Yes, i have installed. And it is in /usr/binpython and python is linked to /usr/local/bin/python2.7

RE: grabber does not show up in configuration (internal grabber) - Added by Prof Yaffle about 11 years ago

I'm out of ideas, then, I'm afraid - I just don't have the kit to try anything. From what I can work out from this link:

http://code.google.com/p/epguide/wiki/TvHeadend

and this one:

http://code.google.com/p/epguide/wiki/InformacjaOProgramie

You need to have some other modules installed, such as this:

https://code.google.com/p/tv-grab-file/

I'd advise that you check through to make sure that you have everything installed layer at a time - Python, then epguide, then the pl grabber. I'm not sure that the pl grabber will ever appear in tvheadend directly, maybe only the tv_grab_file from above. I'm struggling with translation, though.

Sorry.

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

Alle of this file i used to my synology... from this link.

RE: grabber does not show up in configuration (internal grabber) - Added by Piotr Kuchciak about 11 years ago

YES YES YES
I havent install bash
After i installed bash and changed pathc in tv_grab_file in my TVHEADEND internal grabber is show :D

RE: grabber does not show up in configuration (internal grabber) - Added by Prof Yaffle about 11 years ago

Well done - I suspected that something was missing, although it never occurred to me that bash wasn't installed. That's the problem with systems like Synology, they only have what they really need - everything else, you add.

Glad you got it sorted.

RE: grabber does not show up in configuration (internal grabber) - Added by Tom Underscore about 11 years ago

I am impressed that someone got this working. I tried to follow some steps here, but I am still out of luck. My grabber is called tv_grab_de_tvmovie_clickfinder and I can run it from the command line when logging onto the synology via ssh. I also switched to the user 'tvheadend' via su tvheadend and ran the command, which worked.
The tvheadend interface still only gives me Disabled as an option. I do have python and bash installed (ipkg install bash). I also tried chowning the file to the user "admin" which is used for logging into the tvheadend webinterface

-rwxr-xr-x 1 admin root 2315 Sep 16 16:16 tv_grab_de_tvmovie_clickfinder
-rwxr-xr-x 1 tvheadend root 2315 Sep 16 16:16 tv_grab_de_tvmovie_clickfinder

when running the grabber I get the following:
[/tmp/tv_grab_de_tvmovie_clickfinder-root/tvdaten-free-552.cftv]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /tmp/tv_grab_de_tvmovie_clickfinder-root/tvdaten-free-552.cftv or
/tmp/tv_grab_de_tvmovie_clickfinder-root/tvdaten-free-552.cftv.zip, and cannot find /tmp/tv_grab_de_tvmovie_clickfinder-root/tvdaten-free-552.cftv.ZIP, period.

followed by the correct output of the xml file.

RE: grabber does not show up in configuration (internal grabber) - Added by T Felz over 8 years ago

Can you help me get my internal grabber to show???

    (1-23/23)