Hi:
You won't be able to upgrade an 18.2 LabKey database directly to version 23.7. Those errors indicate problems making 'leaps' instead of the supported steps to upgrade modules and schemas. Please refer to this topic to help decide which intermediate steps you'll want to make. At first glance, 18.2 to 20.7, then 20.7 to 21.11, 21.11 to 22.11, and finally 22.11 to 23.11 (recommended over 23.7 as it was released about a month ago) might be the shortest path.
Keep in mind that with each step, you must use supported versions of Java, Tomcat, and Postgres, so you may also need to upgrade those in steps (particularly the JDK). You can find the supported versions of components for each LabKey version in the documentation archives. For example, in 20.7, this page shows which versions of Java, Tomcat, and Postgres are supported.
You can move through the archives easily by editing the URL to replace the version number, then make an upgrade component 'step' plan to get from 18.2 to 23.11 that works best for you. A few surrounding releases are shown on each grid, though there is no comprehensive grid going all the way back to 2018.
Obtain the necessary intermediate releases of LabKey Server from this page:
We highly recommend being careful to back up the database before every step in your upgrade plan and test at least basic functionality at each step, in order to be able to go back and retry with a different combination if necessary. Be even more careful never to 'downgrade' a database (i.e. start up using a database that was either fully or partially upgraded to a later release) as this can corrupt data and/or put the server in a bad state.
Hope that helps,
--Molly