MDriven Server problem with evolve
(Automatically adding template at the end of the page.)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Versions up until 2019-03-25 had issues with admin database evolve.


This gave the effect that upon evolving the admin database of MDrivenServer (happens when MDrivenServer has an updated internal model ) the changescript  needed for doing further evolves could get ERASED
'''NOTE(2024-02-05)''': Normally you would not need this. <span class="col-red">This text is to fix a problem that is recognized by finding the Evolve-Script text-box being empty</span> - the normal case is that it has the evolve script from the last successful evolve.


If this happen MDrivenServer will not be able to evolve to newer versions.
'''NEW(2022-10-28)''': We now look for App_Data\MissingOrMapping.xml. If ORMapping is missing in the startup of the app and the file is found, we inject the file. The included file is version 13500 of the script. You can change it if needed.


To restore this missing script follow the instructtions below:
Here is a short video discussing this: https://youtu.be/vwF1rjXjCak
# '''Download''' this XML [[:File:Evolve.xml]] and open in a text editor. '''NOT '''a browser, you need to preserve the encoding of < and >.
 
## Version 13500 forward: [[:File:OR-mapping_version_13500.xml]]
Versions up till 2019-03-25 had issues with admin database evolve. This gave the effect that upon evolving the admin database of MDrivenServer (this happens when MDrivenServer has an updated internal model), the changescript needed for doing further evolves would get ERASED.
## Version 10923 forward: [[:File:OR-mapping 10923 13499.xml]]
# Go to your MDrivenServer -settings-admin
# Check if you have the script already (Read current Evolve scrip) - if not paste the correct script based on version + then "Write Current Evolve Script"  + '''ENSURE YOU SUCCESSFULLY LOADED THE SCRIPT BY ENSURING THAT Read CURRENT evolve script RETURNS IT'''
# Try to make admin evolve once more
[[File:2021-10-18 11h08 34.png|none|thumb|950x950px]]


==== Amin db issues described ====
If this happens, the MDrivenServer will not be able to evolve to newer versions.
When admin db refuse to work it is one of these issues:
# Eco_Ormapping is empty AND the db schema is old
# Eco_Ormapping has newest versions - but db schema is old
# DB schema is new  but Eco_OrMapping is empty
If issue 1: Evolve cannot run - and Repair only takes us issue 2


If issue 2: Evolve does not discover need to update db_schema, admin will not start due to old schema
To restore this missing script, follow the instructions below:
# '''Download''' this XML [[:File:Evolve.xml]] and open it in a text editor, '''NOT '''a browser - you need to preserve the encoding of < and >.
#* Version 2022-05-13 onwards: [[:File:OR-mapping_version_20220513.xml]]
#* Version 13500 (2021-10-12 - 2022-05-12) : [[:File:OR-mapping_version_13500.xml]]
#* Version 10923 (2019-04-03 - 2021-10-12) forward: [[:File:OR-mapping 10923 13499.xml]] 
# Go to your MDrivenServer-settings-admin
# Check if you have the script already (Read the current Evolve script). If not, paste the correct script based on the version + then "Write Current Evolve Script"  + '''Ensure you SUCCESSFULLY LOADED THE SCRIPT by ensuring that Read CURRENT EVOLVE SCRIPT RETURNS IT.'''
# Try to make admin evolve once more.
[[File:2021-10-18 11h08 34.png|none|thumb|950x950px]]


If issue 3: No error is seen until a future evolve when you end up in issue 1
==== Admin DB Issues Described ====
When admin DB refuses to work, it may be due to one of these issues:
# Eco_Ormapping is empty AND the DB schema is old
# Eco_Ormapping has the newest versions - but the DB schema is old
# DB schema is new but Eco_OrMapping is empty
If issue 1: Evolve cannot run - and Repair only takes us to issue 2


The correct state is: 4. Eco_Ormapping stämmer med schemat
If issue 2: Evolve does not discover the need to update db_schema and the admin will not start due to the old schema


To solve issue 1 & 2: Grab correct script from the available above - write it with "Write current evolve script" followed by "Evolve admin DB"
If issue 3: No error is seen until a future evolve when you end up at issue 1


To solve issue 3: do "Repair admin evolve script"
The correct state is 4. Eco_Ormapping Describes the current Schema
* To solve issues 1 & 2: Grab the correct script from those available above - write it with "Write current evolve script" followed by "Evolve admin DB"
* To solve issue 3: do "Repair admin evolve script"
[[Category:MDriven Server]]
{{Edited|July|12|2024}}

Latest revision as of 15:37, 10 February 2024

NOTE(2024-02-05): Normally you would not need this. This text is to fix a problem that is recognized by finding the Evolve-Script text-box being empty - the normal case is that it has the evolve script from the last successful evolve.

NEW(2022-10-28): We now look for App_Data\MissingOrMapping.xml. If ORMapping is missing in the startup of the app and the file is found, we inject the file. The included file is version 13500 of the script. You can change it if needed.

Here is a short video discussing this: https://youtu.be/vwF1rjXjCak

Versions up till 2019-03-25 had issues with admin database evolve. This gave the effect that upon evolving the admin database of MDrivenServer (this happens when MDrivenServer has an updated internal model), the changescript needed for doing further evolves would get ERASED.

If this happens, the MDrivenServer will not be able to evolve to newer versions.

To restore this missing script, follow the instructions below:

  1. Download this XML File:Evolve.xml and open it in a text editor, NOT a browser - you need to preserve the encoding of < and >.
  2. Go to your MDrivenServer-settings-admin
  3. Check if you have the script already (Read the current Evolve script). If not, paste the correct script based on the version + then "Write Current Evolve Script" + Ensure you SUCCESSFULLY LOADED THE SCRIPT by ensuring that Read CURRENT EVOLVE SCRIPT RETURNS IT.
  4. Try to make admin evolve once more.
2021-10-18 11h08 34.png

Admin DB Issues Described

When admin DB refuses to work, it may be due to one of these issues:

  1. Eco_Ormapping is empty AND the DB schema is old
  2. Eco_Ormapping has the newest versions - but the DB schema is old
  3. DB schema is new but Eco_OrMapping is empty

If issue 1: Evolve cannot run - and Repair only takes us to issue 2

If issue 2: Evolve does not discover the need to update db_schema and the admin will not start due to the old schema

If issue 3: No error is seen until a future evolve when you end up at issue 1

The correct state is 4. Eco_Ormapping Describes the current Schema

  • To solve issues 1 & 2: Grab the correct script from those available above - write it with "Write current evolve script" followed by "Evolve admin DB"
  • To solve issue 3: do "Repair admin evolve script"
This page was edited 90 days ago on 02/10/2024. What links here