Project

General

Profile

Actions

Bug #80734

closed

Upgrade Wizard: "Update the hash field of sys_refindex to exclude the sorting field" leads to an error

Added by Marcus Schwemer about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
-
Start date:
2017-04-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi,

I'm running a quite large installation and try to execute the task "Update the hash field of sys_refindex to exclude the sorting field" via the install tool. Each time it leads to the error shown in screenshot 2.

The "strange" thing is that the message shows a fatal error and afterwards it seems that the check for incompatible extensions is run.

Sorry that I cannot copy the message as text any more, because I tried to update the refindex via the console command "vendor/bin/typo3 referenceindex:update". Then I tried to rerun the upgrade wizard. Now I get a fatal error in the install tool similar to #80347

An exception occurred while executing 'UPDATE `sys_refindex` SET `hash` = ? WHERE `hash` = ?' with params ["1447553260b762fe2ae104b1ea9a08d0", "22a73f6f23fbe5bb5264b81390ca4f52"]: Duplicate entry '1447553260b762fe2ae104b1ea9a08d0' for key 'PRIMARY' 

Doctrine\DBAL\Exception\UniqueConstraintViolationException thrown in file
[...]/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php in line 66.
  • TYPO3 version is 8.7.0
  • php version is 7.0.17

Files

refindex-hash-updater-1.png (235 KB) refindex-hash-updater-1.png Marcus Schwemer, 2017-04-06 18:49
refindex-hash-updater-2.png (176 KB) refindex-hash-updater-2.png Marcus Schwemer, 2017-04-06 18:49

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #80347: sys_category_record_mm misses UNIQUE INDEX on combination of uid_local, uid_foreign, tablenames, fieldnameClosed2017-03-19

Actions
Actions #1

Updated by Thomas Hohn about 7 years ago

Hi Marcus

Can you check if you have double records in any of the tables that are in the sys_refindex table? Maybe it's the same as the ticket you are "relating" to?

Greetings

Thomas

Actions #2

Updated by Thomas Hohn about 7 years ago

  • Category set to Install Tool
Actions #3

Updated by Morton Jonuschat about 7 years ago

  • Status changed from New to Rejected

This error indicates that the reference index is not healthy. Please make sure you execute all steps of the upgrade guide at https://docs.typo3.org/typo3cms/InstallationGuide/Upgrade/Index.html, in this case it seems to me the step https://docs.typo3.org/typo3cms/InstallationGuide/Upgrade/UpdateReferenceIndex/Index.html was not executed.

Actions #4

Updated by Marcus Schwemer about 7 years ago

Hi,

"partly" ACK ;-)

Yes, maybe the refindex was not clean.

But: Even if so, I find it confusing, if I run a update wizard for the refindex and then get a response about incompatible extensions, which resides at a complete different part of the install ...

IMHO it would be better, that just the php error message should be shown or better leave a hint for the user to update his refindex (with the cli command).

Actions #5

Updated by Morton Jonuschat about 7 years ago

  • Status changed from Rejected to Accepted
  • Assignee set to Morton Jonuschat

Hi Markus,

the fallback to check for broken extension can not be avoided, this is true for all exceptions in the install tool. But the Updater should not fail with an exception on this error and instead show a custom message of what failed.

I'll work on a fix.

Actions #6

Updated by Gerrit Code Review about 7 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52399

Actions #7

Updated by Gerrit Code Review about 7 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52399

Actions #8

Updated by Gerrit Code Review almost 7 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52686

Actions #9

Updated by Morton Jonuschat almost 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF