Jump to content
  • 0

Oh Noes While Upgrading From 3.5.1 To 3.6.1


Infralliance

Question

Oh noes!
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'inv_display_due_date_draft-1' for key 'PRIMARY' on line 124 in /var/www/admin.infralliance.com/lib/model.php

Printing Stack Trace:
#0 /var/www/admin.infralliance.com/lib/model.php(124): PDOStatement->execute(Array)
#1 /var/www/admin.infralliance.com/components/upgrades/tasks/upgrade3_5_0_b1.php(93): Model->query('INSERT INTO `co...', '1')
#2 /var/www/admin.infralliance.com/components/upgrades/tasks/upgrade3_5_0_b1.php(52): Upgrade3_5_0B1->addInvoiceDateDueSettings()
#3 /var/www/admin.infralliance.com/components/upgrades/upgrades.php(226): Upgrade3_5_0B1->process('addInvoiceDateD...')
#4 /var/www/admin.infralliance.com/components/upgrades/upgrades.php(75): Upgrades->processObject(Object(Upgrade3_5_0B1), NULL)
#5 /var/www/admin.infralliance.com/app/controllers/admin_upgrade.php(102): Upgrades->start('3.4.3', '3.6.1')
#6 /var/www/admin.infralliance.com/lib/dispatcher.php(111): AdminUpgrade->process()
#7 /var/www/admin.infralliance.com/index.php(21): Dispatcher::dispatch('/index.php/admi...')
#8 {main}

Somebody has a clue how I could have that fixed? :\

 

Although this error is appearing, the version number has changed in the admin portal. How can I be really sure the blesta install is ok and will behave properly?

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0


mysql> SHOW VARIABLES LIKE "%version%";

+-------------------------+-------------------------+

| Variable_name | Value |

+-------------------------+-------------------------+

| innodb_version | 5.5.46 |

| protocol_version | 10 |

| slave_type_conversions | |

| version | 5.5.46-0ubuntu0.14.04.2 |

| version_comment | (Ubuntu) |

| version_compile_machine | x86_64 |

| version_compile_os | debian-linux-gnu |

+-------------------------+-------------------------+

7 rows in set (0.00 sec)

Link to comment
Share on other sites

  • 0

Did you make any manual changes to the database, or run the upgrade script more than once if it had failed?

 

Several database changes have been made form v3.4.3 and v3.6.1. You'll have to check what partial changes it did make in order to manually adjust the upgrade script to perform the rest.

 

You'll need to see which company settings have been added at the point of the error:

SELECT `key`, `value`, `company_id` FROM `company_settings` WHERE `key` LIKE 'inv_display_due%' ;

Do you have these three keys set for each company?

inv_display_due_date_draft
inv_display_due_date_proforma
inv_display_due_date_inv

What is the structure of the coupons table?

DESCRIBE `coupons`;

What is the structure of the package options table?

DESCRIBE `package_options`;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...