Author Topic: Activity processor fails following upgrade to 4.1.2 and then 4.1.3  (Read 530 times)

Offline myles

  • I post frequently
  • ***
  • Posts: 233
  • Karma: 11
Upgraded Drupal 6 4.1.1 installation to 4.1.2 then 4.1.3 with no errors reported.

The Activity processor, which used to work now returns this error message:

Finished execution of Activity processor with result: Failure, Error message: Process Activities failed

Where do I look to find out more?

In another thread, which looks similar the request was to look at the CiviCRM log file... Where is this and what is it called?

Many thanks (in anticipation)

Online Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 14701
  • Karma: 440
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Activity processor fails following upgrade to 4.1.2 and then 4.1.3
« Reply #1 on: June 15, 2012, 08:02:40 am »

Can you check the code at:

api/v3/Job.php, function civicrm_api3_job_fetch_activities

and see why it does not return a success object

thanx

lobo
Found this reply helpful? Contribute NOW and help improve CiviCRM with the Make it Happen! initiative.

Offline Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 3575
  • Karma: 134
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly Drupal
Re: Activity processor fails following upgrade to 4.1.2 and then 4.1.3
« Reply #2 on: June 17, 2012, 04:21:51 am »
On a related note, I wonder why in function civicrm_api3_job_fetch_activities and function civicrm_api3_job_fetch_bounces the line

Code: [Select]
  $lock->release();

comes after the return statements. Seems the lock will never be released....
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

Online Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 14701
  • Karma: 440
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Activity processor fails following upgrade to 4.1.2 and then 4.1.3
« Reply #3 on: June 17, 2012, 08:02:46 pm »

i fixed this for 4.1.4

However that should not impact the return value
Found this reply helpful? Contribute NOW and help improve CiviCRM with the Make it Happen! initiative.

Offline myles

  • I post frequently
  • ***
  • Posts: 233
  • Karma: 11
Re: Activity processor fails following upgrade to 4.1.2 and then 4.1.3
« Reply #4 on: June 18, 2012, 02:28:27 pm »
Sorry Lobo - I'm not ignoring your kind reply - I've spent the entire day setting up a MAMP development environment on a mac and trying to get debug + MacGDBp to work.

So far I can't get the thing started!

I'm going to bed!

Offline myles

  • I post frequently
  • ***
  • Posts: 233
  • Karma: 11
Re: Activity processor fails following upgrade to 4.1.2 and then 4.1.3
« Reply #5 on: June 28, 2012, 07:04:09 am »
I'm still having problems with setting up a local install but I notice that the list of scheduled jobs in a new install is really quite different from the list of scheduled jobs in our live (the upgraded) site.

On the demo there is a job 'Process Inbound Emails' that references 'fetch_activity' in the API

On ours this is absent, but there is 'Activity Processor' that references 'fetch_activity' which used to process the inbound mails and now does not - it is not present in a clean install of 4.1.3

Is this a sign of a partially failed upgrade?

Online Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 14701
  • Karma: 440
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Activity processor fails following upgrade to 4.1.2 and then 4.1.3
« Reply #6 on: June 28, 2012, 07:45:41 am »

probably.

For now, can you just truncate: civicrm_job

and load a clean copy for a pristine 4.1.3

thanx

lobo
Found this reply helpful? Contribute NOW and help improve CiviCRM with the Make it Happen! initiative.

Offline myles

  • I post frequently
  • ***
  • Posts: 233
  • Karma: 11
Re: Activity processor fails following upgrade to 4.1.2 and then 4.1.3
« Reply #7 on: June 29, 2012, 03:01:10 am »
Thanks - I now have the same list as the pristine version, but the same result!

Agh well, worth a shot.

Offline myles

  • I post frequently
  • ***
  • Posts: 233
  • Karma: 11
Re: Activity processor fails following upgrade to 4.1.2 and then 4.1.3
« Reply #8 on: July 26, 2012, 02:04:38 pm »
Now on version 4.1.5 and still fiddling with this when I get the chance... with no further ideas that yield any interest - but...

Perhaps someone could verify that these parameters are the correct ones?

From the activity log:

Parameters parsed (and passed to API method):
a:1:{s:7:"version";i:3;}

Many thanks