Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Cron Jobs

12 years 2 months ago
Licenses:
JomSocial Active Socialize Expired

Having trouble with the cron job we created for our site. Here's what we did:

1. Went to Cpanel and clicked Cron jobs
2. Applied the following code:

lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null

3. Common Settings were set as provided in your documentation (every 30 min, every hour, every day, etc.)

We've checked the mail queue in our Jomsocial dashboard, and none of the emails have been sent. When we click on the "Execute Cron" option, it simply takes us to the frontpage of the website. The emails remain unsent.

When I contacted our hosting provider, here's what they provided:

"I have checked the cron service's' logs and I see that the cron command has been executed successfully. Here are the latest log lines:

[2014-08-02 18:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-02 19:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-02 20:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-02 21:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-02 22:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-02 23:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 00:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 01:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 02:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 03:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 04:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 05:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 06:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 07:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 08:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 09:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 10:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 11:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 12:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 13:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 14:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 15:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null
[2014-08-03 16:30:01]: CMD: theperf5 lynx -source " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null

According to the JomSocial documentation the cron command is set correctly. If the above command does not work you can try to set one of the alternative commands:

wget -O /dev/null " www.theperfectshape.net/index.php?option..._community&task=cron " > /dev/null

or

curl " www.theperfectshape.net/index.php?option..._community&task=cron " >/dev/null 2>&1

You should also check if yuor email settings are set correctly, I see this error in the email logs:

2014-08-03 06:07:11 [31309] H=(delivery.mailspamprotection.com) [184.154.48.170]:56879 I=[173.236.52.210]:25 F=<> rejected RCPT <This email address is being protected from spambots. You need JavaScript enabled to view it.>: SITEGROUND: No Such mailbox here

If you wish to use this email address This email address is being protected from spambots. You need JavaScript enabled to view it. you need to create it first from your cPanel -> Email Accounts.


I updated the email to This email address is being protected from spambots. You need JavaScript enabled to view it., but it still did not resolve the cron job. I again contacted our provider, and they responded:

According to the log file your cron jobs are being executed properly per one hour. I confirm the cron job set in cPanel is being executed properly.

Unfortunately I can not say why the jobs in the administrative panel are still being displayed as pending. I would advise you to contact the developer of the plugin that you are using and ask the person for further assistance. If the developer provides some additional settings that we should made on your account, update the ticket and we will gladly help.

12 years 2 months ago
Licenses:

Hi, Tony Martinez.

This is caused by sh404sef plugin. It creates wrong URL for cron job url and this redirect to start page. I disabled sh404sef plugin and fired cron manually from Mail Queue. All pending emails was sent. It could be a conflict or rather extension misconfiguration. Please, contact with sh404sef developers and ask them for assistance.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Tony Martinez
12 years 2 months ago
Licenses:
JomSocial Active Socialize Expired

Awesome, thanks! We started receiving emails this morning.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW