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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Obscure database error
Pages: [1]

Author Topic: Obscure database error  (Read 1645 times)

noneother

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Obscure database error
May 29, 2012, 01:01:10 pm
I'm completely at a loss and don't know where to start.   I've received error messages before that contained more info before that helped me troubleshoot but this doesn't really give me a whole lot of info to work with.

DB Error: a515ac9c2796ca0e23adbe92c68fc9fc

I believe this started occurring after upgrading from 3.4 to 4.1.2.  Our system works most of the time but once a day i would try restarting and clearing everything and hope it temporarily fixes it (restart php-fpm, restart memcache, restart apache, restart mysql, clear caches, delete template_c).  It just happened again and it's not "fixing" it this time.  Does anyone have ideas what's causing this?  Thanks.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Obscure database error
May 29, 2012, 01:05:14 pm
Google search on that error comes up w/ some possible clues - esp this one:
http://issues.civicrm.org/jira/browse/CRM-7095
Protect your investment in CiviCRM by  becoming a Member!

noneother

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Obscure database error
May 29, 2012, 03:32:11 pm
I have my sort_buffer_size set to 536870912 so it doesn't look like that's the problem.

I looked at the drupal logs and this comes up several times for several users around the same time the problem occurred.

Code: [Select]
Missing argument 1 for CRM_Utils_System_Drupal6::cmsRootPath(), called in /usr/local/www/drupal/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php on line 829 and defined in /usr/local/www/drupal/sites/all/modules/civicrm/CRM/Utils/System/Drupal6.php on line 592.
When i search, people only run into that when their civicrm.settings.php is not correct.  I have 'CIVICRM_UF' set correctly to 'Drupal6' in my civicrm.settings.php so that doesn't appear to be it.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Obscure database error
May 29, 2012, 04:18:45 pm
Not sure if those errors are related. Maybe worth double checking that correct settings file is in expected place etc. If you moved the site during the upgrade (different server, different file system location) you might check this page for other ideas.

http://wiki.civicrm.org/confluence/display/CRMDOC41/Moving+an+Existing+Installation+to+a+New+Server+or+Location

Else not sure :-(
Protect your investment in CiviCRM by  becoming a Member!

noneother

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Obscure database error
May 30, 2012, 11:55:15 am
The server location and paths didn't change from my upgrade but i double checked and everything seems to be in the right place.  After this occurred yesterday and restarting all services, things began working again but the issue has reoccurred again today.  If it always worked or never worked would be fine but this sometimes is killing me :(

Since others don't seem to be coming up with this leads me to think this may be a config issue?  I'll keep trying to narrow things down.

Thanks for the advice though Dave!

noneother

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Obscure database error
May 31, 2012, 12:36:28 pm
It happened again today...  I haven't tracked down what the cause is yet.  I went through my php.error log though and here's a bit more info.


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Obscure database error
May 31, 2012, 02:11:19 pm
You might try putting a backtrace - write to log - in CRM/Core/Error.php just above line 533 (where that function returns). I think if you do:

CRM_Core_Error::backtrace('Trap DB Error', TRUE);

... that should push the backtrace to the CivicRM log file.

I'm a bit suspicious that there's some DB read-write problem (hard disk issues or ??) since it's sporadic. Did you do more googling on that error?
Protect your investment in CiviCRM by  becoming a Member!

noneother

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Obscure database error
May 31, 2012, 05:24:25 pm
I added the backtrace and we came across the issue again so I have a little big more information than before.  The DB Error indicates that the query is missing a field when merging/deduping and when i think about it now, each time this occurs, someone in our office is deduping.

During my upgrade from 3.4.8 to 4.1.2, i noticed a couple of strange things with deduping/merging. 
- The 'civicrm_dedupe_rule_group' table had a new column (title) and each row had a value of null.  I copied the value from 'name' over to 'title'.
- I think some of the dedupe indices were missing.

As for googling, there were many results with the db error but none of them seemed related to me.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Obscure database error
June 01, 2012, 09:15:56 am
Can you nail down the exact operation which triggers this (is it during Find Duplicates or when merging 2 contacts? which exact dedupe rule is being used? ...) Then grab a copy of the DB error w/ the invalid query and paste it here.

Since we're not sure whether this is an upgrade-related issue... you might also try the same operation (including configuring the dedupe rule which is being used on your site if it's not "out of the box") - on the public demo and see if you can trigger it there. If you can that will make it much easier to debug and hopefully fix.
Protect your investment in CiviCRM by  becoming a Member!

noneother

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Obscure database error
June 04, 2012, 01:09:56 pm
The individual that does the deduping/merging is away on vacation for the next week so i'll have to wait for his return.  In the meantime, it will be interesting to see whether or not the issue occurs while he is away.  If it doesn't occur, it will give me some confidence that it is indeed caused by deduping.

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: Obscure database error
June 20, 2012, 05:40:34 am
found a similar error -
vanilla install of drupal 6.26 and civicrm 4.1.3
load sample data
edit a contact and upload photo for contact.
upon saving it gives the error

warning: Missing argument 1 for CRM_Utils_System_Drupal6::cmsRootPath(), called in /work/projects/testsites/testyvb2/www/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php on line 867 and defined in /work/projects/testsites/testyvb2/www/sites/all/modules/civicrm/CRM/Utils/System/Drupal6.php on line 613.

LoganBear

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.67
  • PHP version: 5.3.28
Re: Obscure database error
July 03, 2012, 10:19:55 am
Quote from: yasheshb on June 20, 2012, 05:40:34 am
found a similar error -
vanilla install of drupal 6.26 and civicrm 4.1.3
load sample data
edit a contact and upload photo for contact.
upon saving it gives the error

warning: Missing argument 1 for CRM_Utils_System_Drupal6::cmsRootPath(), called in /work/projects/testsites/testyvb2/www/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php on line 867 and defined in /work/projects/testsites/testyvb2/www/sites/all/modules/civicrm/CRM/Utils/System/Drupal6.php on line 613.

I get the same error on photo upload with the same configuration.  I don't see this problem anywhere else.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Obscure database error
July 03, 2012, 11:29:57 am
Might be a bug in the Drupal 6 / CiviCRM 4.1 code. Can you replicate on the D6 demo?

http://drupal6.demo.civicrm.org/

If so, please investigate and file an issue with a patch.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Obscure database error

This forum was archived on 2017-11-26.