Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Having trouble showing file history

jknopp September 16, 2024

Using the BB web interface, when I'm in the source view for a single file, the Commit History dropdown never populates, and if I select History from the first dropdown, it eventually times out with the error message "Having trouble showing file history".

This has been the case for months, most of the time (occasionally it works).

I know there'a bug with commit history when there are non-ascii characters in the path or filename, but that's not the case here.

The history comes up fine if I use command line git in a checked out copy.

Anyone else run into this?

1 answer

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2024

Hey @jknopp ,

and welcome to the Community!

I wasn't able to reproduce this behavior on my end with multiple repositories, so I'd like to ask you to perform a few tests:

  • Make sure to use one of the bitbucket supported browsers
  • Try loading the page in your browser's incognito mode, so we rule any any possible cache issue
  • Disable any browser extensions you may have and tests if the issue persists.

Additionally, is this issue happening for all users on your repository, or only for you?

jknopp September 17, 2024

Thanks for the response.

Of course it is working now. I have noticed it being a bit inconsistent before though, so not entirely surprising. I'll try your ignognito/extension steps next time I come across the issue.

Browser is up to date chrome so shouldn't be an issue there.

Like Patrik S likes this
jknopp October 20, 2024

Managed to catch it again. Seems the AJAX API is responding with a 500 (quite quickly in this case, so not identical to but perhaps related to https://jira.atlassian.com/browse/BSERV-13135 )
The URL (sanitized) is:
https://bitbucket.org/!api/2.0/repositories/<workspace>/website/filehistory/<fileid>/<path/filename)?pagelen=10&renames=false&fields=%2Bvalues.commit.message%2C%2Bvalues.commit.rendered.message%2C%2Bvalues.commit.author.%2A%2C%2Bvalues.commit.date

Probably related, also getting a 500 from:
https://bitbucket.org/!api/internal/repositories/<workspace>/website/srcdir-with-metadata/<fileid>/<path>

Not to mention a couple 404s in the user prefs API but seems unrelated.

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 21, 2024

Hello @jknopp ,

Sorry to hear you are facing this issue again.

Usually a server error (HTTP status code 500) is followed by an error code so we can search for it on our end.

When you inspect those failed API requests, do you see any error code either in the body of the response message or in the response headers (look for a header with "sentry" in its name)?

jknopp October 22, 2024

A different 500 from an API call but didn't have a noticeable effect on the UI. Not sure if same root cause. Haven't triggered another 500 in the history request yet.
https://bitbucket.org/!api/internal/repositories/<workspace>/website/srcdir-with-metadata/<fileid>/htdocs/admin

x-sentry-id: cbc4cea608784e4789f150dee200767f
x-served-by: e9f30bb75437

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 29, 2024

Hello @jknopp ,

thanks for sharing the error code! 

Checking on our internal system, this error matches to an internal timeout, which is usually associated with a repository having too many references (branches/tags/) or being in an unhealthy state.

I've manually executed a garbage collection and repack on the repository to improve it's performance. Let us know if you see any improvements or if the issue is still occurring.

Thank you, @jknopp !

Patrik S

jknopp October 29, 2024

Loads instantly now! Thanks very much.

Glad it isn't a general issue affecting everyone.

Like Patrik S likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Upcoming Bitbucket Events