- Stop the Gerrit service
- Perform an upgrade to 2.15.2 from 2.14.8 using the init command.
- Schema migration fails at schema v146.
- StackTrace is output to the command prompt as shown in OP.
- It didn't seem that anything was recovering, so I closed the command prompt at this point.
- Assuming my data was in a bad state, I reverted the backing MySQL db to schema v142. I had exported the data prior to starting the 2.15.2 upgrade process.
- Ran the init command on 2.14.8. No schema migration occurred (as expected).
- Reindexed the database
- Deployed the newly initialized 2.14.8 in Tomcat
- Started the Windows service
So to answer your question: Yes, I am currently reverted to a known working state.
To address your bullet points
- Yes, I did stop the running Gerrit service prior to starting the upgrade
- This may be the problem point. I am logging into the Server '12 VM with a user who is shown to have administrative credentials when looking at Control Panel > User Accounts > MyUser. However, when I check the read/write access for the site path as well as the All-Users parent directory, MyUser only has Special Permissions and not Full Control.
- I am logging into the VM with the same user that starts the Gerrit service when I am running the init command.
I am going to try to update the user access on the site path and All-Users.git parent directory to see if that works. I will be surprised if it does though. I was able to upgrade from 2.11.x -> 2.12.x -> 2.13.x -> 2.14.8 very smoothly, and these were the directory permissions for each of those upgrades. But, I will give it a shot...and this time, I will make sure to opt to create a new war while initializing instead of overwriting the existing 2.14.8 war.
Thanks for your help. Will report back
- JS