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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 3.2.1 upgrade non-recoverable error.
Pages: [1] 2

Author Topic: 3.2.1 upgrade non-recoverable error.  (Read 3501 times)

karunadave

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
    • Karuna Dev
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6.30 or Drupal 7.26 Drush 6.2.0
  • MySQL version: 5.5.35-cll - MySQL Community Server (GPL)
  • PHP version: 5.3.21
3.2.1 upgrade non-recoverable error.
August 14, 2010, 12:27:51 pm
I have done the upgrade to 3.2.1 because of this issue http://forum.civicrm.org/index.php/topic,14816.msg63934.html#msg63934; thanks for the fix.

However, I had a failure on the upgrade.  

Code: [Select]
DB Error: already exists

Database Error Code: Duplicate key name 'UI_activity_type_id', 1061

This is a CiviCRM instance that I have run since at lease version 1.6, and have managed to squeak through some upgrade schema issues.  Perhaps this is another legacy upgrade schema issue?

In testing after-wards the CiviMail module appears broken
Code: [Select]
Sorry. A non-recoverable error has occurred.

Invalid response code received from SMTP (outbound mail) server while attempting to send email. This is often caused by a misconfiguration in the CiviCRM Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP).

Checking the global settings SMTP, just opening the settings and hitting the "Save and Send Test Email" still seems to be fine.
Code: [Select]
Your SMTP settings are correct. A test email has been sent to your email address.
Any ideas, please?
« Last Edit: August 14, 2010, 12:41:57 pm by karunadave »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.2.1 upgrade non-recoverable error.
August 14, 2010, 03:23:26 pm
Hi,

Just had the same error message on the upgrade from a 3.1 (and I don't think I tweaked the db schema).

Do recall a tool to test the db schema to see if it was correct. Is this still updated with the 3.2.1 and do someone remember what/where it is (darmatech if I recall) ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.2.1 upgrade non-recoverable error.
August 14, 2010, 03:25:44 pm
As for your smtp error: might be that your smtp server doesn't allow to have a different/custom sender. Do check what you have configured in the bounce (the default mailbox)

And do try to use php mail instead of smtp, might work better.

http://en.flossmanuals.net/CiviCRM/SystemConfiguration
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

karunadave

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
    • Karuna Dev
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6.30 or Drupal 7.26 Drush 6.2.0
  • MySQL version: 5.5.35-cll - MySQL Community Server (GPL)
  • PHP version: 5.3.21
Re: 3.2.1 upgrade non-recoverable error.
August 14, 2010, 04:19:59 pm
Quote
(and I don't think I tweaked the db schema).

I didn't mean to imply I had altered the schema, but that I have had schema problems in upgrades before - a known problem migrating from earlier versions.  I didn't change the schema, but I did have to massage the data a bit to get a successful upgrade, several versions ago.

karunadave

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
    • Karuna Dev
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6.30 or Drupal 7.26 Drush 6.2.0
  • MySQL version: 5.5.35-cll - MySQL Community Server (GPL)
  • PHP version: 5.3.21
Re: 3.2.1 upgrade non-recoverable error.
August 14, 2010, 04:21:31 pm
Quote from: xavier on August 14, 2010, 03:25:44 pm
As for your smtp error: might be that your smtp server doesn't allow to have a different/custom sender. Do check what you have configured in the bounce (the default mailbox)

And do try to use php mail instead of smtp, might work better.

http://en.flossmanuals.net/CiviCRM/SystemConfiguration

Has the 3.2.0 to 3.2.1 version introduced changes that are expected to confound an existing working SMTP configuration?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.2.1 upgrade non-recoverable error.
August 14, 2010, 04:29:40 pm
Quote from: karunadave on August 14, 2010, 04:21:31 pm
Has the 3.2.0 to 3.2.1 version introduced changes that are expected to confound an existing working SMTP configuration?

Yes/no/maybe

If your bounce processor is properly set-up and works, no. If not, we are getting better at make it work properly, so if you have it misconfigured, it might now identify it and generate that error.

This being said, as you have an error message related to your smtp configuration, it might. it's often due to a mis-configured mailbox. If you can check on your smtp log what's going on.

If you can't, try to change the outbound to mail instead of smtp, see what it does.

X+

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

karunadave

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
    • Karuna Dev
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6.30 or Drupal 7.26 Drush 6.2.0
  • MySQL version: 5.5.35-cll - MySQL Community Server (GPL)
  • PHP version: 5.3.21
Re: 3.2.1 upgrade non-recoverable error.
August 14, 2010, 10:07:53 pm
Well I did have bounces working with SMTP because occasionally when there was a problem with the SMTP, all my recipients would go on hold.

However, changing from SMTP to Mail has resolved this issue.  I am now able to send out again.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.2.1 upgrade non-recoverable error.
August 15, 2010, 01:50:28 am
Quote from: karunadave on August 14, 2010, 10:07:53 pm
Well I did have bounces working with SMTP because occasionally when there was a problem with the SMTP, all my recipients would go on hold.

Not the same bounce. Do you have a cron running bin/MailProcessor.php on a regular basis ?

If not, you don't process bounces, and it increases the risk of your mails ending up directly in the spam folder of your recipient.

http://en.flossmanuals.net/CiviCRM/SystemConfiguration

For the how to and more details.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

karunadave

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
    • Karuna Dev
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6.30 or Drupal 7.26 Drush 6.2.0
  • MySQL version: 5.5.35-cll - MySQL Community Server (GPL)
  • PHP version: 5.3.21
Re: 3.2.1 upgrade non-recoverable error.
August 15, 2010, 08:26:13 am
I see, no I hadn't set up the EmailProcessor.php.

Another change to the 3.2.1/3.2.0 has meant that although my existing cron for civimail.cronjob.php does not produce errors, neither does the queue get processed now.  Everything stays as either Scheduled or Running.  I have to manually push the queue (./civicrm/mailing/queue) now. To get a message out. 

karunadave

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
    • Karuna Dev
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6.30 or Drupal 7.26 Drush 6.2.0
  • MySQL version: 5.5.35-cll - MySQL Community Server (GPL)
  • PHP version: 5.3.21
Re: 3.2.1 upgrade non-recoverable error.
August 15, 2010, 11:24:32 am
I did have the CiviMailProcessor.php set up.  Is there a difference between CiviMailProcessor.php adn EMailProcessor.php?

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: 3.2.1 upgrade non-recoverable error.
August 16, 2010, 03:23:47 am
Yep, we got the same issue going from 3.1.5 to 3.2.1.

 * DB Error: already exists
 * Database Error Code: Duplicate key name 'UI_activity_type_id'

Pity the error is fatal (especially when it's just trying to create an index which already exists, and there's no real error to be worried about).

MySQL doesn't have a CREATE INDEX IF NOT EXISTS so this isn't something which can be handled at SQL level, unfortunately.

The resulting DB state is inoperational under both 3.1.x and 3.2.x, so we're lucky it was just a trial run.
@xurizaemon ● www.fuzion.co.nz

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.2.1 upgrade non-recoverable error.
August 16, 2010, 03:28:37 am
Yeap,

Found the problem and fixed this week-end.

Patch is on the issue tracker. They will probably release a 3.2.2 to fix it soon.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: 3.2.1 upgrade non-recoverable error.
August 16, 2010, 08:40:55 am
I am just upgrading from Civi 2.0.7 on Drupal 5.x and just bumped into this "Database Error Code: Duplicate key name 'UI_activity_type_id', 1061"

Mind sharing a work-around for this situation so we can get our site back up?

*** Update: I went looking in the "issue tracker" for the 3.2.2 release and see nothing which looks related to the issue described here.
« Last Edit: August 16, 2010, 08:52:39 am by mdlueck »
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.2.1 upgrade non-recoverable error.
August 16, 2010, 09:00:45 am
http://issues.civicrm.org/jira/browse/CRM-6565

But hold on before applying the patch, still not approved and likely in error.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: 3.2.1 upgrade non-recoverable error.
August 16, 2010, 09:04:01 am
All right, I will "hold on"...  ::)

I guess this is what I get for going ahead and trying the 3.2x branch already! (head shaking)
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 3.2.1 upgrade non-recoverable error.

This forum was archived on 2017-11-26.