I am not successful in configuring the following collectors
1) Jenkins Build collector
2) Jenkins Publish collector
3) GitHub SCM Collector (I tried running SCM collector and WEbhook but no luck)
Any help in this regard will be of great help
Hi Everyone, I am trying to run the bitbucket server collector. But Bitbucket collector not running. And started debugging further. It is creating the empty item in the collector collection without name and not reusing this item.
{"_id" : ObjectId("5fea7f92ba935ad0babfa11a"),
"_class" : "com.capitalone.dashboard.model.Collector",
"enabled" : false,
"online" : true,
"errors" : [],
"uniqueFields" : {
"branch" : "",
"url" : ""
},
"allFields" : {
"lastUpdateCommit" : "",
"password" : "",
"lastUpdate" : NumberLong(1609203602801),
"branch" : "",
"userID" : "",
"url" : ""
},
"lastExecuted" : NumberLong(0),
"searchFields" : [
"description"
],
"properties" : {}
}
remoteCreate
can only create an empty dashboard since the activeWidgets
attribute is missing in DashboardMetaData. I'm wondering if there is a workaround, or I need to add the activeWidgets
as a property in the DashboardMetaData
class, and implement the logic in the DashboardRemoteServiceImpl.java
?
collector_items
collector. This makes it so that it's impossible to add any JIRA widgets, as the Team and Project dropdowns are always empty. I saw someone else had this issue way back in October. Is anyone having success with the JIRA collector right now?
hygieia-poc/api/ping
it keeps on getting 504 gateway timeout and when checking the cloudwatch logs it only spams 2021-01-22 02:37:13,438 [http-nio-8080-exec-665] INFO c.c.d.a.t.JwtAuthenticationFilter - requester=READ_ONLY, timeTaken=0, endPoint=/api/ping, reqMethod=GET, status=200, clientIp=10.79.116.108
is there a way to find out what is causing the timeout?
api/authenticationProviders
and api/appInfo
and upon checking the builder properties I am using the default values on the authentication which is:#Authentication Settings
auth.expirationTime=${AUTH_EXPIRATION_TIME:-60000000}
auth.authenticationProviders=${AUTH_AUTHENTICATION_PROVIDERS:-STANDARD}
2021-02-15 13:13:32,388 [main] INFO o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat started on port(s): 8182 (http)
2021-02-15 13:13:32,395 [main] INFO com.capitalone.dashboard.Application - Started Application in 10.609 seconds (JVM running for 11.642)
2021-02-15 13:15:00,000 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Getting Collector: Sonar
2021-02-15 13:15:00,002 [taskScheduler-1] INFO org.mongodb.driver.connection - Closed connection [connectionId{localValue:2, serverValue:231}] to localhost:27017 because it is past its maximum allowed idle time.
2021-02-15 13:15:00,058 [taskScheduler-1] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:6, serverValue:236}] to localhost:27017
2021-02-15 13:15:00,100 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Starting Collector=Sonar
2021-02-15 13:15:00,128 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - -----------------------------------
2021-02-15 13:15:00,128 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - https://sonarcloud.io
2021-02-15 13:15:00,128 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - -----------------------------------
2021-02-15 13:15:01,328 [taskScheduler-1] INFO c.c.dashboard.client.RestClient - makeRestCall op=GET url=https://sonarcloud.io/api/components/search?qualifiers=TRK&ps=500 status=400 duration=401
2021-02-15 13:15:01,328 [taskScheduler-1] ERROR c.c.d.collector.DefaultSonar6Client - org.springframework.web.client.HttpClientErrorException: 400
2021-02-15 13:15:01,328 [taskScheduler-1] INFO c.c.d.collector.SonarCollectorTask - addNewProjects projectsInSonar=0 existingProjects=0 new=0 updated=0 timeUsed=0
2021-02-15 13:15:01,346 [taskScheduler-1] INFO c.c.d.collector.SonarCollectorTask - refreshData updated, total=0, updated=0, disabled=0, timeTaken=1613394901346
2021-02-15 13:15:01,442 [taskScheduler-1] INFO c.c.dashboard.client.RestClient - makeRestCall op=GET url=https://sonarcloud.io/api/qualityprofiles/search status=400 duration=96
2021-02-15 13:15:01,442 [taskScheduler-1] ERROR c.c.d.collector.DefaultSonar6Client - org.springframework.web.client.HttpClientErrorException: 400
2021-02-15 13:15:01,442 [taskScheduler-1] ERROR c.c.d.collector.SonarCollectorTask - org.springframework.web.client.HttpClientErrorException: 400
2021-02-15 13:15:01,443 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished 1s
2021-02-15 13:15:01,444 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished running Collector=Sonar timeTaken=1344 collectorItems=0
Please find the config file attached bellow #Database Name
spring.data.mongodb.database=dashboard
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.username=
spring.data.mongodb.password=
sonar.cron=0 0/5 \* \* \* *
sonar.servers[0]=https://sonarcloud.io
sonar.metrics=ncloc,line_coverage,violations,critical_violations,major_violations,blocker_violations,sqale_index,sonar.utest_success_density,test_failures,test_errors,tests
sonar.username=<api Key/username>
sonar.password=<Blank/password>
Trying to follow the instructions to "Build Docker Image" found at ... https://hygieia.github.io/Hygieia/builddocker.html. The first step is to fork and clone /Hygieia then run "mvn clean install" in the project directory. Afterwords you're supposed to edit the docker-compose.override.yml ... the example I have starts with ...
version: '3'
services:
api-audit:
# environment:
ui:
# environment:
... what properties are supposed to got in these sections?
Following steps in Hygieia Executive documentation (https://hygieia.github.io/ExecDashboard/Introduction.html), it wasn't possible to get data from Hygieia documentation (https://hygieia.github.io/Hygieia/getting_started.html). When I display HygieiaExecutive view, I get UI without any portfolio or member, It doesn't matter that I create a collection "cmdb" with both records suggested by @Sbrenthughes.
My Hygieia Engineer View is up (UI, API, differents collectors are ON).
My Hygieia Exec View is up (UI, API, differents collectors are ON).
My MongoDB is UP with both DBs (HygEng and HygExec)
Here this is config in every component, by the way, I'm replicating it locally
1) MongoDB:
HygieiaEng DB (dashboarddb)
cmdb
=> Business Service and Business Application
{
"_id" : ObjectId("604657e8995806a836c5aec5"),
"timestamp" : 0,
"configurationItem" : "HygieiaApplication",
"configurationItemSubType" : "ciSubType",
"configurationItemType" : "ciType",
"configurationItemBusAppName" : "BAPFORASV",
"configurationItemBusServName" : "ASVMYPRODUCT",
"assignmentGroup" : "",
"appServiceOwner" : "John Doe",
"businessOwner" : "John Doe",
"supportOwner" : "Jane Doe",
"developmentOwner" : "Jane Doe",
"ownerDept" : "Department",
"commonName" : "hygieia",
"itemType" : "app",
"validConfigItem" : true,
"environments" : null,
"components" : [
"HygieiaComponent"
]
}
{
"_id" : ObjectId("604657f2995806a836c5aec6"),
"timestamp" : 0,
"configurationItem" : "HygieiaComponent",
"configurationItemSubType" : "ciSubType",
"configurationItemBusAppName" : "BAPFORASV",
"configurationItemBusServName" : "ASVMYPRODUCT",
"configurationItemType" : "ciType",
"assignmentGroup" : "",
"appServiceOwner" : "",
"businessOwner" : "",
"developmentOwner" : "",
"ownerDept" : "Department",
"ownerSubDept" : "",
"commonName" : "componentHygieia",
"itemType" : "component",
"validConfigItem" : true
}
2) Hygieia Engineer View - application.properties
API:
dbname=dashboarddb
dbusername=dashboarduser
dbpassword=dbpassword
dbhost=localhost
dbport=27017
dbreplicaset=false
server.port=8080
server.contextPath=/api
logRequest=false
logSplunkRequest=false
corsEnabled=false
version.number=0.0.1
pageSize=10
hygieia-build-jenkins-collector:
auth.expirationTime=1200000
dbname=dashboarddb
dbhost=localhost
dbport=27017
dbreplicaset=false
dbusername=dashboarduser
dbpassword=dbpassword
jenkins.cron=0/5 * * * * *
jenkins.pageSize=1000
jenkins.folderDepth=10
jenkins.servers[0]=http://localhost:9595
jenkins.servers[1]=http://jenkins.usernames[0]:jenkins.apiKeys[0]@localhost:9595
jenkins.usernames[0]=**********
jenkins.apiKeys[0]=***********
jenkins.saveLog=true
jenkins.searchFields[0]= uaty
jenkins.searchFields[1]= dev
jenkins.connectTimeout=20000
jenkins.readTimeout=20000
server.port=8085
hygieia-scm-gitlab-collector:
dbname=dashboarddb
dbhost=localhost
dbport=27017
dbreplicaset=false
dbusername=dashboarduser
dbpassword=dbpassword
logging.file=./logs/gitlab.log
gitlab.cron=0 */1 * * * *
gitlab.host=gitlab.com
gitlab.protocol=http
gitlab.selfSignedCertificate=false
gitlab.apiToken=****************
gitlab.commitThresholdDays=15
gitlab.key=******************
3) Hygieia Exec View - application.properties
exec-api:
dbname=analyticsdb
dbusername=dashboarduser
dbpassword=dbpassword
dbhost=localhost
dbport=27017
dbreplicaset=false
server.port=8090
server.contextPath=/api
logRequest=false
logSplunkRequest=false
corsEnabled=false
version.number=0.0.1
pageSize=10
exec-analysis:
# MongoDB Details
dbname=analyticsdb
dbusername=dashboarduser
dbpassword=dbpassword
dbhost=localhost
dbport=27017
logging.file=./logs/gitlab.log
portfolio.cron=0 */5 * * * *
portfolio.readUriUserName=dashboarduser
portfolio.readUriPassword=dbpassword
portfolio.readUriDatabase=localhost:27017
portfolio.readUriPrefix=mongodb
portfolio.readDatabase=dashboarddb
portfolio.codeAnalysisCollectorFlag=true
portfolio.scmCollectorFlag=true
portfolio.incidentsCollectorFlag=true
portfolio.libraryPolicyCollectorFlag=true
portfolio.staticCodeAnalysisCollectorFlag=true
portfolio.unitTestCoverageCollectorFlag=true
portfolio.auditResultCollectorFlag=true
portfolio.securityCollectorFlag=true
portfolio.performanceCollectorFlag=true
server.port=8081
exec-ui:
a) proxy.config.json
{
"/api" : {
"target": "http://localhost:8090/api",
"changeOrigin": true,
"secure": false,
"logLevel": "debug",
"pathRewrite": {"^/api": "http://localhost:8090/api"}
}
}
b) environment.local.ts
export const environment = {
production: false,
apiUrl: 'http://localhost:8090/api'
};
c) environment.ts
export const environment = {
production: false,
apiUrl: 'http://localhost:8090/api'
};
Snapshot:
<img src="https://user-images.githubusercontent.com/8757490/46508408-434e0600-c7f2-11e8-906b-0e7a8dbffd96.png" alt="hygieiaexec" />
Any other requirement is needed in order to solve issue please ask to me.
com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='dashboarduser', source='admin', password=<hidden>, mechanismProperties={}}
at com.mongodb.connection.SaslAuthenticator.wrapInMongoSecurityException(SaslAuthenticator.java:157) ~[mongo-java-driver-3.4.3.jar!/:na]
source=admin
in my mongodb and I just remember that I set credentials as admin in my Hygieia 2.0. I am a little bit lost with this issue and I'll appreciate if someone could give me some suggestions.
git 'https://github.com/jglick/simple-maven-project-with-tests.git'
// ** NOTE: This 'M3' Maven tool must be configured
// ** in the global configuration.
mvnHome = tool 'M3'
}
http://localhost/api/login/ldap
Request Method: POST
Status Code: 503 Service Unavailable
.... looks like UI 2.0 wants to use ldap ... or /api/authenticationProviders:1 Failed to load resource: the server responded with a status of 503 (Service Unavailable)