How to find out when the Bitbucket server was upgraded
Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.
For certain reasons (such as auditing), information regarding the last time Bitbucket was upgraded is needed.
To find out the latest upgrade made in the application, follow steps below:
- Go into the $BITBUCKET_HOME/log directory.
- Locate the atlassian-bitbucket-YYYY-MM-DD.logs.
- Search for "Starting Bitbucket” in the log files.
- Make note of when the version changed to the currently running version of Bitbucket.
If logs are regularly removed/rolled over, you may not see a version change in the logs.
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.