Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Build error: Cannot call constructor

Have been building without issue, and then this morning they spontaneously began to fail continuously fail with:

 Fatal error: Uncaught Error: Cannot call constructor in /opt/atlassian/pipelines/agent/build/vendor/symfony/finder/Comparator/DateComparator.php:48

1 answer

0 votes

Hi Jeff,

The issue could be related to changes in your source code, dependencies, or the Docker image you use for your builds.

I would suggest debugging this locally with Docker first to figure out if that's the case. If the build fails with the same error locally, then the issue is most likely not related to Pipelines, and you can debug this locally without consuming Pipelines minutes.

You can find step-by-step instructions on how to debug this locally in my reply to another question here:

It's important to use a clone of the repo at the commit with the failed build, and also use the same Docker image that you use as a build container for the failed step.

Kind regards,

Hi. The non-pipeline possibilities as the issue might make sense if failure were consistent rather than my experience of 5 succeed, 1 fails, 2 succeed, 4 fail, etc. 

Hi Jeff,

You can create a ticket with the support team and provide the URL of some of the builds that fail and some of the ones that succeed, so we can look further into this issue. If there is a support ticket open, the engineer working on your case will be able to access the builds and additional logs in order to investigate.

You may still be asked to debug one of the failed builds locally, as that's usually the first step in determining if the issue is likely to be caused by pipelines or not.

You can create a ticket via, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

Kind regards,

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events