<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Docker, Migration 7.2.1 to 7.3.1</title><link>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1</link><description>&lt;p&gt;Hi Ivy Team&lt;/p&gt;
&lt;p&gt;I am getting following error message during Ivy startup after I migrated to the 7.3.1 image :&lt;/p&gt;
&lt;p&gt;java.lang.Exception: The system database (jdbc:&lt;a&gt;postgresql://10.172.0.9:5432/ivysystemdb_7)&lt;/a&gt; with all tables already exists (Version: 50). But was created with a older version of the ivy Engine. at ch.ivyteam.ivy.server.configuration.command.CreateDbCommand.checkIfCreationNeeded(CreateDbCommand.java:114) at ch.ivyteam.ivy.server.configuration.command.CreateDbCommand.createSystemDatabase(CreateDbCommand.java:63) at 
...&lt;/p&gt;
&lt;p&gt;What has to be done to fix this problem.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards
John&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 18 Sep 2019 02:46:43 -0400</lastBuildDate><item><title>Comment by Reguel Wermelinger on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3994</link><description>&lt;p&gt;we'd love to get early feedback on the 7.4 release. And migrators could benefit of the enhanced cockpit and migration scripts. 
However, a 7.4 migration must be carefully considered since with it the migration to java11 and primeFaces 7.0 is enforced with it. So it might take some manual migration steps...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 18 Sep 2019 02:46:43 -0400</pubDate><guid>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3994</guid></item><item><title>Comment by Alex Suter on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3990</link><description>&lt;p&gt;I recommend to go directly to 7.4.we have improved db migration scripts between 7.2 unf 7.3.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Tue, 17 Sep 2019 10:58:20 -0400</pubDate><guid>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3990</guid></item><item><title>Comment by John Moser on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3989</link><description>&lt;p&gt;Ok ... then we will use the CLI.&lt;/p&gt;
&lt;p&gt;Btw I just saw that 7.4 is out. Should we (from KLARA) move right to 7.4 or first move to 7.3.1 ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Moser</dc:creator><pubDate>Tue, 17 Sep 2019 10:49:18 -0400</pubDate><guid>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3989</guid></item><item><title>Comment by Alex Suter on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3986</link><description>&lt;p&gt;I double checked your issue and can now explain why this happens. Our docker image provides an own docker-entrypoint.sh and execute create-db before starting, to bootstrap a db. But in this scenario this commando will fail. We will fix that for 8.0 (XIVY-3343).&lt;/p&gt;
&lt;p&gt;As workaround you can override the docker-entrypoint.sh with a more intelligent implementation. See &lt;a href="https://developer.axonivy.com/doc/latest/engine-guide/getting-started/docker.html"&gt;https://developer.axonivy.com/doc/latest/engine-guide/getting-started/docker.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We can not ensure that ivy startup is delayed for so long. You need to prepare a maintenance window for your user.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Tue, 17 Sep 2019 10:04:39 -0400</pubDate><guid>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3986</guid></item><item><title>Comment by John Moser on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3982</link><description>&lt;p&gt;No ... I am running the following flag in ivy.yaml :&lt;/p&gt;
&lt;p&gt;# If set to true the system database is automatically converted to the latest version during startup of the Axon.ivy Engine if needed.&lt;/p&gt;
&lt;p&gt;Autoconvert: true&lt;/p&gt;
&lt;p&gt;My expectation is that during the startup of Ivy this flag will cause the db to convert so that Ivy 7.3.1 can be run. So my question is, does this flag work at all ?&lt;/p&gt;
&lt;p&gt;PS: imho I would be surprised if this works, if you have a real big sys db, how do you make sure that the Ivy startup can be delayed for so long ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Moser</dc:creator><pubDate>Tue, 17 Sep 2019 08:40:26 -0400</pubDate><guid>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3982</guid></item><item><title>Comment by Alex Suter on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3957</link><description>&lt;p&gt;It seems to me that you are using the CLI tool and calling the creation command? e.g. &lt;code&gt;./EngineConfigCli create-db&lt;/code&gt;. You need to call &lt;code&gt;./EngineConfigCli convert-db&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Mon, 02 Sep 2019 00:45:07 -0400</pubDate><guid>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3957</guid></item><item><title>Comment by John Moser on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3956</link><description>&lt;p&gt;I tried the autoConvert solution but it did not work. I even installed/started an "empty" Ivy. If you look at the stack trace, it fails always at the same code line&lt;/p&gt;
&lt;p&gt;ch.ivyteam.ivy.server.configuration.command.CreateDbCommand.checkIfCreationNeeded(CreateDbCommand.java:114) at &lt;/p&gt;
&lt;p&gt;and looking at the name of the method, it looks like it does not even attempt to convert.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Moser</dc:creator><pubDate>Fri, 30 Aug 2019 10:09:54 -0400</pubDate><guid>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1#3956</guid></item><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1/3954</link><description>&lt;p&gt;Hello &lt;a href="https://answers.axonivy.com/users/1123/john-moser"&gt;&lt;a href="https://answers.axonivy.com/users/1123/john-moser"&gt;@John Moser&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The system database needs to be converted. Classically, you started the Engine Configuration UI and clicked on the button &lt;code&gt;Convert&lt;/code&gt;. But UI Interactions in a container world are not desired.&lt;/p&gt;
&lt;p&gt;I think for the container use case, our &lt;code&gt;autoConvert&lt;/code&gt; feature is pretty nice.  While starting the container the migration will be done automatically. See &lt;code&gt;autoConvert&lt;/code&gt; in the &lt;code&gt;SystemDb&lt;/code&gt; section:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.axonivy.com/doc/latest/EngineGuideHtml/configuration.html#configuration-file-ref-ivy-yaml"&gt;https://developer.axonivy.com/doc/latest/EngineGuideHtml/configuration.html#configuration-file-ref-ivy-yaml&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We provide additionally a Command Line Tool, called EngineConfigCLI (&lt;a href="https://developer.axonivy.com/doc/latest/EngineGuideHtml/tools.html#tool-engineconfigcli)."&gt;https://developer.axonivy.com/doc/latest/EngineGuideHtml/tools.html#tool-engineconfigcli).&lt;/a&gt; This CLI is also able to convert the database. This 
CLI tool is also available in our docker image.&lt;/p&gt;
&lt;p&gt;Be aware that a migration can take some time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Attention&lt;/strong&gt;: Always make a backup of the SystemDb before converting.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Fri, 30 Aug 2019 02:06:51 -0400</pubDate><guid>https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1/3954</guid></item></channel></rss>