Upgrade Teamcity to the latest version
Hi Team,
Hope you all doing good.
We are planning to upgrade teamcity application on the production environment. We are doing it first time upgrade on the production. we don't have any staging environment to upgrade and test. we are facing the below vulnerability
- (CVE-2023-42793) TeamCity Vulnerability.
Could you please suggest the best practice for the upgrade in our current environment like this.
or
can we take the backup of the application and do the upgrade directly on the production environment or if anything goes wrong will restore can help us without affecting the older version. will that be a smooth restore. we are unable to take the decision here. kindly help us on this and your support is mush appreciated.
Thanks,
Suresh
Please sign in to leave a comment.
If your TeamCity is sufficiently new, you may use the automatic upgrade option (https://www.jetbrains.com/help/teamcity/upgrading-teamcity-server-and-agents.html#Automatic+Update) - it will handle backup for you too; otherwise, please refer to the guide for manual upgrade (https://www.jetbrains.com/help/teamcity/upgrading-teamcity-server-and-agents.html#Manual+Update). In any way, I suggest to start with before upgrade checklist (https://www.jetbrains.com/help/teamcity/upgrading-teamcity-server-and-agents.html#Before+Upgrade).
Should you need to rollback, you would need to install previous version of TeamCity first, then restore the backup there.
We have few more query on the upgrade. could you please clarify on this.
Hello,
Not sure if I quite follow. If for any reason you need to rollback, you would need to restore from backup - backup includes both Data Directory and DB data, so both would be restored to pre-upgrade state. In regards to your other question, can you please elaborate on that?
Usually, you do not need to do anything else after the upgrade - TeamCity will pick up the Data Directory and DB state and proceed with starting normally.