SonarSource / SonarJS

SonarSource Static Analyzer for JavaScript and TypeScript
https://community.sonarsource.com/
GNU Lesser General Public License v3.0
1.05k stars 183 forks source link

Timeout after analysing file for 60 seconds #1960

Closed chiefmc closed 3 years ago

chiefmc commented 4 years ago

I'm having an issue after upgrade to SQ 8.2 + SonarJS 6.2 + SonarTS 2.1 that looks identical to #1835.

ES-Lint analysis seems to get killed by a 60 sec timeout. It says 1190 files to be analyzed, which frankly is not that huge amount of files and adding 8GB of memory to node doesn't help at all.

I checked and launched the server command that demonized the es-lint and it seems to be starting properly.

Also tried removing node_modules folder with no success.

Here's the full debug log: debug.log

Help would be greatly appreciated.

saberduck commented 4 years ago

hello @chiefmc ,

I don't see any error in the log, I think it's because errors are printed on stderr and you didn't pipe it to the file? You mention that you set 8GB of memory, but I see 4096 being used in the logs. Is this a log from another run? How much physical memory is available on the machine? Sometimes analysis can consume a lot of memory because code uses complex type structures - lot of generics, etc. It doesn't need to be a lot of files or big files only. Would it be possible for you to share the project with us?

chiefmc commented 4 years ago

You're right, I forgot to add 2>&1, my bad. And yes it is from one of last runs. Memory was 4GB, but raising it to 8GB didn't change anything, so I've changed it back to 4GB.

Visually I can tell that its about a 60-sec timeout and not about memory as it fails exactly 60 seconds after starting es-lint analysis.

Will gather a new debug log and re-upload it here.

vilchik-elena commented 4 years ago

Indeed we have a timeout of 60 seconds of getting analysis results for each file, but we don't know why it's taking so long, could be memory problem under the hood.

Could you privately provide sources of the project?

chiefmc commented 4 years ago

Yes, I can send you sources or give the temp access to a private Gitlab instance. What works best for you?

vilchik-elena commented 4 years ago

@chiefmc could you start a thread in https://community.sonarsource.com/, then I can write a private message to you there

vinromarin commented 4 years ago

Hi, do you have any update on this topic? I have the same issue.

chiefmc commented 4 years ago

@vilchik-elena here's the post: https://community.sonarsource.com/t/timeout-after-analysing-file-for-60-seconds/22882

@vinromarin no updates so far – it still doesn't work as supposed to.

goulash1971 commented 4 years ago

@vilchik-elena .... I encountered the same problem as @chiefmc with the timeout in a project where there are only 500 typescript files ...

Increasing themax-old-space massively (40Gb !) makes no difference ... Removing all of the node_modules (as suggested above) makes no difference ...

After playing around with the project I discovered that the problem (in this particular case) is due to the tsconfig.json having a non-specific "include": [...] property and, in this case, the project owner having included a full copy of the react-boilerplate in src/react and has the webpacked client in src/public folder (the project contains both the client & back-end where the build script performs a tsc etc. on the src/app [i.e. back-end] into dist/ and then copies then src/public into dist/plublic ... i.e. it's a pretty crap setup).

Because the SonarJs/BundleImpl.java bundle overwrites th .scannerwork/.sonartemp/eslint-bridge-bundle with the contents of the eslint-bridge-xxx.tgz archive within the bundle jar during the deploy phase then I wasn't able to dig further and look for some options.

Anyway, I created a separate tsconfig-sonar.json with a modified "include": [...] property and it works for me.

Couple of suggestions :) ...

Firstly, it would be great to have the location of the eslint-bridge-bundle to be specified as a property, the SonarJs/BundleImpl.java could then copy from that location and fallback to the eslint-bridge-xxx.tgz within the bundle jar ... that would help with debugging situations like this.

Secondly, having the timeout configurable (another property !) would also be useful, although only a temporary fix.

Btw. from what I can see in typescript-eslint the node_modules folder is explicitly excluded from the scan and therefore moving it shouldn't be necessary (I saw a minot performance increase removing it).

gitmln commented 4 years ago

We also encounter the same problem with the timeout in a couple of our projects with different number of typescript files.

The problem occurs only on the first typescript file to be analysed, so from my point of view it’s some king of ‘warm-up stage’ problem (the rest of the files are analysed much faster). Of course all the mentioned workarounds have been applied: increasing the max-old-space, removing all of the node_modules and preparing custom tsconfig.json.

While debugging the analysis process, I’ve changes server.js file in the eslint-bridge-bundle to log the incoming request:

function analyze(analysisFunction) {
    return (request, response) => {
        try {
            const parsedRequest = request.body;
            console.log(parsedRequest);

This is the output that I got (sensitive data changed):

10:11:05.779 INFO: 1171 source files to be analyzed
10:11:05.791 INFO: Analyzing 1170 files using tsconfig: C:\git\ng\projects\ng\tsconfig.sonar.json
10:11:05.799 DEBUG: 'projects/ng/src/lib/fin/wp/shared/p.ts' generated metadata with charset 'windows-1250'
10:11:05.814 INFO: { filePath:
10:11:05.814 INFO:    'C:/git/ng/projects/ng/src/lib/fin/wp/shared/p.ts',
10:11:05.815 INFO:   fileContent:
10:11:05.815 INFO:    'export class P{\r\n    RId: string = null;\r\n    RSId: string = null;\r\n    K: number = null;    \r\n}',
10:11:05.815 INFO:   rules:
10:11:05.815 INFO:    [ { key: 'sockets', configurations: [] },
10:11:05.816 INFO:      { key: 'xpath', configurations: [] },
10:11:05.816 INFO:      { key: 'no-in-misuse', configurations: [] },
10:11:05.817 INFO:      { key: 'sonar-no-fallthrough', configurations: [] },
10:11:05.817 INFO:      { key: 'no-inverted-boolean-check', configurations: [] },
10:11:05.817 INFO:      { key: 'no-all-duplicated-branches', configurations: [] },
10:11:05.817 INFO:      { key: 'non-existent-operator', configurations: [] },
10:11:05.817 INFO:      { key: 'no-small-switch', configurations: [] },
10:11:05.884 INFO:      { key: 'no-identical-conditions', configurations: [] },
10:11:05.887 INFO:      { key: 'sql-queries', configurations: [] },
10:11:05.887 INFO:      { key: 'no-array-delete', configurations: [] },
10:11:05.887 INFO:      { key: 'no-alphabetical-sort', configurations: [] },
10:11:05.887 INFO:      { key: 'no-useless-intersection', configurations: [] },
10:11:05.887 INFO:      { key: 'prefer-while', configurations: [] },
10:11:05.887 INFO:      { key: 'no-unsafe-finally', configurations: [] },
10:11:05.902 INFO:      { key: 'no-sequences', configurations: [] },
10:11:05.903 INFO:      { key: 'standard-input', configurations: [] },
10:11:05.903 INFO:      { key: 'max-switch-cases', configurations: [Array] },
10:11:05.904 INFO:      { key: 'no-extra-semi', configurations: [] },
10:11:05.904 INFO:      { key: 'comma-or-logical-or-case', configurations: [] },
10:11:05.904 INFO:      { key: 'no-one-iteration-loop', configurations: [] },
10:11:05.904 INFO:      { key: 'conditional-indentation', configurations: [] },
10:11:05.924 INFO:      { key: 'no-undefined-argument', configurations: [] },
10:11:05.924 INFO:      { key: 'no-multi-str', configurations: [] },
10:11:05.924 INFO:      { key: 'label-position', configurations: [] },
10:11:05.924 INFO:      { key: 'function-inside-loop', configurations: [] },
10:11:05.933 INFO:      { key: 'no-use-of-empty-return-value', configurations: [] },
10:11:05.956 INFO:      { key: 'encryption', configurations: [] },
10:11:05.962 INFO:      { key: 'use-isnan', configurations: [] },
10:11:05.962 INFO:      { key: 'constructor-super', configurations: [] },
10:11:05.973 INFO:      { key: 'process-argv', configurations: [] },
10:11:05.973 INFO:      { key: 'no-shadow', configurations: [Array] },
10:11:05.973 INFO:      { key: 'no-try-promise', configurations: [] },
10:11:05.973 INFO:      { key: 'regular-expr', configurations: [] },
10:11:05.976 INFO:      { key: 'no-duplicate-in-composite', configurations: [] },
10:11:05.976 INFO:      { key: 'no-useless-increment', configurations: [] },
10:11:05.976 INFO:      { key: 'no-ignored-return', configurations: [] },
10:11:05.976 INFO:      { key: 'no-same-line-conditional', configurations: [] },
10:11:05.976 INFO:      { key: 'pseudo-random', configurations: [] },
10:11:05.976 INFO:      { key: 'no-duplicated-branches', configurations: [] },
10:11:05.976 INFO:      { key: 'no-redundant-parentheses', configurations: [] },
10:11:05.976 INFO:      { key: 'no-redundant-optional', configurations: [] },
10:11:05.976 INFO:      { key: 'call-argument-line', configurations: [] },
10:11:05.976 INFO:      { key: 'no-element-overwrite', configurations: [] },
10:11:05.976 INFO:      { key: 'no-unenclosed-multiline-block', configurations: [] },
10:11:05.976 INFO:      { key: 'no-equals-in-for-termination', configurations: [] },
10:11:05.976 INFO:      { key: 'no-sparse-arrays', configurations: [] },
10:11:05.976 INFO:      { key: 'bitwise-operators', configurations: [] },
10:11:05.976 INFO:      { key: 'code-eval', configurations: [] },
10:11:05.976 INFO:      { key: 'no-identical-expressions', configurations: [] },
10:11:05.976 INFO:      { key: 'no-useless-catch', configurations: [] },
10:11:05.976 INFO:      { key: 'no-redeclare', configurations: [Array] },
10:11:05.976 INFO:      { key: 'no-unthrown-error', configurations: [] },
10:11:05.976 INFO:      { key: 'no-globals-shadowing', configurations: [] },
10:11:05.976 INFO:      { key: 'unused-import', configurations: [] },
10:11:05.976 INFO:      { key: 'no-collection-size-mischeck', configurations: [] },
10:11:05.976 INFO:      { key: 'cookies', configurations: [] },
10:11:05.976 INFO:      { key: 'no-empty-collection', configurations: [] },
10:11:05.976 INFO:      { key: 'hashing', configurations: [] },
10:11:05.976 INFO:      { key: 'index-of-compare-to-positive-number',
10:11:05.976 INFO:        configurations: [] },
10:11:05.976 INFO:      { key: 'cors', configurations: [] },
10:11:05.976 INFO:      { key: 'no-accessor-field-mismatch', configurations: [] },
10:11:05.976 INFO:      { key: 'no-unused-collection', configurations: [] },
10:11:05.976 INFO:      { key: 'file-name-differ-from-class', configurations: [] },
10:11:05.976 INFO:      { key: 'no-primitive-wrappers', configurations: [] },
10:11:05.976 INFO:      { key: 'no-invariant-returns', configurations: [] },
10:11:05.976 INFO:      { key: 'no-case-label-in-switch', configurations: [] },
10:11:05.976 INFO:      { key: 'prefer-default-last', configurations: [] },
10:11:05.976 INFO:      { key: 'os-command', configurations: [] },
10:11:05.976 INFO:      { key: 'no-unnecessary-type-assertion', configurations: [] },
10:11:05.976 INFO:      { key: 'no-gratuitous-expressions', configurations: [] },
10:11:05.976 INFO:      { key: 'no-empty-pattern', configurations: [] },
10:11:05.976 INFO:      { key: 'no-self-assign', configurations: [] },
10:11:05.976 INFO:      { key: 'no-dead-store', configurations: [] },
10:11:05.976 INFO:      { key: 'no-misused-new', configurations: [] },
10:11:05.976 INFO:      { key: 'no-invalid-await', configurations: [] },
10:11:05.976 INFO:      { key: 'no-hardcoded-credentials', configurations: [Array] },
10:11:05.985 INFO:      { key: 'no-misleading-array-reverse', configurations: [] },
10:11:05.996 INFO:      { key: 'no-empty', configurations: [Array] },
10:11:05.997 INFO:      { key: 'no-unused-expressions', configurations: [Array] } ],
10:11:05.997 INFO:   ignoreHeaderComments: true,
10:11:05.997 INFO:   tsConfigs:
10:11:05.997 INFO:    [ 'C:\\git\\ng\\projects\\ng\\tsconfig.sonar.json' ] }
10:11:15.792 INFO: 0/1171 files analyzed, current file: projects/ng/src/lib/fin/wp/shared/p.ts
10:11:25.806 INFO: 0/1171 files analyzed, current file: projects/ng/src/lib/fin/wp/shared/p.ts
10:11:35.827 INFO: 0/1171 files analyzed, current file: projects/ng/src/lib/fin/wp/shared/p.ts

This is the source of the tsconfig.sonar.json:

{
  "extends": "../../tsconfig.sonar.json",
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "src/test.ts",
    "**/*.spec.ts"
  ]
}

The parent tsconfig.sonar.json:

{
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "**/*.spec.ts"
  ]
}

I can launch the eslint-bridge server by hand and send the request using Postman. node --max-old-space-size=20480 c:\git\ng\.scannerwork\.sonartmp\eslint-bridge-bundle\package\bin\server 53390

POST http://localhost:53390/analyze-ts

The first request takes 2-3minutes to complete (timeouts in sonarqube) and does consume insignificant amount of memory. The consecutive ones take only 50-100ms. That’s why I called it the warm-up stage problem.

georgelviv commented 4 years ago

I found the reason for this issue and fixed locally with a small patch for SonarJs plugin. Line bellow has a limit in 60 seconds until eslint bridge server will respond with analyses result, but sometimes, when there are a lot of files, eslint need more then 60 seconds to run analyses. So one way to fix this issue will be to increase this value. But it will nice, to pass this value with some argument

private static final int DEFAULT_TIMEOUT_SECONDS = 60;

https://github.com/SonarSource/SonarJS/blob/ddee9efaaa1cd59679b65e0ce6471e10b35fd5ff/sonar-javascript-plugin/src/main/java/org/sonar/plugins/javascript/eslint/EslintBridgeServerImpl.java#L53

georgelviv commented 4 years ago

One thing to add, After more time of debugging, we find out the root cause of the issue. https://github.com/SonarSource/SonarJS/blob/ddee9efaaa1cd59679b65e0ce6471e10b35fd5ff/eslint-bridge/src/parser.ts#L102

tsParser.parseForESLint - function, which takes in our projects most of the analysis time and the reason was, that, we didn't specify in our main tsconfig.json includes a parameter, so I assume, it scans whole project, because, after adding proper includes and excludes in tsconfig.json issue was fixed.

saberduck commented 4 years ago

We released a new version of the analyzer as part of SonarQube 8.5. Can you try to analyze with this version and confirm if it fixes the problem?

chiefmc commented 4 years ago

Will try and get back to you

romua commented 3 years ago

Hi. I'm having the same issue. VM has 16 Gb of RAM. Sometime it doesn't fail (during scheduled pipeline run in the morning). Log of failed run:

`2021-02-04T09:32:10.4522523Z ##[section]Starting: Run Code Analysis for UI 2021-02-04T09:32:10.4815026Z ============================================================================== 2021-02-04T09:32:10.4815731Z Task : Run Code Analysis 2021-02-04T09:32:10.4816279Z Description : Run scanner and upload the results to the SonarQube server. 2021-02-04T09:32:10.4816737Z Version : 4.17.0 2021-02-04T09:32:10.4817116Z Author : sonarsource 2021-02-04T09:32:10.4818026Z Help : Version: 4.17.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

More Information 2021-02-04T09:32:10.4819050Z ============================================================================== 2021-02-04T09:32:11.6719758Z [command]C:\Windows\system32\cmd.exe /D /S /C "_work_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\4.17.0\sonar-scanner\bin\sonar-scanner.bat" 2021-02-04T09:32:11.6721330Z INFO: Scanner configuration file: _work_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\4.17.0\sonar-scanner\bin..\conf\sonar-scanner.properties 2021-02-04T09:32:11.6722770Z INFO: Project root configuration file: NONE 2021-02-04T09:32:11.6723324Z INFO: SonarScanner 4.4.0.2170 2021-02-04T09:32:11.6723872Z INFO: Java 11.0.8 Oracle Corporation (64-bit) 2021-02-04T09:32:11.6724426Z INFO: Windows Server 2012 R2 6.3 amd64 2021-02-04T09:32:11.6724932Z INFO: SONAR_SCANNER_OPTS=-Xmx4096m 2021-02-04T09:32:11.8017951Z INFO: User cache: .sonar\cache 2021-02-04T09:32:11.9251690Z INFO: Scanner configuration file: _work_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\4.17.0\sonar-scanner\bin..\conf\sonar-scanner.properties 2021-02-04T09:32:11.9282705Z INFO: Project root configuration file: NONE 2021-02-04T09:32:11.9517937Z INFO: Analyzing on SonarQube server 8.6.1 2021-02-04T09:32:11.9521436Z INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent) 2021-02-04T09:32:13.1567366Z INFO: Load global settings 2021-02-04T09:32:13.1577558Z INFO: Load global settings (done) | time=172ms 2021-02-04T09:32:13.1578456Z INFO: Server id: 1AB1777A-AXSW3-5a3DjYRkLok-B1 2021-02-04T09:32:13.1579100Z INFO: User cache: .sonar\cache 2021-02-04T09:32:13.1579630Z INFO: Load/download plugins 2021-02-04T09:32:13.1580106Z INFO: Load plugins index 2021-02-04T09:32:13.1580612Z INFO: Load plugins index (done) | time=62ms 2021-02-04T09:32:13.1581196Z INFO: Load/download plugins (done) | time=172ms 2021-02-04T09:32:13.6318266Z INFO: Process project properties 2021-02-04T09:32:13.6436748Z INFO: Process project properties (done) | time=14ms 2021-02-04T09:32:13.6440826Z INFO: Execute project builders 2021-02-04T09:32:13.6475383Z INFO: Execute project builders (done) | time=0ms 2021-02-04T09:32:13.6541763Z INFO: Project key: 2021-02-04T09:32:13.6542871Z INFO: Base dir: _work\4\s 2021-02-04T09:32:13.6551702Z INFO: Working dir: _work\4\s.scannerwork 2021-02-04T09:32:13.8523318Z INFO: Load project settings for component key: '' 2021-02-04T09:32:13.8698838Z INFO: Load project settings for component key: '' (done) | time=15ms 2021-02-04T09:32:13.9155446Z INFO: Load quality profiles 2021-02-04T09:32:13.9817644Z INFO: Load quality profiles (done) | time=78ms 2021-02-04T09:32:13.9896287Z INFO: Auto-configuring with CI 'Azure DevOps' 2021-02-04T09:32:13.9994049Z INFO: Load active rules 2021-02-04T09:32:15.0551575Z INFO: Load active rules (done) | time=1047ms 2021-02-04T09:32:15.1498746Z INFO: Indexing files... 2021-02-04T09:32:15.1500661Z INFO: Project configuration: 2021-02-04T09:32:15.1502137Z INFO: Excluded sources: /node_modules/, /dist/, /coverage/, /e2e/, /test.ts, /.css, /*.scss, /node_modules/, /*.spec.ts, */.js, /.html, /index.ts, /.svg, /*.json, /assets/, */.mock.ts, /*.enum.ts, /*.spec.ts 2021-02-04T09:32:15.1505100Z INFO: Included tests: */.spec.ts 2021-02-04T09:32:15.1506209Z INFO: Excluded sources for coverage: /*.model.ts, /*.mock.ts, */.module.ts, /*.interceptor.ts, /*.index.ts, */.modules.ts, /.mocks.ts, /models//, /environment.prod.ts, /environment.ts, /main.ts, /*.resolver.ts, /core/testing/, /*.enum.ts, */index.ts 2021-02-04T09:32:25.1383997Z INFO: 894 files indexed... (last one was UI/src/app/common/core/services/table-config/table-config.service.spec.ts) 2021-02-04T09:32:29.8901573Z INFO: 1437 files indexed 2021-02-04T09:32:29.8903735Z INFO: 4943 files ignored because of inclusion/exclusion patterns 2021-02-04T09:32:29.8904338Z INFO: 0 files ignored because of scm ignore settings 2021-02-04T09:32:29.8913698Z INFO: Quality profile for ts: Sonar way 2021-02-04T09:32:29.8914933Z INFO: ------------- Run sensors on module 2021-02-04T09:32:29.9771804Z INFO: Load metrics repository 2021-02-04T09:32:30.0034015Z INFO: Load metrics repository (done) | time=31ms 2021-02-04T09:32:31.3693944Z INFO: Sensor CSS Rules [cssfamily] 2021-02-04T09:32:31.3729195Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped. 2021-02-04T09:32:31.3730339Z INFO: Sensor CSS Rules [cssfamily] (done) | time=16ms 2021-02-04T09:32:31.3731062Z INFO: Sensor JaCoCo XML Report Importer [jacoco] 2021-02-04T09:32:31.3856532Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml 2021-02-04T09:32:31.3876620Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer 2021-02-04T09:32:31.3877626Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms 2021-02-04T09:32:31.3878343Z INFO: Sensor TypeScript analysis [javascript] 2021-02-04T09:33:20.7333273Z INFO: Found 1 tsconfig.json file(s): [_work\4\s\UI\tsconfig.json] 2021-02-04T09:33:22.8947122Z INFO: 800 source files to be analyzed 2021-02-04T09:33:22.8961844Z INFO: Analyzing 800 files using tsconfig: _work\4\s\UI\tsconfig.json 2021-02-04T09:33:22.9090320Z INFO: Load project repositories 2021-02-04T09:33:23.0306683Z INFO: Load project repositories (done) | time=125ms 2021-02-04T09:33:23.0374170Z INFO: Version of TypeScript used during analysis: 3.8.3 2021-02-04T09:33:32.9042162Z INFO: 0/800 files analyzed, current file: UI/src/app/common/core/resolvers/resources/adjustment-group-code-list/adjustment-group-code-list.resolver.ts 2021-02-04T09:33:42.8993895Z INFO: 0/800 files analyzed, current file: UI/src/app/common/core/resolvers/resources/adjustment-group-code-list/adjustment-group-code-list.resolver.ts 2021-02-04T09:33:52.8951580Z INFO: 0/800 files analyzed, current file: UI/src/app/common/core/resolvers/resources/adjustment-group-code-list/adjustment-group-code-list.resolver.ts 2021-02-04T09:34:02.8953477Z INFO: 0/800 files analyzed, current file: UI/src/app/common/core/resolvers/resources/adjustment-group-code-list/adjustment-group-code-list.resolver.ts 2021-02-04T09:34:12.8951905Z INFO: 0/800 files analyzed, current file: UI/src/app/common/core/resolvers/resources/adjustment-group-code-list/adjustment-group-code-list.resolver.ts 2021-02-04T09:34:22.8970632Z INFO: 0/800 files analyzed, current file: UI/src/app/common/core/resolvers/resources/adjustment-group-code-list/adjustment-group-code-list.resolver.ts 2021-02-04T09:34:23.2566194Z ##[error]ERROR: eslint-bridge Node.js process is unresponsive. This is most likely caused by process running out of memory. Consider setting sonar.javascript.node.maxspace to higher value (e.g. 4096). 2021-02-04T09:34:23.2707458Z ERROR: eslint-bridge Node.js process is unresponsive. This is most likely caused by process running out of memory. Consider setting sonar.javascript.node.maxspace to higher value (e.g. 4096). 2021-02-04T09:34:23.2889508Z ##[error]ERROR: Failure during analysis, Node.js command to start eslint-bridge was: node --max-old-space-size=12288 _work\4\s.scannerwork.sonartmp\eslint-bridge-bundle\package\bin\server 53350 127.0.0.1 _work\4\s.scannerwork true java.lang.IllegalStateException: eslint-bridge is unresponsive at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:224) at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.analyzeTypeScript(EslintBridgeServerImpl.java:208) at org.sonar.plugins.javascript.eslint.TypeScriptSensor.analyze(TypeScriptSensor.java:156) at org.sonar.plugins.javascript.eslint.TypeScriptSensor.analyzeFilesWithTsConfig(TypeScriptSensor.java:144) at org.sonar.plugins.javascript.eslint.TypeScriptSensor.analyzeFiles(TypeScriptSensor.java:124) at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.execute(AbstractEslintSensor.java:120) at org.sonar.plugins.javascript.eslint.TypeScriptSensor.execute(TypeScriptSensor.java:55) at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48) at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85) at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59) at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77) at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59) at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123) at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:393) at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:389) at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:358) 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:144) 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.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60) at com.sun.proxy.$Proxy0.execute(Unknown Source) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189) at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138) at org.sonarsource.scanner.cli.Main.execute(Main.java:112) at org.sonarsource.scanner.cli.Main.execute(Main.java:75) at org.sonarsource.scanner.cli.Main.main(Main.java:61) Caused by: java.net.SocketTimeoutException: Read timed out at java.base/java.net.SocketInputStream.socketRead0(Native Method) at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115) at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168) at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140) at okio.Okio$2.read(Okio.java:140) at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) at okio.RealBufferedSource.indexOf(RealBufferedSource.java:358) at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:230) at okhttp3.internal.http1.Http1Codec.readHeaderLine(Http1Codec.java:226) at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:202) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:101) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:264) at okhttp3.RealCall.execute(RealCall.java:93) at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:217) ... 36 common frames omitted 2021-02-04T09:34:23.2910903Z ERROR: Failure during analysis, Node.js command to start eslint-bridge was: node --max-old-space-size=12288 _work\4\s.scannerwork.sonartmp\eslint-bridge-bundle\package\bin\server 53350 127.0.0.1 _work\4\s.scannerwork true 2021-02-04T09:34:23.2912439Z java.lang.IllegalStateException: eslint-bridge is unresponsive 2021-02-04T09:34:23.2913325Z at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:224) 2021-02-04T09:34:23.2914650Z at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.analyzeTypeScript(EslintBridgeServerImpl.java:208) 2021-02-04T09:34:23.2915686Z at org.sonar.plugins.javascript.eslint.TypeScriptSensor.analyze(TypeScriptSensor.java:156) 2021-02-04T09:34:23.2947520Z at org.sonar.plugins.javascript.eslint.TypeScriptSensor.analyzeFilesWithTsConfig(TypeScriptSensor.java:144) 2021-02-04T09:34:23.2948556Z at org.sonar.plugins.javascript.eslint.TypeScriptSensor.analyzeFiles(TypeScriptSensor.java:124) 2021-02-04T09:34:23.2949556Z at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.execute(AbstractEslintSensor.java:120) 2021-02-04T09:34:23.2950520Z at org.sonar.plugins.javascript.eslint.TypeScriptSensor.execute(TypeScriptSensor.java:55) 2021-02-04T09:34:23.2951442Z at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48) 2021-02-04T09:34:23.2952381Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85) 2021-02-04T09:34:23.2953333Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59) 2021-02-04T09:34:23.2954538Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77) 2021-02-04T09:34:23.2955556Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59) 2021-02-04T09:34:23.2956453Z at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82) 2021-02-04T09:34:23.2957387Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137) 2021-02-04T09:34:23.2958296Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123) 2021-02-04T09:34:23.2959561Z at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:393) 2021-02-04T09:34:23.2960483Z at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:389) 2021-02-04T09:34:23.2961435Z at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:358) 2021-02-04T09:34:23.2962531Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137) 2021-02-04T09:34:23.2963465Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123) 2021-02-04T09:34:23.2964332Z at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:144) 2021-02-04T09:34:23.2965248Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137) 2021-02-04T09:34:23.2966145Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123) 2021-02-04T09:34:23.2966934Z at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72) 2021-02-04T09:34:23.2967711Z at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66) 2021-02-04T09:34:23.2968579Z at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46) 2021-02-04T09:34:23.2969723Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2021-02-04T09:34:23.2970603Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 2021-02-04T09:34:23.2971572Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2021-02-04T09:34:23.2972446Z at java.base/java.lang.reflect.Method.invoke(Method.java:566) 2021-02-04T09:34:23.2973301Z at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60) 2021-02-04T09:34:23.2974066Z at com.sun.proxy.$Proxy0.execute(Unknown Source) 2021-02-04T09:34:23.2974801Z at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189) 2021-02-04T09:34:23.2975656Z at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138) 2021-02-04T09:34:23.2978379Z at org.sonarsource.scanner.cli.Main.execute(Main.java:112) 2021-02-04T09:34:23.3007183Z at org.sonarsource.scanner.cli.Main.execute(Main.java:75) 2021-02-04T09:34:23.3007936Z at org.sonarsource.scanner.cli.Main.main(Main.java:61) 2021-02-04T09:34:23.3008689Z Caused by: java.net.SocketTimeoutException: Read timed out 2021-02-04T09:34:23.3009665Z at java.base/java.net.SocketInputStream.socketRead0(Native Method) 2021-02-04T09:34:23.3010454Z at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115) 2021-02-04T09:34:23.3011285Z at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168) 2021-02-04T09:34:23.3012098Z at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140) 2021-02-04T09:34:23.3012767Z at okio.Okio$2.read(Okio.java:140) 2021-02-04T09:34:23.3013411Z at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) 2021-02-04T09:34:23.3014146Z at okio.RealBufferedSource.indexOf(RealBufferedSource.java:358) 2021-02-04T09:34:23.3014965Z at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:230) 2021-02-04T09:34:23.3015917Z at okhttp3.internal.http1.Http1Codec.readHeaderLine(Http1Codec.java:226) 2021-02-04T09:34:23.3016766Z at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:202) 2021-02-04T09:34:23.3017676Z at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:101) 2021-02-04T09:34:23.3018567Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2021-02-04T09:34:23.3019489Z at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) 2021-02-04T09:34:23.3020405Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2021-02-04T09:34:23.3021278Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) 2021-02-04T09:34:23.3023356Z at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94) 2021-02-04T09:34:23.3024217Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2021-02-04T09:34:23.3025145Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) 2021-02-04T09:34:23.3026031Z at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) 2021-02-04T09:34:23.3027067Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2021-02-04T09:34:23.3028036Z at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125) 2021-02-04T09:34:23.3028988Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2021-02-04T09:34:23.3029862Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) 2021-02-04T09:34:23.3030717Z at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:264) 2021-02-04T09:34:23.3031440Z at okhttp3.RealCall.execute(RealCall.java:93) 2021-02-04T09:34:23.3032289Z at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:217) 2021-02-04T09:34:23.3033440Z ... 36 common frames omitted 2021-02-04T09:34:23.3033819Z 2021-02-04T09:34:23.3034355Z INFO: Sensor TypeScript analysis [javascript] (done) | time=111867ms 2021-02-04T09:34:23.3035018Z INFO: Sensor JavaScript/TypeScript Coverage [javascript] 2021-02-04T09:34:23.3035783Z INFO: Analysing [_work\4\s\UI\coverage\lcov.info] 2021-02-04T09:34:26.1102246Z WARN: Could not resolve 5 file paths in [_work\4\s\UI\coverage\lcov.info] 2021-02-04T09:34:26.1104324Z WARN: First unresolved path: src\app\common\share\components\modules.ts (Run in DEBUG mode to get full list of unresolved paths) 2021-02-04T09:34:26.1105571Z INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=2859ms 2021-02-04T09:34:26.1106143Z INFO: Sensor C# Properties [csharp] 2021-02-04T09:34:26.1145532Z INFO: Sensor C# Properties [csharp] (done) | time=0ms 2021-02-04T09:34:26.1146827Z INFO: Sensor JavaXmlSensor [java] 2021-02-04T09:34:26.1336092Z INFO: Sensor JavaXmlSensor [java] (done) | time=32ms 2021-02-04T09:34:26.1337207Z INFO: Sensor HTML [web] 2021-02-04T09:34:26.1478151Z INFO: Sensor HTML [web] (done) | time=0ms 2021-02-04T09:34:26.1479470Z INFO: Sensor VB.NET Properties [vbnet] 2021-02-04T09:34:26.1480133Z INFO: Sensor VB.NET Properties [vbnet] (done) | time=15ms 2021-02-04T09:34:26.1480735Z INFO: Sensor Generic Test Executions Report 2021-02-04T09:34:26.1481446Z INFO: Parsing _work\4\s\UI\reports\test-report-sonar.xml 2021-02-04T09:34:26.4014517Z INFO: Imported test execution data for 636 files 2021-02-04T09:34:26.4016403Z INFO: Sensor Generic Test Executions Report (done) | time=234ms 2021-02-04T09:34:26.4588512Z INFO: ------------- Run sensors on project 2021-02-04T09:34:26.4589964Z INFO: Sensor Zero Coverage Sensor 2021-02-04T09:34:26.4591114Z INFO: Sensor Zero Coverage Sensor (done) | time=32ms 2021-02-04T09:34:29.5170005Z INFO: SCM Publisher SCM provider for this project is: git 2021-02-04T09:34:29.5183197Z INFO: SCM Publisher 1 source file to be analyzed 2021-02-04T09:34:31.2625465Z INFO: SCM Publisher 1/1 source file have been analyzed (done) | time=1735ms 2021-02-04T09:34:31.2677955Z INFO: CPD Executor Calculating CPD for 0 files 2021-02-04T09:34:31.2706591Z INFO: CPD Executor CPD calculation finished (done) | time=0ms 2021-02-04T09:34:39.7978942Z INFO: Analysis report generated in 7375ms, dir size=7 MB 2021-02-04T09:34:46.9267196Z INFO: Analysis report compressed in 7137ms, zip size=2 MB 2021-02-04T09:34:47.1871946Z INFO: Analysis report uploaded in 249ms 2021-02-04T09:34:47.1952776Z INFO: ANALYSIS SUCCESSFUL, you can browse 2021-02-04T09:34:47.1953963Z INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report 2021-02-04T09:34:47.1955426Z INFO: More about the report processing at 2021-02-04T09:35:03.2752189Z INFO: Analysis total time: 2:50.225 s 2021-02-04T09:35:03.2804226Z INFO: ------------------------------------------------------------------------ 2021-02-04T09:35:03.2804895Z INFO: EXECUTION SUCCESS 2021-02-04T09:35:03.2805419Z INFO: ------------------------------------------------------------------------ 2021-02-04T09:35:03.2807859Z INFO: Total time: 2:52.006s 2021-02-04T09:35:03.3697782Z INFO: Final Memory: 12M/47M 2021-02-04T09:35:03.3698577Z INFO: ------------------------------------------------------------------------ 2021-02-04T09:35:03.4597848Z ##[section]Finishing: Run Code Analysis for UI`

darrylsepeda commented 3 years ago

I also encounter same issue eventhough I tried to run node --max-old-space-size=16384 ./sonarqube/sonar-project.js nor use sonar.javascript.node.maxspace=16384 inside sonar-project.properties:

ERROR: eslint-bridge Node.js process is unresponsive. This is most likely caused by process running out of memory. Consider setting sonar.javascript.node.maxspace to higher value (e.g. 4096).
ERROR: Failure during analysis, Node.js command to start eslint-bridge was: node --max-old-space-size=16384 /Github/project/.scannerwork/.sonartmp/eslint-bridge-bundle/package/bin/server 34111 127.0.0.1 /Github/project/.scannerwork true
java.lang.IllegalStateException: eslint-bridge is unresponsive
        at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:228)
        at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.analyzeJavaScript(EslintBridgeServerImpl.java:206)
        at org.sonar.plugins.javascript.eslint.JavaScriptEslintBasedSensor.analyze(JavaScriptEslintBasedSensor.java:132)
        at org.sonar.plugins.javascript.eslint.JavaScriptEslintBasedSensor.runEslintAnalysis(JavaScriptEslintBasedSensor.java:111)
        at org.sonar.plugins.javascript.eslint.JavaScriptEslintBasedSensor.analyzeFiles(JavaScriptEslintBasedSensor.java:80)
        at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.execute(AbstractEslintSensor.java:120)
        at org.sonar.plugins.javascript.eslint.JavaScriptEslintBasedSensor.execute(JavaScriptEslintBasedSensor.java:51)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:389)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:385)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:354)
        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:144)
        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.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        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.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.io.InterruptedIOException: timeout
        at okhttp3.RealCall.timeoutExit(RealCall.java:108)
        at okhttp3.RealCall.execute(RealCall.java:97)
        at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:221)
        ... 36 common frames omitted
Caused by: java.io.IOException: Canceled
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:119)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:264)
        at okhttp3.RealCall.execute(RealCall.java:93)
        ... 37 common frames omitted
vilchik-elena commented 3 years ago

@darrylsepeda could you provide the reproducer?

vilchik-elena commented 3 years ago

closing the thread. Please open a new one if problem remains (https://community.sonarsource.com/)

marek-obuchowicz commented 1 year ago

@vilchik-elena This issue is still valid...

vilchik-elena commented 1 year ago

@marek-obuchowicz please open a new thread on https://community.sonarsource.com/ explaining fully your problem. thanks!

blkblihong commented 5 months ago

the same issue today in our pipeline: Timeout. And the website https://www.sonarcloud.io is very very slow.... Some news about this Issue-report? 09:45:51.864 DEBUG: --> GET https://sonarcloud.io/api/plugins/installed 09:46:51.865 DEBUG: <-- HTTP FAILED: java.net.SocketTimeoutException: timeout