CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • CiviMail cron job does not recognise correct username/password
Pages: [1]

Author Topic: CiviMail cron job does not recognise correct username/password  (Read 2148 times)

benmoreassynt

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Joomla 2.5.19/Wordpress 3.8
  • MySQL version: 5.5.35
  • PHP version: 5.3.10
CiviMail cron job does not recognise correct username/password
March 12, 2013, 12:50:03 pm
Hi,

A security issue with a Joomla install led to various password changes and tightened security, and as a result the cron job to process CiviMail queues stopped working. In theory all that was required was a password change, but it's proved much harder than that.

This was the code that I was using:

Code: [Select]
PARAMS='-sdefault -uuser -ppassword'

cd /path/to/joomla/webroot/administrator/components/com_civicrm/civicrm/;
/usr/bin/nice -n19 /usr/bin/php bin/civimail.cronjob.php $PARAMS

Updating this with a new password now gets rejected on the basis that cli.php requires additional parameters.

So I switched to the following recommended method, including the required params:

Code: [Select]
CIVI_ROOT=/path/to/joomla/webroot/administrator/components/com_civicrm/civicrm
PHP='nice -n19 /usr/bin/php'
PARAMS='-j -sdefault -uuser -ppassword -e Job -a process_mailing'
cd $CIVI_ROOT;
$PHP bin/cli.php $PARAMS

When I run the script, regardless of which user I use, even superadmin, and a very carefully checked password, results in error:

"Jobs called from cli.php require valid user and password as parameter"

Any suggestions? Thanks as always.

( CiviCRM 4.1.2. ; Joomla 2.5.9 )

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMail cron job does not recognise correct username/password
March 12, 2013, 01:07:25 pm

I would try and upgrade to the latest 4.1.x version at least

however i do note on another forum you are having upgrade issues :(

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • CiviMail cron job does not recognise correct username/password

This forum was archived on 2017-11-26.