<?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 from 4.2 to 5.2 fails in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128827#M34902</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/47969"&gt;@tcuser&lt;/A&gt;! This looks like a situation to involve a Hyland Support Analyst.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Hyland Support Analysts answer questions concerning customer environments and troubleshoot issues with implemented solutions, etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;To contact Hyland Support, please log into&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="-1" title="https://community.hyland.com/" href="https://community.hyland.com/" target="_blank" rel="noopener noreferrer nofollow" aria-label="Link Hyland Community"&gt;Hyland Community&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and navigate to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Support &amp;gt; Open Support Cases&lt;/STRONG&gt;. From this page you can submit a new support case, review the status of an existing support case, and comment on an open case to share information with the assigned Analyst.&lt;/P&gt;
&lt;P&gt;Let me know if I can assist further in any way! &lt;BR /&gt;&lt;BR /&gt;-Melanie&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 17:39:31 GMT</pubDate>
    <dc:creator>MelanieOlsen</dc:creator>
    <dc:date>2022-02-07T17:39:31Z</dc:date>
    <item>
      <title>Upgrade from 4.2 to 5.2 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128826#M34901</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm facing an issue when trying to upgrade from 4.2 to 5.2 Alfresco version. Following this steps:&amp;nbsp;&lt;A href="https://docs.alfresco.com/content-services/5.2/upgrade/#upgrading-alfresco-content-services" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/5.2/upgrade/#upgrading-alfresco-content-services&lt;/A&gt;.&amp;nbsp;Hope someone can help me here.&lt;/P&gt;&lt;P&gt;Everything works fine and I'm able to restore preproduction data (SQL Server), but when I try to restore production data it constantly fails...&lt;/P&gt;&lt;P&gt;Steps I follow:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Stop tomcat&lt;/LI&gt;&lt;LI&gt;Restore database and contentstore&lt;/LI&gt;&lt;LI&gt;Remove indexes&lt;/LI&gt;&lt;LI&gt;Start tomcat&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The first problem appears at first startup after database restoration:&lt;/P&gt;&lt;PRE&gt;2022-02-07 12:57:34,937 ERROR [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema auto-update failed
org.alfresco.error.AlfrescoRuntimeException: 01070000
More than one Alfresco schema was found when querying the database metadata.
Limit the database user's permissions or set the 'hibernate.default_schema' property in 'custom-hibernate-dialect.properties'.&lt;/PRE&gt;&lt;P&gt;As I have several Alfresco instances in my DB, I set&lt;SPAN&gt;&amp;nbsp;that property in my alfresco-global.properties like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;hibernate.default_schema=ALFRESCO_DB_NAME&lt;/P&gt;&lt;P&gt;and restart (I've tried even deleting and restoring the database), but another error is shown:&lt;/P&gt;&lt;PRE&gt;2022-02-07 14:08:40,953 ERROR [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Statement execution failed:
SQL: CREATE TABLE alf_applied_patch
(
id NVARCHAR(64) NOT NULL,
description NVARCHAR(1024),
fixes_from_schema INT,
fixes_to_schema INT,
applied_to_schema INT,
target_schema INT,
applied_on_date DATETIME,
applied_to_server NVARCHAR(64),
was_executed TINYINT,
succeeded TINYINT,
report NVARCHAR(1024),
PRIMARY KEY (id)
)
Error: There is already an object named 'alf_applied_patch' in the database.
File: C:\ALFRES~1\tomcat\temp\Alfresco\AlfrescoSchema-AlfrescoSQLServerDialect-Update-7872876674921456678.sql
Line: 24
2022-02-07 14:08:40,953 ERROR [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema auto-update failed
com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'alf_applied_patch' in the database.&lt;/PRE&gt;&lt;P&gt;First thing I've discovered: no matter what I set in&amp;nbsp;hibernate.default_schema, it always shows this error. Maybe it's not the name of the database what I have to declare here?&lt;/P&gt;&lt;P&gt;The thing is that when Alfresco makes the validation schema at startup, doesn't found any table, as it shows in the log written in the temp file:&lt;/P&gt;&lt;PRE&gt;Difference: missing table from database, expected at path: dbo.alf_access_control_entry
Difference: missing table from database, expected at path: dbo.alf_access_control_list
Difference: missing table from database, expected at path: dbo.alf_ace_context
Difference: missing table from database, expected at path: dbo.alf_acl_change_set
Difference: missing table from database, expected at path: dbo.alf_acl_member
Difference: missing table from database, expected at path: dbo.alf_activity_feed
Difference: missing table from database, expected at path: dbo.alf_activity_feed_control
Difference: missing table from database, expected at path: dbo.alf_activity_post
Difference: missing table from database, expected at path: dbo.alf_applied_patch&lt;/PRE&gt;&lt;P&gt;It seems that alfresco doesn't find the database to validate the schema but it does find it when it tries to create the tables.&lt;/P&gt;&lt;P&gt;I'm absolutely lost with this, hope someone can help me . Thank you very much in advance &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 14:06:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128826#M34901</guid>
      <dc:creator>tcuser</dc:creator>
      <dc:date>2022-02-07T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade from 4.2 to 5.2 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128827#M34902</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/47969"&gt;@tcuser&lt;/A&gt;! This looks like a situation to involve a Hyland Support Analyst.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Hyland Support Analysts answer questions concerning customer environments and troubleshoot issues with implemented solutions, etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;To contact Hyland Support, please log into&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="-1" title="https://community.hyland.com/" href="https://community.hyland.com/" target="_blank" rel="noopener noreferrer nofollow" aria-label="Link Hyland Community"&gt;Hyland Community&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and navigate to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Support &amp;gt; Open Support Cases&lt;/STRONG&gt;. From this page you can submit a new support case, review the status of an existing support case, and comment on an open case to share information with the assigned Analyst.&lt;/P&gt;
&lt;P&gt;Let me know if I can assist further in any way! &lt;BR /&gt;&lt;BR /&gt;-Melanie&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 17:39:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128827#M34902</guid>
      <dc:creator>MelanieOlsen</dc:creator>
      <dc:date>2022-02-07T17:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade from 4.2 to 5.2 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128828#M34903</link>
      <description>&lt;P&gt;Thank you Melanie!&lt;/P&gt;&lt;P&gt;I've contacted Hyland Support in this case, but, since the last case I opened is still awaiting analyst and nobody has contacted me since Februery 26th, I'm not very confident this time it's going to be faster.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 12:44:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128828#M34903</guid>
      <dc:creator>tcuser</dc:creator>
      <dc:date>2022-02-08T12:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade from 4.2 to 5.2 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128829#M34904</link>
      <description>&lt;P&gt;Thank you! Let me check in on this right away and I'll follow up with you. I'll hope to have news for you soon. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 20:47:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128829#M34904</guid>
      <dc:creator>MelanieOlsen</dc:creator>
      <dc:date>2022-02-08T20:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade from 4.2 to 5.2 fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128830#M34905</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi there! I checked in on your support ticket issue and found that your account is supported by one of our partners. Please take this to them and they will escalate on your behalf. I'll share the partner info with you in a private message. Let me know if I can help in any other way! -Melanie&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 17:35:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upgrade-from-4-2-to-5-2-fails/m-p/128830#M34905</guid>
      <dc:creator>MelanieOlsen</dc:creator>
      <dc:date>2022-02-11T17:35:51Z</dc:date>
    </item>
  </channel>
</rss>

