Configure LDAP for SonarQube in Openshift

ldap

(Nii Lartey) #1

I SonarQube installed in Openshift and want to configure LDAP. I have the LDAP plugin installed. I did update the $SONARQUBE-HOME/conf/sonar.properties with the LDAP values.

After restarting sonarqube, I did check the log file for text as follows:
INFO org.sonar.INFO Security realm: LDAP …
INFO o.s.p.l.LdapContextFactory Test LDAP connection: OK

But I did not see anything like that. That means DLAP is not setup right. I still went ahead to the UI to validate/test with users but did not work.

Any idea or suggestions as to what I am missing or have to do next?

Thanks…


(Colin Mueller) #2

I recommend sharing the LDAP settings you put in your sonar.properties file (sensitive information redacted as necessary).


(Nii Lartey) #3

#General configuration
sonar.security.realm=LDAP
ldap.url=ldap://my.ldap.host.gov:389 #This url is example for the sake of this post#
ldap.bindDn=ldapServiceAcc,ou=CAT,ou=Cen Users,dc=my,dc=ldap,dc=host,dc=gov
ldap.bindPassword=secret

User Configuration

ldap.user.baseDn=ou=Cen Users
ldap.user.request=(&(objectClass=user)(sAMAccountName={login}))
ldap.user.realNameAttribute=cn
ldap.user.emailAttribute=mail

Group Configuration

ldap.group.baseDn=ou=cn=group,ou=CAT,ou=Cen Users,dc=my,dc=ldap,dc=host,dc=gov
ldap.group.request=(&(objectClass=group)(member={dn}))


(Nii Lartey) #4

Can I please get some help here if anyone is familiar with the issue I have. I will really appreciate it.


(Colin Mueller) #5

Nii,

I would recommend sharing the logs (web.log particularly) from your $SONARQUBE_HOME/logs/ folder, including with debug mode activated when starting your instance and attempting to login. You can turn on debug level logs in your sonar.properties configuration file.

If sharing full logs isn’t an option, I would comb through them for relevant sections and share them if you are still having trouble.

Colin


(Nii Lartey) #6

Hi Colin,

This is logs from the terminal of openshift:

2018.11.20 17:20:55 INFO app[o.s.a.SchedulerImpl] Process [es] is stopped
2018.11.20 17:20:55 WARN app[o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2018.11.20 17:20:55 INFO app[o.s.a.SchedulerImpl] SonarQube is restarting
2018.11.20 17:20:55 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2018.11.20 17:20:55 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2018.11.20 17:20:55 INFO app[o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonarqube/temp/conf/es
2018.11.20 17:20:55 INFO app[o.e.p.PluginsService] no modules loaded
2018.11.20 17:20:55 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.11.20 17:21:05 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2018.11.20 17:21:05 INFO app[o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.security.egd=file:/dev/./urandom -cp ./lib/common/:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.2.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process7861761917384064400properties
2018.11.20 17:21:24 INFO app[][o.s.a.SchedulerImpl] Process[web] is up
2018.11.20 17:21:24 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘ce’, ipcIndex=3, logFilenamePrefix=ce]] from [/opt/sonarqube]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/
:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.2.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process2871978839635731638properties
2018.11.20 17:21:32 INFO app[o.s.a.SchedulerImpl] Process[ce] is up

Hope this helps. But as I stated before, I do not see anything regarding LDAP in the logs.

I also see different logs from the sonarqube UI, but logs is bigger that one located at $SONARQUBE_HOME/logs/sonar.log

Why the difference?


(Colin Mueller) #7

Is there a web.log file in your logs folder?


(Nii Lartey) #9

This is the web.log file:

2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'csharp' version : 7.3.2.6129 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'cssfamily' version : 1.0.1.508 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'flex' version : 2.4.0.1222 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'go' version : 1.1.0.1612 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'java' version : 5.6.1.15064 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'javascript' version : 4.2.0.6476 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'kotlin' version : 1.0.1.965 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'ldap' version : 2.2.0.608 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'php' version : 2.14.0.3569 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'python' version : 1.10.0.2131 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'scmgit' version : 1.4.1.1128 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'scmsvn' version : 1.8.0.1168 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'typescript' version : 1.7.0.2893 has not been found on the update center.
2018.11.20 17:20:41 INFO  web[AWctOcccgZxDas+BAAAh][o.s.u.c.UpdateCenter] The plugin 'xml' version : 1.5.1.1452 has not been found on the update center.
2018.11.20 17:20:49 INFO  web[AWctOcccgZxDas+BAAAj][o.s.s.p.w.RestartAction] SonarQube restart requested by admin
2018.11.20 17:20:53 INFO  web[][o.s.p.StopWatcher] Stopping process
2018.11.20 17:21:06 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2018.11.20 17:21:06 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2018.11.20 17:21:07 INFO  web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions:
2018.11.20 17:21:07 INFO  web[][o.e.p.PluginsService] no modules loaded
2018.11.20 17:21:07 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2018.11.20 17:21:07 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2018.11.20 17:21:07 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.11.20 17:21:09 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2018.11.20 17:21:09 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 7.3.0.15553 / 7f72262e02808e9431d97735ece621a22a1d8208
2018.11.20 17:21:09 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://postgresql/sonar
2018.11.20 17:21:10 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2018.11.20 17:21:10 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.4.1.1128 / e051f5aeb379541b13956447b5dc8b4e0b23b098
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin LDAP / 2.2.0.608 / 79dc3fa4393a29667673c70182f3016288b548b7
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 7.3.2.6129 / e7a731061a7fa928c4e1c11b830f22db97a61f83
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarCSS / 1.0.1.508 / 2eb799e363666ae65036ad61a6e6adc1a1283097
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarFlex / 2.4.0.1222 / 68d9cb3b7daccbc4869c4f2b89d09218d26a0829
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarGo / 1.1.0.1612 / 1809c7be6d88396c0a1b8d597b1e9e0ed8d29730
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 4.2.0.6476 / a21b56462f3375b5d51d90f1819862878476d817
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 5.6.1.15064 / dd4545a04af6f7d0cb0486926cfa8cfc5cae5ee1
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarKotlin / 1.0.1.965 / b5872affdfeda52e0a71494e2df9a3524b80d3bc
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.14.0.3569 / 59a202b8d1c5276ce32da2a0bc63c94cae4cdeb2
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.10.0.2131 / a00e0ddc83bbeb01a9ee7475fab9eafe3f4096ac
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.7.0.2893 / 0d296cae94240b183a0b3ae6e1a409a60fe9f865
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.5.1.1452 / eadc1dcd0e24a3c77068e3c1d41af0327d6b16ea
2018.11.20 17:21:11 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Svn / 1.8.0.1168 / 4143f2d119022a758f6bf40aed4294e4c31706cf
2018.11.20 17:21:12 INFO  web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2018.11.20 17:21:12 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@476fb12f [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/properties*, ...]}]
2018.11.20 17:21:13 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2018.11.20 17:21:14 WARN  web[][o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@4aa164b6. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition
2018.11.20 17:21:14 WARN  web[][o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@5e2fc6f8. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition
2018.11.20 17:21:14 WARN  web[][o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@f6d017d. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition
2018.11.20 17:21:14 INFO  web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2018.11.20 17:21:16 INFO  web[][o.s.s.s.LogServerId] Server ID: AA3B5C1F-AWanCIsZ99tDvTmHfA-e
2018.11.20 17:21:16 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/plugins/download
2018.11.20 17:21:16 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/security_reports/show
2018.11.20 17:21:16 INFO  web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2018.11.20 17:21:16 INFO  web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2018.11.20 17:21:16 INFO  web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2018.11.20 17:21:16 INFO  web[][o.s.s.s.RegisterPlugins] Register plugins
2018.11.20 17:21:16 INFO  web[][o.s.s.s.RegisterMetrics] Register metrics
2018.11.20 17:21:17 INFO  web[][o.s.s.r.RegisterRules] Register rules
2018.11.20 17:21:23 INFO  web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2018.11.20 17:21:23 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2018.11.20 17:21:23 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile cs/Sonar way
2018.11.20 17:21:23 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile css/Sonar way
2018.11.20 17:21:23 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile java/Sonar way
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile flex/Sonar way
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile xml/Sonar way
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile kotlin/Sonar way
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile go/Sonar way
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way Recommended
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/PSR-2
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Drupal
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Sonar way
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile py/Sonar way
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way
2018.11.20 17:21:24 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way recommended
2018.11.20 17:21:24 INFO  web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
2018.11.20 17:21:24 INFO  web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2018.11.20 17:21:24 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@653997c6 [pattern=UrlPattern{inclusions=[/api/issues/delete_comment.*, ...], exclusions=[/api/properties*, ...]}]
2018.11.20 17:21:24 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.DeprecatedPropertiesWsFilter@2731659 [pattern=UrlPattern{inclusions=[/api/properties/*], exclusions=[]}]
2018.11.20 17:21:24 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceReroutingFilter@3bc09983 [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, ...], exclusions=[]}]
2018.11.20 17:21:24 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@6af7fdd9 [pattern=UrlPattern{inclusions=[/sessions/init/*], exclusions=[]}]
2018.11.20 17:21:24 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@465a901c [pattern=UrlPattern{inclusions=[/oauth2/callback/*], exclusions=[]}]
2018.11.20 17:21:24 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@6e7b5240 [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=[]}]
2018.11.20 17:21:24 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@4dfa8c2c [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=[]}]
2018.11.20 17:21:24 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@795e7742 [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=[]}]
2018.11.20 17:21:24 INFO  web[][o.s.s.p.p.PlatformLevelStartup] Running Community Edition
2018.11.20 17:21:24 INFO  web[][o.s.s.p.Platform] WebServer is operational
2018.11.20 17:52:31 ERROR web[][o.s.s.p.w.RootFilter] Processing of request /js/app.6acfb91a.chunk.js failed
org.apache.catalina.connector.ClientAbortException: java.io.IOException: Connection reset by peer
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:356)
        at org.apache.catalina.connector.OutputBuffer.appendByteArray(OutputBuffer.java:785)
        at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:714)
        at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:391)
        at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:369)
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96)
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
        at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1007)
        at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:438)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
        at org.apache.catalina.servlets.DefaultServlet.service(DefaultServlet.java:418)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.sonar.server.platform.web.WebPagesFilter.doFilter(WebPagesFilter.java:78)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:128)
        at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:95)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:87)
        at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:71)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.sonar.server.platform.web.CacheControlFilter.doFilter(CacheControlFilter.java:76)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.sonar.server.platform.web.SecurityServletFilter.doHttpFilter(SecurityServletFilter.java:76)
        at org.sonar.server.platform.web.SecurityServletFilter.doFilter(SecurityServletFilter.java:48)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.sonar.server.platform.web.RedirectFilter.doFilter(RedirectFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.sonar.server.platform.web.requestid.RequestIdFilter.doFilter(RequestIdFilter.java:63)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.sonar.server.platform.web.RootFilter.doFilter(RootFilter.java:62)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at ch.qos.logback.access.tomcat.LogbackValve.invoke(LogbackValve.java:256)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:65)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
        at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:134)
        at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101)
        at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:157)
        at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1267)
        at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:670)
        at org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:450)
        at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:388)
        at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:644)
        at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:123)
        at org.apache.coyote.http11.filters.GzipOutputFilter$FakeOutputStream.write(GzipOutputFilter.java:188)
        at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)
        at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:211)
        at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:145)
        at org.apache.coyote.http11.filters.GzipOutputFilter.doWrite(GzipOutputFilter.java:89)
        at org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:235)
        at org.apache.coyote.Response.doWrite(Response.java:541)
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:351)
        ... 59 common frames omitted

(Nii Lartey) #10

I have the web.log file, it will be posted here soon.

Thank you.


(G Ann Campbell) #11

As an administrative note I want to add that @Glartey77 posted the web log twice (I’m assuming the second post was because the first didn’t seem to show up) and in an abundance of caution the system flagged those posts as spam and suppressed them from the thread. I’ve revealed (and formatted) one and left the other hidden because it’s a duplicate.

 
Ann


(Nii Lartey) #12

Hi Ann,

You are right, I did post the second one because the first one did not show up.

Thanks


(Colin Mueller) #13

Nii,

Thanks for the additional information.

I noticed that the restart was triggered from within the SonarQube console. Does it behave any differently if you restart the service from say, the command line?

You’ve also mentioned OpenShift—do you have a link to the repo you’re (presumably) pulling a container image from? To be quite honest I don’t have much (any) experience with OpenShift.

Colin


(Nii Lartey) #14

Colin,

So we have Sonarqube installed on both VM and Openshift. I was able to configure sonarqube on the VM successfully. It is the Openshift version of Sonarqube that I am having issue with the LDAP configuration.

I am also new to OpenShift and that is why I am reaching out here. One thing I realized was that, even if the application is running and I check the status from the terminal/command line of Openshift is says “not running”. So the only thing I can think of at this point is that the the sonar.sh script cannot determine the PID for sonarqube.

Thank you for your help.