hygieia / hygieia-build-jenkins-collector

Hygieia Collector to extract data from Jenkins and feed into Hygieia

Home Page:https://github.com/Hygieia/Hygieia/blob/gh-pages/pages/hygieia/collectors/build/jenkins.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Index unique_mdata_key_type already exists - causing collector not to work

prabhu87 opened this issue · comments

Hi Friends,

I have installed api,gulp and its working fine and i can able to access weburl and login to hygieia dashboard.

When am trying to install hygieia-jenkins-build and run below api command, it is not exposing port 8080.

java -jar /opt/hygieia/hygieia-build-jenkins-collector/target/jenkins-build-collector-3.1.1-SNAPSHOT.jar --spring.config.name=api --spring.config.location=/opt/hygieia/hygieia-build-jenkins-collector/application.properties

Am using latest hygieia version.

Below is my API properties and API logs, Could you please help me where is the issue.

API Properties,

auth.expirationTime=1200000

Database Name

dbname=dashboarddb

Database HostName - default is localhost

dbhost=localhost

Database Port - default is 27017

dbport=27017

MongoDB replicaset

dbreplicaset=false
#dbhostport=[host1:port1,host2:port2,host3:port3]

Database Username - default is blank

dbusername=dashboarduser

Database Password - default is blank

dbpassword=dbpassword

Collector schedule (required)

jenkins.cron=0 0/5 * * * *

The page size

jenkins.pageSize=1000

The folder depth - default is 10

jenkins.folderDepth=10

Jenkins server (required) - Can provide multiple

jenkins.servers[0]=http://192.168.56.101:8080

If using username/token for API authentication

(required for Cloudbees Jenkins Ops Center) For example,

jenkins.servers[1]=http://admin:ccss121@192.168.56.101:8080

Another option: If using same username/password Jenkins auth,

set username/apiKey to use HTTP Basic Auth (blank=no auth)

jenkins.usernames[0]=admin
jenkins.apiKeys[0]=11e275754565f45549201d61afbe51f36c

Determines if build console log is collected - defaults to false

jenkins.saveLog=true

Search criteria enabled via properties (max search criteria = 2)

jenkins.searchFields[0]= options.jobName
jenkins.searchFields[1]= niceName

Timeout values

jenkins.connectTimeout=20000
jenkins.readTimeout=20000

#server details
server.port=8080
server.contextPath=/api

Gulp to API connectivity logs,

[Proxy] { Error: connect ECONNREFUSED 127.0.0.1:8080
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8080 }


API Logs,

root@prabhu-VirtualBox:/opt/hygieia# java -jar /opt/hygieia/hygieia-build-jenkins-collector/target/jenkins-build-collector-3.1.1-SNAPSHOT.jar --spring.config.name=api --spring.config.location=/opt/hygieia/hygieia-build-jenkins-collector/application.properties
12:13:58,910 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
12:13:58,913 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
12:13:58,913 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/opt/hygieia/hygieia-build-jenkins-collector/target/jenkins-build-collector-3.1.1-SNAPSHOT.jar!/logback.xml]
12:13:58,916 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
12:13:58,917 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/opt/hygieia/hygieia-build-jenkins-collector/target/jenkins-build-collector-3.1.1-SNAPSHOT.jar!/logback.xml]
12:13:58,917 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/opt/hygieia/hygieia-build-jenkins-collector/target/jenkins-build-collector-3.1.1-SNAPSHOT.jar!/lib/core-3.1.2.jar!/logback.xml]
12:13:58,997 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@62450023 - URL [jar:file:/opt/hygieia/hygieia-build-jenkins-collector/target/jenkins-build-collector-3.1.1-SNAPSHOT.jar!/logback.xml] is not of type file
12:13:59,147 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
12:13:59,204 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
12:13:59,241 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
12:13:59,329 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
12:13:59,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
12:13:59,527 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ROLLING]
12:13:59,644 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
12:13:59,650 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logs/buildcollector-%d{yyyy-MM-dd}.%i.log for the active file
12:13:59,654 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7ad8a5a - The date pattern is 'yyyy-MM-dd' from file name pattern 'logs/buildcollector-%d{yyyy-MM-dd}.%i.log'.
12:13:59,654 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7ad8a5a - Roll-over at midnight.
12:13:59,662 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7ad8a5a - Setting initial period to Thu Sep 12 12:13:59 IST 2019
12:13:59,669 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
12:13:59,669 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - Active log file name: logs/buildcollector-2019-09-12.0.log
12:13:59,670 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - File property is set to [null]
12:13:59,671 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
12:13:59,671 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ROLLING] to Logger[ROOT]
12:13:59,673 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
12:13:59,673 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
12:13:59,674 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@4f29a0f2 - Registering current configuration as safe fallback point

2019-09-12 12:14:01,507 [main] INFO o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@716ca842: startup date [Thu Sep 12 12:14:01 IST 2019]; root of context hierarchy
2019-09-12 12:14:02,043 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-09-12 12:14:02,254 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'configurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$b80cf159] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)


| | | | () () | ___ \ () | | | / __ \ | | | | |
| |
| |_ _ __ _ _ ___ _ __ _ | |/ / _ | | | || / / ___ | | | ___ | | ___ _ __
| _ | | | |/ | |/ _ \ |/ _ |
| ___ \ | | | | |/ ` || | / _ | | |/ _ / __| / _ | '|
| | | | |
| | (
| | | __/ | (
| | | |/ / || | | | (| | | _/\ () | | | / (| || () | |
_| |/_, |_, ||_||_,| _/ _,|||_,| _/_/|||_|_|___/||
/ | / |
|
/ |
/

2019-09-12 12:14:03,196 [main] INFO o.s.c.c.c.ConfigServicePropertySourceLocator - Fetching config from server at: http://localhost:8888
2019-09-12 12:14:03,426 [main] WARN o.s.c.c.c.ConfigServicePropertySourceLocator - Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)
2019-09-12 12:14:03,434 [main] INFO com.capitalone.dashboard.Application - No profiles are active
2019-09-12 12:14:03,477 [main] INFO o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@4979368e: startup date [Thu Sep 12 12:14:03 IST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@716ca842
2019-09-12 12:14:06,890 [main] INFO o.s.cloud.context.scope.GenericScope - BeanFactory id=ec50a4cd-f106-3bb1-bc94-346c7cabb081
2019-09-12 12:14:06,909 [main] INFO c.u.j.EnableEncryptablePropertySourcesPostProcessor - Post-processing PropertySource instances
2019-09-12 12:14:06,938 [main] INFO c.u.j.c.StringEncryptorConfiguration - String Encryptor custom Bean not found with name 'jasyptStringEncryptor'. Initializing String Encryptor based on properties with name 'jasyptStringEncryptor'
2019-09-12 12:14:06,957 [main] INFO c.u.j.EnableEncryptablePropertySourcesPostProcessor - Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper
2019-09-12 12:14:06,960 [main] INFO c.u.j.EnableEncryptablePropertySourcesPostProcessor - Converting PropertySource systemProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
2019-09-12 12:14:06,961 [main] INFO c.u.j.EnableEncryptablePropertySourcesPostProcessor - Converting PropertySource systemEnvironment [org.springframework.core.env.SystemEnvironmentPropertySource] to EncryptableMapPropertySourceWrapper
2019-09-12 12:14:06,961 [main] INFO c.u.j.EnableEncryptablePropertySourcesPostProcessor - Converting PropertySource random [org.springframework.boot.context.config.RandomValuePropertySource] to EncryptablePropertySourceWrapper
2019-09-12 12:14:06,962 [main] INFO c.u.j.EnableEncryptablePropertySourcesPostProcessor - Converting PropertySource applicationConfig: [file:/opt/hygieia/hygieia-build-jenkins-collector/application.properties] [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper
2019-09-12 12:14:06,962 [main] INFO c.u.j.EnableEncryptablePropertySourcesPostProcessor - Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
2019-09-12 12:14:06,964 [main] INFO c.u.j.EnableEncryptablePropertySourcesPostProcessor - Converting PropertySource defaultProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
2019-09-12 12:14:06,988 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-09-12 12:14:07,089 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$b80cf159] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-09-12 12:14:08,024 [main] INFO o.s.s.c.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler'
2019-09-12 12:14:08,176 [main] INFO c.c.dashboard.config.MongoConfig - ReplicaSetfalse
2019-09-12 12:14:08,323 [main] INFO c.c.dashboard.config.MongoConfig - Initializing Mongo Client server at: localhost:27017
2019-09-12 12:14:08,386 [main] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2019-09-12 12:14:08,548 [main] 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@1036f001, 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@715ceb94, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@1f7155c, socketFactory=javax.net.DefaultSocketFactory@4a7a771d, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=60000, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000}, 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}}}
2019-09-12 12:14:09,045 [cluster-ClusterId{value='5d79e938f1e73d7297e9d90f', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:1, serverValue:36}] to localhost:27017
2019-09-12 12:14:09,047 [cluster-ClusterId{value='5d79e938f1e73d7297e9d90f', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 6, 3]}, minWireVersion=0, maxWireVersion=6, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=1345453}
2019-09-12 12:14:09,814 [main] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:2, serverValue:37}] to localhost:27017
2019-09-12 12:14:10,983 [main] INFO c.c.dashboard.config.MongoConfig - ReplicaSetfalse
2019-09-12 12:14:10,990 [main] INFO c.c.dashboard.config.MongoConfig - Initializing Mongo Client server at: localhost:27017
2019-09-12 12:14:10,991 [main] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2019-09-12 12:14:11,005 [main] 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@1036f001, 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@715ceb94, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@1f7155c, socketFactory=javax.net.DefaultSocketFactory@4a7a771d, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=60000, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000}, 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}}}
2019-09-12 12:14:11,042 [main] INFO c.c.dashboard.config.MongoConfig - ReplicaSetfalse
2019-09-12 12:14:11,044 [main] INFO c.c.dashboard.config.MongoConfig - Initializing Mongo Client server at: localhost:27017
2019-09-12 12:14:11,048 [main] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2019-09-12 12:14:11,079 [main] 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@1036f001, 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@715ceb94, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@1f7155c, socketFactory=javax.net.DefaultSocketFactory@4a7a771d, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=60000, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000}, 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}}}
2019-09-12 12:14:11,314 [cluster-ClusterId{value='5d79e93af1e73d7297e9d910', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:3, serverValue:38}] to localhost:27017
2019-09-12 12:14:11,317 [cluster-ClusterId{value='5d79e93af1e73d7297e9d910', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 6, 3]}, minWireVersion=0, maxWireVersion=6, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=2358648}
2019-09-12 12:14:11,354 [cluster-ClusterId{value='5d79e93bf1e73d7297e9d911', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:4, serverValue:39}] to localhost:27017
2019-09-12 12:14:11,355 [cluster-ClusterId{value='5d79e93bf1e73d7297e9d911', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 6, 3]}, minWireVersion=0, maxWireVersion=6, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=466313}
2019-09-12 12:14:12,651 [main] INFO c.c.dashboard.config.MongoConfig - ReplicaSetfalse
2019-09-12 12:14:12,653 [main] INFO c.c.dashboard.config.MongoConfig - Initializing Mongo Client server at: localhost:27017
2019-09-12 12:14:12,662 [main] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2019-09-12 12:14:12,668 [main] 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@1036f001, 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@715ceb94, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@1f7155c, socketFactory=javax.net.DefaultSocketFactory@4a7a771d, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=60000, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000}, 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}}}
2019-09-12 12:14:12,860 [cluster-ClusterId{value='5d79e93cf1e73d7297e9d912', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:5, serverValue:40}] to localhost:27017
2019-09-12 12:14:12,865 [cluster-ClusterId{value='5d79e93cf1e73d7297e9d912', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 6, 3]}, minWireVersion=0, maxWireVersion=6, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=412748}
2019-09-12 12:14:15,116 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Registering beans for JMX exposure on startup
2019-09-12 12:14:15,160 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2019-09-12 12:14:15,162 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Bean with name 'environmentManager' has been autodetected for JMX exposure
2019-09-12 12:14:15,164 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Bean with name 'refreshScope' has been autodetected for JMX exposure
2019-09-12 12:14:15,166 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2019-09-12 12:14:15,194 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2019-09-12 12:14:15,216 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=4979368e,type=ConfigurationPropertiesRebinder]
2019-09-12 12:14:15,364 [main] INFO com.capitalone.dashboard.Application - Started Application in 15.422 seconds (JVM running for 17.165)
2019-09-12 12:15:00,003 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Running Collector: Hudson
2019-09-12 12:15:00,108 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - -----------------------------------
2019-09-12 12:15:00,110 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - http://192.168.56.101:8080
2019-09-12 12:15:00,112 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - -----------------------------------
2019-09-12 12:15:00,331 [taskScheduler-1] INFO c.c.d.collector.DefaultHudsonClient - Fetching jobs 0/5 pageSize 1000...
2019-09-12 12:15:00,429 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Fetched jobs 0s
2019-09-12 12:15:00,432 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New jobs 0 0s
2019-09-12 12:15:00,592 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New builds 0 0s
2019-09-12 12:15:00,601 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New configs 0 0s
2019-09-12 12:15:00,617 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished 0s
2019-09-12 12:15:00,618 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - -----------------------------------
2019-09-12 12:15:00,619 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - http://admin:11e275754565f45549201d61afbe51f36c@192.168.56.101:8080
2019-09-12 12:15:00,620 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - -----------------------------------
2019-09-12 12:15:00,670 [taskScheduler-1] INFO c.c.d.collector.DefaultHudsonClient - Fetching jobs 0/5 pageSize 1000...
2019-09-12 12:15:00,726 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Fetched jobs 0s
2019-09-12 12:15:00,727 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New jobs 0 0s
2019-09-12 12:15:00,730 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New builds 0 0s
2019-09-12 12:15:00,739 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New configs 0 0s
2019-09-12 12:15:00,739 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished 0s
2019-09-12 12:16:08,405 [pool-3-thread-1] INFO org.mongodb.driver.connection - Closed connection [connectionId{localValue:2, serverValue:37}] to localhost:27017 because it is past its maximum allowed idle time.


@prabhurs123 the jenkins collector is meant to collect jenkins build data and publish to the database which will be leveraged by the dashboard UI. Can you explain the purpose behind port 8080 for the collector s?

Am trying to create jenkins dashboard in hygieia, So I am using jenkins collector to do this but no luck. is there any steps to bring jenkins data in latest version hygieia dashboard.

I have tried the following,
1.Downloaded hygieia,hygieia-core,api,jenkins-build-collector from git and ran mvn clean package install in all folders.

2.Ran API api folder after created properties file then ran gulp server in UI folder, then ran API in jenkins-build-collecter after created properties file with same database details but getting below error,

Caused by: com.mongodb.MongoCommandException: Command failed with error 85: 'Index with name: unique_mdata_key_type already exists with different options' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "Index with name: unique_mdata_key_type already exists with different options", "code" : 85, "codeName" : "IndexOptionsConflict" }

3.Logged in to hygieia dashboard created build widget but could not fetch jenkins jobs in hygieia dashboard, it says "no result found"

@prabhurs123 For the error mentioned in #2 you might be running a older version of api. Please get the latest version of api from master branch and retry. Also on the mongo collection metadata you may drop the index unique_mdata_key_type and retry.

Thanks. I have tried as you suggested but no luck still getting same error.

1.Download latest api repos from git and did mvn clean install package
2.removed the index in mongodb

then started the api after updated the properties, i can see below error after started in api,

2019-09-12 10:29:03,761 [http-nio-8080-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [/api] threw exception
io.jsonwebtoken.SignatureException: JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.
at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:342) ~[jjwt-0.6.0.jar!/:0.6.0]
at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:458) ~[jjwt-0.6.0.jar!/:0.6.0]
at io.jsonwebtoken.impl.DefaultJwtParser.parseClaimsJws(DefaultJwtParser.java:518) ~[jjwt-0.6.0.jar!/:0.6.0]
at com.capitalone.dashboard.auth.token.TokenAuthenticationServiceImpl.getAuthentication(TokenAuthenticationServiceImpl.java:59) ~[api.jar!/:3.1.2-SNAPSHOT]

then i tried to start jenkins-build-collector and got the same error,

Caused by: com.mongodb.MongoCommandException: Command failed with error 85: 'Index with name: unique_mdata_key_type already exists with different options' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "Index with name: unique_mdata_key_type already exists with different options", "code" : 85, "codeName" : "IndexOptionsConflict" }

Any fix for this?

@prabhurs123 Please check my comment regarding dropping the index from mongo collection

@prabhurs123 can you take the latest code from master branch of hygieia-build-jenkins-collector and retry?

Thank you so much, its worked now and I can see Jenkins build status in Hygieia.

@prabhurs123 you are welcome and please close this issue if this is resolved. Also I updated the title of the issue to be more relevant