OliveTin for Channels: An Interface for Misc Channels DVR Scripts & Tricks

These are my Windows env variables ....
image


Hi. I have a question about the Email Log Alerts action. I just set up an alert for [DVR] as you recommended for @skipt . I used the default frequency of 2m. I received an initial email with a collection of recent log activity.

So far, the action has been running for over 30 minutes and I have only received the initial email. In checking the DVR log, I see that there has been more [DVR] activity, which spans greater than the selected 2m frequency for the action.

Should I expect to see emails every 2 minutes, if there are more frequent log entries? Or, does the action check at the selected frequency, and send a summary less often?

1 Like

The idea is that the frequency is the maximum rate that e-mails will be sent. It's a simple tail command of the CDVR logfile, and as matches are found they're output to file -- with e-mails sent at the requested interval with the contents of the file.

In my case I'm using [DVR] Error, and it appears I'm getting notified of those errors, but the number of occurrences may not be right.

For example, searching using the Filtered Log Action I see the following from this morning:

2024/07/21 08:30:14.126686 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:30:27.949336 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:30:41.655945 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:30:55.345948 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:31:09.746143 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:31:23.403155 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:31:37.012636 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:31:50.971575 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:32:04.620381 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:32:18.236827 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:32:31.954599 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:32:45.626754 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:32:59.737798 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:33:13.727419 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:33:27.804574 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:33:41.753548 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:33:55.738674 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:34:09.749981 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:34:23.730991 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:34:37.668088 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:34:52.676994 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:35:06.380956 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:35:20.146719 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:35:33.798078 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:35:47.548303 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.
2024/07/21 08:36:01.415609 [DVR] Error running job 1721572200-37 Face the Nation: could not start stream on channels=[6003]: TVE: DirecTV is having an issue with their service. Please try again in a few hours. Channels cannot fix this.

But I only received one e-mail containing the first eight of those errors. Not a huge deal, as the errors are the same, just with different timestamps -- but I would like to understand why they're getting dropped.

I've had this action running for nearly 3 hours now, frequency of 2m, filter [DVR].
In that time period, there are nearly 50 log entries indicated in a filtered search for [DVR].
So far, only one single email, concurrent with the time I initiated the Email log action and including about two dozen [DVR] entries leading up to the time when the action was started.

Thanks for finding this. I'll have a look at where things are going off the tracks tomorrow.

EDIT: Found the problem. I'll push an update tomorrow AM.

1 Like

New bnhf/olivetin:latest (aka bnhf/olivetin:2024.07.22) pushed with fix for an issue in the "E-Mail Log Alerts" Action that was preventing subsequent e-mails from being generated after the first one.

@jsfullam This is working for me, but if you wouldn't mind confirming it's fixed for you too after updating -- I'd appreciate it.

Updated and restarted. The first email came up on launching the action and included the last [DVR] entries leading up to the start time. A second email came after the next set of log entries hit. Third email now. So far, the emails show no gaps in filtered entries.
Looks good from here! :slightly_smiling_face:

1 Like

I'm getting the following error from the E-mail Log Alerts script:

tail: cannot open '/mnt/ip_redacted-8089_logs/data/channels-dvr.log' for reading: No such file or directory

I can see the logs on the CDVR browser UI at http://ip_redacted:8089/admin/log

What are you using for your LOGS_SHARE value?

/mnt/c/CHANNELS_DVR/Logs

I'm curious: in my CDVR installation I have ~Logs/comskip, ~Logs/recording, and I see a big log file at http://ip_redacted:8089/admin/log. What are the differences between these logs, and which one(s) do the Email Log Alerts draw from?

There is a Logs directory in with your recordings, but that's for Comskip and recording logs -- that's not the one you want. I've posted to you a couple of times about this:

Also @Edwin_Perez gave you the values he uses, and your LOGS_SHARE will very likely be the same. You can translate his Windows path to a WSL path if you like. But either way use the Filtered Log Action described above to verify:

Big news for a small project... OliveTin-for-Channels passes 3000 downloads!:

2 Likes

8 posts were split to a new topic: Project One-Click: Need help with cc4c

Has anyone gotten any emails from this? I put in mine along with the app password and I haven't been getting any updates from it

If you're talking about email log alerts, that was just recently fixed in the new version

I already got that version. I'm not getting any emails on that nor the channel changes

Not too sure what I'm doing wrong

EDIT: Wait a minute. I forgot to map the Program Data folder and also forgot an argument on the Channel Changes script. Yay :rofl::joy:

1 Like

I'm still having only intermittent emails from the Log Alerts script. It sounds like some fixes have been pushed but I'm not sure I have them fully pulled and deployed. In the upper left corner of OT there is a date displayed. Can I tell from this date if I am running the latest?
2024-08-04_20-28

You have the latest version of OliveTin.

Log alerts appear to be working fine for me. Can you give me an example of an alert you believe should have triggered an e-mail -- but didn't?

Some supporting detail, including your settings for the Log Alerts Action, along with output from the Filtered Logs Action showing the specific log lines using the same keywords would be very helpful.

I started the Log Alerts script last night at 8:27 PM (Pic1).

I got the expected email about 2 minutes later (Pic2). I am using the partial word "etch" for the filter pattern as I find I get a lot of (F|f)etch(ing) log entries without having to otherwise stimulate the system.

I let the script run all night. No new emails even though in the morning the log file shows lots of entries with "etch" in it (Pic3, Pic4)

Pic1

I am also running the Channel Lineup Notifications script. It was working fine a while back but now I don't even get an email when I start it up. I don't know if these problems are related but I think the CLN script email stopped when I pulled the recent email fixes.

I know you are busy and I appreciate your help, so no rush and thanks.

Sounds exactly like the problem that was fixed with the last update.

I trust you have the following two environment variables set to true (yes, the value needs to be lowercase) in your OliveTin Portainer stack:

If that's not the issue, I should have more for you tomorrow, as I'm running some tests now...