Sonarqube TLS CE 9.9.1 as of 230717

Operating system Fedora 36 x8664 all updated.

WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/home/.sonar/bcbs/lib/sonar-application-9.9.1.69595.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release

The install from the rpm via dnf, exactly the same error as hard download from the website.

Guessing even though there certified with signature version from the yum.repo, does not work out of the box, default or other wise regardless of db type.

IS 9.9.1 EOL? If no then how to get java to accept the terminally deprecated method call?

Hi,

Welcome to the community!

Thanks for reporting this warning. We do need to clean that up, but it won’t interfere with you running SonarQube 9.9.1, which is the current LTS and nowhere near EOL at this time.

 
HTH,
Ann

Hi again,

Actually, which log do you see that in? I’ve just spun up 9.9 and I’m not able to find that warning in the logs anymore.

 
Ann

Sure,
Currently tried, Fed 36,37,38 - OpenJDK 17, Oracle flavor 17
DB Prosgres, 14,15

How executed, by pass need for sonarqube.service.

[sonarqube@localhost linux-x86-64]$ ./sonar.sh start
/usr/bin/java
Starting SonarQube…
Started SonarQube.
[sonarqube@localhost linux-x86-64]$

es.log

2023.07.18 18:02:02 INFO  es[][o.e.n.Node] version[7.17.8], pid[1274], build[default/tar/120eabe1c8a0cb2ae87cffc109a5b65d213e9df1/2022-12-02T17:33:09.727072865Z], OS[Linux/6.3.12-200.fc38.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/17.0.8/17.0.8+9-LTS-211]
2023.07.18 18:02:02 INFO  es[][o.e.n.Node] JVM home [/usr/lib/jvm/jdk-17-oracle-x64]
2023.07.18 18:02:02 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=/opt/sonarqube/logs/es_hs_err_pid%p.log, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2023.07.18 18:02:02 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2023.07.18 18:02:02 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2023.07.18 18:02:02 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2023.07.18 18:02:02 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2023.07.18 18:02:02 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2023.07.18 18:02:02 INFO  es[][o.e.p.PluginsService] no plugins loaded
2023.07.18 18:02:03 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/sda4)]], net usable_space [855.1gb], net total_space [904.4gb], types [ext4]
2023.07.18 18:02:03 INFO  es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2023.07.18 18:02:03 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [Svcd4RQTSa688KunL4IfCA], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2023.07.18 18:02:05 INFO  es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=256kb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=1mb, heap_size=512mb}]
2023.07.18 18:02:05 INFO  es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2023.07.18 18:02:05 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2023.07.18 18:02:05 INFO  es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
2023.07.18 18:02:05 INFO  es[][o.e.n.Node] initialized
2023.07.18 18:02:05 INFO  es[][o.e.n.Node] starting ...
2023.07.18 18:02:05 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:33321}, bound_addresses {127.0.0.1:33321}
2023.07.18 18:02:05 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2023.07.18 18:02:05 INFO  es[][o.e.c.c.Coordinator] cluster UUID [_jtzar-pRmC27OX23T11CA]
2023.07.18 18:02:05 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{Svcd4RQTSa688KunL4IfCA}{hDpP5u7PTF-ymf1HxcjsrA}{127.0.0.1}{127.0.0.1:33321}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 4, version: 7, delta: master node changed {previous [], current [{sonarqube}{Svcd4RQTSa688KunL4IfCA}{hDpP5u7PTF-ymf1HxcjsrA}{127.0.0.1}{127.0.0.1:33321}{cdfhimrsw}]}
2023.07.18 18:02:05 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{Svcd4RQTSa688KunL4IfCA}{hDpP5u7PTF-ymf1HxcjsrA}{127.0.0.1}{127.0.0.1:33321}{cdfhimrsw}]}, term: 4, version: 7, reason: Publication{term=4, version=7}
2023.07.18 18:02:05 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.07.18 18:02:05 INFO  es[][o.e.n.Node] started
2023.07.18 18:02:05 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2023.07.18 18:02:07 INFO  es[][o.e.n.Node] stopping ...
2023.07.18 18:02:07 INFO  es[][o.e.n.Node] stopped
2023.07.18 18:02:07 INFO  es[][o.e.n.Node] closing ...
2023.07.18 18:02:07 INFO  es[][o.e.n.Node] closed
^C
[root@localhost logs]# tail -f es.log 
2023.07.18 18:02:05 INFO  es[][o.e.c.c.Coordinator] cluster UUID [_jtzar-pRmC27OX23T11CA]
2023.07.18 18:02:05 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{Svcd4RQTSa688KunL4IfCA}{hDpP5u7PTF-ymf1HxcjsrA}{127.0.0.1}{127.0.0.1:33321}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 4, version: 7, delta: master node changed {previous [], current [{sonarqube}{Svcd4RQTSa688KunL4IfCA}{hDpP5u7PTF-ymf1HxcjsrA}{127.0.0.1}{127.0.0.1:33321}{cdfhimrsw}]}
2023.07.18 18:02:05 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{Svcd4RQTSa688KunL4IfCA}{hDpP5u7PTF-ymf1HxcjsrA}{127.0.0.1}{127.0.0.1:33321}{cdfhimrsw}]}, term: 4, version: 7, reason: Publication{term=4, version=7}
2023.07.18 18:02:05 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.07.18 18:02:05 INFO  es[][o.e.n.Node] started
2023.07.18 18:02:05 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2023.07.18 18:02:07 INFO  es[][o.e.n.Node] stopping ...
2023.07.18 18:02:07 INFO  es[][o.e.n.Node] stopped
2023.07.18 18:02:07 INFO  es[][o.e.n.Node] closing ...
2023.07.18 18:02:07 INFO  es[][o.e.n.Node] closed

sonar.log

2023.07.18 18:11:45 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.07.18 18:11:45 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:42325]
2023.07.18 18:11:45 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2023.07.18 18:11:45 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.07.18 18:11:49 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2023.07.18 18:11:49 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/lib/jvm/jdk-17-oracle-x64/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 --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.9.1.69595.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.5.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process11375272295000019338properties
2023.07.18 18:11:51 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.07.18 18:11:51 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.07.18 18:11:51 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2023.07.18 18:11:51 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143

nohup.log

2023.07.18 18:13:09 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.07.18 18:13:09 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:44299]
2023.07.18 18:13:09 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2023.07.18 18:13:09 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.07.18 18:13:13 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2023.07.18 18:13:13 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/lib/jvm/jdk-17-oracle-x64/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 --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.9.1.69595.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.5.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process16227284469953217519properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/opt/sonarqube/lib/sonar-application-9.9.1.69595.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2023.07.18 18:13:15 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.07.18 18:13:15 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2023.07.18 18:13:15 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.07.18 18:13:15 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

I found the reason : i am using SQL Server.
By default encyption is now activated so should you still need to work, you need to add the following to your jdbc connection string : ;TrustServerCertificate=True

Hi,

Thanks @eL4Mnox2WY9JECUjG5tg! That’s helpful!

@Simon_Leclercq was this the wrong thread?

 
Ann

Hello @eL4Mnox2WY9JECUjG5tg and thanks for reporting this.

SonarQube works as expected in this situation, the warning is from the JDK to let us know that we use a JDK deprecated feature.

On Sonar side, we are well aware of this. The SecurityManager is deprecated with JDK 17 and will be removed in the future. This is something we have under our radar for future SQ versions, and specifically for the upgrade to higher versions of Java. As long as we are on JDK 17, we are good.

Found solution,
Less 1 minute to download and install and works.

So there are 2 versions available. Latest greatest 10.x
And one I need. 9.9.1

Not recommendation, I have no affiliation, just trying to install Sonarqube, that can pass, STIG / SIG / NISP / NIST / SOC audits.

Done.
Link : Download SonarQube™ packaged by Bitnami

Cheers.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.