-
Type: Bug
-
Resolution: Incomplete
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: None
-
Environment:ubuntu-16
2018-05-16 06:06:33,088 INFO c.c.dashboard.auth.AuthProperties - No JWT secret found in configuration, generating random secret by default.
2018-05-16 06:06:33,091 INFO c.c.dashboard.auth.AuthProperties - No JWT expiration time found in configuration, setting to one day.
2018-05-16 06:06:33,297 INFO c.c.dashboard.config.MongoConfig - ReplicaSetfalse
2018-05-16 06:06:33,374 INFO c.c.dashboard.config.MongoConfig - Initializing Mongo Client server at: localhost:27017
2018-05-16 06:06:33,406 INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2018-05-16 06:06:33,438 INFO c.c.dashboard.config.MongoConfig - Connecting to Mongo: Mongo{options=MongoClientOptions{description='null', readPreference=primary, writeConcern=WriteConcern{w=1, wtimeout=0, fsync=false, j=false, codecRegistry=org.bson.codecs.configuration.ProvidersCodecRegistry@c7a372d9, minConnectionsPerHost=0, maxConnectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, serverSelectionTimeout=30000, maxWaitTime=120000, maxConnectionIdleTime=60000, maxConnectionLifeTime=0, connectTimeout=10000, socketTimeout=0, socketKeepAlive=false, sslEnabled=false, sslInvalidHostNamesAllowed=false, alwaysUseMBeans=false, heartbeatFrequency=10000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, localThreshold=15, requiredReplicaSetName='null', dbDecoderFactory=com.mongodb.DefaultDBDecoder$1@272d94a0, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@512a2fb4, socketFactory=javax.net.DefaultSocketFactory@6c873518, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings
, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=20000, readTimeoutMS=20000, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}}}
2018-05-16 06:06:34,517 INFO org.mongodb.driver.cluster - Exception in monitor thread while connecting to server localhost:27017
com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='dashboarduser', source='dashboarddb', password=<hidden>, mechanismProperties={}}
at com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:61) ~[mongo-java-driver-3.0.2.jar!/:na]
at com.mongodb.connection.InternalStreamConnectionInitializer.authenticateAll(InternalStreamConnectionInitializer.java:99) ~[mongo-java-driver-3.0.2.jar!/:na]
at com.mongodb.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:44) ~[mongo-java-driver-3.0.2.jar!/:na]
at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115) ~[mongo-java-driver-3.0.2.jar!/:na]
at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:127) ~[mongo-java-driver-3.0.2.jar!/:na]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]
Caused by: com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "Authentication failed.", "code" : 18, "codeName" : "AuthenticationFailed" }
at com.mongodb.connection.CommandHelper.createCommandFailureException(CommandHelper.java:168) ~[mongo-java-driver-3.0.2.jar!/:na]
at com.mongodb.connection.CommandHelper.receiveCommandResult(CommandHelper.java:123) ~[mongo-java-driver-3.0.2.jar!/:na]
at com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32) ~[mongo-java-driver-3.0.2.jar!/:na]
at com.mongodb.connection.SaslAuthenticator.sendSaslContinue(SaslAuthenticator.java:99) ~[mongo-java-driver-3.0.2.jar!/:na]
at com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:58) ~[mongo-java-driver-3.0.2.jar!/:na]
... 5 common frames omitted
2018-05-16 06:06:34,990 INFO org.mongodb.driver.cluster - No server chosen by ReadPreferenceServerSelector{readPreference=primary} from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, all=[ServerDescription{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='dashboarduser', source='dashboarddb', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server localhost:27017. The full response is
}}]}. Waiting for 30000 ms before timing out
2018-05-16 06:07:04,991 ERROR o.s.b.c.e.tomcat.TomcatStarter - Error starting Tomcat context: org.springframework.beans.factory.BeanCreationException
2018-05-16 06:07:05,062 WARN o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
2018-05-16 06:07:05,070 INFO o.s.b.l.ClasspathLoggingApplicationListener - Application failed to start with classpath: [jar:file:/usr/Hygieia/api/target/api.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/core-2.0.5-SNAPSHOT.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-boot-1.3.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/commons-codec-1.9.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/commons-lang3-3.6.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/commons-collections4-4.1.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-test-4.2.5.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-data-mongodb-1.8.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-expression-4.2.5.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-data-commons-1.11.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/mongo-java-driver-3.0.2.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jcl-over-slf4j-1.7.13.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-cloud-starter-config-1.3.1.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-cloud-starter-1.2.2.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-cloud-context-1.2.2.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-security-crypto-4.0.3.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-cloud-commons-1.2.2.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-security-rsa-1.0.3.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/bcpkix-jdk15on-1.55.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/bcprov-jdk15on-1.55.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-cloud-config-client-1.3.1.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/querydsl-jpa-3.6.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/querydsl-core-3.6.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jsr305-1.3.9.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/mysema-commons-lang-0.2.4.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/bridge-method-annotation-1.13.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/querydsl-apt-3.6.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/querydsl-codegen-3.6.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/codegen-0.6.5.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/ecj-4.3.1.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/javax.inject-1.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/querydsl-mongodb-3.6.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/json-simple-1.1.1.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jasypt-spring-boot-starter-1.9.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jasypt-spring-boot-1.9.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jasypt-1.9.2.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/fongo-2.0.3.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/js-1.7R2.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jts-1.13.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/geojson-jackson-1.2.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/mockito-all-1.10.19.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-boot-starter-web-1.3.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-boot-starter-1.3.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-boot-autoconfigure-1.3.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-boot-starter-logging-1.3.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jul-to-slf4j-1.7.13.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/log4j-over-slf4j-1.7.13.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/snakeyaml-1.16.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-boot-starter-tomcat-1.3.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/tomcat-embed-core-8.0.28.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/tomcat-embed-el-8.0.28.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/tomcat-embed-logging-juli-8.0.28.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/tomcat-embed-websocket-8.0.28.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-boot-starter-validation-1.3.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-web-4.2.5.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-webmvc-4.2.5.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-boot-starter-security-1.3.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-aop-4.2.5.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/aopalliance-1.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-security-config-4.0.3.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-security-web-4.0.3.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-security-ldap-4.0.3.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-ldap-core-2.0.2.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-security-core-4.0.3.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-beans-4.2.5.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-context-4.2.5.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-core-4.2.5.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-tx-4.2.5.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-boot-starter-aop-1.3.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/aspectjweaver-1.8.7.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/validation-api-1.1.0.Final.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/hibernate-validator-5.2.2.Final.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jboss-logging-3.3.0.Final.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/javax.el-api-3.0.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jjwt-0.6.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jackson-databind-2.5.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jackson-annotations-2.5.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jackson-core-2.5.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jackson-core-asl-1.9.13.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/jackson-mapper-asl-1.9.13.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/logback-classic-1.1.3.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/logback-core-1.1.3.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/slf4j-api-1.7.13.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/commons-lang-2.6.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/guava-18.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/joda-time-2.7.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/springfox-swagger2-2.4.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/swagger-annotations-1.5.6.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/swagger-models-1.5.6.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/springfox-spi-2.4.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/springfox-core-2.4.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/springfox-schema-2.4.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/springfox-swagger-common-2.4.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/springfox-spring-web-2.4.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-plugin-core-1.2.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/spring-plugin-metadata-1.2.0.RELEASE.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/springfox-swagger-ui-2.4.0.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/classmate-1.3.1.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/joda-convert-1.8.1.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/commons-io-2.1.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/commons-beanutils-1.9.2.jar!/, jar:file:/usr/Hygieia/api/target/api.jar!/lib/commons-collections-3.2.1.jar!/]
2018-05-16 06:07:05,087 ERROR o.s.boot.SpringApplication - Application startup failed
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133) ~[spring-boot-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]