08-21-2016 05:28 PM
Normalized schema dumped to file /tmp/tomcat7-tmp/Alfresco/Alfresco-schema-MySQLInnoDBDialect-pre-upgrade-alf_-498310534441415069.xml.
2016-08-01 04:18:00,631 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Normalized schema dumped to file /tmp/tomcat7-tmp/Alfresco/Alfresco-schema-MySQLInnoDBDialect-pre-upgrade-jbpm_-6566384843334377561.xml.
2016-08-01 04:18:00,632 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Normalized schema dumped to file /tmp/tomcat7-tmp/Alfresco/Alfresco-schema-MySQLInnoDBDialect-pre-upgrade-act_-6400341803565615802.xml.
2016-08-01 04:18:00,696 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /tmp/tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-1125795265852298082.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.2/org.hibernate.dialect.MySQLInnoDBDialect/remove-index-acl_id.sql).
2016-08-01 04:18:00,755 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /tmp/tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-2914601116970840258.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.2/org.hibernate.dialect.MySQLInnoDBDialect/restructure-idx_alf_nprop_s-MSSQL.sql).
2016-08-01 04:18:00,794 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /tmp/tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-7084032070803741293.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.2/org.hibernate.dialect.MySQLInnoDBDialect/migrate-locale-multilingual.sql).
2016-08-01 04:18:00,928 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /tmp/tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-2945145454516771820.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoCreate-AuthorizationTables.sql).
2016-08-01 04:18:00,999 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /tmp/tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-8014122370050000922.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoCreate-ContentUrlEncryptionTables.sql).
2016-08-01 04:18:01,111 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /tmp/tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-6503919872556366086.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.2/org.hibernate.dialect.MySQLInnoDBDialect/activiti-upgrade-5-10.sql).
2016-08-01 04:18:06,358 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /tmp/tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-742574778828474973.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.2/org.hibernate.dialect.MySQLInnoDBDialect/add-activti-index-historic-activity.sql).
2016-08-01 04:18:06,383 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /tmp/tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-2297210573458188263.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.2/org.hibernate.dialect.MySQLInnoDBDialect/activiti-upgrade-5-11.sql).
2016-08-01 04:18:13,592 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Executing database script /tmp/tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-6241599408556461012.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.2/org.hibernate.dialect.MySQLInnoDBDialect/migrate-activiti-workflows.sql).
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.read
/* snippet shows that there are 2 locks on tables act_hi_detail and act_hi_varinst */
| alfresco_test | act_hi_detail | 2 | 0 |
| alfresco_test | act_hi_varinst | 2 | 0 |
—TRANSACTION 115281, ACTIVE 2451 sec
mysql tables in use 4, locked 1
MySQL thread id 18, OS thread handle 0x2acf7ab59700, query id 2906 10.0.30.159 alfresco_test Sending data
INSERT INTO ACT_HI_VARINST(
ID_,
PROC_INST_ID_,
EXECUTION_ID_,
TASK_ID_,
NAME_,
VAR_TYPE_,
REV_,
BYTEARRAY_ID_,
DOUBLE_,
LONG_,
TEXT_,
TEXT2_
)
SELECT
(@cnt := @cnt + 1),
PROC_INST_ID_,
EXECUTION_ID_,
TASK_ID_,
NAME_,
VAR_TYPE_,
REV_,
BYTEARRAY_ID_,
DOUBLE_,
LONG_,
TEXT_,
TEXT2_
FROM ACT_HI_DETAIL AHD
CROSS JOIN (SELECT @cnt := 134601 + 1) AS dummy
WHERE AHD.PROC_INST_ID_ not in (select PROC_INST_ID_ from ACT_HI_VARINST)
AND
(AHD.PROC_INST_ID_ , AHD.NAME_, AHD.REV_, AHD.time_) IN
(SELECT
Trx read view will not see trx with id >= 115282, sees < 115282
08-24-2016 02:41 AM
08-24-2016 06:11 AM
08-29-2016 07:30 PM
09-23-2016 04:19 AM
Thank you for posting this back, however it did not work for me. Running the query manually took just as long.
The solution for me was to upgrade the database. I was using MariaDB 5.5 as supplied as standard with Centos 7, but, Alfresco requires a Mysql 5.6. I believe that MariaDB 10 is also supported. I upgraded to MariaDB 10.1 and the migrate-activiti-workflows.sql took about 3 seconds without any work-arounds being required.
09-23-2016 09:39 AM
Hi,
We were able to migrate from 4.2.2 to 5.1.f two months ago. We also had an issue initially, only to realize that we had not give the "alfresco" db user enough privileges. So give full access to the user that connects to the DB from Alfresco; it will enable the user to alter, update or drop tables as required by the upgrade scripts.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.