Sonar Scan Pipline Running for 2 hours

When running the pipe sonarsource/sonarcloud-scan:1.4.0 The scanner is running for 2 hours and then failing, with no obvious log showing what causes the issue. When working correctly the scanner normally runs in a few minutes.

The end of the logs shows this which isn’t very enlightening :

INFO: Reading type hierarchy from: /opt/atlassian/pipelines/agent/build/ucfg_cs2
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /opt/atlassian/pipelines/agent/build/ucfg_cs2
INFO: No UCFGs have been included for analysis.
INFO: Sensor CSharpSecuritySensor [security] (done) | time=0ms
INFO: Sensor PhpSecuritySensor [security]
INFO: Reading type hierarchy from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/php
INFO: Read 711 type definitions
INFO: Reading UCFGs from: /opt/atlassian/pipelines/agent/build/.scannerwork/ucfg2/php
INFO: 12:31:55.676923 Running Tarjan on 29944 nodes
INFO: 13:01:10.749786 Tarjan found 29876 components

Unsure what to do to fix this error,

Thanks for any help

I’m happy to provide the full output to Sonar staff, but don’t want to post it publicly to avoid any commercial sensitivity.