Unable to see the Diff view page for a repository in Bitbucket Data Center

Still need help?

The Atlassian Community is here for you.

Ask the community


Unable to render {include} The included page could not be found.

Summary

"Unable to read files to diff" error on the Bitbucket Data Center UI.

Environment

Bitbucket Data Center

Diagnosis

The Bitbucket application logs has the below snippet:

atlassian-bitbucket.log
2024-03-01 11:28:51,061 DEBUG [http-nio-7990-exec-95] username *MXDOSUx688x1032379x0 bc7nyf 14.xxx.xx.x,100.xx.xx.xx "GET /rest/api/latest/projects/COL/repos/collectionsrepository/commits/3a800b4584d4e82230baaaab72fbb9777bce7b15/diff/force-app/main/default/classes/IFB_Constants.cls HTTP/1.0" c.a.s.i.r.e.ServiceExceptionMapper Mapping CommandFailedException to REST response 500 - 'git diff -C --color=never --dst-prefix=dst:// --src-prefix=src:// -U10000 d0731f2fe0dd21951055ec03595cd5a40fca2f40 3a800b4584d4e82230baaaab72fbb9777bce7b15 -- force-app/main/default/classes/IFB_Constants.cls' exited with code 128 saying: Can't locate strict.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./transcode.pl line 6.

BEGIN failed--compilation aborted at ./transcode.pl line 6.
fatal: unable to read files to diff 

Cause

The issue can happen when Bitbucket tries to run a transcode on the diff in a repository.

Solution

Ensure that the diff transcoding is disabled on the affected repository. You can do this by going into the Repository Settings >> Repository Details >> uncheck the Transcode diffs option.

Last modified on Apr 17, 2025

Was this helpful?

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