WWBN / AVideo

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

Notification not sending mail #5264

Closed guymass closed 3 years ago

guymass commented 3 years ago

Updated to the last version. Notification is not sending mails anymore. Trying the test button shows:

Screen Shot 5781-09-22 at 20 25 02

Clicking the plugin help link shows this FYI: Screen Shot 5781-09-22 at 20 24 10

Mail test is OK.

guymass commented 3 years ago

Also I had one mail setup for my account but then I changed it, now I want to use it again and I get this message:

Screen Shot 5781-09-22 at 20 28 57

mail is not registered on the site, I am not sure why it complains this mail doesn't belong to me.

guymass commented 3 years ago

I think LDAP is causing some issues for users in regards to email and passwords. I would like to see the passwords fields disabled when using LDAP so users cannot change their passwords from there as this may cause some issues later with the ldap authentication server.

DanielnetoDotCom commented 3 years ago

This is a problem with your SMPT server. I do not think the LDAP login has anything to do with it.

guymass commented 3 years ago

what if a user tries to change their password and they thy to save it while only ldap is running, would that effect anything? as they cannot change or restore their passwords from there I wonder if they do try to change it would that cause issues.

guymass commented 3 years ago

I made sure no one is using this email and it is cleared to use for the site settings and I still get this error msg:

Screen Shot 5781-09-28 at 18 46 02

guymass commented 3 years ago

OK I fixed this issue, there was another user I had on the system which was admin and it had the email set to it, I wanted to delete that account but it seems as if the site requires an admin account with that email attached to it if I want to use it for the site mail. Now that error is gone, however I still cannot see any emails going out when I go live or any other channel, I am still testing also comments. Here are screen shots of what I see interesting regarding mail in the log while I start my live stream.

Screen Shot 5781-09-28 at 20 27 09

And maybe this error message has also something to do with it idk:

Screen Shot 5781-09-28 at 20 28 17

My mail server seems to be working fine sending and receiving mails so I am not sure yet what else it could be. The Notification plugin is set to send mails and Live/Uploads/Comments. Currently I don't see any.

guymass commented 3 years ago

I have been trying to investigate it further, it seems that some emails do pass for example when a user hits the bell of another channel, but other than that no notifications are sent, neither on mobile a user will never know that something is happening if the mobile app is closed. Those notifications are important and we don't know why it stopped sending emails.

This is mail configured for the site:

Screen Shot 5781-09-29 at 22 26 51

Mail test is OK!

Screen Shot 5781-09-29 at 22 33 49

Mails are sent but not sure why it shows your domain name on the Website

Screen Shot 5781-09-29 at 22 56 18

guymass commented 3 years ago

Testing Notification plugin show this:

Screen Shot 5781-09-29 at 22 59 22

guymass commented 3 years ago

This is the plugin configuration json:

{"emailEnabled":true,"emailLogo":"https://live.ahava528.com/videos/userPhoto/logo.png","notifyVerifiedUsersOnly":false,"notifyVideoUploadToVideoOwner":false,"notifyVideoUploadToSubscribers":true,"notifyVideoUploadToEmail":"admin@ahava528.com","notifyVideoUploadSubject":"New Video Uploaded!","notifyVideoUploadText":"{user} uploaded a new video {videoName}, Watch it here {videoLink}","notifyVideoUploadWebhook":"","notifyCommentsToVideoOwner":true,"notifyCommentsToEmail":"admin@ahava528.com","notifyCommentsSubject":"There is a new comment on the video","notifyCommentsText":"{user} commented on {videoName}, to view {videoLink}","notifyResponseToVideoOwner":true,"notifyResponseToCommenter":true,"notifyResponseToEmail":"admin@ahava528.com","notifyResponseSubject":"There is a new comment to your video","notifyResponseText":"{user} commented on {videoName}, to view {videoLink}","notifySubscribersWhenSomeoneGoesLive":true,"notifySubscribersWhenSomeoneGoesLiveSubject":"{user} is Live Streaming right now!","notifySubscribersWhenSomeoneGoesLiveText":{"type":"textarea","value":"{user}is Live Streaming right now!{siteTitle} "},"notifyNewUserSignUp":true,"signUpRequestUploadRights":false,"signUpRequestLivestreamRights":false,"signUpAutoResponseMessage":{"type":"textarea","value":"Hi {user},

welcome to Ahava528 platform{siteTitle}, we are thrilled that you are here."},"oneSignalEnabled":false,"oneSignalOnNewVideo":false,"oneSignalOnLiveStream":false,"oneSignalAPPID":"","oneSignalRESTAPIKEY":"","oneSignalFIREBASE_SENDER_ID":"","oneSignalDebugMode":false}

DanielnetoDotCom commented 3 years ago

HI

let me see if I understand.

when you test the email configuration it works, but it is not sending email notifications to the users correct?

did you check if your subscribers have the email correct saved on the database?

guymass commented 3 years ago

Well it was working before but I am not sure because now with the new ldap registration we have users login and only after they add their email. We don't know if that is the case because even former registered users are not getting any notification or emails. We have now two types of users, some which were registered before we incorporated ldap and those who came after.

What I am not sure about is how does the site mail work? If I have 4 admins one of which is just an account to hold the site email but it is not used besides to allow setting the email. That is because If I am an admin and I want to use in my own profile one mail mail1@domain.com and than configure the site email and test it on another email2@domain.com then I get an error message indicating that my user is not the owner of that email address.

DanielnetoDotCom commented 3 years ago

The site will always use this email as a sender

image

guymass commented 3 years ago

But for which Admin account? Where would I set it? What is the SMTP test for? For the Admin account I want to use this is how I set it.

Screen Shot 5781-10-01 at 15 53 01 Screen Shot 5781-10-01 at 15 53 07

guymass commented 3 years ago

What about the notification test I showed here on previous posts, does that has anything to do with it?

DanielnetoDotCom commented 3 years ago

based on your configuration this will be your sender (always)

image

This will be used to authenticate in your SMTP server

image

guymass commented 3 years ago

Well that is what it should be. but still the only mail I get is this one from my ldap registration form located here:

https://signon.ahava528.com

Screen Shot 5781-10-01 at 23 51 52

guymass commented 3 years ago

I think you have an admin account on our site, feel free to check it your self. Try to see if you get any mail when registering to for example to RaisingTheFrequesncy channel, he goes live everyday and his subs don't get any emails or notifications to their AVideo App to indicate he is live, he need to do it through FB and Telegram to alert all our members.

guymass commented 3 years ago

Does the Notification plugin test showing this is OK? Screen Shot 5781-10-02 at 19 49 24

DanielnetoDotCom commented 3 years ago

The notification has nothing to do with the email configuration.

What email exactly are you expecting to receive and did not receive ? (tell me only one example)

what is your log when you run the expected email event above?

guymass commented 3 years ago

Well I expect all email notifications listed here to arrive to my mail box specially those I am subscribed to: Screen Shot 5781-10-04 at 21 26 41

I used to receive all emails for each upload and live and now I get nothing. Also when I go live myself in the log it use to show all the emails being sent to my subs and now it shows nothing. There is nothing in the logs, everything I had I posted here.

Also there are not emails on video comments. One would never know if someone replied to their comments or when one of their favorite channel goes live. This is most important for keeping connection with the audience.

DanielnetoDotCom commented 3 years ago

Question:

Do the subscribers receive emails when someone uploads?

when something happens you MUST have something with sendSiteEmailAsync on the streamer log file, this may give us a clue what is going on

guymass commented 3 years ago

I don't get emails for uploads, but I see this in logs regarding sendSiteEmailAsync:

Screen Shot 5781-10-07 at 0 19 06

This was while I was uploading a file:

Screen Shot 5781-10-07 at 0 28 02

DanielnetoDotCom commented 3 years ago

I cannot see any error on your log file, check the apache.log and syslog for some error between the times 00:24:59 and 00:26:00

guymass commented 3 years ago

I only see in my apache error log this: [Sat Jun 19 03:26:31.456241 2021] [php7:notice] [pid 1818338] [client 178.162.220.42:36504] PHP Notice: Undefined property: stdClass::$bg in /var/www/html/AVideo/Encoder/view/videosListEPG.php on line 113 [Sat Jun 19 03:26:31.456345 2021] [php7:warn] [pid 1818338] [client 178.162.220.42:36504] PHP Warning: filectime(): stat failed for /HLS/live/60bd08b578c08_9825/0.ts in /var/www/html/AVideo/Encoder/view/videosListEPG.php on line 54 [Sat Jun 19 03:26:31.456672 2021] [php7:warn] [pid 1818338] [client 178.162.220.42:36504] PHP Warning: filectime(): stat failed for /HLS/live/60317a5c3d2d6_24348/0.ts in /var/www/html/AVideo/Encoder/view/videosListEPG.php on line 54

In my apache access log I don't see anything special in those times you suggested and nothing regarding mail.

I tries removing the plugin and reinstalling it, that didn't do anything. I do get mails from the site for registration or when admin sends a mail to all members so the site is using and sending emails from other functions, but the Notification plugin doesn't do anything anymore.

mduhr commented 3 years ago

I have the same issue with my installation. The server can defintely send mails correctly because things like notify all my subscribers is working but subscribers do not receive emails after a video upload. When i do a tcpdump and filter for our mailserver, i see trafic when using "notifiy all subscribers" but not during or after the video upload even if the avideo.log tells me "aVideoEncoderNotifyIsDone" without an error.

I deactivated one signal in the plugin because i only intend on using mail to send out notifications, from my understanding this should not interfere with mail delievery, right?

If you need additional information let me know.

guymass commented 3 years ago

Daniel bro we need a solution here or some way to get better tests. This is very important for the site and must be addressed, please.

DanielnetoDotCom commented 3 years ago

Sorry but it looks to me a problem in your email server

try to use google as a stmp server and check if the error persists

mduhr commented 3 years ago

It can not be the smtp server because i can notify all my subscribers via email in the my subscribers menu. So email delivery via smtp is working. Just the mail delivery with your notification plugin is not working.

guymass commented 3 years ago

Same here, I get emails for other notifications from the site. My email server works just fine. Screen Shot 5781-10-12 at 19 49 03 Screen Shot 5781-10-12 at 19 48 22

If I send email to all site members they will receive them, but if I go Live the plugin doesn't initiate the mail process.

DanielnetoDotCom commented 3 years ago

We have 2 different things here, @mduhr and @guymass what confuses me. you guys claim to be the same error but I am seeing different complaints

@guymass first said the problem was when you upload new videos, and now you are saying the problem is when you go live.

if emails are working when you upload, it is a waste share logs on the upload process. you should look at the logs when you take some action that you expect to receive emails and you do not. and also MUST have something on the log (avideo or apache), otherwise, I cannot help you.

guymass commented 3 years ago

This Notification plugin sends emails for uploads and also notifies users when a channel goes live, non of those emails/notifications work. All other emails from the site like registrations and admin email to members those do work!

Screen Shot 5781-10-12 at 20 41 48

In the logs I don't see anything in regards to emails when someone goes live or uploads a video etc....

I will keep investigating but currently I don't see anything. The notifications did work before the last plugin update.

guymass commented 3 years ago

I tried uploading a file and this is the only email reference in log I see and no mails have arrived to indicate to admin that a new file was uploaded and neither to any of the channel subs.

[22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: Video:::getHigestResolution:: could not get the resolution from file name [/var/www/html/AVideo/videos/video_210611064725_6433/video_210611064725_6433.mp4], trying a slower method SCRIPT_NAME: /view/channels.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: Resize Small JPG /var/www/html/AVideo/videos/video_210622225633_aff1/video_210622225633_aff1.jpg, /var/www/html/AVideo/videos/video_210622225633_aff1/video_210622225633_aff1_thumbsSmallV2.jpg SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: im_resizeV3: /var/www/html/AVideo/videos/video_210622225633_aff1/video_210622225633_aff1.jpg, /var/www/html/AVideo/videos/video_210622225633_aff1/video_210622225633_aff1_thumbsSmallV2.jpg, 640, 360 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: Video:::getHigestResolution:: could not get the resolution from file name [/var/www/html/AVideo/videos/video_210611064601_4741/video_210611064601_4741.mp4], trying a slower method SCRIPT_NAME: /view/channels.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: sendVideoUploadEmails: 6659 upload test SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: sendSiteEmailAsync start (php objects/sendSiteEmailAsync.php '/var/www/html/AVideo/videos/cache/tmpFiles/60d2408da685e') SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: php objects/sendSiteEmailAsync.php '/var/www/html/AVideo/videos/cache/tmpFiles/60d2408da685e' > /dev/null 2>&1 & echo $!; SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: sendSiteEmailAsync end 1006681 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: AD_Server:afterNewVideo start SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: AD_Server:afterNewVideo is disabled SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: createStprits: videosURL: https://live.ahava528.com/videos/video_210622225633_aff1/video_210622225633_aff1_Low.mp4 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: createStprits: videosURL+token: https://live.ahava528.com/videos/video_210622225633_aff1/video_210622225633_aff1_Low.mp4 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: createStprits: creating https://live.ahava528.com/videos/video_210622225633_aff1/video_210622225633_aff1_Low.mp4 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php [22-Jun-2021 22:57:01 Asia/Jerusalem] AVideoLog::DEBUG: Warning: Slow process detected [video::getAllVideos foreach] On Line 1129 takes 0.2399 seconds to complete, Limit (0.2). /var/www/html/AVideo/view/index.php SCRIPT_NAME: /view/index.php

guymass commented 3 years ago

I see this one as well not sure if its related:

AVideoLog::DEBUG: getUsageFromFilename: we did not find any file for /var/www/html/AVideo/videos/v_210620004847_35a5/v_210620004847_35a5, we will create a fake one [{"file":"\/var\/www\/html\/AVideo\/objects\/video.php","line":1266,"function":"getUsageFromFilename","args":["v_210620004847_35a5"]},{"file":"\/var\/www\/html\/AVideo\/objects\/video.php","line":1187,"function":"updateFilesize","class":"Video","type":"::","args":[6559]},{"file":"\/var\/www\/html\/AVideo\/objects\/video.php","line":1116,"function":"getInfo","class":"Video","type":"::","args":[{"id":6559,"user":"streamer","name":"streamer","email":"manager@ahava528.com","created":"2021-06-20 00:48:47","modified":"2021-06-20 00:48:47","isAdmin":1,"status":"e","photoURL":"videos\/userPhoto\/photo3.png","lastLogin":"2021-06-20 00:48:46","backgroundURL":null,"canStream":1,"canUpload":0,"canCreateMeet":1,"canViewChart":1,"about":"\u05d7\u05e9\u05d9\u05e4\u05ea \u05d4\u05e9\u05e7\u05e8\u05d9\u05dd \u05d4\u05d0\u05d2'\u05e0\u05d3\u05d5\u05ea \u05d5\u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05d5\u05ea \u05d4\u05d0\u05e4\u05dc\u05d5\u05ea \u05e9\u05dc \u05d1\u05e0\u05d9 \u05d4\u05e0\u05d7\u05e9 \u05de\u05e9\u05d5\u05e9\u05dc\u05ea \u05e7\u05d9\u05d9\u05df. \u05d6\u05d5\u05d4\u05d9 \u05de\u05dc\u05d7\u05de\u05d4 \u05e8\u05d5\u05d7\u05e0\u05d9\u05ea, \u05ea\u05d5\u05d3\u05e2\u05ea\u05d9\u05ea \u05de\u05d5\u05dc \u05d0\u05d5\u05d9\u05d9\u05d1 \u05d7\u05e1\u05e8 \u05de\u05e2\u05e6\u05d5\u05e8\u05d9\u05dd \u05d0\u05d5 \u05de\u05d5\u05e1\u05e8 \u05e9\u05dc\u05d0 \u05d9\u05d1\u05d7\u05dc \u05d1\u05d3\u05e8\u05db\u05d9\u05dd \u05e2\u05e8\u05de\u05d5\u05de\u05d9\u05d5\u05ea \u05de\u05d0\u05d5\u05d3 \u05dc\u05e7\u05d3\u05dd \u05d0\u05ea \u05de\u05d8\u05e8\u05ea\u05d5 \u05dc\u05e9\u05dc\u05d5\u05d8 \u05d1\u05d1\u05e8\u05d9\u05d0\u05d4 \u05d5\u05d1\u05d0\u05e0\u05d5\u05e9\u05d5\u05ea \u05db\u05d5\u05dc\u05d4. \u05d4\u05d4\u05e1\u05ea\u05e8\u05d4 \u05d4\u05d4\u05e1\u05d8\u05d5\u05e8\u05d9\u05ea \u05d4\u05e2\u05e6\u05d5\u05de\u05d4 \u05e9\u05dc \u05d4\u05d0\u05de\u05e4\u05e8\u05d9\u05d4 \u05d4\u05d8\u05d0\u05e8\u05d8\u05d0\u05e8\u05d9\u05ea \u05d5\u05de\u05e9\u05de\u05e2\u05d5\u05ea\u05d4 \u05db\u05de\u05d5\u05e8\u05e9\u05ea \u05e9\u05dc \u05d7\u05d9\u05d9\u05e0\u05d5 \u05d0\u05e9\u05e8 \u05d4\u05d5\u05e2\u05dc\u05de\u05d4 \u05d1\u05de\u05db\u05d5\u05d5\u05df \u05de\u05ea\u05d5\u05d3\u05e2\u05ea \u05d4\u05e2\u05d5\u05dc\u05dd. \u05d1\u05e2\u05e8\u05d5\u05e5 \u05d4\u05d6\u05d4 \u05ea\u05d5\u05db\u05dc\u05d5 \u05dc\u05e8\u05d0\u05d5\u05ea \u05de\u05d9\u05d3\u05e2 \u05d0\u05e9\u05e8 \u05d1\u05d4\u05d7\u05dc\u05d8 \u05d9\u05d2\u05e8\u05d5\u05dd \u05dc\u05db\u05dd \u05dc\u05e9\u05d0\u05d5\u05dc \u05e9\u05d0\u05dc\u05d5\u05ea.","channelName":"Streamer528","emailVerified":1,"analyticsCode":"","externalOptions":"","first_name":null,"last_name":null,"address":null,"zip_code":null,"country":null,"region":null,"city":null,"donationLink":"https:\/\/paypal.me\/flatearthisrael","extra_info":null,"title":"Testing Live Re-Stream on 20-Jun-21-00:47:19","clean_title":"testing-live-re-stream-on-20-jun-21-00-47-19","description":"Live Stream Description - Test","views_count":0,"views_count_25":0,"views_count_50":0,"views_count_75":0,"views_count_100":0,"users_id":3,"categories_id":1,"filename":"v_210620004847_35a5","duration":"","type":"video","videoDownloadedLink":"","order":1,"rotation":0,"zoom":1,"youtubeId":null,"videoLink":"","next_videos_id":null,"isSuggested":0,"trailer1":null,"trailer2":null,"trailer3":null,"rate":null,"can_download":0,"can_share":0,"rrating":"","only_for_paid":0,"serie_playlists_id":null,"sites_id":null,"encoderURL":"","filepath":"","filesize":0,"live_transmitions_history_id":1289,"iconClass":"fa fa-image","category":"General","clean_category":"general","category_description":"\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4 \u05e4\u05e8\u05d8\u05d9\u05ea","videoCreation":"2021-06-20 00:48:47","videoModified":"2021-06-20 00:48:47","likes":0,"dislikes":0},false]},{"file":"\/var\/www\/html\/AVideo\/objects\/videos.json.php","line":26,"function":"getAllVideos","class":"Video","type":"::","args":["",false,true,[],false,true,false]}] SCRIPT_NAME: /objects/videos.json.php [20-Jun-2021 00:48:51 Asia/Jerusalem] AVideoLog::DEBUG: rrmdir: The Directory was not deleted, trying again /var/www/html/AVideo/videos/cache/YPTObjectCache//subtitleswitcher_getvideotags527//live.ahava528.com//https//admin_c8ee7f6b751110255491a83387e6bf93/ SCRIPT_NAME: /plugin/Live/on_record_done.php

DanielnetoDotCom commented 3 years ago

it is very strange, all mails from the site use the same function.,

do you get any result with the command:

php objects/sendSiteEmailAsync.php '/var/www/html/AVideo/videos/cache/tmpFiles/60d2408da685e'

I hope this file exists. /var/www/html/AVideo/videos/cache/tmpFiles/60d2408da685e

I really cannot reproduce it, I only guess it is dues some non-standard configuration

guymass commented 3 years ago

I get this error:

PHP Warning: require_once(../videos/configuration.php): failed to open stream: No such file or directory in /var/www/html/AVideo/objects/sendSiteEmailAsync.php on line 4 PHP Fatal error: require_once(): Failed opening required '../videos/configuration.php' (include_path='.:/usr/share/php') in /var/www/html/AVideo/objects/sendSiteEmailAsync.php on line 4

$ ls /var/www/html/AVideo/videos/cache/tmpFiles/60d2408da685e /var/www/html/AVideo/videos/cache/tmpFiles/60d2408da685e

guymass commented 3 years ago

OK I edited sendSiteEmailAsync.php and removed the ../ in config file path and now the test worked! So what does it mean now?

Screen Shot 5781-10-13 at 0 16 24

guymass commented 3 years ago

Tested an upload file and the mail notification was sent, however still it didn't send it for Live stream.

Screen Shot 5781-10-13 at 0 16 02

guymass commented 3 years ago

BTW what is Signal and do I need to use it?

guymass commented 3 years ago

OK I changed the site's email to use gmail instead of my mail server and the results are the same, we still don't get any notifications for Live streams nor to files uploads. The mail test show success so I don't know anymore what to try. Screen Shot 5781-10-13 at 15 10 33 Screen Shot 5781-10-13 at 15 10 37 Screen Shot 5781-10-13 at 15 18 22

guymass commented 3 years ago

Here is the log I see:

Screen Shot 5781-10-13 at 15 21 56

guymass commented 3 years ago

When I run this command manually I get the email but it doesn't run for some reason while its called by the script.

This works manually: php objects/sendSiteEmailAsync.php '/var/www/html/AVideo/videos/cache/tmpFiles/60d335c1704c2'

This is from log and the mail is not sent: [23-Jun-2021 16:23:13 Asia/Jerusalem] AVideoLog::DEBUG: sendSiteEmailAsync start (php objects/sendSiteEmailAsync.php '/var/www/html/AVideo/videos/cache/tmpFiles/60d335c1704c2') SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 16:23:13 Asia/Jerusalem] AVideoLog::DEBUG: php objects/sendSiteEmailAsync.php '/var/www/html/AVideo/videos/cache/tmpFiles/60d335c1704c2' > /dev/null 2>&1 & echo $!; SCRIPT_NAME: /plugin/Live/on_publish.php

Mail arrives only for the command line:

Screen Shot 5781-10-13 at 16 28 01

DanielnetoDotCom commented 3 years ago

I get this error:

PHP Warning: require_once(../videos/configuration.php): failed to open stream: No such file or directory in /var/www/html/AVideo/objects/sendSiteEmailAsync.php on line 4 PHP Fatal error: require_once(): Failed opening required '../videos/configuration.php' (include_path='.:/usr/share/php') in /var/www/html/AVideo/objects/sendSiteEmailAsync.php on line 4

$ ls /var/www/html/AVideo/videos/cache/tmpFiles/60d2408da685e /var/www/html/AVideo/videos/cache/tmpFiles/60d2408da685e

This is an important clue, I will send an update

DanielnetoDotCom commented 3 years ago

Hi

I just sent some updates, that may resolve the PHP Warning: require_once(../videos/configuration.php): also it will produce some logs on emails sending

guymass commented 3 years ago

great, gonna update and make some tests and get back to you

guymass commented 3 years ago

OK I see again the list of emails being sent to all subs, but that happened once I don't see it again. The emails didn't go through also not for uploads. I will keep testing

mduhr commented 3 years ago

In my case the fix didnt solve the problem. The notification on video upload is still not working. Also the logging didnt change for me.

DanielnetoDotCom commented 3 years ago

The only chance to help fix your side is if you. Find and provide log clues . It may be on avideo log or Apache log

mduhr commented 3 years ago

Sorry but it is a issue for me to find log clues because the logs seem to be fine. Maybe you can have a look. avideo.log avideo.access.log

DanielnetoDotCom commented 3 years ago

Instead of share your full log delete your log file and try to make an action that you supposed to receive emails then share your log

guymass commented 3 years ago

I only see this in log and also now the translation on my home page for Recently Added/Populare etc.. are not working since this last gist pull.

Here is the log section:

em] Restreamer.json.php php://input {"m3u8":"https:\/\/live.ahava528.com:8443\/live\/60ce63c97dbc7-1.m3u8","restreamerURL":"https:\/\/live.ahava528.com\/plugin\/Live\/standAloneFiles\/restreamer.json.php","restreamsDestinations":[],"token":"WWtoY0NvR2FZYU5QUThtcXhQb0FPMXR> [23-Jun-2021 18:25:21 Asia/Jerusalem] Restreamer.json.php ERROR There are no restreams Destinations [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: rrmdir: The Directory was not deleted, trying again /var/www/html/AVideo/videos/cache/YPTObjectCache/ SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: sendSiteEmailAsync start (php objects/sendSiteEmailAsync.php '/var/www/html/AVideo/videos/cache/tmpFiles/60d352619e279') SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: php objects/sendSiteEmailAsync.php '/var/www/html/AVideo/videos/cache/tmpFiles/60d352619e279' > /dev/null 2>&1 & echo $!; SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: sendSiteEmailAsync end 1933658 SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: NGINX Live::controlRecordingAsync start (php plugin/Live/controlRecording.php '60ce63c97dbc7-1' '0' '1') SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: php plugin/Live/controlRecording.php '60ce63c97dbc7-1' '0' '1' > /dev/null 2>&1 & echo $!; SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: NGINX Live::controlRecordingAsync end 1933660 SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: NGINX Live::on_publish end SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: NGINX Live::on_publish YPTSocket start (php /var/www/html/AVideo/plugin/Live/on_publish_socket_notification.php '3' 'https://live.ahava528.com:8443/live/60ce63c97dbc7-1.m3u8' '1317') SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: php /var/www/html/AVideo/plugin/Live/on_publish_socket_notification.php '3' 'https://live.ahava528.com:8443/live/60ce63c97dbc7-1.m3u8' '1317' > /dev/null 2>&1 & echo $!; SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: NGINX Live::on_publish YPTSocket end 1933662 SCRIPT_NAME: /plugin/Live/on_publish.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: Bot Detected, NOT showing the cache (/v/4640?page=3&error=%D7%90%D7%99%D7%A0%D7%9B%D7%9D+%D7%9E%D7%95%D7%A8%D7%A9%D7%99%D7%9D+%D7%9C%D7%A9%D7%93%D7%A8%21&yptDeviceID=0ab99441-f65f-4815-95a9-22862788b80c&channelName=RaisingTheFrequency) FROM: 66.249.7> [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: getStatsNotifications: 1 [{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/view\/menuRight.php","line":448,"function":"getStatsNotifications","args":[]},{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/Live.php","line":49,"args":["\/var\/www\/html\/A> [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /view/index.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: Live::getStatsObject[0]: Creating a waitfile /var/www/html/AVideo/videos/cache/a84fdc425fca22fe1f87e4a7a8db29b9 SCRIPT_NAME: /view/index.php [23-Jun-2021 18:25:21 Asia/Jerusalem] AVideoLog::DEBUG: