You are here

Webgrab docker

18 posts / 0 new
Last post
waterwave
Offline
Joined: 2 months
Last seen: 1 day
Webgrab docker

Hello,

I would like to ask for help in docker container with webgrab plus how to rewrite the line tv generator-info-name = created in guide.xml file and do not write url / url section. Thanks in advance for your reply.

Info:
webgrab 2.1
Docker, synology nas 718+
Mono

mat8861
Offline
WG++ Team memberDonator
Joined: 4 years
Last seen: 15 hours

Thanks to Francis, you can use sed, see attached pic

Attachments: 
waterwave
Offline
Joined: 2 months
Last seen: 1 day

Is it possible to solve it only with 'sed'? I guess I need to run it in task timer when the webgrab program made the guide..xml file

mat8861
Offline
WG++ Team memberDonator
Joined: 4 years
Last seen: 15 hours

you can add a script that runs wg++ and after modifies the guide.xml title, once done, you can add it to crontab and it's ready to go

waterwave
Offline
Joined: 2 months
Last seen: 1 day

I understand something. So I copy your code into the wg-cron file so I don't have to run the script in task timer? I tried it as root in task scheduler, it works, just wondering if the sed command works in wg-con file too?

mat8861
Offline
WG++ Team memberDonator
Joined: 4 years
Last seen: 15 hours

in Crontab do edit and create a task (runs every day at 2.00) :
0 2 * * * /home/ubuntu/Desktop/.wg++/wgrun.sh
then create the script wgrun.sh :
cd /home/ubuntu/Desktop/.wg++/
./run.sh
sed -i (see pic for command line)
exit 0
exit
that should be it, make sure the user that runs the script has permission on the files 755

waterwave
Offline
Joined: 2 months
Last seen: 1 day

Interesting. I tested it but it doesn't work. Docker has a wg-cron file that has it: 2 0 * * * s6-setuidgid abc / bin / bash /defaults/update.sh
So everything runs at 00:02. If I interpreted it correctly, I will put the line below: 0 2 * * * /volume1/docker/config/wgrun.sh
Then I put the wgrun..sh script in the config folder with the following content:

cd / volume1 / docker / config /
./run.sh
sed (see pic for command line)
exit 0
exit

permission on 777 everywhere but not running. The question is because it runs first when the guide.xml file is not ready or because it is not good at all.

Idea?

mat8861
Offline
WG++ Team memberDonator
Joined: 4 years
Last seen: 15 hours

you right, i use postprocess REX that output the file to a new folder(you can move it / rename to a new folder, after the run). In that folder (when obviously the wg++ process is complete) i apply the sed, compression,bla,bla,bla. Then move xz and gz compressed file to a cloud server.There might be easier way to do it...this is a 5 year script that still runs :)
Instead of running in crontab the run.sh script ...run your script name (permission 755)

Attachments: 
waterwave
Offline
Joined: 2 months
Last seen: 1 day

Works, you're a genius: D

waterwave
Offline
Joined: 2 months
Last seen: 1 day

Maybe bug, I don't know, I mention Mat because docker application problem. The error is as follows. If you are in a different time zone, in this case Hungary is winter time, so we are +1 hour. When I type this in the docker terminal section:

unlink / etc / localtime
ln / usr / share / zoneinfo / CET / etc / localtime
echo Europe / Budapest> etc / timezone
exit

Then restart webgrab docker then the application will work perfectly. However, if you stop for something and restart, or an update comes out and restarts due to the watchtower application, the .bash_history filet will not be remembered for some reason. Maybe because the docker is using the Greenwich time zone, which has +1 hour for Hungary, I don't know. But it is definitely wrong, because linux wg++ has no problem, just docker. Again, it's not a problem that the wg.cron file starts up 1 hour sooner, but makes the entire guide by sliding it down by -1 hour from the original. Do you know about the problem or unique case?

mat8861
Offline
WG++ Team memberDonator
Joined: 4 years
Last seen: 15 hours

Don't know why you doing this. Usually you can run an update after midnight so you start with fresh day and you should match your time. See http://www.webgrabplus.com/faq#faq_818 in case you have timezone problem, most players that use epg will recognize correct time and adjust it, worst you run WG2MP http://www.webgrabplus.com/download to match local time.

waterwave
Offline
Joined: 2 months
Last seen: 1 day

It is interesting because the time is problematic for docker applications. I'll keep watching ... I just signaled that I don't think I have a problem.

waterwave
Offline
Joined: 2 months
Last seen: 1 day

I figured out what's wrong, I think bug. Bottom Line: If the watchtower container updates the containers to the webgrab container, it will not remember the contents of the .bash_history file after the upgrade. Only then will it work properly again, delete the bash file and rewrite the bash script in the terminal. Since then there has been an update to the webgrab container and I have been directly watching what is causing the problem. Is there some way to fix this or put a command line on the watchtower not to update the webgrab container?

VenimK
Offline
Donator
Joined: 1 year
Last seen: 3 days

Howto update it to V3 ?

sudo docker pull linuxserver/webgrabplus
Using default tag: latest
latest: Pulling from linuxserver/webgrabplus
Digest: sha256:c7322d0f274e9c12ee9117ff84f3f35742bf52f895357ff1c02459590386ed7e
Status: Image is up to date for linuxserver/webgrabplus:latest

saarg
Offline
Joined: 1 day
Last seen: 1 day
VenimK wrote:

Howto update it to V3 ?
sudo docker pull linuxserver/webgrabplus
Using default tag: latest
latest: Pulling from linuxserver/webgrabplus
Digest: sha256:c7322d0f274e9c12ee9117ff84f3f35742bf52f895357ff1c02459590386ed7e
Status: Image is up to date for linuxserver/webgrabplus:latest

I'm the maintainer of the docker container for linuxserver.io. We haven't updated the container to V3 yet as I wasn't aware it was released. Have tried to update it today, but ran into some issues with the license check, so you will have to wait until I manage to resolve it.

Blackbear199
Offline
WG++ Team memberDonator
Joined: 4 years
Last seen: 21 min

are you getting "Trust Failure" for the license check,if so update mono certificates with cert-sync.
I don't use docker but had this problem on Linux.

saarg
Offline
Joined: 1 day
Last seen: 1 day
Blackbear199 wrote:

are you getting "Trust Failure" for the license check,if so update mono certificates with cert-sync.
I don't use docker but had this problem on Linux.

I got an error about not being able to access /root/.local/WebGrab++/License (from memory, so might not be correct), but I managed to fix it. It turned out that for some reason the license check didn't like that the script for running WebGrab++ was started by root's crontab, even though the command was running as a normal user. So changed it to run from the normal users crontab and problem was gone.

This was in root's crontab:
2 3 * * * s6-setuidgid abc /bin/bash /defaults/update.sh

Blackbear199
Offline
WG++ Team memberDonator
Joined: 4 years
Last seen: 21 min

glad u figured it out.
I say the problem u had was it being run as root(crond) but program as user,ownership issue so it couldn't write it.

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