In ver. 6.0.6 I re-index the database, shutdown, copy the data folder over to a 6.1.0 installation, delete a few extra webapps, add liferay-ext.portal/ROOT.xml to point it at the database and ldap, reasonable setenv.sh, fire it up and fail with, well first there is a couple file not found which true enough don't exist on the document library section both which it seems to survive, then it hits the schema upgrade for the image gallery and goes all fatal and shutdown after:
17:14:05,460 ERROR [MainServlet:204] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '3298335-0-stats pic combo' for key 3
com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '3298335-0-stats pic combo' for key 3
at com.liferay.portal.events.StartupAction.run(StartupAction.java:57)
I look at the data, seems ok, export it to text, import it into a new database with no referential integritiy issues at all. Really, seems just fine. Not much error message but I look for the data and three columns that match the three part key of a third index and come up with DLFileEntry table that matches, UNIQUE KEY IX_ED5CA615, do a quick query and come away even more puzzled:
[linus@localhost liferay-portal-6.1.0]$ echo "select groupId,folderId,title from DLFileEntry where groupId = 3298335 and folderId = 0 and title = 'stats pic combo' " | mysql -B -N -u admin -pr0rc1i$ mrswwpe2456 | grep pic
3298335 0 stats pic combo
[linus@localhost liferay-portal-6.1.0]$
Seems to answer the question how could there be duplicate entries on a key field, there isn't, but begs more questions of the upgrade process.
Full stack trace available here:
catalina.outED: mysql-5.0.77-4 from redhat el5 rpm
Please sign in to flag this as inappropriate.