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.
×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?
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:
Additionally, is this issue happening for all users on your repository, or only for you?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.