Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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
sreekanthreddypb
@sreekanthreddypb
image.png
Hi All, In code repo widget for all url , I am getting error saying No repo found with matching url and branch
jyotim2devops
@jyotim2devops
I am also getting the same error saying No repo found with matching url and branch for Bitbucket
Jason Paul Deland
@jaydeland
Are there any Kubernetes collectors out there or being created?
srveerla
@srveerla
Is Hygieia having issue with LDAP integration?
bhumikak
@bhumikak:matrix.org
[m]
Hello using hygieia-jenkins-publish plugin so written scripts respective step as sonar, artifactspublisher but not seeing in dashboard so what configuration we need to do on dashboard can anybody please help