I have one question, I am just started with setting up Hygieia, While setting up for Sonar Collector, I am little confused about the property file , my questions are below –
While running the collector I am getting the below error, any idea why?
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2020-09-24 12:43:50,779 [main] ERROR o.s.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sonarCollectorTask': Invocation of init method failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1622)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at
Hi All, I am trying to install Hygieia Dashboard locally using docker-compose. Running into setting up Jenkins Build Collector. Appears it tries to look for mongo on localhost
instead of host and port specified through environment variable. Has anyone run into this scenario? Would appreciate help.
Docker Log with default config generated through properties-builder.sh:
MONGODB_HOST: 172.21.0.2
MONGODB_PORT: 27017
....
....
2020-10-02 15:50:30,065 [localhost-startStop-1] INFO c.c.dashboard.config.MongoConfig - Connecting to Mongo: Mongo{options=MongoClientOptions{description='null', applicationName='null', compressors='[]', readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, fsync=null, journal=null, retryWrites=false, readConcern=com.mongodb.ReadConcern@0, codecRegistry=org.bson.codecs.configuration.ProvidersCodecRegistry@b62ad2, serverSelector=null, clusterListeners=[], commandListeners=[], minConnectionsPerHost=0, maxConnectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, serverSelectionTimeout=30000, maxWaitTime=120000, maxConnectionIdleTime=0, maxConnectionLifeTime=0, connectTimeout=10000, socketTimeout=0, socketKeepAlive=true, sslEnabled=false, sslInvalidHostNamesAllowed=false, sslContext=null, alwaysUseMBeans=false, heartbeatFrequency=10000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, localThreshold=15, requiredReplicaSetName='null', dbDecoderFactory=com.mongodb.DefaultDBDecoder$1@15d02638, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@4cb45d77, socketFactory=null, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=[]}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, keepAlive=true, receiveBufferSize=0, sendBufferSize=0}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverListeners='[]', serverMonitorListeners='[]'}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=20000, readTimeoutMS=20000, keepAlive=true, receiveBufferSize=0, sendBufferSize=0}}}
2020-10-02 15:50:30,078 [cluster-ClusterId{value='5f774c4524e499001abd41d2', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster - Exception in monitor thread while connecting to server localhost:27017
2020-10-15 20:42:30,958 [main] INFO com.capitalone.dashboard.Application - Started Application in 28.276 seconds (JVM running for 30.036)
2020-10-15 20:43:56,059 [http-nio-8080-exec-1] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring FrameworkServlet 'dispatcherServlet'
2020-10-15 20:43:56,061 [http-nio-8080-exec-1] INFO o.s.web.servlet.DispatcherServlet - FrameworkServlet 'dispatcherServlet': initialization started
2020-10-15 20:43:56,143 [http-nio-8080-exec-1] INFO o.s.web.servlet.DispatcherServlet - FrameworkServlet 'dispatcherServlet': initialization completed in 77 ms
2020-10-15 20:43:56,342 [http-nio-8080-exec-1] INFO c.c.d.a.t.JwtAuthenticationFilter - requester=READ_ONLY, timeTaken=128, endPoint=/api/dashboard/pagesize, reqMethod=GET, status=404, clientIp=127.0.0.1
2020-10-15 20:44:09,157 [http-nio-8080-exec-3] INFO c.c.d.a.t.JwtAuthenticationFilter - requester=READ_ONLY, timeTaken=54, endPoint=/api/appinfo, reqMethod=GET, status=404, clientIp=127.0.0.1
2020-10-15 20:44:09,181 [http-nio-8080-exec-2] INFO c.c.d.a.t.JwtAuthenticationFilter - requester=READ_ONLY, timeTaken=78, endPoint=/api/authenticationProviders, reqMethod=GET, status=404, clientIp=127.0.0.1
WHAT COULD HAVE WENT WRONG! I did not change anything before and after my system restart in any properties files. This is my application.properties
dbname=dashboarddb
dbusername=dashboarduser
dbpassword=dbpassword
dbhost=localhost
dbport=27017
dbreplicaset=false
server.contextPath=/api
server.port=8080
logRequest=false
logSplunkRequest=false
corsEnabled=false
version.number=0.0.1
pageSize=10
I have already tried building the code again with latest code also. Still getting the same error. Please help urgently, I have cancelled demo because of this.
mongo
, but says command not found.