You are here

Error with cronjob and Docker

3 posts / 0 new
Last post
iponpn233
Offline
Donator
Joined: 2 years
Last seen: 2 years
Error with cronjob and Docker

Hi,
I am running webgrabplus inside a docker container (https://hub.docker.com/r/linuxserver/webgrabplus).
When running the program manually with bash everything is working as expected. However, the daily cronjob isn't completed resulting in the attached error log.

Any hints on the issue?
Thanks!

Attachments: 
Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 10 hours

if you asked 10 different people you would probably get 10 different answers as to why this happens.
myself i have seen this same error for my own epg.

i dont know how webgrab is run with docker but i run mine on my nas and here what seems to work good for me.
i do a lot testing/ini creation so i manually run webgrab alot and also seen the error there.
i found what helped(i have no idea why is to run a mono cert-sync first,then webgrab.

with that said for my own epg i do a cert-sync
then to run webgrab i use a loop that checks if webgrab crashes,waits 10 seconds and then tries again upto 5 times.
been running it this way for months and havnt had epg run out of data yet.
the paths would need to be changed to suit your needs.
i use full paths as its for myself but one could clean it up alot using a few variables.

#!/bin/sh

#__Update_Mono_Certs__
/raiddata/0/module/mono/sys/bin/cert-sync /raiddata/0/module/mono/sys/etc/certs/ca-bundle.crt &>/dev/null & disown

#__Update_Epg_Data__(retry after 10 seconds max fives times if webgrab crashes)
n=1
until [ "$n" -ge 6 ]
do
/raid/module/mono/sys/bin/mono /raid/NAS_WebGrab/IPTV/bin/WebGrab+Plus.exe "/raid/NAS_WebGrab/IPTV" && break
echo -e "####\nWebGrab Crashed,Retry $n/5\n####"
n=$((n+1))
sleep 10
done

exit

iponpn233
Offline
Donator
Joined: 2 years
Last seen: 2 years

Just a quick update. In my case, it seems to be an issue with user rights. Running the cronjob from within root crontab everything is working as expected.

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