I restarted the container, then started a fresh alerter session. Here is stderr:
+ dvr=192.xxx.xxx.xxx:8089
++ echo 192.xxx.xxx.xxx:8089
++ awk -F: '{print $1}'
+ channelsHost=192.xxx.xxx.xxx
++ echo 192.xxx.xxx.xxx:8089
++ awk -F: '{print $2}'
+ channelsPort=8089
+ foregroundScript=logalerts
++ ps -ef
++ grep '[l]ogalerter.sh 192.xxx.xxx.xxx:8089'
++ awk '{print $2}'
+ runningScriptPID=
+ greenIcon='"icons/channels.png"'
+ purpleIcon='"https://community-assets.getchannels.com/original/2X/5/55232547f7e8f243069080b6aec0c71872f0f537.png"'
+ logFile=/config/192.xxx.xxx.xxx:8089_logalerts_latest.log
+ rm /config/192.xxx.xxx.xxx:8089_logalerts_latest.log
rm: cannot remove '/config/192.xxx.xxx.xxx-8089_logalerts_latest.log': No such file or directory
+ configFile=/config/config.yaml
+ configTemp=/tmp/config.yaml
+ trap finish EXIT
+ cp /config/config.yaml /tmp
+ frequency=2m
+ [[ 2m == \0 ]]
+ [[ 2m != \0 ]]
+ sed -i '/#logalerts frequency default/s/default: .* #/default: 2m #/' /tmp/config.yaml
+ filter1=2024
+ sed -i '/#logalerts filter1 default/s/default: .* #/default: "2024" #/' /tmp/config.yaml
+ filter2=none
+ sed -i '/#logalerts filter2 default/s/default: .* #/default: "none" #/' /tmp/config.yaml
+ filter3=none
+ sed -i '/#logalerts filter3 default/s/default: .* #/default: "none" #/' /tmp/config.yaml
+ main
+ cd /config
+ scriptRun
++ ps -ef
++ grep '[l]ogalerter.sh 192.xxx.xxx.xxx:8089'
++ awk '{print $2}'
+ runningScriptPID=
+ [[ -n '' ]]
+ runningScriptPID=323
+ echo 'logalerts.sh 192.xxx.xxx.xxx:8089 2m "2024" "none" "none"'
+ nohup /config/logalerter.sh 192.xxx.xxx.xxx:8089 2m 2024 none none
+ grep -q '(.*) #logalerts' /tmp/config.yaml
+ [[ 1 == \1 ]]
++ date +%d%b%y_%H:%M
+ sed -i '/#logalerts title/s/#/(08Aug24_19:03) #/' /tmp/config.yaml
+ sed -i '/#logalerts icon/s|img src = .* width|img src = "icons/channels.png" width|' /tmp/config.yaml
+ sleep 2
+ cat /config/192.xxx.xxx.xxx:8089_logalerts_latest.log
+ runningScripts
+ servers=($CHANNELS_DVR $CHANNELS_DVR_ALTERNATES)
+ for server in "${servers[@]}"
++ ps -ef
++ grep '[l]ogalerter.sh 192.xxx.xxx.xxx:8089'
++ awk '{print $2}'
+ activeProcess=323
+ [[ -n 323 ]]
+ echo 'Background E-Mail Log Alerts process running for 192.xxx.xxx.xxx:8089'
+ finish
+ cp /tmp/config.yaml /config
I ran an extended healthcheck, here is stdout:
Checking your OliveTin installation...
(extended_check=true)
----------------------------------------
Checking that your selected Channels DVR server (192.xxx.xxx.xxx:8089) is reachable by URL:
HTTP Status: 200 indicates success...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1276 100 1276 0 0 311k 0 --:--:-- --:--:-- --:--:-- 311k
HTTP Status: 200
Effective URL: http://192.xxx.xxx.xxx:8089/
----------------------------------------
Checking that your selected Channels DVR server's data files (/mnt/192.xxx.xxx.xxx-8089) are accessible:
Folders with the names Database, Images, Imports, Logs, Movies, Streaming and TV should be visible...
total 156
drwxrwxrwx 1 1000 1000 512 Jul 9 14:03 .
drwxr-xr-x 1 root root 4096 Aug 6 18:43 ..
-rwxrwxrwx 1 1000 1000 1728 Apr 12 16:19 Cameras rtsp.m3u8
drwxrwxrwx 1 1000 1000 512 Aug 8 18:36 Database
drwxrwxrwx 1 1000 1000 512 Nov 24 2023 Images
drwxrwxrwx 1 1000 1000 512 Aug 21 2023 Imports
drwxrwxrwx 1 1000 1000 512 Nov 14 2023 Logs
-rwxrwxrwx 1 1000 1000 151391 Apr 16 12:32 NEW_Feb_2023_Mapped_Channels.m3u
drwxrwxrwx 1 1000 1000 512 Nov 15 2023 OLD m3u
drwxrwxrwx 1 1000 1000 512 Jul 9 13:51 Scripting
drwxrwxrwx 1 1000 1000 512 Aug 8 06:23 Streaming
drwxrwxrwx 1 1000 1000 512 Feb 5 2024 TV
----------------------------------------
Checking that your selected Channels DVR server's log files (/mnt/192.xxx.xxx.xxx-8089_logs) are accessible:
Folders with the names data and latest should be visible...
total 8
drwxrwxrwx 1 1000 1000 512 Jul 18 18:08 .
drwxr-xr-x 1 root root 4096 Aug 6 18:43 ..
drwxrwxrwx 1 1000 1000 512 Jan 8 2024 2024.01.08.1431
drwxrwxrwx 1 1000 1000 512 Feb 8 16:45 2024.02.08.0626
drwxrwxrwx 1 1000 1000 512 Feb 10 23:41 2024.02.11.0311
drwxrwxrwx 1 1000 1000 512 Feb 25 13:48 2024.02.24.2134
drwxrwxrwx 1 1000 1000 512 Mar 29 19:33 2024.03.27.1935
drwxrwxrwx 1 1000 1000 512 May 7 21:41 2024.05.07.1442
-rwxrwxrwx 1 1000 1000 871 Jul 18 16:38 Channels DVR Server.lnk
drwxrwxrwx 1 1000 1000 512 Aug 7 09:22 data
drwxrwxrwx 1 1000 1000 512 Jul 18 16:38 latest
----------------------------------------
Here's a list of your current OliveTin-related settings:
HOSTNAME=olivetin
CHANNELS_DVR=192.xxx.xxx.xxx:8089
CHANNELS_DVR_ALTERNATES=
CHANNELS_CLIENTS=appletv4k-den firestick-bedroom
ALERT_SMTP_SERVER=smtp.gmail.com:587
ALERT_EMAIL_FROM=[Redacted]@gmail.com
ALERT_EMAIL_PASS=[Redacted]
ALERT_EMAIL_TO=[Redacted]@tourville.us
UPDATE_YAMLS=true
UPDATE_SCRIPTS=true
PORTAINER_TOKEN=[Redacted]
PORTAINER_HOST=docker-host
----------------------------------------
Here's the contents of /etc/resolv.conf from inside the container:
# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.
nameserver 127.0.0.11
search
options ndots:0
# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [192.168.65.7]
# Overrides: [search]
# Option ndots from: internal
----------------------------------------
Here's the contents of /etc/hosts from inside the container:
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.18.0.3 olivetin
----------------------------------------
Your Docker-host is running:
"Debian GNU/Linux 11 (bullseye)"
----------------------------------------
Your Docker-host's /etc/resolv.conf file contains:
# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.
nameserver 127.0.0.11
search
options ndots:0
# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [192.168.65.7]
# Overrides: [search]
# Option ndots from: internal
----------------------------------------
Your Docker-host's /etc/hosts file contains:
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.18.0.3 olivetin
----------------------------------------
Your Tailscale version is:
bash: tailscale: command not found
----------------------------------------
FYI I have yet to receive the first email from this alerter session.