<?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: Alfresco upgrade from 4.0.0 community with postgres DB to 5.0.d in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6544#M3188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I think you've got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your Linux and Postgres, I assume you are talking about&lt;/P&gt;&lt;P&gt;RHEL/CentOS. It is risky to do in-place upgrades of RHEL/CentOS to new&lt;/P&gt;&lt;P&gt;major versions. It is almost always better to install a fresh server and&lt;/P&gt;&lt;P&gt;migrate to it from the old server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I definitely think you should run the newer OS and database so that you'll&lt;/P&gt;&lt;P&gt;be on the "supported stack" for 5.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When upgrading PostgreSQL, I always use the newer version of pg_dump to run&lt;/P&gt;&lt;P&gt;against the older PostgreSQL database to avoid any issues that might be&lt;/P&gt;&lt;P&gt;created by having a dump from the old version. If you are running&lt;/P&gt;&lt;P&gt;PostgreSQL as shipped with Alfresco the process looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Stop Alfresco.&lt;/P&gt;&lt;P&gt;2. Using the old Alfresco's postgres script in&lt;/P&gt;&lt;P&gt;$ALFRESCO_HOME/postgresql/scripts/ctl.sh, start the old posgres server.&lt;/P&gt;&lt;P&gt;3. Switch to the new Alfresco postgres binary folder and use pg_dumpall to&lt;/P&gt;&lt;P&gt;dump the database.&lt;/P&gt;&lt;P&gt;4. Stop the old Alfresco postgres.&lt;/P&gt;&lt;P&gt;5. Start the new Alfresco postgres.&lt;/P&gt;&lt;P&gt;6. Use the new Alfresco postgres psql to load the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course if you end up using two different servers to address the Linux&lt;/P&gt;&lt;P&gt;upgrade, these steps are a little more complicated. You could install the&lt;/P&gt;&lt;P&gt;old Alfresco on the new server and start it up to make sure it is good,&lt;/P&gt;&lt;P&gt;then you'd have everything you'd need to follow these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Tue, Mar 21, 2017 at 2:30 AM, sanketmohite &amp;lt;community@alfresco.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 16:18:30 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2017-03-21T16:18:30Z</dc:date>
    <item>
      <title>Alfresco upgrade from 4.0.0 community with postgres DB to 5.0.d</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6540#M3184</link>
      <description>All.We are courrently using alfresco 4.0.0 community version with postgres DB&amp;nbsp;and trying to upgrade to 5.0.d.We installed new alfresco but we noticed that tables in new are totally different.So Need guidance on how we cna get existing postgres data migrated to new version?</description>
      <pubDate>Fri, 10 Mar 2017 13:38:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6540#M3184</guid>
      <dc:creator>sanketmohite</dc:creator>
      <dc:date>2017-03-10T13:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco upgrade from 4.0.0 community with postgres DB to 5.0.d</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6541#M3185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you start Tomcat with the new WAR files, there is a built-in process that will run to update the schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you do this, use pg_dumpall to take a backup of your database, then copy that and your content store somewhere safe. That way, if you need to back out you can always just dump and load your old database, replace your content store, then start up with the old WAR files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also read various &lt;A href="http://fcorti.com/2014/07/17/alfresco-upgrade-tutorial-4-0-d-to-4-2-f/" rel="nofollow noopener noreferrer"&gt;blog posts&lt;/A&gt; and &lt;A href="http://docs.alfresco.com/5.1/tasks/upgrade-process.html" rel="nofollow noopener noreferrer"&gt;documentation&lt;/A&gt; on this subject.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 05:24:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6541#M3185</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-03-11T05:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco upgrade from 4.0.0 community with postgres DB to 5.0.d</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6542#M3186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually backup my alfresco Data like Jeff stated above, copy the lastest 4.x war file to my Alfresco Tomcat webapps directory, startup alfresco and check the logs for db-schema update/error messages. Backup the resulting DB again, Install the desired 5.x Version of Alfresco in an new place (or move the old installation out of the way...) as new instance (empty). Check that it comes up and is working like expected - shut it down, delete the new DB and the new (empty) contentstore, import my backuped DB, copy my content in the new alf_data/contentstore directory.&lt;/P&gt;&lt;P&gt;Then startup alfresco and watch out for errors in the log.&lt;/P&gt;&lt;P&gt;I do the described update to the latest 4.x war, to make shure that the DB schema is the latest 4.x, because I had Problems with updating in "big steps".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 18:50:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6542#M3186</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-03-11T18:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco upgrade from 4.0.0 community with postgres DB to 5.0.d</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6543#M3187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff&lt;/P&gt;&lt;P&gt;Thanks for your quick response!!&lt;/P&gt;&lt;P&gt;To reconfirm&amp;nbsp;my understanding, following are high level&amp;nbsp;steps can be followed to retain existing 4.0 data in 5.0 version&lt;/P&gt;&lt;P&gt;1. Install Alfresco 5.0 version and ensure if working fine&lt;/P&gt;&lt;P&gt;2. Down services of &amp;nbsp;Alfresco 5.0&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;Configure CMS_Data of Alfresco 4.0 in the Alfresco 5.0&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;Configure Alfresco 5.0 DB parameter&amp;nbsp;to point to&amp;nbsp;postgres schema of Alfresco 4.0&lt;/P&gt;&lt;P&gt;5. Start Services of Alfresco 5.0 which will upgrade to new structure during startup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also confirm on following point&lt;/P&gt;&lt;P&gt;Currently my Alfresco 4.0 is running on Linux 5.4 with postgres 9.2.9.20. How critical it is to update to Linux 6.5 64 bit and postgres 9.3.6?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 07:29:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6543#M3187</guid>
      <dc:creator>sanketmohite</dc:creator>
      <dc:date>2017-03-21T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco upgrade from 4.0.0 community with postgres DB to 5.0.d</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6544#M3188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I think you've got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your Linux and Postgres, I assume you are talking about&lt;/P&gt;&lt;P&gt;RHEL/CentOS. It is risky to do in-place upgrades of RHEL/CentOS to new&lt;/P&gt;&lt;P&gt;major versions. It is almost always better to install a fresh server and&lt;/P&gt;&lt;P&gt;migrate to it from the old server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I definitely think you should run the newer OS and database so that you'll&lt;/P&gt;&lt;P&gt;be on the "supported stack" for 5.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When upgrading PostgreSQL, I always use the newer version of pg_dump to run&lt;/P&gt;&lt;P&gt;against the older PostgreSQL database to avoid any issues that might be&lt;/P&gt;&lt;P&gt;created by having a dump from the old version. If you are running&lt;/P&gt;&lt;P&gt;PostgreSQL as shipped with Alfresco the process looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Stop Alfresco.&lt;/P&gt;&lt;P&gt;2. Using the old Alfresco's postgres script in&lt;/P&gt;&lt;P&gt;$ALFRESCO_HOME/postgresql/scripts/ctl.sh, start the old posgres server.&lt;/P&gt;&lt;P&gt;3. Switch to the new Alfresco postgres binary folder and use pg_dumpall to&lt;/P&gt;&lt;P&gt;dump the database.&lt;/P&gt;&lt;P&gt;4. Stop the old Alfresco postgres.&lt;/P&gt;&lt;P&gt;5. Start the new Alfresco postgres.&lt;/P&gt;&lt;P&gt;6. Use the new Alfresco postgres psql to load the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course if you end up using two different servers to address the Linux&lt;/P&gt;&lt;P&gt;upgrade, these steps are a little more complicated. You could install the&lt;/P&gt;&lt;P&gt;old Alfresco on the new server and start it up to make sure it is good,&lt;/P&gt;&lt;P&gt;then you'd have everything you'd need to follow these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Tue, Mar 21, 2017 at 2:30 AM, sanketmohite &amp;lt;community@alfresco.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 16:18:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6544#M3188</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-03-21T16:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco upgrade from 4.0.0 community with postgres DB to 5.0.d</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6545#M3189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are able to setup a second server, you won't have any pressure that the new installation has to work instantly. If the upgrade on the new server fails, you always have the old one as fallback.&lt;/P&gt;&lt;P&gt;So, in your place, I would setup the new Linux box with a supported Linux version, install Alfresco 5 to it and transfer configuration, contentstore(s) and the db dump to the new system. The db commands in postgresql/VERSION/bin can be executed if you "su" to the postgres user.&lt;/P&gt;&lt;P&gt;If you have the time and your amount data is not too big, you could even test-upgrade on a virtual machine - but this vm needs a lot of resources, mainly memory &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;&lt;P&gt;Also have a close look on&amp;nbsp;&lt;A class="link-titled" href="http://docs.alfresco.com/community/concepts/ch-upgrade.html" title="http://docs.alfresco.com/community/concepts/ch-upgrade.html" rel="nofollow noopener noreferrer"&gt;Upgrading | Alfresco Documentation&lt;/A&gt;&amp;nbsp;(use the dos matching your version) and also look for new configuration options that are eventually missing in the old version.&lt;/P&gt;&lt;P&gt;Like &lt;B&gt;Jeff Potts&lt;/B&gt;‌ already showed, Alfresco tries to update your db Schema on startup.&lt;/P&gt;&lt;P&gt;I had problems to upgrade directly from 4.0x to 5.x, but I don't know if this was just my fault or a general problem, so I started the last 4.x version alfresco.jar (no full install, just copied the war in the tomcat/webapps instead of the old one) which upgraded my db-Schema to the latest 4.x and used the reulting db for the Alfresco 5 upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck (only in case you need it, no offence &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;&amp;nbsp;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 18:37:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-upgrade-from-4-0-0-community-with-postgres-db-to-5-0-d/m-p/6545#M3189</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-03-21T18:37:54Z</dc:date>
    </item>
  </channel>
</rss>

