Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed the steps involved in the first tutorial.

These tips are written for those Mifos X users whose facing errors during upgrade fails due to schema version failfailure.


Panel

On this page:

Table of Contents
maxLevel3
minLevel3
printablefalse


For upgrading follow:-To learn how to upgrade an existing installation of Mifos X, follow this guide: https://github.com/openMF/mifosx/wiki/Installation-FAQ's#upgrading-an-existing-installation-of-mifosx

It 's is highly recommended to take database backup your existing databases before upgrading mifos xMifos X

At the time of upgrading mifos x to latest version if you get the error log as " For some users, during upgradation of Mifos X, an error (Migration of schema failed. Like !) might occur, as shown in the screenshot below shown example in screen shot:

 


You should follow below mentioned the following steps to fix the issue:- 

Step 1

) Stop tomcat

: 

Stop the Tomcat server. 

Step 2

) I am using above same example that is:- 

: 

For this example, we shall be considering the following error:

Warning

Migration of schema `mifostenant-default` to version 251 failed! 

In this example, I am This error occurs when upgrading to Mifos X 15.03.1v. Go to the downloaded mifos x folder i.e Mifos X folder: 

Step 3

:

Go to path: mifosplatform-15.03.1.RELEASE\database\migrations\core_db >> then to .

Locate the failed version, i.e., V251 in this example to V251.

Step 4: 

Open the sql SQL script in any text editor like notepad (Notepad++, Sublime Text, etc.):

Step 5:

Please copy the script one by Copy the following SQL scripts one-by-one till the semi-colon (;), like showed as shown in the screenshot below screen shot

Image Modified

Step 6:

 For easy use - mysql, I have used heide sql

 

To make things simpler, this example requires HeidiSQL. (http://www.heidisql.com/download.php

Follow the numbers mentioned in the below image & the instructionsinstructions below (the image displays numbers corresponding to the instruction number):

1) Go to the failed database (in this example, it is `mifostenant-default`) and click on it.

2) Click in on the query tab

3) Paste the copied script (1) (from the Step 5 above shown example)

4) Click on >(play) button which will to run the script. 

Info
Note:-

If the table already exists, it will give

the

an error message

as table already exists

, otherwise it will create the table. Irrespective of whether the table already exists or not, you need run all the scripts one by one

for example mentioned in the step 5 need to copy next script i.e 2nd, then 3rd and so on till all are sql scripts are executed. 

as mentioned in Step 5 & 6 until all the SQL scripts (copied from Step 5) are executed.

Step 7:

 Follow

 

Follow the numbers mentioned in the image below image & and the corresponding instructions:

1) Go to the table schema_version table .

2) Click on Data.

3) Scroll to version 251251 (In for this example) and make sure the table name is same i.e here the same (like the paymentType_table shown below).

4) Scroll to the right side of the page,. 

5) For The value of the success column it would have been will vary between 0 (zerofor failure) make it and 1 (one) & for success). Change this value to 1 and click on the other table to make it run. 

8) Make sure "that the success" column value has become 1(one). 

Step

7

8:

Restart the tomcat server,>> Success - you could .

  • If the fix is successful, you can now start using Mifos
x
  • X.
 >> Failed - If the schema version again gets failed for different version then please
  • However, if following all the steps doesn't fix the issue, then repeat all the steps
again for the newly failed version.  

 

 

In the same way
  • above.


Similarly, if the migration of schema 'mifosplatform-tenants' to version 2 failed: 


 


Step 1) Go to path: mifosplatform-15.03.1.RELEASE\database\migrations\list_db >> then to the failed version, in this example to V2 


 


Step 2) Please copy the script till the semi-colon (;), like showed in the below screen shot: 

 


Step 3) For easy use - mysql, I have used heide sql (http://www.heidisql.com/download.php

Follow the numbers mentioned in the below image & the instructions

1) Go to the failed database in this example it is `mifosplatform-tenants` and click on it.

2) Click in query tab

3) Paste the copied script (1) from the above shown example

4) Click on >(play) button which will run the script. 

Step 4) Scroll to right side of the page, 

For success column it would have been 0(zero) make it 1(one) & and click on the other table to make it run. 

Make sure "success" column value has become 1(one). 

Step 5) : Restart the tomcat server,

>> Success - you could start using Mifos x. 

>> Failed - If the schema version again gets failed for different version then please repeat all the steps again for the newly failed version.    


Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacesdocs
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "upgrade" , "version" , "mifos" , "to" , "schema" , "x" , "failed" , "due" ) and type = "page" and space = "docs"
labelsMifos X upgrade failed due to schema version