How to Upgrade JetBrains YouTrack: A Comprehensive Step-by-Step Guide for 2024

How to Upgrade JetBrains YouTrack: A Complete Guide

Introduction

Upgrading JetBrains YouTrack requires a structured approach, especially if your current version is significantly outdated. This guide provides a step-by-step process for upgrading from older versions to the latest YouTrack 2024.1 or beyond, ensuring data integrity and minimizing downtime. Follow along to achieve a seamless upgrade!


Why Upgrade YouTrack?

1. Enhanced Features

  • Access the latest features, including performance improvements and integrations.
  • Improved UI/UX for better productivity.

2. Security Updates

  • Keep your instance secure with the latest patches and updates.
  • Protect against vulnerabilities present in older versions.

3. Improved Compatibility

  • Ensure compatibility with modern operating systems and third-party tools.

Pre-Upgrade Preparation

1. Download Previous Versions

JetBrains requires sequential upgrades for older instances. Download these versions from the official JetBrains Previous Versions page. The necessary versions are:

  • 2020.6.8801
  • 2021.4.40676
  • 2022.3.65379
  • 2023.1.22653
  • 2023.3.26285
  • 2024.1.34109

2. Backup Your Current Instance

Before starting, back up your data to avoid loss:

cp -r /var/www/html/youtrack-compass /var/www/html/youtrack-compass-backup

This backup includes:

  • Database
  • Configuration files
  • Attachments and logs

Step-by-Step Upgrade Process

Step 1: Stop the Current YouTrack

./youtrack-compass/bin/youtrack.sh stop

Step 2: Rename the Current Installation

Rename the existing folder for reference:

mv /var/www/html/youtrack-compass /var/www/html/youtrack-2020-backup

Step 3: Extract the New Version

  1. Upload the new version ZIP file to the server.
  2. Extract the ZIP:
    unzip youtrack-2021.4.40676.zip -d /var/www/html/
    mv /var/www/html/youtrack-2021 /var/www/html/youtrack-compass
    

Setting Up the New Version

Start YouTrack

Run the following command:

./youtrack-compass/bin/youtrack.sh start --no-browser

Access the Setup Page

Once started, the command will display a link like:

http://yourdomain:8080/bundle/starting

Follow the link in a browser.

Retrieve the Configuration Token

If prompted, locate the token:

cat /var/www/html/youtrack-compass/conf/internal/services/configurationWizard/wizard_token.txt

Enter the token on the login page.


Upgrade via YouTrack UI

  1. Select “Upgrade” Option Choose the Upgrade option on the setup page.
  2. Provide Backup File Select the latest backup tar.gz file:
    /var/www/html/youtrack-compass/backups/latest-backup.tar.gz
    
  3. Follow On-Screen Prompts
    • Confirm previous settings.
    • Use the default free license if applicable.
  4. Wait for Migration The system will set up the environment and restart services automatically.

Confirming the Upgrade

  1. Once the upgrade is complete, the login page will appear.
  2. Log in and verify:
    • Version: Check the version from the admin settings.
    • Data Integrity: Ensure all previous data is intact.

Key Takeaways

  • Sequential upgrades ensure compatibility and data safety.
  • Always back up your instance before any upgrade.
  • Verify each step to minimize errors during the process.
  • Follow the official JetBrains documentation for any version-specific details.

FAQ

1. Why can’t I directly upgrade to the latest version?

JetBrains requires sequential upgrades for older versions to ensure data integrity and proper database migration.

2. Where can I find my upgrade token?

The token is located in:

/var/www/html/youtrack-compass/conf/internal/services/configurationWizard/wizard_token.txt

3. What should I do if an error occurs during migration?

  • Check the logs in:
    /var/www/html/youtrack-compass/logs/youtrack-stderr.log
    
  • Resolve the issue or restore your backup.

4. How long does the migration take?

Migration time depends on the database size. Ensure sufficient server resources for a faster upgrade.

5. Is the free license affected during the upgrade?

No, the free license remains active during and after the upgrade.


Conclusion

Upgrading JetBrains YouTrack to the latest version can seem challenging, but with a structured approach, the process becomes straightforward. By following this guide, you ensure data integrity, minimize downtime, and unlock the full potential of the latest YouTrack features. Remember to back up your instance at every step and verify each stage of the upgrade.

With the latest version, enjoy improved performance, security, and compatibility for all your project management needs!

Related Resources

Talk with our Agent