# Scanning PHP code error

**URL:** <https://community.sonarsource.com/t/scanning-php-code-error/141283>\
**Category:** SonarQube Server / Community Build\
**Created:** [May 15, 2025, 8:31am UTC](https://community.sonarsource.com/t/scanning-php-code-error/141283 "2025-05-15T08:31:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hz.O](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/hz.o/32/65948_2.png) [@Hz.O](https://community.sonarsource.com/u/Hz.O)\
**Post date:** [May 15, 2025, 8:31am UTC](https://community.sonarsource.com/t/scanning-php-code-error/141283/1 "2025-05-15T08:31:28Z")

</div>

Must-share information (formatted with [Markdown](https://commonmark.org/help/)):

- Community Edition 8.9.10 (build 61524)
- Docker

When scanning PHP code with SonarQube8.9.10, I encountered the following error:

> 18:27:10.536 DEBUG GET 200 [https://sonarqube.xxx.co/api/new\_code\_periods/show.protobuf?project=zhouhao03%3Awebapi%3Acodeigniter.application&branch=master\_810](https://sonarqube.xxx.co/api/new_code_periods/show.protobuf?project=zhouhao03%3Awebapi%3Acodeigniter.application&branch=master_810) | time=32ms  
> 18:27:10.537 INFO Load New Code definition (done) | time=34ms  
> 18:27:12.241 INFO Analysis report generated in 1087ms, dir size=35 MB  
> 18:27:21.013 INFO Analysis report compressed in 8771ms, zip size=13 MB  
> 18:27:21.013 INFO Analysis report generated in /agileflow/code/src/client-repo/codeigniter/application/.scannerwork/scanner-report  
> 18:27:21.013 DEBUG Upload report  
> 18:27:21.039 INFO EXECUTION FAILURE  
> 18:27:21.040 INFO Total time: 3:15.943s  
> 18:27:21.040 ERROR Error during SonarScanner CLI execution  
> java.lang.IllegalStateException: Fail to request url: [https://sonarqube.xxx.co/api/ce/submit?projectKey=zhouhao03%3Awebapi%3Acodeigniter.application&projectName=zhouhao03%3Awebapi%3Acodeigniter.application&characteristic=branch%3Dmaster\_810&characteristic=branchType%3DBRANCH](https://sonarqube.xxx.co/api/ce/submit?projectKey=zhouhao03%3Awebapi%3Acodeigniter.application&projectName=zhouhao03%3Awebapi%3Acodeigniter.application&characteristic=branch%3Dmaster_810&characteristic=branchType%3DBRANCH)  
> at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:205)  
> at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:155)  
> at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:114)  
> at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:73)  
> at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:204)  
> at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:141)  
> at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:365)  
> at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)  
> at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)  
> at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)  
> at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)  
> at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)  
> at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)  
> at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)  
> at org.sonarsource.scanner.lib.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:41)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/java.lang.reflect.Method.invoke(Unknown Source)  
> at org.sonarsource.scanner.lib.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:62)  
> at jdk.proxy3/jdk.proxy3.$Proxy2.execute(Unknown Source)  
> at org.sonarsource.scanner.lib.InProcessScannerEngineFacade.doAnalyze(InProcessScannerEngineFacade.java:39)  
> at org.sonarsource.scanner.lib.ScannerEngineFacade.analyze(ScannerEngineFacade.java:61)  
> at org.sonarsource.scanner.cli.Main.analyze(Main.java:77)  
> at org.sonarsource.scanner.cli.Main.main(Main.java:63)  
> Caused by: okhttp3.internal.http2.StreamResetException: stream was reset: NO\_ERROR  
> at okhttp3.internal.http2.Http2Stream.checkOutNotClosed$okhttp(Http2Stream.kt:648)  
> at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:560)  
> at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:535)  
> at okio.ForwardingSink.write(ForwardingSink.kt:29)  
> at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:218)  
> at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:255)  
> at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:194)  
> at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)  
> at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)  
> at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)  
> at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:59)  
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)  
> at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:222)  
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)  
> at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)  
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)  
> at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)  
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)  
> at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)  
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)  
> at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)  
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)  
> at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)  
> at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)  
> at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:203)  
> … 24 common frames omitted  
> Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: NO\_ERROR  
> … 49 common frames omitted

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [May 16, 2025, 3:53pm UTC](https://community.sonarsource.com/t/scanning-php-code-error/141283/2 "2025-05-16T15:53:00Z")

</div>

Hi,

Welcome to the community!

Only the latest version of SonarQube Community Build is considered active, so you’ll need to upgrade and see if the situation is still replicable before we can help you.

Your upgrade path is:

> 8.9.10 → 9.9.8 → 24.12 → 25.5

You may find these resources helpful:

- [Upgrade Guide](https://docs.sonarsource.com/sonarqube-community-build/server-upgrade-and-maintenance/upgrade/upgrade-the-server/roadmap/)
- [LTA to LTA release upgrade notes for 8.9 to 9.9](https://docs.sonarqube.org/9.9/setup-and-upgrade/lts-to-lts-release-upgrade-notes/)
- [Upgrade notes for 9.9 to 10.7](https://docs.sonarsource.com/sonarqube-server/10.7/server-upgrade-and-maintenance/release-notes-and-notices/release-upgrade-notes/) (when SonarQube Community Edition switched to SonarQube Community Bulid)
- [SonarQube Community Build Upgrade Notes](https://docs.sonarsource.com/sonarqube-community-build/server-upgrade-and-maintenance/release-notes-and-notices/release-upgrade-notes/) (all upgrade notes since the switch)

If you have questions about upgrading, feel free to open a new thread for that [here](https://community.sonarsource.com/c/sq/10).

If your error persists after upgrade, please come back to us.

&nbsp;  
Ann
