Perl validation fails on startup with 'Filename too long' or 'CreateProcess error=267'
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Symptoms
When starting Bitbucket Server on Windows, the following error message are visible:
1
Error validating Perl: 'An error occurred while executing an external process: CreateProcess error=267, The directory name is invalid's
or:
1
Error validating Perl: 'An error occurred while executing an external process: [..]: Filename too long'
Cause
The error is caused by the absolute limit on the length of a directory's path on Windows. For more information, consult the following knowledge base article:
Bitbucket Server is unable to create the merge diff for pull requests
.
Workaround
The Workaround section of the knowledge base article Bitbucket Server is unable to create the merge diff for pull requests discusses solutions to resolve the problem.
Was this helpful?