<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Upgrade Alfresco from 5.1 to 6.2 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125165#M34178</link>
    <description>&lt;P&gt;Same issue here, did you find a solution ?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 11:14:51 GMT</pubDate>
    <dc:creator>AlfrescoZZZ</dc:creator>
    <dc:date>2022-10-07T11:14:51Z</dc:date>
    <item>
      <title>Upgrade Alfresco from 5.1 to 6.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125161#M34174</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to migrate data from an Alfresco 5.1 server to an Alfresco 6.2 server. I have installed the 6.2 on a separate CentOS 7.9 server and installed Alfresco manually. The database is&amp;nbsp;&lt;SPAN&gt;postgresql11-server-11.4. I have also installed my required AMPs, the server was running okay and without errors at this point.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to these steps&amp;nbsp;&lt;A href="https://docs.alfresco.com/content-services/6.2/upgrade/#upgrade-process" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/upgrade/#upgrade-process&lt;/A&gt; I concluded that I can migrate only contentstore, contentstore.deleted and the database and solr will take care of reindexing by itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The steps I have done are:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Backup database: (on 5.1)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;./pg_dump -v -U alfresco alfresco &amp;gt; dumpfile.sql&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 2.&lt;SPAN&gt;Backup contentstore: (on 5.1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tar -czvf backup-contentstore.tar.gz contentstore contentstore.deleted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. Restore data: (on 6.2)&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;systemctl stop tomcat8@alfresco&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;systemctl stop alfresco-search&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;delete contentstore and contentstore.deleted folders from /opt/alfresco6/alf_data&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;delete database&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;su - postgres &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN class=""&gt;psql &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;DROP database alfresco; &lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;create database alfresco encoding 'utf8'; &lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;grant all on database alfresco to alfresco;\q &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;delete folders /opt/alfresco6/alf_data/solr6/solrhome/AlfrescoModels and opt/alfresco6/alf_data/solr6/solrhome/archive/index&lt;/LI&gt;&lt;LI&gt;restore backups: move contentstore, contentstore.deleted to /opt/alfresco6/alf_data&lt;/LI&gt;&lt;LI&gt;restore database:&amp;nbsp;&lt;BR /&gt;su - postgres&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; psql -d alfresco -f /srv/dumpfile.sql&lt;/P&gt;&lt;P&gt;Server started with this error:&lt;/P&gt;&lt;PRE&gt; ERROR [admin.patch.PatchExecuter] [localhost-startStop-1] 09220020 org.alfresco.error.AlfrescoRuntimeException: 09220019 Bootstrap failed      at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBoo
tstrap.java:367)        at org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch.applyInternal(GenericBootstrapPatch.java:130)       at org.alfresco.repo.admin.patch.AbstractPatch$1.execute(AbstractPatch.java:455)        at org.alfres
co.repo.admin.patch.AbstractPatch$1.execute(AbstractPatch.java:1)       at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)  at org.alfresco.repo.admin.patch.AbstractPatch.applyW
ithTxns(AbstractPatch.java:462) at org.alfresco.repo.admin.patch.AbstractPatch.access$0(AbstractPatch.java:442) at org.alfresco.repo.admin.patch.AbstractPatch$4.doWork(AbstractPatch.java:620) at org.alfresco.repo.admin.patch.AbstractPatc
h$4.doWork(AbstractPatch.java:1)        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:602)      at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:624)    at org.alfres
co.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:586) at org.alfresco.repo.admin.patch.PatchServiceImpl$PatchWork.applyPatch(PatchServiceImpl.java:564)       at org.alfresco.repo.admin.patch.PatchServiceImpl$PatchWork.execute(P
atchServiceImpl.java:477)       at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatch(PatchServiceImpl.java:332) at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatchAndDependencies(PatchServiceImpl.java:309)  at org.alfres
co.repo.admin.patch.PatchServiceImpl.applyOutstandingPatches(PatchServiceImpl.java:198) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.in
voke(NativeMethodAccessorImpl.java:62)  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    

.....

org.springframework.dao.DataIntegrityViolationException:
### Error updating database.  Cause: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(1024)
### The error may involve alfresco.appliedpatch.update_AppliedPatch-Inline
### The error occurred while setting parameters
### SQL: update alf_applied_patch             set                 description = ?,                 fixes_from_schema = ?,                 fixes_to_schema = ?,                 target_schema = ?,                 applied_to_schema = ?,
            applied_on_date = ?,                 applied_to_server = ?,                 was_executed = ?,                 succeeded = ?,                 report = ?             where                 id = ?
### Cause: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(1024)
; ERROR: value too long for type character varying(1024); nested exception is org.postgresql.util.PSQLException: ERROR: value too long for type character varying(1024)
        at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:104)&lt;/PRE&gt;&lt;P&gt;What does this error indicate and am I doing something wrong in the steps of upgrading? Should I actually make the upgrade in-server? I am trying to avoid production server down time.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 11:46:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125161#M34174</guid>
      <dc:creator>majastojanova</dc:creator>
      <dc:date>2021-10-22T11:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade Alfresco from 5.1 to 6.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125162#M34175</link>
      <description>&lt;P&gt;You may try upgrading to 5.2 and after that upgrade to 6.2.&lt;/P&gt;
&lt;P&gt;As reference, these are the DB patches that needs to be applied to upgrade Postgres DB from 5.1 to 6.2:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/tree/master/repository/src/main/resources/alfresco/dbscripts/upgrade" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/tree/master/repository/src/main/resources/alfresco/dbscripts/upgrade&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 14:10:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125162#M34175</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-10-22T14:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade Alfresco from 5.1 to 6.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125163#M34176</link>
      <description>&lt;P&gt;Hi, thank you for your response!&lt;/P&gt;&lt;P&gt;I have tried applying the patches to my postgres database from&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/tree/master/repository/src/main/resources/alfresco/dbscripts/upgrade/5.2/org.alfresco.repo.domain.dialect.PostgreSQLDialect" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/tree/master/repository/src/main/resources/alfresco/dbscripts/upgrade/5.1/org.alfresco.repo.domain.dialect.PostgreSQLDialect&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/tree/master/repository/src/main/resources/alfresco/dbscripts/upgrade/6.0/org.alfresco.repo.domain.dialect.Dialect" target="_self" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/tree/master/repository/src/main/resources/alfresco/dbscripts/upgrade/6.0/org.alfresco.repo.domain.dialect.Dialect&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and I got the following error in catalina.out when starting tomcat:&lt;/P&gt;&lt;PRE&gt;2021-12-06 13:28:25,363  INFO  [repo.admin.ConfigurationChecker] [localhost-startStop-1] The root data directory ('dir.root') is: /opt/alfresco6/alf_data
2021-12-06 13:28:25,389  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1] Checking for patches to apply ...
2021-12-06 13:28:25,758  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1]      Applying patch 'patch.addInviteModeratedEmailTemplates' (Adds the email template for the invite moderated flow).
2021-12-06 13:28:26,508  ERROR [admin.patch.PatchExecuter] [localhost-startStop-1] 11060020 org.alfresco.error.AlfrescoRuntimeException: 11060019 Bootstrap failed      at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:367)        at org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch.applyInternal(GenericBootstrapPatch.java:130)       at org.alfresco.repo.admin.patch.AbstractPatch$1.execute(AbstractPatch.java:455)        at org.alfresco.repo.admin.patch.AbstractPatch$1.execute(AbstractPatch.java:1)       at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)  at org.alfresco.repo.admin.patch.AbstractPatch.applyWithTxns(AbstractPatch.java:462) at org.alfresco.repo.admin.patch.AbstractPatch.access$0(AbstractPatch.java:442) at org.alfresco.repo.admin.patch.AbstractPatch$4.doWork(AbstractPatch.java:620) at org.alfresco.repo.admin.patch.AbstractPatch$4.doWork(AbstractPatch.java:1)        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:602)      at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:624)    at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:586) at org.alfresco.repo.admin.patch.PatchServiceImpl$PatchWork.applyPatch(PatchServiceImpl.java:564)       at org.alfresco.repo.admin.patch.PatchServiceImpl$PatchWork.execute(PatchServiceImpl.java:477)       at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatch(PatchServiceImpl.java:332) at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatchAndDependencies(PatchServiceImpl.java:309)  at org.alfresco.repo.admin.patch.PatchServiceImpl.applyOutstandingPatches(PatchServiceImpl.java:198) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.base/java.lang.reflect.Method.invoke(Method.java:566)   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)  at com.sun.proxy.$Proxy131.applyOutstandingPatches(Unknown Source)      at org.alfresco.repo.admin.patch.PatchExecuter.applyOutstandingPatches(PatchExecuter.java:83)   at org.alfresco.repo.admin.patch.PatchExecuter$1.doWork(PatchExecuter.java:131)      at org.alfresco.repo.admin.patch.PatchExecuter$1.doWork(PatchExecuter.java:1)   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java&lt;/PRE&gt;&lt;P&gt;any ideas as of why this is happening? Do I have some inconsistencies in my migrated database and what do I have to delete/add to fix it?&lt;/P&gt;&lt;P&gt;I will also try upgrating to 5.2 and then to 6.2 if I don't solve this issue this way.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 14:13:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125163#M34176</guid>
      <dc:creator>majastojanova</dc:creator>
      <dc:date>2021-12-07T14:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade Alfresco from 5.1 to 6.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125164#M34177</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you for your response.&lt;/P&gt;&lt;P&gt;I have tried applying the patches for 5.2 and 6.0 from the link you shared to me on my Postgres database and I have got the following error in catalina.out when starting tomcat:&lt;/P&gt;&lt;PRE&gt;2021-12-06 13:28:25,363  INFO  [repo.admin.ConfigurationChecker] [localhost-startStop-1] The root data directory ('dir.root') is: /opt/alfresco6/alf_data
2021-12-06 13:28:25,389  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1] Checking for patches to apply ...
2021-12-06 13:28:25,758  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1]      Applying patch 'patch.addInviteModeratedEmailTemplates' (Adds the email template for the invite moderated flow).
2021-12-06 13:28:26,508  ERROR [admin.patch.PatchExecuter] [localhost-startStop-1] 11060020 org.alfresco.error.AlfrescoRuntimeException: 11060019 Bootstrap failed      at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:367)        at org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch.applyInternal(GenericBootstrapPatch.java:130)       at org.alfresco.repo.admin.patch.AbstractPatch$1.execute(AbstractPatch.java:455)        at org.alfresco.repo.admin.patch.AbstractPatch$1.execute(AbstractPatch.java:1)       at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)  at org.alfresco.repo.admin.patch.AbstractPatch.applyWithTxns(AbstractPatch.java:462) at org.alfresco.repo.admin.patch.AbstractPatch.access$0(AbstractPatch.java:442) at org.alfresco.repo.admin.patch.AbstractPatch$4.doWork(AbstractPatch.java:620) at org.alfresco.repo.admin.patch.AbstractPatch$4.doWork(AbstractPatch.java:1)        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:602)      at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:624)    at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:586) at org.alfresco.repo.admin.patch.PatchServiceImpl$PatchWork.applyPatch(PatchServiceImpl.java:564)       at org.alfresco.repo.admin.patch.PatchServiceImpl$PatchWork.execute(PatchServiceImpl.java:477)       at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatch(PatchServiceImpl.java:332) at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatchAndDependencies(PatchServiceImpl.java:309)  at org.alfresco.repo.admin.patch.PatchServiceImpl.applyOutstandingPatches(PatchServiceImpl.java:198) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.base/java.lang.reflect.Method.invoke(Method.java:566)   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)  at com.sun.proxy.$Proxy131.applyOutstandingPatches(Unknown Source)      at org.alfresco.repo.admin.patch.PatchExecuter.applyOutstandingPatches(PatchExecuter.java:83)   at org.alfresco.repo.admin.patch.PatchExecuter$1.doWork(PatchExecuter.java:131)      at org.alfresco.repo.admin.patch.PatchExecuter$1.doWork(PatchExecuter.java:1)   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java&lt;/PRE&gt;&lt;P&gt;Any idea what this error means?&lt;/P&gt;&lt;P&gt;Thank you and Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 14:38:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125164#M34177</guid>
      <dc:creator>majastojanova</dc:creator>
      <dc:date>2021-12-09T14:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade Alfresco from 5.1 to 6.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125165#M34178</link>
      <description>&lt;P&gt;Same issue here, did you find a solution ?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 11:14:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-alfresco-from-5-1-to-6-2/m-p/125165#M34178</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2022-10-07T11:14:51Z</dc:date>
    </item>
  </channel>
</rss>

