You are here

Webgrab docker

23 posts / 0 new
Last post
waterwave
Offline
Joined: 4 years
Last seen: 2 years
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: 8 years
Last seen: 17 hours

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

Attachments: 
waterwave
Offline
Joined: 4 years
Last seen: 2 years

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: 8 years
Last seen: 17 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: 4 years
Last seen: 2 years

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: 8 years
Last seen: 17 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: 4 years
Last seen: 2 years

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: 8 years
Last seen: 17 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: 4 years
Last seen: 2 years

Works, you're a genius: D

waterwave
Offline
Joined: 4 years
Last seen: 2 years

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: 8 years
Last seen: 17 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: 4 years
Last seen: 2 years

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: 4 years
Last seen: 2 years

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: 5 years
Last seen: 1 month

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: 4 years
Last seen: 2 years
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
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 11 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: 4 years
Last seen: 2 years
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
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 11 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.

Criis
Offline
Donator
Joined: 3 years
Last seen: 3 years

Hello,

I can't figure out how to make the linuxserver docker image run (on a Synology nas).
I have managed to start it with the proper /config and /data folders. The docker starts and runs and I see the config folder being updated so there's access to these folders. I copy the WebGrab++.config.xml (attached) to the config folder on the nas, restart the image and.. nothing happens, there's no file generated in the /data folder.

what I've tried:
1. see the logs file with docker, result:GID/UID
-------------------------------------

User uid: 1027
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
******** Please use the file wg3-cron to adjust the scheduled time for running WebGrab++. wg-cron can now be deleted. ********
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

so it seems that it doesn't access the custom WebGrab++.config.xml file in the /config folder?

2. tried to bash into the docker
cd /app/wg++
run.sh
Output:
WebGrab+Plus/w MDB & REX Postprocess -- version V3.0.0.0 -- build 3

Jan van Straaten
Francis De Paemeleere

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

Job started at 09/04/2020 07:11:25
Job finished at 09/04/2020 07:11:26 done in 0s

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

at . ..ctor (System.String ) [0x012bb] in :0
at .―.  (System.String[] ) [0x00347] in :0
Config syntax exception:
file: /app/wg++/./WebGrab++.config.xml
message:
WG.Common.InvalidConfigException: [Error ] Doesn't exist
at . ..ctor (System.String ) [0x000b6] in :0
For detailed info, see log file /app/wg++/./WebGrab++.log.txt

3. copied the config file alongside run.sh in the /app/wg++ folder inside the docker.. got License errors and other.

I'm honestly running out of ideas..

Attachments: 
Criis
Offline
Donator
Joined: 3 years
Last seen: 3 years

So I've solved the "issue", turns out I didn't understand how the cron scheduler works.
The cron command worked from inside the docker shell so the only thing I didn't get right was the schedule itself. After I've set it to */5 * * * * to test if it starts every 5 minutes, it worked..

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 11 min

what happens when u try this?
/path/to/mono/mono /app/wg++/WebGrab+Plus.exe /app/wg++

VenimK
Offline
Donator
Joined: 5 years
Last seen: 1 month

./run.sh

WebGrab+Plus/w MDB & REX Postprocess -- version V3.0.0.0 -- build 3

Jan van Straaten
Francis De Paemeleere

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

Job started at 18/04/2020 05:35:01
Checking License ..
For License request/update data, see WGLicense.log.txt
found: /app/wg++/./siteini.user/siteini.user/tv.wp.pl.E.ini -- Revision 11
encrypted in 'legacy (V2)' mode
found: /app/wg++/./siteini.user/siteini.user/horizon.tv.EK.ini -- Revision 11
encrypted with userkey and expiry date in 'legacy (V2)' mode
found: /app/wg++/./siteini.user/siteini.user/canaldigitaal.nl.E.ini -- Revision 04
encrypted in 'legacy (V2)' mode
found: /app/wg++/./siteini.user/siteini.user/livetv.tv-vlaanderen.be.E.ini -- Revision 01
encrypted in 'legacy (V2)' mode
found: /app/wg++/./siteini.user/siteini.user/movistarplus.es.ini -- Revision 18
encrypted with userkey and expiry date in 'legacy (V2)' mode
input file /volume1/video/movie/guide.xml not found ... created a new one ...

i=index .=same c=change g=gab r=replace n=new

Group (0) :
update requested for - 23 - out of - 147 - channels for 16 day(s)
( 1/147 ) TV.WP.PL.E -- chan. (xmltv_id=HBO HD POOLS) -- mode Incremental

Seems to be working
Kinda messed up the maps /data and /config :)

VenimK
Offline
Donator
Joined: 5 years
Last seen: 1 month

Still have my map mount wrong, after updating and restarting webgrabplus

/video/movie (where my guide.xml is placed)
the other 2 maps are standard i guess

then acces in console, i have to do
cp /data/WebGrab++.config.xml /app/wg++/./WebGrab++.config.xml
and
cp -R /data/siteini.user /app/wg++/

How to get that right ?

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