Author Topic: CiviMail cronjob returns 404 error  (Read 1101 times)

Offline markaconley

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
CiviMail cronjob returns 404 error
« on: December 20, 2010, 01:19:00 am »
Guys,

I am getting this error message back from the CiviMail cron job when running it on my GoDaddy host:

Status: 404 Not Found
Content-type: text/html

No input file specified.

My command to call the job is
 /web/cgi-bin/php5 "$HOME/html/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=adminuser&pass=password&key=sitekey"

Can any tell me how to correct this issue or provide a solution?

Offline Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 3586
  • Karma: 134
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly Drupal
Re: CiviMail cronjob returns 404 error
« Reply #1 on: December 20, 2010, 03:42:38 am »
Does the directory $HOME/html/sites/all/modules/civicrm/bin/ exist? That is a Drupal style directory but your profile says you use Joomla. Which are you using?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

Offline markaconley

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
Re: CiviMail cronjob returns 404 error
« Reply #2 on: December 21, 2010, 08:50:50 am »
Ah, I missed that. 
I'm using Joomla and I believe the path should be $HOME/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php

I'm making the change now.  Thank you.

Offline markaconley

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
Re: CiviMail cronjob returns 404 error
« Reply #3 on: December 22, 2010, 07:34:53 am »
I changed to the correct Joomla directory structure and I can locate the file, "civimail.cronjob.php".  Upon updating, afterwards I received the following error message:

Cron <sisteradmin@p3slhssl06> /web/cgi-bin/php5 "$HOME/html/snsha/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php"

Set-Cookie: PHPSESSID=gl8b74e9d3mges27qqdag9kdn3; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html

ERROR: You need to send a valid user name and password to execute this file

===============

Resultingly, I added the user name and password, using the following syntax however, now I'm back to the following error:

Cron <sisteradmin@p3slhssl06> /web/cgi-bin/php5 "$HOME/html/snsha/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=XXXXX&pass=XXXXXX&key=xN~!kpQwxm3cM1hTMV4aB09iO6"

Status: 404 Not Found
Content-type: text/html

No input file specified.


Once again I am using the GoDaddy Cron Manager in the Hosting Control Center, so it should only be a question of locating the "civimail.cronjob.php" and adding the validation string.   At least that's what I am assuming.

Is this a syntax problem?  Or something else that I am missing?

Offline Erich

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
Re: CiviMail cronjob returns 404 error
« Reply #4 on: April 22, 2012, 08:41:57 am »
I, too, am seeing this exact same error.

If I follow GoDaddy's instructions for submitting a cron job, there are no parameters on the command line and I get:
   ERROR: You need to send a valid user name and password to execute this file

Given that the cron job is a php script, if I add "?name=XXXXXXXX&pass=YYYYYYYY" I get:

   Status: 404 Not Found
   Content-type: text/html
   No input file specified.

Is there another way to pass parameters to the CiviMail cron job? 

Offline Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 3586
  • Karma: 134
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly Drupal
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007