Hi Augusto,
Darn. Okay, things are going to get trickier going forward.
The problem is essentially that, for some reason, there is a mismatch between the version your database thinks it is at, and what migration tasks have actually been run. Either the current database version stored is incorrect, and needs to manually corrected to the right version before we can run the 2.4 upgrade task, or else we need to disable the current migration task this is hanging on from running, since the changes are already in place.
Before we are able to do anything, we need to try to figure out which is actually happening.
Let me say this: this will be complicated, and is somewhat beyond the level of support we are able to fully offer via the user forum. We can try to talk you through as much as we are able, but at some point if we encounter further issues, it will be impossible for us to provide support without actually examining the database - which is beyond the level of support we can offer freely in the user forum. If you need this to be resolved in a timely manner and your institution has some resources to support this, please feel free to contact me off-list: Artefactual can examine the database, and find and resolve the migration issues at our time and materials rate.
If however, you want to continue pursuing this on your own, then the first step will be for us to try to figure out which migrations have been run, and which haven't.
This will be a process of elimination, and will require some investigation on your part. Essentially, we know that the database *thinks* it is at v133. It is unlikely that earlier migrations have not been run, so what we will start by doing is reviewing migrations 134 - 138 and seeing if we can find evidence in your installation that they have already been run.
For reference, all the migrations in AtoM can be found here:
You'll notice that most of the recent commit messages on each migration, include a 4-5 number like so:
These numbers point to the related issue ticket in our development tracker, where you can find more information. The AtoM issue tracker is here:
You can enter the issue number (without the # pound sign) in the search bar to go straight to the related issue. This should give you more context.
So... let's start taking a look at these. We will assume for now that migration 133 has run, as have previous ones. What I need you to do, so we can narrow down where the issue occurs, is try to find evidence of the following migrations being run. We'll look for functionality that should be in your 2.3 version to find out - please review my notes below, and for each migration, see if you can find the functionality I reference in your 2.3.1 interface. You might want to do a bit of testing with each element too, to make sure the functionality seems to be working as expected in 2.3.1.
Here we go:
134 (issue
8678) fixed some previous migration issues (so could be our culprit if not run properly!), and it also turned the Statutes field in the Rights template into an autocomplete, linked to a new Taxonomy. So: to check if this has been run, please navigate to Manage > Taxonomies, and see if there is a taxonomy called "PREMIS Rights Statutes."
135 (issue
8887) made changes to the Access statements associated with actionable PREMIS rights. We can check for this by navigating to Admin > Settings. There should be a section there now called "Permissions" that has the following in it:
136 (issue
7890) involves changes that are not visible in the user interface... there was a typo in one of the security check classes in the code. So, to see if this has been run, we are going to search for the old, incorrect spelling in the code, using grep in the command-line. If this migration HAS been run, then you should get 0 results back. Try the following:
- grep -Ri priviliges /usr/share/nginx/atom
If it DOES return results (places in the code where this "priviliges" spelling is found), then this means that 136 has not been run - let us know!