Accenture / adop-docker-compose

Talk to us on Gitter: https://gitter.im/Accenture/ADOP
https://accenture.github.io/adop-docker-compose
Apache License 2.0
764 stars 574 forks source link

unable to start the platform #285

Open alokin2012 opened 6 years ago

alokin2012 commented 6 years ago

below is the details, All the image gets pulled and then its waiting for long time and never gets started . Please advise here. selenium-hub is up-to-date ldap-phpadmin is up-to-date nexus is up-to-date gerrit-mysql is up-to-date sensu-api is up-to-date registry is up-to-date

dsingh07 commented 6 years ago

HI @alokin2012 Can we get more logs from the containers to see what the error is on the Jenkins container? You need to add the --with-stdout flag to your ./adop init command. If you are using quickstart, you need to append to the end of this line: https://github.com/Accenture/adop-docker-compose/blob/master/quickstart.sh#L249

We can then do a docker logs jenkins to understand what the issue is.

alokin2012 commented 6 years ago

here is the Jenkins logs

$ docker logs jenkins Genarate JENKINS SSH KEY and add it to gerrit Setting up your default SCM provider - Gerrit... Generate Sonar authentication token Generating Sonar Authentication Token

dsingh07 commented 6 years ago

This looks like it's waiting for Sonar to start up so that it can integrate. Can we have the logs from Sonar?

alokin2012 commented 6 years ago

Here is the sonar logs

10:05:31.908 [main] WARN org.sonar.application.config.JdbcSettings - JDBC URL is recommended to have the property 'useConfigs=maxPerformance' 2018.08.09 10:05:34 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp 2018.08.09 10:05:35 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001 2018.08.09 10:05:37 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.08.09 10:05:38 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running 2018.08.09 10:05:52 INFO app[][o.e.p.PluginsService] no modules loaded 2018.08.09 10:05:53 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 2018.08.09 10:07:22 INFO app[][o.s.a.SchedulerImpl] Process[es] is up 2018.08.09 10:07:22 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/lib/jvm/java-8-openjdk-amd64/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/:./lib/server/:/opt/sonarqube/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process789589476636734554properties 2018.08.09 10:07:24 INFO web[][o.s.p.ProcessEntryPoint] Starting web 2018.08.09 10:07:26 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read 2018.08.09 10:07:30 INFO web[][o.e.p.PluginsService] no modules loaded 2018.08.09 10:07:30 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin] 2018.08.09 10:07:30 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin] 2018.08.09 10:07:30 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin] 2018.08.09 10:07:30 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 2018.08.09 10:07:37 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001] 2018.08.09 10:07:37 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.7.2.37468 / e3ae3ad6546d35ab9eb7c244352a58eea0a2f124 2018.08.09 10:07:37 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:mysql://sonar-mysql:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true 2018.08.09 10:07:42 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube 2018.08.09 10:07:42 INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled 2018.08.09 10:07:43 WARN web[][o.s.s.p.ServerPluginRepository] Plugin SCM Activity [scmactivity] is blacklisted and is being uninstalled. 2018.08.09 10:07:43 WARN web[][o.s.s.p.ServerPluginRepository] Plugin Issues Report [issuesreport] is blacklisted and is being uninstalled. 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Build Breaker / 1.1 / 86110f67a03bc54b348f8fbfd5890bffd91274fe 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin CSS / 2.1 / d747d4892114374746611bcd83d04d51d5f9a9a9 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Checkstyle / 4.8 / 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Findbugs / 3.7.0 / 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Flex / 2.3 / 79167f762219bea1fd181ff5ef6ca4b34abd1675 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Groovy / 1.4 / d291fa099e9c95d8aa2bf26e30102e4be72b3178 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin JavaScript / 2.16.0.2922 / 5a8bcaf41ffe1378b347e73a00e03466dfa69d79 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin LDAP / 1.4 / 18ba3a13ba4c6c07e6b0ad77940a52734159c27e 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Motion Chart / 1.7 / e9c4a5c95c75564b3c3b5a887b63ef50fc59a156 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin PMD / 2.4.1 / 2f30e0a7177041a4fb9f7ecefdb301e2bfc15903 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Pitest / 0.9 / 0c011514ce025e5524fdcaa0c917eacf9d40f312 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 6.5.0.3766 / 6011a1e9fb002edb044ae3092d92bcfb7d9d8a2d 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 5.1.1.13214 / 815a76171aeed933a909453f668a3202d592d9b4 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.11.0.2485 / 741861a29e5f9a26c6c99c06268facb6c4f4a882 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.8.0.1496 / 3fe3bc4d0273a5721ea2fb368dc45b1bb82fede3 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: Git / 1.3.0.869 / 4da53e3f9e55f4f2e5796625cb0c5768ed152079 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: SVN / 1.6.0.860 / 2111fdbd1dddda4ad6d4ed6486fd0b18c1010d3b 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.1.0.1079 / 042c9e65239a47d92d305f9767f730b3cc1e5ed3 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Tab Metrics / 1.4.1 / f575baba797d28be52a4fed5ee23159dd2e4a83a 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Timeline / 1.4 / 5dbb36d5db80475315f3f39ac3ec506ef92a9d6a 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Web / 2.5.0.476 / 636872f5d37fa7a440fe07d08d504e1a881225e5 2018.08.09 10:07:43 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin XML / 1.4.1 / d2c0388961fcbe78ac597ca3fb3e262d3e733988 2018.08.09 10:07:48 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@2a122a62 [pattern=UrlPattern{inclusions=[/api/system/migrate_db/, ...], exclusions=[/api/properties, ...]}] 2018.08.09 10:07:48 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000 172.18.0.9 - - [09/Aug/2018:10:07:49 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 404 62 "-" "curl/7.52.1" "-" 2018.08.09 10:07:54 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy) 2018.08.09 10:07:59 INFO web[][o.s.s.s.LogServerId] Server ID: AWUVBUxG9lB18Gf9HMui 2018.08.09 10:07:59 WARN web[][o.s.s.u.DeprecatedViews] Widget 'Project Motion Chart' (project_motion_chart) is ignored. See org.sonar.api.web.page.PageDefinition to define pages. 2018.08.09 10:07:59 WARN web[][o.s.s.u.DeprecatedViews] Widget 'Filter Motion Chart' (filter_motion_chart) is ignored. See org.sonar.api.web.page.PageDefinition to define pages. 2018.08.09 10:07:59 WARN web[][o.s.s.u.DeprecatedViews] Page 'Metrics' (metricsTab) is ignored. See org.sonar.api.web.page.PageDefinition to define pages. 2018.08.09 10:07:59 WARN web[][o.s.s.u.DeprecatedViews] Widget 'Advanced Timeline Chart' (advanced_timeline) is ignored. See org.sonar.api.web.page.PageDefinition to define pages. 2018.08.09 10:07:59 INFO web[][org.sonar.INFO] Security realm: LDAP 2018.08.09 10:07:59 INFO web[][o.s.p.l.LdapSettingsManager] User mapping: LdapUserMapping{baseDn=ou=people,dc=ldap,dc=example,dc=com, request=(&(objectClass=inetOrgPerson)(uid={0})), realNameAttribute=displayName, emailAttribute=mail} 2018.08.09 10:07:59 INFO web[][o.s.p.l.LdapSettingsManager] Group mapping: LdapGroupMapping{baseDn=ou=groups,dc=ldap,dc=example,dc=com, idAttribute=cn, requiredUserAttributes=[dn], request=(&(objectClass=groupOfUniqueNames)(uniqueMember={0}))} 2018.08.09 10:07:59 INFO web[][o.s.p.l.LdapContextFactory] Test LDAP connection on ldap://ldap:389: OK 2018.08.09 10:07:59 INFO web[][org.sonar.INFO] Security realm started 2018.08.09 10:08:00 INFO web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled. 2018.08.09 10:08:00 INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.) 2018.08.09 10:08:00 INFO web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index 2018.08.09 10:08:01 INFO web[][o.s.s.s.RegisterPlugins] Register plugins 2018.08.09 10:08:02 INFO web[][o.s.s.s.RegisterMetrics] Register metrics 2018.08.09 10:08:03 INFO web[][o.s.s.r.RegisterRules] Register rules 172.18.0.7 - - [09/Aug/2018:10:08:14 +0000] "GET /sonar/sessions/new HTTP/1.1" 200 - "-" "Sensu-HTTP-Check" "-" 172.18.0.9 - - [09/Aug/2018:10:08:19 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 404 62 "-" "curl/7.52.1" "-" 2018.08.09 10:08:26 INFO web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles 2018.08.09 10:08:28 INFO web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles 2018.08.09 10:08:28 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile cs/Sonar way 2018.08.09 10:08:30 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile css/SonarQube Way 2018.08.09 10:08:31 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile java/FindBugs 2018.08.09 10:08:35 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile java/FindBugs + FB-Contrib 2018.08.09 10:08:40 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile java/FindBugs Security Audit 2018.08.09 10:08:42 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile java/FindBugs Security Minimal 2018.08.09 10:08:44 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile java/Sonar way 2018.08.09 10:08:45 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile web/Sonar way 2018.08.09 10:08:45 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile flex/Sonar way 2018.08.09 10:08:46 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile xml/Sonar way 2018.08.09 10:08:46 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile jsp/FindBugs Security JSP 2018.08.09 10:08:46 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Sonar way 2018.08.09 10:08:46 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/PSR-2 2018.08.09 10:08:46 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Drupal 2018.08.09 10:08:46 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way 2018.08.09 10:08:47 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile py/Sonar way 2018.08.09 10:08:47 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile grvy/Sonar way 2018.08.09 10:08:48 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way 2018.08.09 10:08:48 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way recommended 2018.08.09 10:08:49 INFO web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates 2018.08.09 10:08:49 INFO web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys 2018.08.09 10:08:49 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@10d54ce [pattern=UrlPattern{inclusions=[/api/measures/component/, ...], exclusions=[/api/properties, ...]}] 2018.08.09 10:08:49 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.DeprecatedPropertiesWsFilter@3d063168 [pattern=UrlPattern{inclusions=[/api/properties/], exclusions=[]}] 2018.08.09 10:08:49 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceReroutingFilter@5b3960c1 [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, ...], exclusions=[]}] 2018.08.09 10:08:49 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@433649e1 [pattern=UrlPattern{inclusions=[/sessions/init/], exclusions=[]}] 2018.08.09 10:08:49 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@28b87de2 [pattern=UrlPattern{inclusions=[/oauth2/callback/], exclusions=[]}] 2018.08.09 10:08:49 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@4aa6ade0 [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=[]}] 2018.08.09 10:08:49 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@20669f7c [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=[]}] 2018.08.09 10:08:49 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@10207740 [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=[]}] 172.18.0.9 - - [09/Aug/2018:10:08:49 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "-" 172.18.0.9 - - [09/Aug/2018:10:08:49 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 401 48 "-" "curl/7.52.1" "-" 2018.08.09 10:08:49 INFO web[][o.s.s.p.Platform] WebServer is operational 2018.08.09 10:08:50 INFO app[][o.s.a.SchedulerImpl] Process[web] is up 2018.08.09 10:08:50 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='ce', ipcIndex=3, logFilenamePrefix=ce]] from [/opt/sonarqube]: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/:./lib/server/:./lib/ce/:/opt/sonarqube/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process975799257561569421properties 172.18.0.9 - - [09/Aug/2018:10:08:51 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAA" 172.18.0.9 - - [09/Aug/2018:10:08:51 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAB" 172.18.0.9 - - [09/Aug/2018:10:08:52 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAC" 172.18.0.9 - - [09/Aug/2018:10:08:53 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAD" 172.18.0.9 - - [09/Aug/2018:10:08:54 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAE" 172.18.0.9 - - [09/Aug/2018:10:08:54 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAF" 2018.08.09 10:08:55 INFO ce[][o.s.p.ProcessEntryPoint] Starting ce 2018.08.09 10:08:55 INFO ce[][o.s.ce.app.CeServer] Compute Engine starting up... 172.18.0.9 - - [09/Aug/2018:10:08:56 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAG" 172.18.0.9 - - [09/Aug/2018:10:08:56 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAH" 172.18.0.9 - - [09/Aug/2018:10:08:58 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAI" 172.18.0.9 - - [09/Aug/2018:10:08:59 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAJ" 2018.08.09 10:08:59 INFO ce[][o.e.p.PluginsService] no modules loaded 2018.08.09 10:08:59 INFO ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin] 2018.08.09 10:08:59 INFO ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin] 2018.08.09 10:08:59 INFO ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin] 2018.08.09 10:08:59 INFO ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 172.18.0.9 - - [09/Aug/2018:10:09:03 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAK" 172.18.0.9 - - [09/Aug/2018:10:09:03 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAL" 2018.08.09 10:09:07 INFO ce[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001] 2018.08.09 10:09:07 INFO ce[][o.sonar.db.Database] Create JDBC data source for jdbc:mysql://sonar-mysql:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true 172.18.0.19 - - [09/Aug/2018:10:09:10 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAM" 172.18.0.19 - - [09/Aug/2018:10:09:11 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAN" 172.18.0.7 - - [09/Aug/2018:10:09:14 +0000] "GET /sonar/sessions/new HTTP/1.1" 200 - "-" "Sensu-HTTP-Check" "AWUeKQiEAcu0IK1PAAAO" 2018.08.09 10:09:15 INFO ce[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube 2018.08.09 10:09:15 INFO ce[][o.s.c.c.CePluginRepository] Load plugins 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin CSS [css] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarPython [python] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin PMD [pmd] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Motion Chart [motionchart] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarQube :: Plugins :: SCM :: SVN [scmsvn] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin JavaScript [javascript] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Tab Metrics [tabmetrics] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Findbugs [findbugs] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarC# [csharp] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Groovy [groovy] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarJava [java] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin LDAP [ldap] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Web [web] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin XML [xml] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Flex [flex] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarQube :: Plugins :: SCM :: Git [scmgit] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Pitest [pitest] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Timeline [timeline] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarPHP [php] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarTS [typescript] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Checkstyle [checkstyle] 2018.08.09 10:09:19 INFO ce[][o.s.c.c.CePluginRepository] Loaded plugin Build Breaker [buildbreaker] 2018.08.09 10:09:23 INFO ce[][o.s.c.q.PurgeCeActivities] Delete the Compute Engine tasks created before Sat Feb 10 10:09:23 UTC 2018 2018.08.09 10:09:23 INFO ce[][o.s.ce.app.CeServer] Compute Engine is operational 2018.08.09 10:09:24 INFO app[][o.s.a.SchedulerImpl] Process[ce] is up 2018.08.09 10:09:24 INFO app[][o.s.a.SchedulerImpl] SonarQube is up 172.18.0.9 - - [09/Aug/2018:10:09:25 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAP" 172.18.0.9 - - [09/Aug/2018:10:09:25 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAQ" 172.18.0.9 - - [09/Aug/2018:10:09:51 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAR" 172.18.0.9 - - [09/Aug/2018:10:09:51 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAS" 172.18.0.7 - - [09/Aug/2018:10:10:14 +0000] "GET /sonar/sessions/new HTTP/1.1" 200 - "-" "Sensu-HTTP-Check" "AWUeKQiEAcu0IK1PAAAT" 172.18.0.9 - - [09/Aug/2018:10:10:43 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAU" 172.18.0.9 - - [09/Aug/2018:10:10:43 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAV" 172.18.0.7 - - [09/Aug/2018:10:11:13 +0000] "GET /sonar/sessions/new HTTP/1.1" 200 - "-" "Sensu-HTTP-Check" "AWUeKQiEAcu0IK1PAAAW" 172.18.0.9 - - [09/Aug/2018:10:11:44 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAX" 172.18.0.9 - - [09/Aug/2018:10:11:44 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAY" 172.18.0.7 - - [09/Aug/2018:10:12:13 +0000] "GET /sonar/sessions/new HTTP/1.1" 200 - "-" "Sensu-HTTP-Check" "AWUeKQiEAcu0IK1PAAAZ" 172.18.0.9 - - [09/Aug/2018:10:12:44 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAa" 172.18.0.9 - - [09/Aug/2018:10:12:44 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAb" 172.18.0.7 - - [09/Aug/2018:10:13:13 +0000] "GET /sonar/sessions/new HTTP/1.1" 200 - "-" "Sensu-HTTP-Check" "AWUeKQiEAcu0IK1PAAAc" 172.18.0.9 - - [09/Aug/2018:10:13:45 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAd" 172.18.0.9 - - [09/Aug/2018:10:13:45 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAe" 172.18.0.7 - - [09/Aug/2018:10:14:13 +0000] "GET /sonar/sessions/new HTTP/1.1" 200 - "-" "Sensu-HTTP-Check" "AWUeKQiEAcu0IK1PAAAf" 172.18.0.9 - - [09/Aug/2018:10:14:45 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAg" 172.18.0.9 - - [09/Aug/2018:10:14:45 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAh" 172.18.0.7 - - [09/Aug/2018:10:15:13 +0000] "GET /sonar/sessions/new HTTP/1.1" 200 - "-" "Sensu-HTTP-Check" "AWUeKQiEAcu0IK1PAAAi" 172.18.0.9 - - [09/Aug/2018:10:15:46 +0000] "POST /sonar/api/user_tokens/generate HTTP/1.1" 400 54 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAj" 172.18.0.9 - - [09/Aug/2018:10:15:46 +0000] "POST /sonar/api/user_tokens/generate?name=jenkins HTTP/1.1" 400 90 "-" "curl/7.52.1" "AWUeKQiEAcu0IK1PAAAk" 172.18.0.7 - - [09/Aug/2018:10:16:14 +0000] "GET /sonar/sessions/new HTTP/1.1" 200 - "-" "Sensu-HTTP-Check" "AWUeKQiEAcu0IK1PAAAl"

RobeDevOps commented 6 years ago

Same issues from my side

| 2018.08.13 15:27:23 INFO  web[][org.sonar.INFO] Security realm: LDAP
sonar                    | 2018.08.13 15:27:23 INFO  web[][o.s.p.l.LdapSettingsManager] User mapping: LdapUserMapping{baseDn=ou=people,dc=ldap,dc=example,dc=com, request=(&(objectClass=inetOrgPerson)(uid={0})), realNameAttribute=displayName, emailAttribute=mail}
sonar                    | 2018.08.13 15:27:23 INFO  web[][o.s.p.l.LdapSettingsManager] Group mapping: LdapGroupMapping{baseDn=ou=groups,dc=ldap,dc=example,dc=com, idAttribute=cn, requiredUserAttributes=[dn], request=(&(objectClass=groupOfUniqueNames)(uniqueMember={0}))}
sonar                    | 2018.08.13 15:27:23 INFO  web[][o.s.p.l.LdapContextFactory] Test LDAP connection: FAIL
sonar                    | 2018.08.13 15:27:23 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
sonar                    | org.sonar.api.utils.SonarException: Unable to open LDAP connection
sonar                    |  at org.sonar.plugins.ldap.LdapContextFactory.testConnection(LdapContextFactory.java:148)
sonar                    |  at org.sonar.plugins.ldap.LdapRealm.init(LdapRealm.java:65)
sonar                    |  at org.sonar.server.user.SecurityRealmFactory.start(SecurityRealmFactory.java:84)
sonar                    |  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sonar                    |  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sonar                    |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
sonar                    |  at java.lang.reflect.Method.invoke(Method.java:498)
sonar                    |  at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
sonar                    |  at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
sonar                    |  at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
sonar                    |  at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
sonar                    |  at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
sonar                    |  at org.picocontainer.behaviors.Stored.start(Stored.java:110)
sonar                    |  at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
sonar                    |  at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
sonar                    |  at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
sonar                    |  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:134)
sonar                    |  at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90)
sonar                    |  at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:584)
sonar                    |  at org.sonar.server.platform.Platform.start(Platform.java:211)
sonar                    |  at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:185)
sonar                    |  at org.sonar.server.platform.Platform.access$500(Platform.java:46)
sonar                    |  at org.sonar.server.platform.Platform$1.lambda$doRun$0(Platform.java:119)
sonar                    |  at org.sonar.server.platform.Platform$AutoStarterRunnable.runIfNotAborted(Platform.java:371)
sonar                    |  at org.sonar.server.platform.Platform$1.doRun(Platform.java:119)
sonar                    |  at org.sonar.server.platform.Platform$AutoStarterRunnable.run(Platform.java:355)
sonar                    |  at java.lang.Thread.run(Thread.java:748)
sonar                    | Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
sonar                    |  at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3154)
sonar                    |  at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3100)
sonar                    |  at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2886)
sonar                    |  at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2800)
sonar                    |  at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)
sonar                    |  at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)
sonar                    |  at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)
sonar                    |  at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)
sonar                    |  at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)
sonar                    |  at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
sonar                    |  at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
sonar                    |  at javax.naming.InitialContext.init(InitialContext.java:244)
sonar                    |  at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)
sonar                    |  at org.sonar.plugins.ldap.LdapContextFactory.createInitialDirContext(LdapContextFactory.java:97)
sonar                    |  at org.sonar.plugins.ldap.LdapContextFactory.createBindContext(LdapContextFactory.java:85)
sonar                    |  at org.sonar.plugins.ldap.LdapContextFactory.testConnection(LdapContextFactory.java:144)
sonar                    |  ... 26 common frames omitted
sonar                    | 2018.08.13 15:27:23 INFO  web[][o.s.p.StopWatcher] Stopping process
sonar                    | 2018.08.13 15:27:26 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
sonar                    | 2018.08.13 15:27:26 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
sonar                    | 2018.08.13 15:27:26 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
sonar                    | 2018.08.13 15:27:26 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

Sonar is unable to connect with LDAP, and LDAP is reporting wrong credentials??

ldap                     | Info: Container already configured, therefore ignoring SLAPD_xxx environment variables
ldap                     | Start polling for LDAP autoconfiguration [HOSTNAME: 74795f401c08, LDAP_USER_DN cn=admin,dc=ldap,dc=example,dc=com, LDAP_BASE_DN: dc=ldap,dc=example,dc=com, LDAP_LDIFF: /tmp/structure.ldif]
ldap                     | 5b71a2d1 @(#) $OpenLDAP: slapd  (Jan 16 2016 23:00:08) $
ldap                     |  root@chimera:/tmp/buildd/openldap-2.4.40+dfsg/debian/build/servers/slapd
ldap                     | 
ldap                     | ********** Testing LDAP Connection
ldap                     | 5b71a2d1 slapd starting
ldap                     | ldap_bind: Invalid credentials (49)
ldap                     | 
ldap                     | ******************** LDAP unavailable, sleeping for 5
ldap                     | ldap_bind: Invalid credentials (49)
ldap                     | 
ldap                     | ******************** LDAP unavailable, sleeping for 5
ldap                     | ldap_bind: Invalid credentials (49)
ldap                     | 
ldap                     | ******************** LDAP unavailable, sleeping for 5
ldap                     | ldap_bind: Invalid credentials (49)
RobeDevOps commented 6 years ago

I was working with this ADOP version on Friday and I was able to see the platform ??

RobeDevOps commented 6 years ago

ok, I was able to recreate the issue. When you start adop the first time ./adop compose init --with-stdout

Then I recreate it again

./adop compose init --with-stdout

after this all the issues were appearing, jenkins unavailable, waiting on sonar and sonar getting wrong token, ldap throwing error with message "invalid credentials"

dsingh07 commented 6 years ago

Thanks @RobeDevOps and @alokin2012 for providing further details. I will try and recreate the issue myself in order to investigate the root cause. I have a feeling the error occurs when you restart your ADOP instance on an existing dataset so when Jenkins tries to communicate with Sonar in order to generate an API token, it fails as there is one that already exists there: https://github.com/Accenture/adop-jenkins/blob/master/resources/scripts/generate_sonar_auth_token.sh Hence if that script doesn't execute successfully, Jenkins won't start and hence the proxy won't be accessible.