Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Hi all, am new to Hygieia and need some help with build the UI. I am stuck at the gulp build step. Error: No gulpfile found.
gulp -v
CLI version: 2.3.0
Local version: 4.0.2
documentation followed: https://github.com/hygieia/UI
Thanks in advance.
2 replies
Hi Team,

I am running hygieia executive dashboard by configuring the analysis collector
while running the collector I am getting issue like below
2021-09-06 06:12:21.006 ERROR 31117 --- [taskScheduler-1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task.
java.lang.NoClassDefFoundError: Lcom/mongodb/MongoDriverInformation;
at java.lang.Class.getDeclaredFields0(Native Method) ~[na:1.8.0_302]
at java.lang.Class.privateGetDeclaredFields(Class.java:2583) ~[na:1.8.0_302]
at java.lang.Class.getDeclaredFields(Class.java:1916) ~[na:1.8.0_302]
at org.apache.spark.util.SizeEstimator$.getClassInfo(SizeEstimator.scala:330) ~[spark-core_2.11-2.3.3.jar!/:2.3.3]
at org.apache.spark.util.SizeEstimator$.visitSingleObject(SizeEstimator.scala:222) ~[spark-core_2.11-2.3.3.jar!/:2.3.3]
at org.apache.spark.util.SizeEstimator$.org$apache$spark$util$SizeEstimator$$estimate(SizeEstimator.scala:201) ~[spark-core_2.11-2.3.3.jar!/:2.3.3]
at org.apache.spark.util.SizeEstimator$.estimate(SizeEstimator.scala:69) ~[spark-core_2.11-2.3.3.jar!/:2.3.3]

Can Some one help on resolving this issue please

Hi Team
Is there any way to create dashboards dynamically by providing configuration files
what error u are facing mention clearly

I am able to resolve the issue like java.lang.NoClassDefFoundError: Lcom/mongodb/MongoDriverInformation;
by changing the spark version 2.4.3 and mongo spark connector with 2.4.0 version in pom.xml of exec-analysis
after resolving this issue I am getting below below issue while running exec-analysis jar command as
java -jar /opt/ExecDashboard/exec-analysis/target/exec-analysis-1.0.0-SNAPSHOT.jar -Djasypt.encryptor.password=hygieiasecret --spring.config.location=/opt/ExecDashboa
rd/exec-analysis/analysis.properties --server.port=8021

Issue :

2021-09-07 12:18:32.130 ERROR 17865 --- [taskScheduler-1] com.mongodb.spark.rdd.MongoRDD :

WARNING: Partitioning failed.

Partitioning using the 'DefaultMongoPartitioner$' failed.
Please check the stacktrace to determine the cause of the failure or check the Partitioner API documentation.

Note: Not all partitioners are suitable for all toplogies and not all partitioners support views.%n

2021-09-07 12:18:32.131 ERROR 17865 --- [taskScheduler-1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task.
java.lang.NoSuchMethodError: com.mongodb.client.MongoCollection.countDocuments(Lorg/bson/conversions/Bson;)J
at com.mongodb.spark.rdd.partitioner.MongoSamplePartitioner

KaTeX parse error: Can't use function '$' in math mode at position 8: anonfun$̲7.apply(MongoSa…: anonfun$7.apply(MongoSamplePartitioner.scala:88) ~[mongo-spark-connector_2.11-2.4.0.jar!/:2.4.0]
        at com.mongodb.spark.rdd.partitioner.MongoSamplePartitioner
anonfun$7.apply(MongoSamplePartitioner.scala:88) ~[mongo-spark-connector_2.11-2.4.0.jar!/:2.4.0]
at com.mongodb.spark.MongoConnector
KaTeX parse error: Can't use function '$' in math mode at position 8: anonfun$̲withCollectionD…: anonfun$withCollectionDo$1.apply(MongoConnector.scala:186) ~[mongo-spark-connector_2.11-2.4.0.jar!/:2.4.0]
        at com.mongodb.spark.MongoConnector
anonfun$withCollectionDo$1.apply(MongoConnector.scala:184) ~[mongo-spark-connector_2.11-2.4.0.jar!/:2.4.0]
at com.mongodb.spark.MongoConnector
KaTeX parse error: Can't use function '$' in math mode at position 8: anonfun$̲withDatabaseDo$…: anonfun$withDatabaseDo$1.apply(MongoConnector.scala:171) ~[mongo-spark-connector_2.11-2.4.0.jar!/:2.4.0]
        at com.mongodb.spark.MongoConnector
anonfun$withDatabaseDo$1.apply(MongoConnector.scala:171) ~[mongo-spark-connector_2.11-2.4.0.jar!/:2.4.0]

Can you help in resolving this?

install Mongodb and then create databse named dashboarddb and then run mongod and mongo then provide database details in Hygieia/api application properties file
I did all those @Viresh1994
even though I am getting same issue
Thank you for your response
You are using windows or linux machine? @kuchanamounika
Kenny Long
Hygieia is awesome, only problem is it uses MongoDB which has a license that I will never get approved. Anybody done a port to an alternative database?
Just install MongoDB and then run the database after updating application properties with below details
@Viresh1994 Thank you for your response, i am able resolve the issue by changing the mongo java driver jar in pom.xml of executive dashboard

@Viresh1994 I am working on creating the dashboard using RESTAPI
using curl like below by creating API Token
curl --location --request POST 'http://ip:port/api/dashboard/remoteCreate'
--header 'Content-Type: application/json'
--header 'apiUser: apiuser'
--header 'Authorization: apiToken$token'
--data-raw ''''{ "buildEntries": [{ "description": "MTA", "niceName":"Test","options": { "instanceUrl": "", "jobName": "MTA", "jobUrl": "" }, "pushed": false, "toolName": "Hudson" } ], "metaData": { "applicationName": "Test dashboard", "componentName": "Test dashboard", "owner": { "authType": "STANDARD", "username": "admin" }, "template": "splitview", "title": "Test dashboard", "type": "team" } }'''

I am getting issue like below
"timestamp": 1632146348562,
"status": 500,
"error": "Internal Server Error",
"exception": "java.lang.StringIndexOutOfBoundsException",
"message": "String index out of range: -1",
"path": "/api/dashboard/remoteCreate"

Can you help me on resolve this?

Hi Team
I am trying to create the dashboard in Exec dashboard with static code analysis results
while running exec-analysis collector I am getting the issue like below

Analysis Exception thrown for struct field:null
Unexpected error occurred in scheduled task.java.lang.NullPointerException: null at com.capitalone.dashboard.exec.collector.DefaultDataCollector.collectAll(DefaultDataCollector.java:56) ~[classes!/:1.0.0-SNAPSHOT]
my properties file like belo

MongoDB Details


Enable/Disable Static Code Collector

can some one help me on resolving it?

Hi Guys, Does any have the details of the recommended configuration to have Hygieia up and running? Also anyone have the official helm charts of installation of hygieia on K8s environment and also recommended configuration?
Need help to generate Hygieia-Jenkins Plugin
Hygieia-Jenkins Plugin: I cloned https://github.com/hygieia/hygieia.git to generate jenkins plugin and executed commands as described in document. But it dosen't create jenkins hygieia-publisher.hpi and the jar
Kenny Long
@jitusaklani The repo for the Jenkins plugin is: https://github.com/hygieia/hygieia-build-jenkins-collector
@prasad-clouduser The collectors aren't currently written to run in a container. They have no health / heartbeat endpoints for example. I know the CapitalOne team is working on getting things set up for containers and helm chart installation, but in the current version, things are setup to run on a server or some kind. Anywhere you can run Java works, Linux, Mac, Windows... If you want to get a feel for things, the best path is to install it on your local machine. Then the defaults for getting API up and running pretty much just work. You can tweak things for a server environment much easier once you have gone through the exercise of getting things running locally. Getting all the collector properties setup can be a little tricky and it simplifies things if you set things up locally first. Hope that help!
Kenny Long
When I run the Jira Collector it creates features, teams, and scopes. It doesn't create any AgileTool CollectorItems in the collector_items collection. How do the AgileTool entries get created in collector_items? Are these created manually or should the Jira collector be creating those.
Akshay Sadawarte
Hello all, can I connect TeamCity to Hygieia? Has anyone created a collector for it(TeamCity)?

hey everyone, I am attempting to connect my AWS Collector to Hygieia. Through logs I can see that UI, API, and AWS Collector are up and running properly. I can even see that the AWS Collector is pulling all instance data correctly. However, I cannot see any way on the UI to set up a cloud widget whether its through choosing the default capone template or just setting up separate widgets. The only separate widget options I see are "Feature, Build, Repo, Codeanalysis, Deploy".

Also, all the guides online and even the github page for setting up cloud widgets seems to have a different, outdated UI. Anyone face similar issues? What were your approaches? All 3 services (UI, API, AWS Collector) are currently running as their own Docker Images. Thanks!

Kalluri Narasimha
Hi All
I configured Hygieia dashboard
But i am unable to see repo dropdown list and feture list
Please help me