Closed ChrisScottThomas closed 5 years ago
Hi, you just need to start the TeamCity 2019.1.1 with the database from 10.0.5, open the Web UI and perform the upgrade of the data from the Web UI.
There is no option to 'upgrade' the data...
TeamCity has failed to start
TeamCity server startup error
Version mismatch: Data format of the data directory (898) and the database (787) do not match.
Please ensure that the data directory and the database in use were upgraded/restored consistently and were always used together.
See details at https://www.jetbrains.com/help/teamcity/2019.1/?Upgrade.
Current Startup State
Startup status
Current step: TeamCity server startup error
Next step: not defined yet
Data Directory
Directory path: /data/teamcity_server/datadir exists
Database properties file exists
Internal database file: not found
Database
Database type: POSTGRESQL
Database connection URL: jdbc:postgresql://teamcity-postgres-old:5432/teamcitydb
JDBC driver version: 42.2 (PostgreSQL JDBC Driver)
Database system version: 11.4 (PostgreSQL)
Versions
Software version: 898
Data directory version: 898
Database version: 787
Logs
Logs path: /opt/teamcity/logs
Ah ok, so you started TeamCity using the fresh Data Directory and an old database. You need to backup/restore both data directory and database to the 2019.1.1 pod
yep that's fixed it. Had to tar up each individual folder so that I didn't carry over the 200GB of artifacts & cache.
Thanks :)
I'm trying to migrate a database from teamcity 10.0.5 (bare metal) to 2019.1.1 (Kubernetes) I've managed to export the data from 10.0.5, and import to the DB attached to the 2019.1.1 pod. The issue now is that the server is running
878
and the database is787
I've tried to follow the guidance to migrate the database, I start the pod with teamcity-server not running yet I get errors saying that the database is connected to a running server.
See output below:
No idea why it thinks teamcity server is connected? Is there another way I can upgrade the database so it's compatible with 2019.1.1?