linuxserver / docker-tvheadend

GNU General Public License v3.0
168 stars 90 forks source link

[BUG] TV_grab_url permission #241

Closed SmoothVirus closed 5 months ago

SmoothVirus commented 11 months ago

Is there an existing issue for this?

Current Behavior

When using the XMLTV: XMLTV URL grabber module the result of running /usr/bin//usr/bin/tv_grab_url is: 2023-10-14 21:46:01.001 spawn: Executing "/usr/bin/tv_grab_url" 2023-10-14 21:46:01.343 xmltv: /usr/bin/tv_grab_url: no output detected 2023-10-14 21:46:01.343 xmltv: /usr/bin/tv_grab_url: grab returned no data

In researching this it looks like it is a permission issue. The script is running under root and should run under user abc. I came across the same issue with the sd pull and the files in .xmltv were created by root rather than abc. Once I chowned the files to abc the sd stuff worked.

Expected Behavior

The script should run and pull down the content of the url.

Steps To Reproduce

Enable XMLTV: XMLTV URL in the TvHeadend EPG section and put a value url into the paramter box.

Environment

- OS: Linux c21a05027f6f 5.19.17-Unraid #2 SMP (slackware)
- How docker service was installed: (Via unraid)

CPU architecture

x86-64

Docker creation

used your default params from the unraid container.

Container logs

not available.
github-actions[bot] commented 11 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

ziogref commented 11 months ago

Looking at the permissions on the docker container, custom mapped EPG files get mapped as abc:abc where as everything else is owned by root:root

chmod +777 on the file on unraid is a bandaid fix allowing the container to execute the shell script in the container successfully adding the the TV GRAB file

djkotik commented 10 months ago

I am trying to add a custom epg grab file (https://i.mjh.nz/nz/tv_grab) and have accessed the dockers console, changed to the /usr/bin folder and used wget to download this file. I then used chmod +x and chmod +777 on the file however after restarting tvheadend it is still missing this epg grabber module. Previously this has worked but no longer seems to. I am not sure how else I can add this file or why it is not being discovered?

HTS Tvheadend 4.3-2161~gbc30a74de UNRAID Version 6.12.4 2023-08-31

LinuxServer-CI commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

djkotik commented 8 months ago

This is still an issue for me. I cannot get my guide to epg tv_grab file to load and be usable within tvheadend.

LinuxServer-CI commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 4 months ago

This issue is locked due to inactivity