Hello,

I just updated from 6.x-1.8 to 1.9 and within minutes I started getting cron emails with
/usr/bin/wget -O - -q http://mydomain.com/scheduler/cron as the title and a page of html code in the body.

Any ideas? I'm going to downgrade to 1.8 for now.

Thanks,
Paul

Comments

jonathan1055’s picture

Hi Paul,

Yes there was a change to the cron code way back, but we've not had a new release for so long I'll need to search back and find it. I seem to recall we added blank output in the function to allow the lightweight cron to be tested manually by the admin.

It might be that scheduler's cron is working fine but previously no output was created. Now there is output it's being e-mailed to you. What exactly do you have in your crontab definition? Also do you get the 'started' and 'completed' messages in the dblog?

Jonathan

jonathan1055’s picture

Title: 6.x-1.9 & cron » Cron page html output is emailed to admin
Status: Active » Postponed (maintainer needs more info)

I think that cron is working fine, but that the parameters of your wget have not been set to discard the returned page output. This is a normal thing to do. However this may not have been noticed in 1.8 as we were not returning any content. The enhancement in #1023414: Add tabs to admin scheduler settings page which allowed the admin to test the lightweight cron directly had to return something for the page to be re-displayed. This has now made it into 1.9

When testing that change I already had my curl and wget settings so that the page was discarded.

modiphier’s picture

Had this in my cron settings in cpanel.

/usr/bin/wget -O - -q http://mydomain.com/scheduler/cron

I looked in the readme with current version and although I didn't match them up side by side it looked like nothing changed at a quick glance. so I didn't touch what I had been using.

Should this be changed to something different?

Thanks

modiphier’s picture

ok I uploaded the 6.x-1.9 and changed my cron entry to curl >/dev/null 2>&1 .. and i am not getting any emails but I do not have any tabs on my settings page as I read in one of the commit posts. I started to try to manually apply the patch for 1.8 and after the first few lines the 6.-1.9 version has some of the callbacks or code and it looks like it has the commit applied in some mannor from what I can see with my limited php experience so I stopped trying to add the patch and cleared my cache and refreshed and still no tabs..

jonathan1055’s picture

Hi,
That's good that you are not getting the e-mails. > /dev/null seems to be a more powerful way to ditch the content than using -q which is meant to turn off the output.

But now you have a new problem with no tabs. Can you start a new issue for that one, so that this issue remains related to the cron problem.

If we ported #1526458: Lightweight Cron help page could use some improvements back to 6-x.1.9 then the example would include /dev/null which I think is more important now that cron returns html output.

Jonathan

jonathan1055’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Closing this, as the original problem has been sorted. If we get more issues on this subject then we could consider porting #1526458: Lightweight Cron help page could use some improvements to D6, but for now this issue is considered close.
Jonathan

jonathan1055’s picture

Issue summary: View changes
Status: Closed (works as designed) » Closed (fixed)
jonathan1055’s picture