Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Pachantoms
@Pachantoms
Hi All, Please let me if anybody has successfully configured Sonar Cloud either using "hygieia-codequality-sonar-collector" or using Hygieia Jenkins Plugins.
1 reply
Pachantoms
@Pachantoms
Hi All, Getting bellow error when tried "hygieia-codequality-sonar-collector" with username/password as well as api-key. Manual I am logging in to sonar Cloud account using the GitHub account which has a multifactor authentication . Bellow is the error I am getting
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>
John McEntire
@johnmcentire

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?

Shamim Ahmed
@alm_guru_twitter
Hi, how do we establish correlation/mapping between data in the different widgets/collections. for example: for specific features, how do I tie to builds, deploys, quality etc.
erictice
@erictice
Hygieia Jira feature collector 404 error in latest version of UI appears to be failing because api is either deprecated or not available in some implementations. jira/rest/teams-api/1.0/team . It is hard coded into the application code. I am haven't been able to find a replacement for it as yet
Github GraphQL SCM collector appears to not be pulling in data from the repo. It is recognixed as an active widget but when I try to use a public or private repo from github it will not pull data and the repo is not added to the component database. Build and Code Quality add with no issues. Any insight here would be helpful
Kevin Estupiñan
@kevin.estupinan_gitlab

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.

Kevin Estupiñan
@kevin.estupinan_gitlab
Digging about my issue, I found when I run exec-analysis artifact (talking about Hygieia Execute Dashboard 3.0), logs display the following message:
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]
That log is weird to me because I didn't set a value as 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.
JayitaBag472
@JayitaBag472
I am trying the hygieia-jenkins plugin... in node stage preparation example github is given... how to pass Bitbucket or localpath
example :stage('Preparation') { // for display purposes
    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'
}
Kevin Estupiñan
@kevin.estupinan_gitlab
Updating documentation about issue, I created an access token from Hygieia 2.0 with admin account, I guess that I need to set TOKEN VALUE as parameter in application.properties for exec-analysis. I didn't found correct name of parameter for setting TOKEN. Let me know if I go to the right way. Thks.
Sergei
@pogorelov-ss
Hi, I have working Hygieia installation in docker with the old UI, and I want to switch to the new UI. I can run a new UI (just replacing the folder and adding API_URL) but I have an error.
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)
What I should do for runung UI 2 without ldap ?
this is a test installation and I want to test adapters just with one admin user
Sergei
@pogorelov-ss
or maybe someone has a working docker-compose file for UI 2.0 .... looks like UI 2.0 needs some extra configuration for interacting with API
Sergei
@pogorelov-ss

ok, I found that for running new UI in docker container I need to replace UI folder in https://github.com/Hygieia/Hygieia and add environment: API_URL: http://api:8080 to the docker-compose file.

Then I need to click on the "Standart" link and signup or use an old admin user.

But I still have errors in trying to add a dashboard. Maybe someone knows where to get documentation for the new UI without diving into Angular and Java code?

1 reply
Ansuman92-hub
@Ansuman92-hub
Hi All, Can anyone please share the working Jenkins collector application properties file?
I'm in the process of configuring Jenkins collector and trying to run the executable file from hygieia-build-jenkins-collector\target directory but it is throwing me the below error msg.
Caused by: java.lang.NullPointerException: null
at org.springframework.scheduling.support.CronSequenceGenerator.parse(CronSequenceGenerator.java:271)
at org.springframework.scheduling.support.CronSequenceGenerator.<init>(CronSequenceGenerator.java:96)
at org.springframework.scheduling.support.CronSequenceGenerator.<init>(CronSequenceGenerator.java:83)
ssjoshi123
@ssjoshi123
Team,
image.png

We are trying to publish the jenkins build and deploy through hygieia-jenkins-publish plugin and pipeline job is getting executed successfully and we are able to deploy widgets in hygieia dashboard but we are not getting successful deploy job in deploy widget tab and still in Red colour.

Please help me out on this!

ssjoshi123
@ssjoshi123
and also there is no data publishing in Product dashboard
image.png
HemavathiRamamoorthy
@HemavathiRamamoorthy
In Product dahsboard, commit and build details are comming up but not environment details
image.png
@ssjoshi123 , try adding feature.dynamicPipeline=enabled in API's application.properties, you will get commit details
Team, can anyone provide me a sample properties of Artifactory collector
ssjoshi123
@ssjoshi123
@HemavathiRamamoorthy Thanks i did that. still not able to see it
ssjoshi123
@ssjoshi123
I have applied in hygieia-scm-collector application properties but still no luck
HemavathiRamamoorthy
@HemavathiRamamoorthy
@ssjoshi123 , add it in api application properties, not in collector
ssjoshi123
@ssjoshi123
we need to restart after adding? beocz i have already enabled it in hygieia api application properties
@HemavathiRamamoorthy
HemavathiRamamoorthy
@HemavathiRamamoorthy
Yes, need to restart the api
ssjoshi123
@ssjoshi123
i have hosted hygieia API in a container so can you help me the process to restart?
@HemavathiRamamoorthy
HemavathiRamamoorthy
@HemavathiRamamoorthy
sorry, I dont have much idea on containers
ssjoshi123
@ssjoshi123
@HemavathiRamamoorthy I have restarted the api but still no luck. anything else u want me to try
HemavathiRamamoorthy
@HemavathiRamamoorthy
@ssjoshi123 , not sure. Make sure all the collectors are running
Is it mandatory to have Artifactory collector or its optional?
ssjoshi123
@ssjoshi123
if you want to deploy artifacts and want to display in dashboard and then u can go for it else nothing is kind of mandatory what i can understand from docs
HemavathiRamamoorthy
@HemavathiRamamoorthy
ok. I want product dashboard to display deploy details, is it enough to have data from hygieia publisher or apart from hygieia publisher, artifactory collector is needed?
ssjoshi123
@ssjoshi123
not required! even i am new to this hygieia
amarshall-mitre
@amarshall-mitre
I am attempting to use Hygieia with the new UI & gitlab-scm collector and not having much success. After digging around into the UI/api connection, it appears that the new UI is not making the correct API calls to allow the collector to run. The CollectorItem that is created on dashboard creation is not enabled and does not have the data from the widget in it. We need some help with this, as this gitlab collector is our first stop in getting Hygieia up and running in our project.
CatchKarthik
@CatchKarthik
Hi, i m trying to configure sonarqube with hygieia and i m getting the below error.
```
rror starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2021-05-11 17:13:57,832 [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 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
CatchKarthik
@CatchKarthik
What does the searchfields in jenkins point to?

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

jenkins.searchFields[0]= options.jobName
jenkins.searchFields[1]= niceName
venkateshreddy53
@venkateshreddy53
Hi all, the initial setup of dashboard i have created, now i want to integrate Jenkins with hygieia. Can someone tell me the steps ?
duncanadams777
@duncanadams777
Hi, I am trying to run the Jenkins collector and get the following: 2021-05-24 16:41:00,416 [main] WARN o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hudsonCollectorTask': Invocation of init method failed; nested exception is java.lang.NullPointerException: Cannot read the array length because "fields" is null
2021-05-24 16:41:00,417 [main] INFO o.s.s.c.ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler'
2021-05-24 16:41:00,419 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
  1. Any ideas on what could be wrong?
Vikash-Ro
@Vikash-Ro
Hi all, i am trying to use the jira collector, and the collector seems to be working fine in populating the data under the features and teams section of the database ,
but there's some issue in integrating the same with the dashboard and as i am not able to view my project and team name in the features widget configuration as the search fails with "Sorry, suggestions could not be loaded." inspite of entering a valid team name and proj name ! Any insights, much appreciated!
HemavathiRamamoorthy
@HemavathiRamamoorthy
Hi , I need application.properties for hygieia-workflow-github-collector