WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.89k stars 971 forks source link

Is Onesignal required to send Notifications? #8935

Open gregk63 opened 6 months ago

gregk63 commented 6 months ago

Describe the question Wondering if Onesignal is required to send Notifications?

Screenshots Provide some screenshots to help us understand and explain your problem.

DanielnetoDotCom commented 6 months ago

Onesignal is required only for push notifications.

email notifications and socket message notifications does not require Onesignal

gregk63 commented 6 months ago

I haven't configured Onesignal yet and I am not seeing any email notifications being sent when I go live? Sending the test message from the Advanced Settings page is working fine.

How are the emails supposed to work? If there is a subscriber and someone goes live, are they supposed to get an email?

DanielnetoDotCom commented 6 months ago

They are supposed to receive the notifications only if they click on the bell button, the bell button must be green

chrome-capture-2024-3-1 (1)

gregk63 commented 6 months ago

Sorry, the bell is green and I am not seeing any emails.

DanielnetoDotCom commented 6 months ago

Did you setup email properly? https://github.com/WWBN/AVideo/wiki/Setting-up-AVideo-Platform-to-send-emails

gregk63 commented 6 months ago

Yes, and the test email comes through fine.

DanielnetoDotCom commented 6 months ago

Double-check if the user has a valid email in his profile

check your avideo.log

gregk63 commented 6 months ago

I started a stream and ran it for about 30 seconds. Here is the avideo.log for that 30 seconds.

ggk63@kaiserclix:/var/www/html/AVideo/videos$ cat avideo.log [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish POST: {"app":"live","flashver":"FMLE\/3.0 (compatible; Larix\/1.3","swfurl":"","tcurl":"rtmp:\/\/videos.kaiserclix.com:1935\/live?s=MmlwN2JHM2xkOEczM0ZaK2crWkRPUT09&webSiteRootURL=aHR0cHM6Ly92aWRlb3Mua2Fpc2VyY2xpeC5jb20vQVZpZGVvLw","pageurl":"","addr":"76.17.169.44","clientid":"757","call":"publish","name":"65134d4bec76e-1","type":"live","redirectUri":""} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish GET: [] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish php://inputapp=live&flashver=FMLE/3.0%20(compatible%3B%20Larix/1.3&swfurl=&tcurl=rtmp://videos.kaiserclix.com:1935/live%3Fs=MmlwN2JHM2xkOEczM0ZaK2crWkRPUT09%26webSiteRootURL=aHR0cHM6Ly92aWRlb3Mua2Fpc2VyY2xpeC5jb20vQVZpZGVvLw&pageurl=&addr=76.17.169.44&clientid=757&call=publish&name=65134d4bec76e-1&type=live SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish encryption token found users_id: [32] 65134d4bec76e == 65134d4bec76e SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish parse_url: {"scheme":"rtmp","host":"videos.kaiserclix.com","port":1935,"path":"\/live","query":"s=MmlwN2JHM2xkOEczM0ZaK2crWkRPUT09&webSiteRootURL=aHR0cHM6Ly92aWRlb3Mua2Fpc2VyY2xpeC5jb20vQVZpZGVvLw"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish parse_str: {"s":"MmlwN2JHM2xkOEczM0ZaK2crWkRPUT09","webSiteRootURL":"aHR0cHM6Ly92aWRlb3Mua2Fpc2VyY2xpeC5jb20vQVZpZGVvLw","p":"5d0f1a3683cc359a3d92cc8aba90f1a2"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: isReconnection=[false,false,"65134d4bec76e-1",0] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish check if key exists (65134d4bec76e-1) SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish new User(32) SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish get LiveTransmitionHistory SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish saving LiveTransmitionHistory SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: LiveTransmitionHistory::save: active live NOT found ["65134d4bec76e-1",0,false] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:48 America/Chicago] AVideoLog::DEBUG: LiveTransmitionHistory::save: id=92 (32, NULL, 65134d4bec76e-1) [{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/on_publish.php","line":147,"function":"save","class":"LiveTransmitionHistory","type":"->"}] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:49 America/Chicago] AVideoLog::DEBUG: Time: 0.704s | Limit: 0.7s | Location: /var/www/html/AVideo/plugin/Live/on_publish.php Line 1117 [/var/www/html/AVideo/objects/Object.php::deleteCache ] IP=127.0.0.1 USER_AGENT=Undefined server={"proto":"http","HTTP_HOST":"127.0.1.1","CONTENT_TYPE":"application\/x-www-form-urlencoded","HTTP_CONNECTION":"Close","CONTENT_LENGTH":"297","PATH":"\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/snap\/bin","SERVER_SIGNATURE":"

Apache\/2.4.52 (Ubuntu) Server at 127.0.1.1 Port 80<\/address>\n","SERVER_SOFTWARE":"Apache\/2.4.52 (Ubuntu)","SERVER_NAME":"127.0.1.1","SERVER_ADDR":"127.0.1.1","SERVER_PORT":"80","REMOTE_ADDR":"127.0.0.1","DOCUMENT_ROOT":"\/var\/www\/html","REQUEST_SCHEME":"http","CONTEXT_PREFIX":"","CONTEXT_DOCUMENT_ROOT":"\/var\/www\/html","SERVER_ADMIN":"[no address given]","SCRIPT_FILENAME":"\/var\/www\/html\/AVideo\/plugin\/Live\/on_publish.php","REMOTE_PORT":"53298","GATEWAY_INTERFACE":"CGI\/1.1","SERVER_PROTOCOL":"HTTP\/1.0","REQUEST_METHOD":"POST","QUERY_STRING":"","REQUEST_URI":"\/AVideo\/plugin\/Live\/on_publish.php","SCRIPT_NAME":"\/AVideo\/plugin\/Live\/on_publish.php","PHP_SELF":"\/AVideo\/plugin\/Live\/on_publish.php","REQUEST_TIME_FLOAT":1712069568.125447,"REQUEST_TIME":1712069568,"HTTP_USER_AGENT":""} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:49 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish saved LiveTransmitionHistory SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:49 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish deciding ... SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:49 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish success (92, 32, 65134d4bec76e-1, 0) SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:49 America/Chicago] AVideoLog::DEBUG: deleteStatsCache: /var/www/html/AVideo/videos/cache/YPTObjectCache/getStats/ [{"file":"\/var\/www\/html\/AVideo\/objects\/functions.php","line":7472,"function":"deleteStatsCache","class":"Live","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/on_publish.php","line":182,"function":"deleteStatsNotifications"}] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:49 America/Chicago] AVideoLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:49 America/Chicago] AVideoLog::DEBUG: rrmdir: do not delete videos or cache folder /var/www/html/AVideo/videos/cache/ SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: clearCache end in 1.143975019455 seconds SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: NGINX Live::on_publish start SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: Live:sendRestream start SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: Live:sendRestream (https://videos.kaiserclix.com/AVideo/plugin/Live/standAloneFiles/restreamer.json.php) {"m3u8":"https:\/\/videos.kaiserclix.com:8443\/live\/65134d4bec76e-1\/index.m3u8","restreamerURL":"https:\/\/videos.kaiserclix.com\/AVideo\/plugin\/Live\/standAloneFiles\/restreamer.json.php","restreamsDestinations":[],"token":"eUI1N1kyeFJJTjBwSC83QUFuNzBSeEJmaTk4ak1EZTkrNkZEWURsN3lZbXdXcFRNek5vTG1SZHZVK3U4YzBpVnBNcUU4b0svUVNMRDd1U25uYkdTS2krdkRHOU44bW42dXVWYWZYSnhQZG5nV1FxanlCcVNtdGljMVVxMHhmR1E=","users_id":32,"liveTransmitionHistory_id":92,"key":"65134d4bec76e-1","live_restreams_id":0,"responseToken":"VWtOY1dPaGUyV3lJL2RvYVF3M0dTcnErbUlDZk12YWpYaWFuanpNZCtIdzZhRE03THdwZzNEcDZETWpDNzVZaTRwcWFGR1NTL0VTV0JRaWZSRWtMdnJmd29WNjdRZnVweFJ2WVBsUlNmeDQ9"} [{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/Live.php","line":3354,"function":"sendRestream","class":"Live","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/Live.php","line":3260,"function":"restream","class":"Live","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/on_publish.php","line":184,"function":"_on_publish","class":"Live","type":"::"}] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: Live:sendRestream complete ["{\"error\":true,\"msg\":\"There are no restreams Destinations\",\"streamerURL\":\"https:\\/\\/videos.kaiserclix.com\\/AVideo\\/\",\"type\":\"decoded from request\",\"token\":\"eUI1N1kyeFJJTjBwSC83QUFuNzBSeEJmaTk4ak1EZTkrNkZEWURsN3lZbXdXcFRNek5vTG1SZHZVK3U4YzBpVnBNcUU4b0svUVNMRDd1U25uYkdTS2krdkRHOU44bW42dXVWYWZYSnhQZG5nV1FxanlCcVNtdGljMVVxMHhmR1E=\",\"pid\":[],\"logFile\":\"\\/var\\/www\\/tmp\\/ffmpeg_restreamer_32_2024-04-02-09-52-50.log\"}"] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: on_publish: liveTransmitionHistory_id=92 users_id=32 live_servers_id=0 isReconnection= SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: Notification::on_publish: Start users_id=32, live_servers_id=0 SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: isLiveAndIsReadyFromKey::key: 65134d4bec76e-1 checking SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: Notification::on_publish: Not public {"id":4,"title":"I am Live","public":0,"saveTransmition":0,"created":"2023-09-26 16:29:47","modified":"2023-09-26 16:29:47","key":"65134d4bec76e","description":"","users_id":32,"categories_id":1,"showOnTV":0,"password":"","live_servers_id":0,"key_with_index":"65134d4bec76e-1","live_index":"1"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: NGINX Live::on_publish end SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 09:53:13 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:53:13 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish Done POST: {"app":"live","flashver":"FMLE\/3.0 (compatible; Larix\/1.3","swfurl":"","tcurl":"rtmp:\/\/videos.kaiserclix.com:1935\/live?s=MmlwN2JHM2xkOEczM0ZaK2crWkRPUT09&webSiteRootURL=aHR0cHM6Ly92aWRlb3Mua2Fpc2VyY2xpeC5jb20vQVZpZGVvLw","pageurl":"","addr":"76.17.169.44","clientid":"757","call":"publish_done","name":"65134d4bec76e-1","redirectUri":""} SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish Done GET: [] SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish Done php://inputapp=live&flashver=FMLE/3.0%20(compatible%3B%20Larix/1.3&swfurl=&tcurl=rtmp://videos.kaiserclix.com:1935/live%3Fs=MmlwN2JHM2xkOEczM0ZaK2crWkRPUT09%26webSiteRootURL=aHR0cHM6Ly92aWRlb3Mua2Fpc2VyY2xpeC5jb20vQVZpZGVvLw&pageurl=&addr=76.17.169.44&clientid=757&call=publish_done&name=65134d4bec76e-1 SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish Done parse_url: {"scheme":"rtmp","host":"videos.kaiserclix.com","port":1935,"path":"\/live","query":"s=MmlwN2JHM2xkOEczM0ZaK2crWkRPUT09&webSiteRootURL=aHR0cHM6Ly92aWRlb3Mua2Fpc2VyY2xpeC5jb20vQVZpZGVvLw"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish Done parse_str: {"s":"MmlwN2JHM2xkOEczM0ZaK2crWkRPUT09","webSiteRootURL":"aHR0cHM6Ly92aWRlb3Mua2Fpc2VyY2xpeC5jb20vQVZpZGVvLw"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: deleteStatsCache: /var/www/html/AVideo/videos/cache/YPTObjectCache/getStats/ [{"file":"\/var\/www\/html\/AVideo\/objects\/functions.php","line":7472,"function":"deleteStatsCache","class":"Live","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/on_publish_done.php","line":60,"function":"deleteStatsNotifications"}] SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: rrmdir: do not delete videos or cache folder /var/www/html/AVideo/videos/cache/ SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: clearCache end in 0.021238803863525 seconds SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:19 America/Chicago] AVideoLog::DEBUG: [{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/on_publish_done.php","line":63,"function":"finishFromTransmitionHistoryId","class":"LiveTransmitionHistory","type":"::","args":[92]}] SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:21 America/Chicago] AVideoLog::DEBUG: LiveTransmitionHistory::finishFromTransmitionHistoryId: live_transmitions_history_id=92 [{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/on_publish_done.php","line":63,"function":"finishFromTransmitionHistoryId","class":"LiveTransmitionHistory","type":"::"}] SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:21 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish Done finishFromTransmitionHistoryId 65134d4bec76e-1 id=92 key=65134d4bec76e-1 live_servers_id= insert_row=1 SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:21 America/Chicago] AVideoLog::DEBUG: NGINX Live::on_publish_socket_notification sendSocketMessageToAll Start SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:21 America/Chicago] AVideoLog::DEBUG: NGINX Live::on_publish_socket_notification SocketMessageToAll END SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:21 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish Done success (92, 32, 65134d4bec76e-1, ) SCRIPT_NAME: /AVideo/plugin/Live/on_publish_done.php [02-Apr-2024 09:53:49 America/Chicago] AVideoLog::DEBUG: getCaptchaImage: xqpZf - session_name 84b11d010cced71edffee7aa62c4eda0 session_id: 77r1aocn1enpbkc2uvg0qbenp9 SCRIPT_NAME: /AVideo/objects/getCaptcha.php [02-Apr-2024 09:53:50 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:53:50 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:53:50 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getRoom.json.php [02-Apr-2024 09:53:50 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getRoom.json.php [02-Apr-2024 09:53:55 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:53:55 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:01 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:01 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:08 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:08 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:16 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:16 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:24 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:24 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:34 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:34 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:44 America/Chicago] AVideoLog::DEBUG: User::find line= 1595 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php [02-Apr-2024 09:54:44 America/Chicago] AVideoLog::DEBUG: User:login finish with success users_id=32 SCRIPT_NAME: /AVideo/plugin/Chat2/getChatTotalNew.json.php

gregk63 commented 6 months ago

Here is a section of the avideo.log when I sent a test email. I received the test email.

[02-Apr-2024 10:31:59 America/Chicago] AVideoLog::DEBUG: Sending SMTP Email SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::DEBUG: Debug enable on the SMTP Email SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::DEBUG: Send email now to greg@kaiserclix.com SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 3; message: Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ), ) SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 3; message: Connection: opened SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 220 smtp.gmail.com ESMTP oj15-20020a056214440f00b00698e65cdfefsm4999925qvb.87 - gsmtp SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: EHLO videos.kaiserclix.com SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 250-smtp.gmail.com at your service, [76.17.169.44] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: STARTTLS SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 220 2.0.0 Ready to start TLS SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: EHLO videos.kaiserclix.com SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 250-smtp.gmail.com at your service, [76.17.169.44] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: AUTH LOGIN SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 334 VXNlcm5hbWU6 SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: [credentials hidden] SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 334 UGFzc3dvcmQ6 SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:31:59 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: [credentials hidden] SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 235 2.7.0 Accepted SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: MAIL FROM:greg@kaiserclix.com SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 250 2.1.0 OK oj15-20020a056214440f00b00698e65cdfefsm4999925qvb.87 - gsmtp SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: RCPT TO:greg@kaiserclix.com SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 250 2.1.5 OK oj15-20020a056214440f00b00698e65cdfefsm4999925qvb.87 - gsmtp SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: DATA SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 354 Go ahead oj15-20020a056214440f00b00698e65cdfefsm4999925qvb.87 - gsmtp SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Date: Tue, 2 Apr 2024 10:31:59 -0500 SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: To: greg@kaiserclix.com SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: From: greg@kaiserclix.com SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Reply-To: greg@kaiserclix.com SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Subject: Message From Site KaiserClix Video sharing (Your Site test) SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Message-ID: rA6dAcrYUq4gu6pNRcR3ppUpI5OKjHOahuTDLopSoE@videos.kaiserclix.com SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: X-Mailer: PHPMailer 6.9.1 (https://github.com/PHPMailer/PHPMailer) SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: MIME-Version: 1.0 SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Content-Type: multipart/alternative; SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: boundary="b1=_rA6dAcrYUq4gu6pNRcR3ppUpI5OKjHOahuTDLopSoE" SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Content-Transfer-Encoding: 8bit SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: --b1=_rA6dAcrYUq4gu6pNRcR3ppUpI5OKjHOahuTDLopSoE SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Content-Type: text/plain; charset=us-ascii SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Email: greg@kaiserclix.comTeste of comment SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: --b1=_rA6dAcrYUq4gu6pNRcR3ppUpI5OKjHOahuTDLopSoE SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Content-Type: text/html; charset=us-ascii SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: Email: greg@kaiserclix.com

Teste of comment SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: --b1=_rA6dAcrYUq4gu6pNRcR3ppUpI5OKjHOahuTDLopSoE-- SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:00 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: . SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:01 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 250 2.0.0 OK 1712071921 oj15-20020a056214440f00b00698e65cdfefsm4999925qvb.87 - gsmtp SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:01 America/Chicago] AVideoLog::ERROR: SMTP ERROR 1; message: CLIENT -> SERVER: QUIT SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:01 America/Chicago] AVideoLog::ERROR: SMTP ERROR 2; message: SERVER -> CLIENT: 221 2.0.0 closing connection oj15-20020a056214440f00b00698e65cdfefsm4999925qvb.87 - gsmtp SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:01 America/Chicago] AVideoLog::ERROR: SMTP ERROR 3; message: Connection: closed SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:01 America/Chicago] AVideoLog::DEBUG: sendEmail: SCRIPT_NAME: /AVideo/objects/sendEmail.json.php [02-Apr-2024 10:32:01 America/Chicago] AVideoLog::DEBUG: getCaptchaImage: Y2PqK - session_name 84b11d010cced71edffee7aa62c4eda0 session_id: 5kmaffuvq8orr2pbvo58hun6bn SCRIPT_NAME: /AVideo/objects/getCaptcha.php

DanielnetoDotCom commented 6 months ago

Your live is not public, it will not be notified

[02-Apr-2024 09:52:50 America/Chicago] AVideoLog::DEBUG: Notification::on_publish: Not public {"id":4,"title":"I am Live","public":0,"saveTransmition":0,"created":"2023-09-26 16:29:47","modified":"2023-09-26 16:29:47","key":"65134d4bec76e","description":"","users_id":32,"categories_id":1,"showOnTV":0,"password":"","live_servers_id":0,"key_with_index":"65134d4bec76e-1","live_index":"1"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
gregk63 commented 6 months ago

Is there another way to make it public? I thought this made it public.

https://snipboard.io/RlJIc2.jpg

DanielnetoDotCom commented 6 months ago

But this is not what is it saying here

https://github.com/WWBN/AVideo/issues/8935#issuecomment-2032790019

try clear the cache and try again

gregk63 commented 6 months ago

After clear cache I am now seeing these messages in the log but still no emails. Sorry, but some scheduler need to be turned? What is sendBulkEmail Scheduler? There are 3 subscribers.

[02-Apr-2024 14:44:15 America/Chicago] AVideoLog::DEBUG: Notification::on_publish: finishing and sending 3 emails SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 14:44:15 America/Chicago] AVideoLog::DEBUG: sendBulkEmail Scheduler SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [02-Apr-2024 14:44:15 America/Chicago] AVideoLog::DEBUG: sendBulkEmail Scheduler done total=3 SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php

DanielnetoDotCom commented 6 months ago

send email takes time, so for you to not wait we will send the emails in the background

gregk63 commented 6 months ago

I get that but the emails are never showing up? Is there a way to check the background process?

DanielnetoDotCom commented 6 months ago

do oyu have the scheduler properly runing?

check your health check page

image

gregk63 commented 6 months ago

Here is what my Health Check looks like. Sorry, I don't understand what 'Time is not found in file' and there is no file schedulerLastVisit.log in that directory.

https://snipboard.io/4NJ0e6.jpg

Here is my crontab.

Edit this file to introduce tasks to be run by cron.

#

Each task to run has to be defined through a single line

indicating with different fields when the task will be run

and what command to run for the task

#

To define the time you can provide concrete values for

minute (m), hour (h), day of month (dom), month (mon),

and day of week (dow) or use '*' in these fields (for 'any').

#

Notice that tasks will be started based on the cron's system

daemon's notion of time and timezones.

#

Output of the crontab jobs (including errors) is sent through

email to the user the crontab file belongs to (unless redirected).

#

For example, you can run a backup of all your user accounts

at 5 a.m every week with:

0 5 1 tar -zcf /var/backups/home.tgz /home/

#

For more information see the manual pages of crontab(5) and cron(8)

#

m h dom mon dow command

DanielnetoDotCom commented 5 months ago

after adding it to your crontab, check the "health check" if still an issue try to run this manually

php /var/www/html/AVideo/plugin/Scheduler/run.php
gregk63 commented 5 months ago

Running it with sudo worked. I am now seeing the emails Without it is getting all kinds of permission errors. I changed objects, videos and plugin to 755 and still getting this error.

PHP Warning: Module "curl" is already loaded in Unknown on line 0 PHP Warning: require_once(/var/www/html/AVideo/vendor/autoload.php): Failed to open stream: Permission denied in /var/www/html/AVideo/objects/autoload.php on line 2

Warning: require_once(/var/www/html/AVideo/vendor/autoload.php): Failed to open stream: Permission denied in /var/www/html/AVideo/objects/autoload.php on line 2 PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/AVideo/objects/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/AVideo/objects/autoload.php:2 Stack trace:

0 /var/www/html/AVideo/objects/include_config.php(79): require_once()

1 /var/www/html/AVideo/videos/configuration.php(45): require_once('...')

2 /var/www/html/AVideo/plugin/Scheduler/run.php(4): require_once('...')

3 {main}

thrown in /var/www/html/AVideo/objects/autoload.php on line 2

Fatal error: Uncaught Error: Failed opening required '/var/www/html/AVideo/objects/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/AVideo/objects/autoload.php:2 Stack trace:

0 /var/www/html/AVideo/objects/include_config.php(79): require_once()

1 /var/www/html/AVideo/videos/configuration.php(45): require_once('...')

2 /var/www/html/AVideo/plugin/Scheduler/run.php(4): require_once('...')

3 {main}

thrown in /var/www/html/AVideo/objects/autoload.php on line 2

DanielnetoDotCom commented 5 months ago

make sure your crontab is running as root