Internal EPG Grabber on Synology, almost there but tv_grab_file no output detected
Added by Yan Perron about 6 years ago
I'm so close to get EPG working after reading so many threads about this.
Synology is very limiting but I did get pretty far. I can get the grabber to list and enable it.
I have DSM 6 and tvh 4.2.6 from SynoCommunity
I used the fake tv_find_grabbers method (https://tvheadend.org/boards/12/topics/30358) and that worked.
However when I re-run the internal grabbers (or when it does on start), I get the following error in the log:
2018-09-11 19:55:01.000 [ INFO]:xmltv: /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file 2018-09-11 19:55:01.002 [ INFO]:spawn: Executing "/usr/bin/tv_grab_file" 2018-09-11 19:55:01.005 [ ERROR]:xmltv: /usr/bin/tv_grab_file: no output detected 2018-09-11 19:55:01.005 [WARNING]:xmltv: /usr/bin/tv_grab_file: grab returned no data
My script is the "local" version of https://github.com/nurtext/tv_grab_file_synology/tree/master/src
My tv_grab_file and xml file permissions are as:
-rwxrwxrwx+ 1 woot users 2528085 Sep 10 11:10 guide.xml -rwxr-xr-x 1 sc-tvheadend tvheadend 1167 Sep 11 08:06 tv_grab_file woot@ds1515:/volume1/public$
Running the grabber locally through ssh works fine (not even as root, but as admin user)
How further can I troubleshoot this??
Replies (3)
RE: Internal EPG Grabber on Synology, almost there but tv_grab_file no output detected - Added by Dan Lo about 6 years ago
I have the same issue.
My tv_grab_file is apparently looking for /config/data/*.xml (I'm running a Docker instance).
--
#!/bin/bash
dflag=
vflag=
cflag=
if (( $# < 1 ))
then
cat /config/data/*.xml
exit 0
fi
---
I put my xml file in /config/data/ and I'm getting the same error.
018-09-12 12:13:54.164 xmltv: /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file
2018-09-12 12:13:54.164 spawn: Unable to fork() for "/usr/bin/tv_grab_file" -- Out of memory
2018-09-12 12:13:54.164 xmltv: /usr/bin/tv_grab_file: no output detected
2018-09-12 12:13:54.164 xmltv: /usr/bin/tv_grab_file: grab returned no data
RE: Internal EPG Grabber on Synology, almost there but tv_grab_file no output detected - Added by Yan Perron about 6 years ago
The Docker solution is where I was going to next.
So I tried it just now, and indeed it works better.
I did manage to load data with the internal grabber.
It looks like your problem may be with your docker settings, looking at the Out of memory error. Maybe you limited the available resources?
I used the WebGrab+Plus grabber but the tv_grab file is the same as for the XML File Grabber.
All I had to do was to create the data/ folder under config/ (i did it from the host) and I copied an xml file I had generated earlier manually. I suppose I can just install WG++ in the docker image, but I don't think that's the spirit of docker. I don't know.
I'd like to get the internal grabbers working on the NAS tvh directly, otherwise I can always fall back on the external grabber, which I did manage to get working with the curl method...
RE: Internal EPG Grabber on Synology, almost there but tv_grab_file no output detected - Added by Yan Perron about 6 years ago
Alright I got it, this was of course ever so stupid...
I just had to go assign the group sc-media to the user I used to install TVH.