I m facing problem with configured bitbucket with sonar cloud

hiii

i m configured sonarcloud with bitbucket last 4 week . i m facing docker limit exceeds in bitbucket cicd . i have paid User so this is so difficult for me . send me Any solution.


09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15520
8011  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15523
8012  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15524
8013  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15525
8014  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15533
8015  09:37:37.026 DEBUG: Saving issue for rule S2392 on file resources/js/aircharter-loads.js at line 15533
8016  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15546
8017  09:37:37.026 DEBUG: Saving issue for rule S2814 on file resources/js/aircharter-loads.js at line 15546
8018  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15560
8019  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15563
8020  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15564
8021  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15565
8022  09:37:37.026 DEBUG: Saving issue for rule S1125 on file resources/js/aircharter-loads.js at line 15567
8023  09:37:37.026 DEBUG: Saving issue for rule S6660 on file resources/js/aircharter-loads.js at line 15574
8024  09:37:37.026 DEBUG: Saving issue for rule S1125 on file resources/js/aircharter-loads.js at line 15574
8025  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15589
8026  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15591
8027  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15593
8028  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15601
8029  09:37:37.026 DEBUG: Saving issue for rule S1125 on file resources/js/aircharter-loads.js at line 15604
8030  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15615
8031  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15616
8032  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15640
8033  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15641
8034  09:37:37.026 DEBUG: Saving issue for rule S4138 on file resources/js/aircharter-loads.js at line 15642
8035  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15642
8036  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15643
8037  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15644
8038  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15650
8039  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15740
8040  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15741
8041  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15742
8042  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15743
8043  09:37:37.026 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15769
8044  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15770
8045  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15771
8046  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15772
8047  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15774
8048  09:37:37.027 DEBUG: Saving issue for rule S2392 on file resources/js/aircharter-loads.js at line 15774
8049  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15776
8050  09:37:37.027 DEBUG: Saving issue for rule S2814 on file resources/js/aircharter-loads.js at line 15776
8051  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15780
8052  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15781
8053  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15789
8054  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15790
8055  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15797
8056  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15798
8057  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15799
8058  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15817
8059  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15818
8060  09:37:37.027 DEBUG: Saving issue for rule S3504 on file resources/js/aircharter-loads.js at line 15819
8061  09:37:37.114 DEBUG: Cache entry created for key 'jssecurity:ucfgs:SEQ:10.16.0.27621:pandw_tracxtms:resources/js/aircharter-loads.js' containing 1 file(s)
8062  09:37:37.115 DEBUG: Cache entry created for key 'jssecurity:ucfgs:JSON:10.16.0.27621:pandw_tracxtms:resources/js/aircharter-loads.js'
8063  09:37:37.188 DEBUG: Cache entry created for key 'js:filemetadata:10.16.0.27621:pandw_tracxtms:resources/js/aircharter-loads.js'
8064  09:37:37.188 INFO: Analyzed 2 file(s) with current program
8065  09:37:37.213 INFO: 2/2 source files have been analyzed
8066  09:37:37.218 INFO: Hit the cache for 0 out of 2
8067  09:37:37.226 INFO: Miss the cache for 2 out of 2: ANALYSIS_MODE_INELIGIBLE [2/2]
8068  09:37:37.226 INFO: Sensor JavaScript/TypeScript analysis [javascript] (done) | time=94200ms
8069  09:37:37.227 INFO: Sensor CSS Rules [javascript]
8070  09:37:37.231 INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
8071  09:37:37.231 INFO: Sensor CSS Rules [javascript] (done) | time=4ms
8072  09:37:37.232 INFO: Sensor IaC Docker Sensor [iac]
8073  09:37:37.335 INFO: 0 source files to be analyzed
8074  09:37:37.335 INFO: 0/0 source files have been analyzed
8075  09:37:37.335 INFO: Sensor IaC Docker Sensor [iac] (done) | time=103ms
8076  09:37:37.335 INFO: Sensor Serverless configuration file sensor [security]
8077  09:37:37.338 INFO: 0 Serverless function entries were found in the project
8078  09:37:37.343 INFO: 0 Serverless function handlers were kept as entrypoints
8079  09:37:37.343 INFO: Sensor Serverless configuration file sensor [security] (done) | time=8ms
8080  09:37:37.343 INFO: Sensor AWS SAM template file sensor [security]
8081  09:37:37.345 DEBUG: 0 SAM template configuration files were found in the project. 0 SAM function entries were found in total. 0 were kept as potential entrypoints.
8082  09:37:37.345 INFO: Sensor AWS SAM template file sensor [security] (done) | time=2ms
8083  09:37:37.345 INFO: Sensor AWS SAM Inline template file sensor [security]
8084  09:37:37.346 DEBUG: 0 SAM Inline template configuration files were found in the project. 0 SAM Inline function entries were found in total. 0 were kept as potential entrypoints.
8085  09:37:37.346 INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms
8086  09:37:37.346 INFO: Sensor TextAndSecretsSensor [text]
8087  09:37:37.347 INFO: Available processors: 8
8088  09:37:37.347 INFO: Using 8 threads for analysis.
8089  09:37:37.877 INFO: The property "sonar.tests" is not set. To improve the analysis accuracy, we categorize a file as a test file if any of the following is true:
8090    * The filename starts with "test"
8091    * The filename contains "test." or "tests."
8092    * Any directory in the file path is named: "doc", "docs", "test" or "tests"
8093    * Any directory in the file path has a name ending in "test" or "tests"
8094  
8095  09:37:37.910 DEBUG: git --version returned: git version 2.40.1
8096  09:37:37.910 INFO: Using git CLI to retrieve untracked files
8097  09:37:37.918 DEBUG: Process [git, status, --untracked-files=all, --porcelain] exited with code 128
8098  09:37:37.918 DEBUG: Unable to retrieve git status
8099  09:37:37.918 WARN: Analyzing only language associated files, make sure to run the analysis inside a git repository to make use of inclusions specified via "sonar.text.inclusions"
8100  09:37:38.244 INFO: 1190 source files to be analyzed
8101

Hi,

Welcome to the community!

It’s not clear to me what’s being exceeded. Are you maybe hitting a timeout?

 
Ann

sonar-logs.zip (2.5 KB)
this is full logs of CICD please send me Any suggestions

Hi,

Thanks for the log; it’s helpful. Can you try bumping up the Node.js memory?

 
Ann

yes I Also try this one

sonar.javascript.node.maxWaitTime=60000 My pipeline is take too long time to scane it’s some this 15 minutes

Hi,

Thanks for trying. I’m going to flag this for the language experts.

 
Ann

please reply me fast i m trying last 20 days

Hello @Harsha_anadariya,

can you please enable and share the debug logs? Use property sonar.verbose=true

Cheers

this is logs zip. my project php . And i scan php files And js file but js file taking a long time to scan it’s something 50 minut . please send me solution my projects line 600 k And plan is 700 k Also i am facing issue.
when i scan my js folder docker memory exceed error like this

please send me solution As soon as possible

(Attachment Sonarqube-logs.txt.ini is missing)

Hello @Harsha_anadariya,

sorry, but it seems the logs are missing in your last post. Can you please attach them? Also, can you please share all the Sonar properties you use?

Thanks!

Required metadata

sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8

Specify source directories,resources/js/

sonar.sources=.

Optional configurations

sonar.language=php
sonar.php.executable=/usr/bin/php
sonar.php.version=7.4
sonar.scm.disabled=true
sonar.verbose=true

If you want the quality gate to fail and subsequently cause your pipeline to fail, set the following property to true:

sonar.qualitygate.wait=“true”

Exclude specific files

#sonar.exclusions=/vendor/,/tests/,/node_modules/,resources/js/bootstrap-datetimepicker.js,resources/js/bootstrap-notify.js,resources/js/bootstrap-tagsinput.js,resources/js/bootstrap.bundle.min.js,resources/js/bootstrap.js,resources/js/bootstrap.min.js,resources/js/jquery-3.3.1.min.js,resources/js/jquery-3.5.1.min.js,resources/js/jquery-jvectormap.js,resources/js/jquery-ui.min.js,resources/js/jquery.autocomplete.min.js,resources/js/jquery.bootstrap-wizard.js,resources/js/jquery.dataTables.min.js,resources/js/jquery.datatables.js,resources/js/jquery.inputmask.bundle.js,resources/js/jquery.inputmask.bundle.min.js,resources/js/jquery.mask.js,resources/js/jquery.select-bootstrap.js,resources/js/jquery.tagsinput.js,resources/js/jquery.touchSwipe.min.js,resources/js/jquery.twbsPagination.min.js,resources/js/jquery.ui.touch-punch.min.js,resources/js/jquery.validate.min.js,resources/js/dataTables.colReorder.min.js,resources/js/dataTables.fixedColumns.min.js,resources/js/dataTables.colReorder.min.js

Include specific file types,resources/js//.js app/,resources/js/loads.js,resources/js/main.js,resources/js/usps-loads.js ,/*.php

sonar.exclusions=/vendor/,/tests/,/node_modules/
sonar.inclusions=,resources/js/loads.js,resources/js/main.js,resources/js/usps-loads.js

If you have PHPUnit tests, specify the report paths

sonar.phpunit.reportPath=tests/_output/report.xml

Hello @Harsha_anadariya,

sorry, still missing the debug logs? Can you please send them?

Cheers


i setup in develop branch but it’s not show me. every time i go to branch section.

Hello,

Sorry, but we can’t help without debug logs.

As already mentioned, enable debug logs with the property sonar.verbose=true

Thanks

1 Like

Hello
my problem is Today’s resolved help by Bitbucket support but still my Sonarscaning is take a long time to scan .How can reduce time.

Hey @Harsha_anadariya

Like you’ve been told multiple times – if you want help, you’ll need to produce some DEBUG analysis logs.

this is my logs please check.

(attachments)

pipelineLog-{d7ae55a7-4cdc-4612-a090-f26ac85b015c}.zip (339 KB)

Thanks. It looks like one rule (S6321) is very expensive, taking up 35.6% of execution time.

You can disable this rule in your Quality Profile, but I’ve also flagged this for attention from our JS/TS team.

After desable mentioned rule stil taking a long time to scan.

Latest-logs.zip (336.8 KB)

Hi,

How large is this project in terms of Lines of Code?

 
Thx,
Ann