Sonarqube stuck on file

Must-share information (formatted with Markdown):

  • Vs: latest community edition
  • Deployed: Docker
  • Process: Scanning repository
  • Steps:
  1. increase sonar.javascript.node.maxspace=4096
  2. doubled bitbucket pipeline size
  3. added sonar.sources
  4. added sonar.xxxxx.file.suffixes
  5. added sonar.******.reportPaths

Part of the logging concerned:

164 `ERROR: Failed to analyze file [frontend/src/components/organisms/modals/AlertModal.vue]: File 
 '@vue/tsconfig/tsconfig.web.json' not found.`
165 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
166 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
167 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
168 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
169 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
170 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
171 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
172 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
173 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
174 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
175 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
176 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
177 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
178 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
179 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
180 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
181 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
182 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
183 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
184 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
185 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
186 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
187 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
188 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
189 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
190 `INFO: 183/406 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue`
191 INFO: 31/414 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/modals/AlertModal.vue
time="2023-05-24T06:04:57Z" level=error msg="error waiting for container: unexpected EOF"

It is stuck on this file, until it crashes and we get a memory limit error. Which in fact seems to be caused by the processing of a single file.

Hey there.

It looks like this tsconfig.web.json might be coming from a package you install during the build. Have you installed packages before running the analysis?

I’ll ask the developers, I am just the DevOps from Hell in this case

Thanks.

If it’s the case that once a build occurs (with package install) that the analysis is no longer stuck, I’ll flag this for attention (because the analyzer stalling isn’t a good experience).

Ah, but we never build before an analysis. I run on my local a community version 9.x and it doesn’t show the problem on the same project, the newer 10.x version, however, does. I think it has to do with the rule set from the newer version. We have some strange Errors on code lines as well. If you want I can get some examples of those.