So I have a media setup using tvheadend, plex etc. I also use zap2xml for my EPG. The problem I am having is I cannot get my cron job to run. I set it from my hts user and I can see it using crontab -l. But it doesn't run. I even tried to use scheduled tasks, but that doesn't work either. I get a permission denied creating directory. Not sure what directory it is trying to create. Is there something I am missing in creating this cron job? I have to run it periodically to get my EPG data.
Cron Job not running
-
- OMV 2.x
- chillyw13
-
-
Really!? No one knows why OMV won't run a cron job??
-
Really!? No one knows why OMV won't run a cron job??
Maybe people are busy on the weekend??
OMV will run cron jobs just fine. I use them a lot. Maybe there is something wrong with the job you are trying to run? You give no details about the command or the user it is running as. Stick with using the scheduled jobs at least until the problem is solved.
-
-
That's the problem, scheduled doesn't work. I get permission denied creating a directory. Hence why I was trying command line crontab. With Zap2xml, it has to run as user hts. I've tried running it as hts and as root, but neither one works. My EPG doesn't get updated. I've checked /var/log/messages and there is absolutely nothing in there for zap2xml so I have no way of tracking down where it's failing. It's as if I never even created the cron job.
-
Can you run the command when you sudo to the hts user? This should give you output. This sounds like a permission issue where it is trying to write the data.
-
Yes, if I am logged in as the user I can run the command from the command line.
-
-
Does it fail when you manually run it from Scheduled Jobs? If so, what is the error?
-
Manually it works.
-
Two things...
1 - Make sure your setup (minutes, hours, etc) are correct especially if you aren't using asterisks for everything except min/hour and don't have Every N checkboxes checked.
2 - send the output of the program to a log file ie dpkg -l > /tmp/test.log Then you might see why it is failing.
-
-
doing grep cron /tmp/test.log gave me this:
cron-like program that doesn't go by time
-
Why are you grepping the file for the term "cron"? Does the output show it is working or does it only show the message you posted?
-
Because I am trying to find something relating to this cron job. Any suggestions what I should be looking for if not cron?
-
-
Errors? Hard to say when I can't see the output.
-
Ok, now it looks like it's working. Very strange. Banged my head against the wall for two weeks trying to get this to work! Never even made a change!
-
Not working again. Checked the log and it says it ran, but my EPG is blank. Works just fine if I run it manually.
-
-
Post a screenshot of the job settings.
-
Here it is.
-
Do you turn the system off regularly? I would use a regular cron job (schedule a time) instead of anacron (daily).
-
-
I'll give it a try.
-
No dice. Still not running. It says it is, but the files never update. Not sure what it is doing, but if I run the command from the command line it works just fine.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!