Issues to run a sonar scan from sonarqube deployed in an EKS cluster

Template for a good bug report, formatted with Markdown:

  • Versions used (SonarQube 8.9.6-community)
  • Error observed (wrap logs/code around triple quote ``` for proper formatting)
    Sonar-scan is unsuccessful when run from sonarqube deployed in an EKS cluster. Below are the logs:
  giulio  ThinkPad-T430  ~  web   feature-453  1✎  1+  SIGINT  $  sonar-scanner \
  -Dsonar.projectKey=geekzone-sonar \
  -Dsonar.sources=. \
  -Dsonar.host.url=https://sonarqube.geek.zone \
  -Dsonar.login=2702d000c7e88181581e7e9f6a1e1123a4cedcdc
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/giulio/web/sonar-project.properties
INFO: SonarScanner 4.6.2.2472
INFO: Java 11.0.11 AdoptOpenJDK (64-bit)
INFO: Linux 5.11.0-40-generic amd64
INFO: User cache: /home/giulio/.sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/giulio/web/sonar-project.properties
INFO: Analyzing on SonarQube server 8.9.6
INFO: Default locale: "en_GB", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=267ms
INFO: Server id: EA8D9556-AX4ITPkKr0lk6xkAKmff
INFO: User cache: /home/giulio/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=73ms
INFO: Load/download plugins (done) | time=153ms
INFO: Process project properties
INFO: Process project properties (done) | time=14ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=2ms
INFO: Project key: geekzone-sonar
INFO: Base dir: /home/giulio/web
INFO: Working dir: /home/giulio/web/.scannerwork
INFO: Load project settings for component key: 'geekzone-sonar'
INFO: Load project settings for component key: 'geekzone-sonar' (done) | time=79ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=209ms
INFO: Load active rules
INFO: Load active rules (done) | time=5506ms
INFO: Indexing files...
INFO: Project configuration:
INFO: Load project repositories
INFO: Load project repositories (done) | time=39ms
INFO: 102 files indexed
INFO: 2 files ignored because of scm ignore settings
INFO: Quality profile for css: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for py: Sonar way
INFO: Quality profile for web: Sonar way
INFO: ------------- Run sensors on module geekzone-sonar
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=63ms
INFO: Sensor Python Sensor [python]
INFO: Starting global symbols computation
INFO: 48 source files to be analyzed
INFO: 48/48 source files have been analyzed
INFO: Starting rules execution
INFO: 48 source files to be analyzed
INFO: 48/48 source files have been analyzed
INFO: Sensor Python Sensor [python] (done) | time=10699ms
INFO: Sensor Cobertura Sensor for Python coverage [python]
INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=18ms
INFO: Sensor PythonXUnitSensor [python]
INFO: Sensor PythonXUnitSensor [python] (done) | time=8ms
INFO: Sensor CSS Metrics [cssfamily]
INFO: Sensor CSS Metrics [cssfamily] (done) | time=5889ms
INFO: Sensor CSS Rules [cssfamily]
INFO: 20 source files to be analyzed
INFO: 16/20 files analyzed, current file: theme/static/css/dist/styles.css
INFO: 20/20 source files have been analyzed
INFO: Sensor CSS Rules [cssfamily] (done) | time=13759ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
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
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=5ms
INFO: Sensor JavaScript analysis [javascript]
WARN: Node.js version 16 is not supported, you might experience issues. Please use a supported version of Node.js [10, 12, 14, 15]
INFO: 4 source files to be analyzed
ERROR: Browserslist: caniuse-lite is outdated. Please run:
ERROR: npx browserslist@latest --update-db
ERROR: 
ERROR: Why you should do it regularly:
ERROR: https://github.com/browserslist/browserslist#browsers-data-updating
INFO: 4/4 source files have been analyzed
INFO: Sensor JavaScript analysis [javascript] (done) | time=4724ms
INFO: Sensor TypeScript analysis [javascript]
INFO: No input files found for analysis
INFO: Sensor TypeScript analysis [javascript] (done) | time=1ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=2ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=2ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=148ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=2ms
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=34ms
INFO: SCM Publisher SCM provider for this project is: git
INFO: SCM Publisher 68 source files to be analyzed
INFO: SCM Publisher 68/68 source files have been analyzed (done) | time=1452ms
INFO: CPD Executor 23 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 47 files
INFO: CPD Executor CPD calculation finished (done) | time=53ms
INFO: Analysis report generated in 204ms, dir size=17 MB
INFO: Analysis report compressed in 728ms, 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)]
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 59.132s
INFO: Final Memory: 116M/390M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Fail to request url: https://sonarqube.geek.zone/api/ce/submit?projectKey=geekzone-sonar&projectName=geekzone-sonar
        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.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.net.SocketException: Broken pipe (Write failed)
        at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.base/java.net.SocketOutputStream.socketWrite(Unknown Source)
        at java.base/java.net.SocketOutputStream.write(Unknown Source)
        at java.base/sun.security.ssl.SSLSocketOutputRecord.deliver(Unknown Source)
        at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(Unknown Source)
        at okio.OutputStreamSink.write(JvmOkio.kt:53)
        at okio.AsyncTimeout$sink$1.write(AsyncTimeout.kt:103)
        at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:255)
        at okio.RealBufferedSink.write(RealBufferedSink.kt:146)
        at okhttp3.internal.http1.Http1ExchangeCodec$KnownLengthSink.write(Http1ExchangeCodec.kt:271)
        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)
        ... 25 more
        Suppressed: java.net.SocketException: Broken pipe (Write failed)
                ... 57 more
        Suppressed: java.net.SocketException: Broken pipe (Write failed)
                ... 57 more
        Suppressed: java.net.SocketException: Broken pipe (Write failed)
                ... 57 more
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
  • Steps to reproduce
    I can open the sonarqube console from the address configure through an ingress in Kubernetes. I created a project locally, assigned a project key and generated a token. Then copied the code that was generated from the config and ran it in my project folder. Unfortunately the scan didn’t succeed as the above logs show.
    I ran the scan from a local installation of sonarqube, created a project ans passed the same values, so copied the generated code again and run from my project folder. This time it succeeded, as shown in the logs below!
giulio  ThinkPad-T430  ~  web   feature-453  1✎  1+  $  sonar-scanner \
  -Dsonar.projectKey=geekzone-sonar \
  -Dsonar.sources=. \
  -Dsonar.host.url=http://localhost:9000 \
  -Dsonar.login=f3acf3d7bb3bb5aea5826e7d6bf72254cf30d410
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/giulio/web/sonar-project.properties
INFO: SonarScanner 4.6.2.2472
INFO: Java 11.0.11 AdoptOpenJDK (64-bit)
INFO: Linux 5.11.0-40-generic amd64
INFO: User cache: /home/giulio/.sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/giulio/web/sonar-project.properties
INFO: Analyzing on SonarQube server 9.1.0
INFO: Default locale: "en_GB", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=120ms
INFO: Server id: BF41A1F2-AX4A9JmRQhdBS3uOiYpG
INFO: User cache: /home/giulio/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=56ms
INFO: Load/download plugins (done) | time=143ms
INFO: Process project properties
INFO: Process project properties (done) | time=12ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=3ms
INFO: Project key: geekzone-sonar
INFO: Base dir: /home/giulio/web
INFO: Working dir: /home/giulio/web/.scannerwork
INFO: Load project settings for component key: 'geekzone-sonar'
INFO: Load project settings for component key: 'geekzone-sonar' (done) | time=87ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=286ms
INFO: Load active rules
INFO: Load active rules (done) | time=4142ms
INFO: Indexing files...
INFO: Project configuration:
INFO: Load project repositories
INFO: Load project repositories (done) | time=41ms
INFO: 102 files indexed
INFO: 3 files ignored because of scm ignore settings
INFO: Quality profile for css: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for py: Sonar way
INFO: Quality profile for web: Sonar way
INFO: ------------- Run sensors on module geekzone-sonar
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=95ms
INFO: Sensor Python Sensor [python]
WARN: Your code is analyzed as compatible with python 2 and 3 by default. This will prevent the detection of issues specific to python 2 or python 3. You can get a more precise analysis by setting a python version in your configuration via the parameter "sonar.python.version"
INFO: Starting global symbols computation
INFO: 48 source files to be analyzed
INFO: 48/48 source files have been analyzed
INFO: Starting rules execution
INFO: 48 source files to be analyzed
INFO: 48/48 source files have been analyzed
INFO: Sensor Python Sensor [python] (done) | time=5483ms
INFO: Sensor Cobertura Sensor for Python coverage [python]
INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=23ms
INFO: Sensor PythonXUnitSensor [python]
INFO: Sensor PythonXUnitSensor [python] (done) | time=5ms
INFO: Sensor CSS Metrics [cssfamily]
INFO: Sensor CSS Metrics [cssfamily] (done) | time=6871ms
INFO: Sensor CSS Rules [cssfamily]
INFO: 20 source files to be analyzed
INFO: 16/20 files analyzed, current file: theme/static/css/dist/styles.css
INFO: 20/20 source files have been analyzed
INFO: Sensor CSS Rules [cssfamily] (done) | time=15767ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
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
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=6ms
INFO: Sensor JavaScript analysis [javascript]
INFO: 4 source files to be analyzed
INFO: 4/4 source files have been analyzed
INFO: Sensor JavaScript analysis [javascript] (done) | time=5773ms
INFO: Sensor TypeScript analysis [javascript]
INFO: No input files found for analysis
INFO: Sensor TypeScript analysis [javascript] (done) | time=2ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=13ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=0ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=2ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=159ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=16ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=32ms
INFO: SCM Publisher SCM provider for this project is: git
INFO: SCM Publisher 68 source files to be analyzed
INFO: SCM Publisher 68/68 source files have been analyzed (done) | time=1774ms
INFO: CPD Executor 23 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 47 files
INFO: CPD Executor CPD calculation finished (done) | time=47ms
INFO: Analysis report generated in 246ms, dir size=18.7 MB
INFO: Analysis report compressed in 838ms, zip size=3.0 MB
INFO: Analysis report uploaded in 151ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=geekzone-sonar
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AX4Ihdd5B8jSC2KkasoB
INFO: Analysis total time: 57.285 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 58.753s
INFO: Final Memory: 75M/260M
INFO: ------------------------------------------------------------------------

The pods in the cluster are running fine:

Below are some of the logs from the sonarqube-sonarqube-0 pod:

2021.12.29 22:27:32 INFO  web[][o.s.s.i.i.AsyncIssueIndexingImpl] 0 branch found in need of issue sync.
2021.12.29 22:27:32 INFO  web[][o.s.s.e.IndexerStartupTask] Trigger asynchronous indexing of type [issues/auth/issue] done | time=127ms
2021.12.29 22:27:32 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of types [components/auth],[projectmeasures/auth],[issues/auth]...
2021.12.29 22:27:32 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of types [components/auth],[projectmeasures/auth],[issues/auth] done | time=279ms
2021.12.29 22:27:32 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [projectmeasures/auth/projectmeasure]...
2021.12.29 22:27:33 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [projectmeasures/auth/projectmeasure] done | time=201ms
2021.12.29 22:27:33 INFO  web[][o.s.s.q.ProjectsInWarningDaemon] Counting number of projects in warning is enabled.
2021.12.29 22:27:33 INFO  web[][o.s.s.p.p.PlatformLevelStartup] Running Community Edition
2021.12.29 22:27:33 INFO  web[][o.s.s.p.Platform] WebServer is operational
2021.12.29 22:27:33 INFO  app[][o.s.a.SchedulerImpl] Process[web] is up
2021.12.29 22:27:33 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='ce', ipcIndex=3, logFilenamePrefix=ce]] from [/opt/sonarqube]: /opt/java/openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED -javaagent:/opt/sonarqube/data/jmx_prometheus_javaagent.jar=8001:/opt/sonarqube/conf/prometheus-ce-config.yaml -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-8.9.6.50800.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.19.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process6833176760073473000properties
2021.12.29 22:27:34 INFO  web[][o.s.s.q.ProjectsInWarningDaemon] Counting number of projects in warning will be disabled as there are no more projects in warning.
2021.12.29 22:27:36 INFO  ce[][o.s.p.ProcessEntryPoint] Starting ce
2021.12.29 22:27:36 INFO  ce[][o.s.ce.app.CeServer] Compute Engine starting up...
2021.12.29 22:27:36 INFO  ce[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
2021.12.29 22:27:38 INFO  ce[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://sonarqube-postgresql:5432/sonarDB
2021.12.29 22:27:43 INFO  ce[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2021.12.29 22:27:43 INFO  ce[][o.s.c.c.CePluginRepository] Load plugins
2021.12.29 22:27:46 INFO  ce[][o.s.c.c.ComputeEngineContainerImpl] Running Community edition
2021.12.29 22:27:46 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is operational
2021.12.29 22:27:46 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
2021.12.29 22:27:46 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up

Also, here are the logs from sonarqube-postgres-0 pod:

giulio  ThinkPad-T430  ~  web   feature-453  1✎  1+  $  k -n sonarqube logs sonarqube-postgresql-0 
postgresql 22:25:07.82 
postgresql 22:25:07.83 Welcome to the Bitnami postgresql container
postgresql 22:25:07.83 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-postgresql
postgresql 22:25:07.83 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-postgresql/issues
postgresql 22:25:07.83 Send us your feedback at containers@bitnami.com
postgresql 22:25:07.83 
postgresql 22:25:07.84 INFO  ==> ** Starting PostgreSQL setup **
postgresql 22:25:07.88 INFO  ==> Validating settings in POSTGRESQL_* env vars..
postgresql 22:25:07.89 INFO  ==> Loading custom pre-init scripts...
postgresql 22:25:07.90 INFO  ==> Initializing PostgreSQL database...
postgresql 22:25:07.91 INFO  ==> postgresql.conf file not detected. Generating it...
postgresql 22:25:07.93 INFO  ==> pg_hba.conf file not detected. Generating it...
postgresql 22:25:07.93 INFO  ==> Generating local authentication configuration
postgresql 22:25:09.24 INFO  ==> Starting PostgreSQL in background...
postgresql 22:25:09.62 INFO  ==> Creating user sonarUser
postgresql 22:25:09.64 INFO  ==> Grating access to "sonarUser" to the database "sonarDB"
postgresql 22:25:09.66 INFO  ==> Configuring replication parameters
postgresql 22:25:09.68 INFO  ==> Configuring fsync
postgresql 22:25:09.69 INFO  ==> Loading custom scripts...
postgresql 22:25:09.69 INFO  ==> Enabling remote connections
postgresql 22:25:09.70 INFO  ==> Stopping PostgreSQL...
postgresql 22:25:10.71 INFO  ==> ** PostgreSQL setup finished! **

postgresql 22:25:10.77 INFO  ==> ** Starting PostgreSQL **
2021-12-29 22:25:10.787 GMT [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-12-29 22:25:10.787 GMT [1] LOG:  listening on IPv6 address "::", port 5432
2021-12-29 22:25:10.790 GMT [1] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2021-12-29 22:25:10.801 GMT [211] LOG:  database system was shut down at 2021-12-29 22:25:09 GMT
2021-12-29 22:25:10.806 GMT [1] LOG:  database system is ready to accept connections
2021-12-29 22:25:18.890 GMT [226] LOG:  incomplete startup packet
  • Potential workaround: I am not aware of any!

  • Scanner command used when applicable (private details masked):

sonar-scanner \
  -Dsonar.projectKey=geekzone-sonar \
  -Dsonar.sources=. \
  -Dsonar.host.url=https://sonarqube.geek.zone \
  -Dsonar.login=2702d000c7e88181581e7e9f6a1e1123a4cedcdc

Sonarqube is deployed through Helm. I deployed the community edition. The local installation is in an ubuntu machine, where I installed sonarqube from a zip file.

Thank you in advance for your help!

Giulio

Hey there.

Thanks for the detailed post! First I would suggest reverting this thread where a user reported a similar issue.