Broken pipe error in cicd

sonar version - 8.6.2 developer edition.

One of my repo is failing sonar scanner in cicd with below error, for other platforms it works fine

INFO: Analysis report generated in 1765ms, dir size=5 MB

[252](https://code.tiamat.cloud/core-systems/event-reservations-web/-/jobs/533643#L252)INFO: Analysis report compressed in 917ms, zip size=2 MB
java.net.SocketException: Broken pipe (Write failed), java.net.SocketException: Broken pipe (Write failed), java.net.SocketException: Broken pipe (Write failed)]

[253](xxx/-/jobs/533643#L253)INFO: ------------------------------------------------------------------------

[254](xxx/-/jobs/533643#L254)INFO: EXECUTION FAILURE

[255](xxx/-/jobs/533643#L255)INFO: ------------------------------------------------------------------------

[256](xxx/-/jobs/533643#L256)INFO: Total time: 2:35.825s

[257](xxx/-/jobs/533643#L257)ERROR: Error during SonarScanner execution

[258](xxx/-/jobs/533643#L258)INFO: Final Memory: 54M/190M

[259](xxx/-/jobs/533643#L259)INFO: ------------------------------------------------------------------------

[260](xxx/-/jobs/533643#L260)java.lang.IllegalStateException: Fail to request [MASKED]/api/ce/submit?projectKey=xxxxx&characteristic=branch%3Dxxx-md5&characteristic=branchType%3DBRANCH

[261](xxx/-/jobs/533643#L261) at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:200)

[262](xxxx/-/jobs/533643#L262) at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:155)

[263](xxxx/-/jobs/533643#L263) at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:114)

[264](xxxx/-/jobs/533643#L264) at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:73)

[265](xxxx/-/jobs/533643#L265) at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:205)

[266](xxxx/-/jobs/533643#L266) at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:142)

[267](xxxxx/-/jobs/533643#L267) at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:366)

[268](xxxxx/-/jobs/533643#L268) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)

[269](xxxxx/-/jobs/533643#L269) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)

[270](xxxxx/-/jobs/533643#L270) at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:144)

[271](xxxxx/-/jobs/533643#L271) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)

[272](xxxxx/-/jobs/533643#L272) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)

[273](xxxxx/-/jobs/533643#L273) at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)

[274](xxxxx/-/jobs/533643#L274) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)

[275](xxxxx/-/jobs/533643#L275) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)

[276](xxxxx/-/jobs/533643#L276) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[277](xxxxx/-/jobs/533643#L277) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

[278](xxxxx/-/jobs/533643#L278) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

[279](xxxxx/-/jobs/533643#L279) at java.base/java.lang.reflect.Method.invoke(Unknown Source)

[280](xxxxx/-/jobs/533643#L280) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)

[281](xxxxx/-/jobs/533643#L281) at com.sun.proxy.$Proxy0.execute(Unknown Source)

[282](xxxxx/-/jobs/533643#L282) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)

[283](xxxxx/-/jobs/533643#L283) at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)

[284](xxxxx/-/jobs/533643#L284) at org.sonarsource.scanner.cli.Main.execute(Main.java:112)

[285](xxxxx/-/jobs/533643#L285) at org.sonarsource.scanner.cli.Main.execute(Main.java:75)

[286](xxxxx/-/jobs/533643#L286) at org.sonarsource.scanner.cli.Main.main(Main.java:61)

[287](xxxxx/-/jobs/533643#L287)Caused by: java.net.SocketException: Broken pipe (Write failed)

[288](xxxxx/-/jobs/533643#L288) at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)

[289](xxxxx/-/jobs/533643#L289) at java.base/java.net.SocketOutputStream.socketWrite(Unknown Source)

[290](xxxxx/-/jobs/533643#L290) at java.base/java.net.SocketOutputStream.write(Unknown Source)

[291](xxxxx/-/jobs/533643#L291) at java.base/sun.security.ssl.SSLSocketOutputRecord.deliver(Unknown Source)

[292](xxxxx/-/jobs/533643#L292) at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(Unknown Source)

[293](xxxxx/-/jobs/533643#L293) at okio.OutputStreamSink.write(JvmOkio.kt:53)

[294](xxxxx/-/jobs/533643#L294) at okio.AsyncTimeout$sink$1.write(AsyncTimeout.kt:103)

[295](xxxxx/-/jobs/533643#L295) at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:255)

[296](xxxxx/-/jobs/533643#L296) at okio.RealBufferedSink.write(RealBufferedSink.kt:146)

[297](xxxxx/-/jobs/533643#L297) at okhttp3.internal.http1.Http1ExchangeCodec$KnownLengthSink.write(Http1ExchangeCodec.kt:271)

[298](xxxxx/-/jobs/533643#L298) at okio.ForwardingSink.write(ForwardingSink.kt:29)

[299](xxxxx/-/jobs/533643#L299) at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:218)

[300](xxxxx/-/jobs/533643#L300) at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:255)

[301](xxxxx/-/jobs/533643#L301) at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:194)

[302](xxxxx/-/jobs/533643#L302) at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)

[303](xxxxx/-/jobs/533643#L303) at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)

[304](xxxxx/-/jobs/533643#L304) at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)

[305](xxxxx/-/jobs/533643#L305) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:59)

[306](xxxxx/-/jobs/533643#L306) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

[307](xxxxx/-/jobs/533643#L307) at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:208)

[308](xxxxx/-/jobs/533643#L308) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

[309](xxxxx/-/jobs/533643#L309) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)

[310](xxxxx/-/jobs/533643#L310) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

[311](xxxxx/-/jobs/533643#L311) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)

[312](xxxxx/-/jobs/533643#L312) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

[313](xxxxx/-/jobs/533643#L313) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)

[314](xxxxx/-/jobs/533643#L314) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

[315](xxxxx/-/jobs/533643#L315) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)

[316](xxxxx/-/jobs/533643#L316) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

[317](xxxxx/-/jobs/533643#L317) at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)

[318](xxxxx/-/jobs/533643#L318) at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)

[319](xxxxx/-/jobs/533643#L319) at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:198)

[320](xxxxx/-/jobs/533643#L320) ... 25 more

[321](xxxxx/-/jobs/533643#L321) Suppressed: java.net.SocketException: Broken pipe (Write failed)

[322](xxxxx/-/jobs/533643#L322) ... 57 more

[323](xxxxx/-/jobs/533643#L323) Suppressed: java.net.SocketException: Broken pipe (Write failed)

[324](xxxxx/-/jobs/533643#L324) ... 57 more

[325](xxxxx/-/jobs/533643#L325) Suppressed: java.net.SocketException: Broken pipe (Write failed)

[326](xxxxx/-/jobs/533643#L326) ... 57 more

[327](xxxxx/-/jobs/533643#L327)ERROR:

[328](xxxxx/-/jobs/533643#L328)ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

[329](xxxxx/-/jobs/533643#L329)ERROR: Job failed: exit code 1

Hi,

First, it’s incumbent upon me to point out that your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. At the moment, SonarQube 8.9 is both LTS and Latest.

Regarding your error, the job fails when uploading the analysis report to the server. It was likely blocked by a proxy. You’ll want to check with your network folks.

 
HTH,
Ann

I have other projects in same space, they are able to post only one particular project is failing. Am not sure but i found this difference between them and this is of this size Final Memory: 54M/190M, others is this Final Memory: 8M/44M. Not sure if this makes any sense.

INFO: JavaScript/TypeScript frontend is enabled

[100](XXXXX#L100)INFO: Load metrics repository

[101](XXXXX#L101)INFO: Load metrics repository (done) | time=34ms

[102](XXXXX#L102)INFO: Sensor CSS Metrics [cssfamily]

[103](XXXXX#L103)INFO: Sensor CSS Metrics [cssfamily] (done) | time=165ms

[104](XXXXX#L104)INFO: Sensor CSS Rules [cssfamily]

[105](XXXXX#L105)INFO: 42 source files to be analyzed

[106](XXXXX#L106)ERROR: **SyntaxError: Unexpected token � in JSON at position 0**

[107](XXXXX#L107)ERROR: at JSON.parse (<anonymous>)

[108](XXXXX#L108)ERROR: at Object.parseSourceMapInput XXXXX/.scannerwork/css-bundle/node_modules/source-map/lib/util.js:433:15)

[109](XXXXX#L109)ERROR: at new SourceMapConsumer XXXXX/.scannerwork/css-bundle/node_modules/source-map/lib/source-map-consumer.js:17:22)

[110](XXXXX#L110)ERROR: at PreviousMap.consumer XXXXX/.scannerwork/css-bundle/node_modules/postcss/lib/previous-map.js:69:28)

[111](XXXXX#L111)ERROR: at new Input XXXXX/.scannerwork/css-bundle/node_modules/postcss/lib/input.js:93:22)

[112](XXXXX#L112)ERROR: at parseStyle XXXXX/.scannerwork/css-bundle/node_modules/postcss-syntax/parse-style.js:118:10)

[113](XXXXX#L113)ERROR: at processor XXXXX/.scannerwork/css-bundle/node_modules/postcss-syntax/processor.js:26:9)

[114](XXXXX#L114)ERROR: at Object.parse XXXXX/.scannerwork/css-bundle/node_modules/postcss-syntax/parse.js:25:10)

[115](XXXXX#L115)ERROR: at new LazyResult XXXXX/.scannerwork/css-bundle/node_modules/postcss/lib/lazy-result.js:60:16)

[116](XXXXX#L116)ERROR: at XXXXX/.scannerwork/css-bundle/node_modules/stylelint/lib/getPostcssResult.js:123:19

[117](XXXXX#L117)INFO: 42/42 source files have been analyzed

Hi @neha.84.gupta,

The new error you’ve posted seems unrelated. Please start a new thread for it.

 
Ann

Hi Ann,

This error is coming in same pipeline which is throwing broken pipe issue. i just copied it from job logs.

Hi,

Your OP is about analysis failing. But this error doesn’t fail the analysis; it’s unrelated.

 
Ann