How to find out when the Bitbucket server was upgraded

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

For certain reasons (such as auditing), information regarding the last time Bitbucket was upgraded is needed.

Solution 1

To find out the latest upgrade made in the application, follow steps below:

  1. Go into the $BITBUCKET_HOME/log directory.
  2. Locate the atlassian-bitbucket-YYYY-MM-DD.logs.
  3. Search for the string "Upgrading Bitbucket from” in the log files.
    Here's a sample entry:

    2024-03-10 09:00:01,850 INFO  [spring-startup]  c.a.s.internal.home.HomeValidator Upgrading Bitbucket from 8.7.1 to 8.9.10

Note that Bitbucket keeps the atlassian-bitbucket-YYYY-MM-DD.log for 31 days only by default.

Solution 2

Run the following script against the database.

SELECT * FROM databasechangelog ORDER BY orderexecuted DESC

Make note of the date in the dateexecuted column of the most recent entry.

Not all upgrades contain database schema updates. This is normal and if your most recent upgrade was only a patch or between certain minor versions, this may not show the most recent upgrade.





Last modified on Mar 21, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.