By saovry on Saturday, 23 October 2021
Posted in Technical Issues
Replies 15
Likes 0
Views 1.1K
Votes 0
Hi Stackideas,
Could you help me to install the cronjob and configure with easysocial.
thank u
It seems like it doesn't run the cronjob automatically for some reason, can you consult with your Webhosting provider and see whether I set up this correctly?

You can check my attached screenshot below, this is the cronjob command I set up.
·
Monday, 25 October 2021 10:48
·
0 Likes
·
0 Votes
·
0 Comments
·
I get this message from our Web Hosting

Hello,

As per the logs, cron is running fine:

Oct 24 23:25:01 server CROND[29628]: (seekkhmer) CMD (php /home/seekkhmer/domains/seekkhmer.com/public_html/components/com_easysocial/cron.php)
Oct 24 23:30:01 server CROND[29814]: (seekkhmer) CMD (php /home/seekkhmer/domains/seekkhmer.com/public_html/components/com_easysocial/cron.php)


Manual execution:
CT-6a07582f-0c32-4c45-8725-c08d6a54e30c /# php /home/seekkhmer/domains/seekkhmer.com/public_html/components/com_easysocial/cron.php
{"status":200,"message":"Cronjob processed successfully"}
CT-6a07582f-0c32-4c45-8725-c08d6a54e30c /#

Regards,


CronJob is working with EasySocial or not according this message from my WebHosting..?
thank u
·
Monday, 25 October 2021 11:46
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like if the CURL crawl back your site domain https://seekkhmer.com/ then it will return the following error :


Peer reports incompatible or unsupported protocol version.


You can try to contact your Webhosting provider again, perhaps they know more about why hitting this error?

They can test this using this URL https://seekkhmer.com/test.php .
·
Monday, 25 October 2021 12:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Could you explain them, they asked me here
What are the requirements to run the script ?

so I can tell them clearly and make them to understand more..

thank u
·
Monday, 25 October 2021 22:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Could you explain them, they asked me here
What are the requirements to run the script ?

so I can tell them clearly and make them to understand more..

Basically, we need to run this script from this file JoomlaFolder/components/com_easysocial/cron.php but somehow it seems like it doesn't really trigger the script so unable to run the task from the component.

The reason why it shows this response {"status":200,"message":"Cronjob processed successfully"} is because this message is hardcoded from the cron.php file, so this message can't determine whether the curl to that URL can succeed or fail.

Then what we found out that as long as we try to use PHP curl back the site domain itself, then it will show this response "Peer reports incompatible or unsupported protocol version.". In other words, if we curl this file https://seekkhmer.com/components/com_easysocial/cron.php also will hit the same error.

Or do you have any other methods that can support using CURL or wget from the cronjob?

For example :


curl --user-agent -O "https://seekkhmer.com/index.php?option=com_easysocial&cron=true" >/dev/null

/usr/bin/wget -O /dev/null "https://seekkhmer.com/index.php?option=com_easysocial&cron=true"
·
Tuesday, 26 October 2021 11:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Here is the message from my parnter

You can try wget or curl.

5 * * * * /usr/bin/wget -q -O - http://example.com/...
OR

If wget is not installed, you can use curl. The following command runs every 5 minutes.

*/5 * * * /usr/bin/curl --silent "https://example.com/...." > /dev/null 2>&1

Regards,
thank
·
Tuesday, 26 October 2021 11:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Okay, need your help to ask them to check again that 2 cronjob command I set up and see what response it shows from the server when it executes the cronjob.

Also, I am wondering why I can't receive that cronjob response even I already set my email address from "• Send all Cron output to e-mail" section.
·
Tuesday, 26 October 2021 12:46
·
0 Likes
·
0 Votes
·
0 Comments
·
I get this message from my Web Server.

I see below cron is set, and it's executed as per the logs:


CT-6a07582f-0c32-4c45-8725-c08d6a54e30c /# crontab -u seekkhmer -l
#direct_crons enabled. Safe to edit this file. DirectAdmin will update accordingly.
MAILTO="arlex.wong@stackideas.com"
PATH=/usr/local/php80/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/seekkhmer/.local/bin:/home/seekkhmer/bin
*/3 * * * * /usr/bin/curl --silent "https://seekkhmer.com/index.php?option=com_easysocial&cron=true&phrase=seekk999";
*/6 * * * * /usr/bin/wget -q -O - https://seekkhmer.com/index.php?option=com_easysocial&cron=true&phrase=seekk999


Oct 26 02:24:01 server CROND[2947]: (seekkhmer) CMD (/usr/bin/wget -q -O - https://seekkhmer.com/index.php?option=com_easysocial&cron=true&phrase=seekk999)

Oct 26 02:24:01 server CROND[2951]: (seekkhmer) CMD (/usr/bin/curl --silent "https://seekkhmer.com/index.php?option=com_easysocial&cron=true&phrase=seekk999"

Oct 26 02:27:01 server CROND[3064]: (seekkhmer) CMD (/usr/bin/curl --silent "https://seekkhmer.com/index.php?option=com_easysocial&cron=true&phrase=seekk999"

Oct 26 02:30:01 server CROND[3159]: (seekkhmer) CMD (/usr/bin/curl --silent "https://seekkhmer.com/index.php?option=com_easysocial&cron=true&phrase=seekk999"
Oct 26 02:30:01 server CROND[3158]: (seekkhmer) CMD (/usr/bin/wget -q -O - https://seekkhmer.com/index.php?option=com_easysocial&cron=true&phrase=seekk999)


Regards,

Prak C
InterServer, Inc.
https://interserver.net
·
Tuesday, 26 October 2021 15:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Okay, thanks.

I can see that the cronjob will automatically trigger now, now the issue is not related to the cronjob.

It seems like when it triggers the script, it required more time to execute the script, you can check my attached screenshot below.

Is there a way to increase the script execution time to longer on the server?

I think this thing might be related to PHP.ini, Cloudflare or Fastcgi.

Is it can consult with your Webhosting provider again and see if they have experienced this issue before?
·
Tuesday, 26 October 2021 18:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
Here is the message from my partner.

I've raised php limits now, please check.

Regards,

Binil
InterServer, Inc

It is Cloudflare DNS that it make my website Error 524-Timeout. They advice me to disable some proxies in Cloudflare.

Could you check? Is it fix the CronJob or not?

thank u
·
Tuesday, 26 October 2021 19:16
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry for the delay of this reply, I didn't check after you respond to us last night.

It seems like it works now but hitting another issue which is your current SMTP mailer setup, it seems like your current SMTP mailer setup is not correct, can you give it a check?

You can check my attached screenshot below, this error is Joomla trying to send the email notification to the site user but returning this error SMTP Error: Could not authenticate..

Even you test send mail button from your site backend > system > global configuration > server, it also hit the same, I believe after you manage to solve then everything will be fine.
·
Wednesday, 27 October 2021 12:20
·
0 Likes
·
0 Votes
·
0 Comments
·
I've enabled smtp port for vps and created email account.
==
Username: info@seekkhmer.com
Password: Srey_Ra1S$R123
POP/IMAP Server: server.seekkhmer.com
SMTP Server: server.seekkhmer.com port 587
==

Please disable cloudflare proxy for server.seekkhmer.com

Regards,


Dear Stackideas,
Could you help me to check this new update from my Webhosting? I try to follow up with them about cronjob and smpt but I don't get completely fix. Since they said they enable smpt but I still don't get any emails.

Thank you..
·
Sunday, 31 October 2021 16:18
·
0 Likes
·
0 Votes
·
0 Comments
·

Dear Stackideas,
Could you help me to check this new update from my Webhosting? I try to follow up with them about cronjob and smpt but I don't get completely fix. Since they said they enable smpt but I still don't get any emails.

Thank you..

Hmm, it seems like your mail server returned the following error when I test send email from your site configuration page.


SMTP Error: The following recipients failed: saovrysok@hotmail.com: User account info@seekkhmer.com has sent too many emails


Is it your mail server has some restriction that can't send more emails per day?
·
Monday, 01 November 2021 12:08
·
0 Likes
·
0 Votes
·
0 Comments
·

Dear Stackideas,
Could you help me to check this new update from my Webhosting? I try to follow up with them about cronjob and smpt but I don't get completely fix. Since they said they enable smpt but I still don't get any emails.

Thank you..

Hmm, it seems like your mail server returned the following error when I test send email from your site configuration page.


SMTP Error: The following recipients failed: saovrysok@hotmail.com: User account info@seekkhmer.com has sent too many emails


Is it your mail server has some restriction that can't send more emails per day?


After I asked them from your question in here, I got the message from them again
Hello,
DKIM and SPF records have been corrected for the domain.
Please check the email sending again and let us know.

1. Could you use your email to test at Server?
they fixed and now we can get this message The email was sent to saovrysok@hotmail.com using SMTP. You should check that you've received the test email. but I don’t see any email sent out to saovrysok@hotmail.com

When you test with your email so you can give me more information for them to check further so I may get quickly feedback with fix early.

thank u
·
Monday, 01 November 2021 22:31
·
0 Likes
·
0 Votes
·
0 Comments
·
From what I tested, I can get the email notification sent from your site now.

Can you monitor again which kind of email notification you can't receive?
·
Tuesday, 02 November 2021 12:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post