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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • The detail about cron setting
Pages: [1]

Author Topic: The detail about cron setting  (Read 1742 times)

scarsoftime11

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: drupal 7
  • MySQL version: 5
  • PHP version: 5
The detail about cron setting
September 06, 2011, 11:15:12 pm
hello, i am new in civicrm, and my english not good... :P

I have some question about cron.

This is my cron setting

Quote
CIVI_ROOT=/var/www/html/drupal/sites/all/modules/civicrm

USER=root

PHP=nice -n19 /usr/bin/php

PARAMS= -sdefault -uadmin -ppassword

*/100 * * * * cd $CIVI_ROOT;$PHP bin/civimail.cronjob.php $PARAMS
*/100 * * * * cd $CIVI_ROOT;$PHP bin/EmailProcessor.php $PARAMS

It doesn't work , stopping in "Running".

And my test mail can not send mail in the test set.

I can send only one Email address by useing civimail.

Is the "USER" means the user of POP3 or civicrm?

I find a key  , but i don't know where put it into the cron.

Can someone help me?

Thank you for your help!!

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: The detail about cron setting
September 07, 2011, 12:21:23 am
USER should be a CiviCRM user that has access to all contacts? And you use that user (with the password) in the PARAMS. Rest of the cron seems ok.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

scarsoftime11

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: The detail about cron setting
September 07, 2011, 07:37:49 pm
Thank you for your reply.

"USER" is Administrators , i think it has access to all contacts.

I find another question.

Use this command :
Quote
wget -O - -q -t 1  --post data='name=civiadmin&pass=password&key=ab6345d345541c1301ac2b7dac111fc7'THis is path/civimail.cronjob.php

The status become "Complete",but it never send mail.

I check mail server , it has no log ( I use POP3 ) .

And I Use the cron set , the status stopping at "running".

How to solve those problem?

Thank you for help me  :D
« Last Edit: September 07, 2011, 07:39:31 pm by scarsoftime11 »

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: The detail about cron setting
September 08, 2011, 12:12:25 am
There is no obvious answer I am afraid. Thed  :-\problem could be in your mail server settings. Have you looked at the floss manual? Does the mailing report show the mails as delivered?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

scarsoftime11

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: The detail about cron setting
September 09, 2011, 12:00:32 am
I find some datails , reports says "recipient is not recognized".

I check the Email address , it is ok , why is this happen?

Thank you for helping me~

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: The detail about cron setting
September 09, 2011, 02:47:25 am
I do not know why this happens, can you send me a screen print of the contact data? Perhaps I can spot something there. Where are you based?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

scarsoftime11

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: The detail about cron setting
September 13, 2011, 02:38:28 am
Sure,I made some print screen~ ;)

I put in my Blog.

https://sites.google.com/site/scarsoftime11/civimail-problem

If want more print screen,let  me know.

Thank you.

It is ok that I can send single Email,but i can not send group E-mail.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: The detail about cron setting
September 13, 2011, 02:50:31 am
That looks fine. I am afraid it is hard to help you from a distance. Do you have anyone local with CiviCRM expertise that you can hire for some hours to investigate in this problem?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

scarsoftime11

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: The detail about cron setting
September 13, 2011, 06:53:25 pm
haha...maybe i should try it again and again,

I don't have any CiviCRM expertise here,

Thank you for helping me~

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: The detail about cron setting
September 13, 2011, 11:12:06 pm
No, you should not try again and again....the problem is finding out where the issue in the configuration is. If it is just CiviCRM than it would be possible to find the issue, but if something is incompatible with the mail settings on the server we could be barking up the wrong tree for days and never get result. You can try to get some help on IRC if you are able to give someone ssh access to your server?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

scarsoftime11

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: The detail about cron setting
September 14, 2011, 11:16:19 pm
Sure,i can provide any requirement to solve this problem.

Can you help me ? I will send the detail account and password to you~

Or i post the detail account and password here?



scarsoftime11

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: The detail about cron setting
September 16, 2011, 02:14:23 am
Haha..good news , i find the solution ( maybe ). :)

i look up the mail server , find many error messages.

Mails was block by my mailserver ,  but all mails that Subject  is"Cron cd $CIVI_ROOT;$PHP bin/EmailProcessor.php $PARAMS",

and "Could not open input file: bin/civimail.cronjob.php".

Mails main is "Could not open input file: bin/civimail.cronjob.php".

I am sure that civimail.cronjob.php and EmailProcessor.php  is 777.

Un...how should i do now?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • The detail about cron setting

This forum was archived on 2017-11-26.