You are here

Synology Diskstation DS 720 Installation TVHeadend / EPG internal grabber modules

10 posts / 0 new
Last post
Sebastian
Offline
Has donated long time ago
Joined: 3 years
Last seen: 3 years
Synology Diskstation DS 720 Installation TVHeadend / EPG internal grabber modules

Hi there,

I had tvheadend with webgrabplus running on a NUC Linux Ubuntu and now have moved my install over to my Synology NAS DS720 (It's on 24/7, so why not have tvh running on that machine)

I am having issues with the final set up of tvheadend grabbing the EPG information from the guide.xml. I have done 2 days worth of research and testing - so far no luck. Hopefully somebody can help.

The installed mono version from the Synology community:
is Mono JIT compiler version 5.20.1.34 (tarball Wed Oct 14 10:29:18 UTC 2020)

Here is what I have done so far:
1. Install HTS Tvheadend 4.3 on my NAS

2. Install latest version of Webgrabplus to ~/wg++ (Changed the hidden folder .wg++ to unhidden wg++).

3. I have set up the WebGrab++.config.xml

4. Followed the guidelines per http://www.webgrabplus.com/node/376 to install the file /usr/bin/tv_grab_wg++ (I did some research and found out that Synology needs #!/bin/sh instead of #!/bin/bash)

5. Did research and found out that the permissions of the file "tv_grab_wg++" have to be changed to
-rwxr-xr-x 1 sc-tvheadend tvheadend 1179 May 17 14:22 tv_grab_wg++

5. The script ~/wg++/run.sh kicks off and a guide.xml is generated.

6. Open TvHeadend and find two internal XMLTV grabber modules. (Configuration - Channel/EPG - EPG Grabber modules)

7. This is where it gets tricky :
I can hit the button "Re_Run Internal EPG Grabbers" but nothing happens. I can go to the tab "Electronic Program Guide" and this is empty. I remember that this is the area where all the EPG information should be displayed.

So I have a felling that everything is configured correctly , it's just that last step to get the EPG information imported to tvheadend.
Is this maybe a permission topic or where is this not going as planned?

Thanks for any help.

I am adding the run.sh and also the tv_grab_wg++ as a txt file

Sebastian
Offline
Has donated long time ago
Joined: 3 years
Last seen: 3 years

So I have been able to find more information and it seems this issue is due to linux permissions.

2021-05-17 17:58:38.298 spawn: Executing "/bin/tv_grab_wg++"
2021-05-17 17:58:38.301 spawn: cat: /root/wg++/guide.xml: Permission denied
2021-05-17 17:58:38.301 xmltv: /bin/tv_grab_wg++: no output detected
2021-05-17 17:58:38.301 xmltv: /bin/tv_grab_wg++: grab returned no data

I found some information about the permissions but this didn't do the trick:
chmod -R 755 "user data webgrabplus folder path"

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 6 hours

in most linux you use chmod 755 to give enough permission. in your case:
1. cd /root/wg++/ (you position in that folder)
2. chmod 755 *.* or as you wrote chmod 755 -r that stands for recursive (you assign permission to all files)
worst case try : mono WebGrab+Plus.exe Will directly start webgrab so you can see if there are further errors.

Sebastian
Offline
Has donated long time ago
Joined: 3 years
Last seen: 3 years

Thanks a lot.
I tried reassigning the permissions - didn't change anything.
This is what I have :
-rwxr-xr-x 1 sc-tvheadend tvheadend 73240317 May 17 02:24 guide.xml

I also tried changing the ownership to root like this:
-rwxr-xr-x 1 root root 73240317 May 17 02:24 guide.xml

I still receive an error from the log I have attached.

Thanks

Sebastian
Offline
Has donated long time ago
Joined: 3 years
Last seen: 3 years

So,
I think I have gotten a little bit further.
Just for the fun of it, I reinstalled webgrabplus into a shared folder on my NAS and pointed the /usr/bin/tv_grab_wg++ guide.xml entry to the new shared folder. I then went into the GUI of the Synology and gave permissions to that entire folder to the user sc-tvheadend (under rights -> internal system user)

When I run the mono WebGrabPlus.exe I still receive the weird log from above, but I receive this from within tvheadend:

2021-05-17 23:27:25.064 xmltv: /usr/bin/tv_grab_wg++: grab /usr/bin/tv_grab_wg++
2021-05-17 23:27:25.066 spawn: Executing "/usr/bin/tv_grab_wg++"
2021-05-17 23:27:25.075 xmltv: /usr/bin/tv_grab_wg++: grab took 0 seconds
2021-05-17 23:27:25.077 xmltv: /usr/bin/tv_grab_wg++: parse took 0 seconds
2021-05-17 23:27:25.077 xmltv: /usr/bin/tv_grab_wg++: channels tot= 2 new= 0 mod= 0
2021-05-17 23:27:25.077 xmltv: /usr/bin/tv_grab_wg++: brands tot= 0 new= 0 mod= 0
2021-05-17 23:27:25.077 xmltv: /usr/bin/tv_grab_wg++: seasons tot= 0 new= 0 mod= 0
2021-05-17 23:27:25.077 xmltv: /usr/bin/tv_grab_wg++: episodes tot= 0 new= 0 mod= 0
2021-05-17 23:27:25.077 xmltv: /usr/bin/tv_grab_wg++: broadcasts tot= 0 new= 0 mod= 0

So no more "permission denied" errors. That's great !

--> Re-ran the internal grabbers and voila - it works and the EPG is being shown.

This is weird but I guess it really boils down to Linux permissions. Maybe this is useful to other Synology/NAS/tvheadend/webgrab+Plus users.

Sebastian
Offline
Has donated long time ago
Joined: 3 years
Last seen: 3 years

I would still like to know what the means when I run mono WebGrab+Plus.exe
Thank you.

mono WebGrab+Plus.exe

WebGrab+Plus/w MDB & REX Postprocess -- version V3.1.0.0

Jan van Straaten
Francis De Paemeleere

thanks to Paul Weterings and all the contributing users
--------------------------------------------------------------------------------

WebGrab+Plus V3.1.0.0

Usage: WebGrab+Plus [OPTIONS...] [CONFIG_FOLDER]
OPTIONS:

CONFIG_FOLDER:
This is the absolute path to the configuration folder.
The configuration folder must contain at least a WebGrab++.config.xml file.

Job started at 18/05/2021 16:31:28
Job finished at 18/05/2021 16:31:28 done in 0s

[Error ] WG.Common.InvalidConfigException: [Error ] Doesn't exist
at  . ..ctor (System.String ) [0x000b6] in <896f87e576a8482c8f603908a14ec73f>:0

at  . ..ctor (System.String ) [0x012f6] in <896f87e576a8482c8f603908a14ec73f>:0
at  .―.  (System.String[] ) [0x00351] in <896f87e576a8482c8f603908a14ec73f>:0
Config syntax exception:
file: WebGrab++.config.xml
message:
WG.Common.InvalidConfigException: [Error ] Doesn't exist
at  . ..ctor (System.String ) [0x000b6] in <896f87e576a8482c8f603908a14ec73f>:0
For detailed info, see log file WebGrab++.log.txt
Execution stopped

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 6 hours

mono webgrabplus.exe is the manual command to run wg++
oot@ubuntu:/# cd /home/ubuntu/Scrivania/.wg++/bin
root@ubuntu:/home/ubuntu/Scrivania/.wg++/bin# mono WebGrab+Plus.exe

WebGrab+Plus/w MDB & REX Postprocess -- version V3.1.8.0

you can also add to the command the path for location of config

Usage: WebGrab+Plus [OPTIONS...] [CONFIG_FOLDER]
OPTIONS:

CONFIG_FOLDER:
This is the absolute path to the configuration folder.
The configuration folder must contain at least a WebGrab++.config.xml file.

the easy way is to send the command ./run.sh (that runs the script provided with wg++ installation)
Of course you need to pay attention to where your path is, or use the command including the path:
root@ubuntu:/# /home/ubuntu/Scrivania/.wg++/bin/mono webgragplus.exe
PS
Scrivania=Desktop ;)

Sebastian
Offline
Has donated long time ago
Joined: 3 years
Last seen: 3 years

Thanks a lot for your reply. I appreciate it.

When I run the run.sh everything is fine and it does the job, I also see the EPG data in tvheadend. So all good.

I was just curious to find out why it would give me the error messages when I run the command mono WebGrab+Plus.exe
[Error ] WG.Common.InvalidConfigException: [Error ] Doesn't exist

Is it OK to receive this error and ok to ignore or is something not right?

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 6 hours

like i said if you don't give the command from the right path it returns error. The manual command in conclusion need to be runned from the right "position" or specifying with -c where config is.

Sebastian
Offline
Has donated long time ago
Joined: 3 years
Last seen: 3 years

Ah OK , I understand. Ok perfect, Thank you so much for your help.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl