Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Richard Mendonca
@richardmendonca7
Hi I am running hygieia bitbucket collector , it is connecting without any error but no data is displayed . Can anyone help ?
alihussainiF1
@alihussainiF1
@richardmendonca7 you may need to o
Configure the widget in dashboard first
Sorry the entire message being to get data while it may be running in the background is to first configure on the dashboard its weird but this is how it pull data only once its set up in the dashboard
Richard Mendonca
@richardmendonca7
@alihussainiF1 configured widget first still no data is being displayed
alihussainiF1
@alihussainiF1
@richardmendonca7 can you please share OS where you have installed along with version . The application.properties file and also the command use to run the collector
Richard Mendonca
@richardmendonca7
@alihussainiF1 - os details - CentOS Linux 7 , Linux 3.10.0-1127.19.1.el7.x86_64

properties : # Database Name
dbname=dashboarddb

Database HostName - default is localhost

dbhost=localhost

Database Port - default is 27017

dbport=27017

MongoDB replicaset

dbreplicaset=[false if you are not using MongoDB replicaset]

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

Database Username - default is blank

dbusername=**

Database Password - default is blank

dbpassword=**

Logging File location

logging.file=./logs/bitbucket.log

Collector schedule (required)

git.cron=0 0/5

Mandatory parameters (comma separated, if multiple)

git.host=https://bitbucket.quickheal.com/bitbucket

git.username=*

convert password to base64

git.password=*

If using Bitbucket Cloud then go for below parameter for git.host

git.host=api.bitbucket.org/

Since the older api version is now depreciated so current api is given below for Bitbucket Cloud

(REF:https://confluence.atlassian.com/bitbucket/rest-apis-222724129.html)

git.api=/api /rest/api/1.0

Maximum number of days to go back in time when fetching commits

git.commitThresholdDays=15

Page size for rest calls

Only applicable to Bitbucket Server.

Only applicable to Bitbucket Cloud.

git.pageSize=25

Bitbucket product

Set to 'cloud' to use Bitbucket Cloud (formerly known as Bitbucket)

Set to 'server' to use Bitbucket Server (formerly known as Stash)

More information can be found here:

capitalone/Hygieia#609

git.product=server

Bitbucket key for private repos

bitbucket.key=<your-generated-key>

bitbucket.key=*

collector cmd : java -jar bitbucket-scm-collector.jar --spring.config.name=git --spring.config.location=/root/hygieia_new/collector/hygieia-scm-bitbucket-collector/application.properties
alihussainiF1
@alihussainiF1
@richardmendonca7 you may want to use the command => sudo mvn spring-boot:run in the main folder of the collector and if you are using cloud set the git.product = cloud instead of server
Richard Mendonca
@richardmendonca7
image.png
@alihussainiF1 - No data , it is same after this change also
alihussainiF1
@alihussainiF1
@richardmendonca7 another solution ( I realise most of these are hit and tries but these are what I followed while configuring hygieia) can you remove mongo and re install mongodb and create a user like this : db.createUser(
{
user: "dashboarduser",
pwd: "dbpassword",
roles: [
{role: "readWrite", db: "dashboarddb"}
]
})
@richardmendonca7 during one of my tries I realised I missed the correct spelling of dashbaorddb while creating a user in mongo. Also to use mongo if you are using mongo shell. Please type the conmand :" use dashboarddb " and then use the above command to create this exact user
Richard Mendonca
@richardmendonca7
Hi , I am unable to create product dashboard , not able to click it
1 reply
image.png
any help appreciated , Thanks
amritasaha1
@amritasaha1

I have one question, I am just started with setting up Hygieia, While setting up for Sonar Collector, I am little confused about the property file , my questions are below –

  1. What is the name of the property file – api.properties or application.properties?
  2. Where it should stay – Under each collector /resource folder or only under api projects /resource folder

While running the collector I am getting the below error, any idea why?

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2020-09-24 12:43:50,779 [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

Richard Mendonca
@richardmendonca7
@amritasaha1 - you can name it application.properties and keep under collector folder
also share the command which you are using to run the collector
5 replies
Richard Mendonca
@richardmendonca7
image.png
@alihussainiF1 - Still same error,
gsarin1980
@gsarin1980
Hi team, can Hygieia work with other NOSQL databases like DynamoDB ?
1 reply
Jasmin Mehta
@jmcnn

Hi All, I am trying to install Hygieia Dashboard locally using docker-compose. Running into setting up Jenkins Build Collector. Appears it tries to look for mongo on localhost instead of host and port specified through environment variable. Has anyone run into this scenario? Would appreciate help.

Docker Log with default config generated through properties-builder.sh:

MONGODB_HOST: 172.21.0.2
MONGODB_PORT: 27017
....
....

2020-10-02 15:50:30,065 [localhost-startStop-1] INFO  c.c.dashboard.config.MongoConfig - Connecting to Mongo: Mongo{options=MongoClientOptions{description='null', applicationName='null', compressors='[]', readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, fsync=null, journal=null, retryWrites=false, readConcern=com.mongodb.ReadConcern@0, codecRegistry=org.bson.codecs.configuration.ProvidersCodecRegistry@b62ad2, serverSelector=null, clusterListeners=[], commandListeners=[], minConnectionsPerHost=0, maxConnectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, serverSelectionTimeout=30000, maxWaitTime=120000, maxConnectionIdleTime=0, maxConnectionLifeTime=0, connectTimeout=10000, socketTimeout=0, socketKeepAlive=true, sslEnabled=false, sslInvalidHostNamesAllowed=false, sslContext=null, alwaysUseMBeans=false, heartbeatFrequency=10000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, localThreshold=15, requiredReplicaSetName='null', dbDecoderFactory=com.mongodb.DefaultDBDecoder$1@15d02638, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@4cb45d77, socketFactory=null, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=[]}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, keepAlive=true, receiveBufferSize=0, sendBufferSize=0}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverListeners='[]', serverMonitorListeners='[]'}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=20000, readTimeoutMS=20000, keepAlive=true, receiveBufferSize=0, sendBufferSize=0}}}
2020-10-02 15:50:30,078 [cluster-ClusterId{value='5f774c4524e499001abd41d2', description='null'}-localhost:27017] INFO  org.mongodb.driver.cluster - Exception in monitor thread while connecting to server localhost:27017
3 replies
alihussainiF1
@alihussainiF1
@richardmendonca7 in my case I had noticed the name of the database name ( dashboarddb and not dashboardb) to cause the error and once the collector runs I had to first configure it in my widget view . Also in the config file . I kept it set to bitbucket cloud. The url for api was commented out but I kept the first url for git.host = www.bitbucket.org/<companyname>/repositories
Chaitanya Chowdary
@HaasyaDhanvika
Hi all, when im running my udeploy collector, the collector went fine and it only shows the deployments done by admin user and if i use other than admin token, then it shows the deployments done by second user, if i try to put all the user tokens in an array and try then it is not working. is there any solution on how to get data on udeploy collector with help of multi tokens in application.properties file.
2 replies
Andrew Ochsner
@aochsner
I'm finding w/ a simple team dashboard w/ a github repo & jenkins build, along w/ a simple Product dashboard taht has that team, no commits/info gets populated int eh commit or build stage... and looking at the pipeline collection, it doesn't have any stages. This is using the latest released veresions of UI/API/Github GraphQL/Jenkins collectors. I'm not using the webhook/plugin options at the moment. This used to work and struggling to figure out what broke. Eying the EventListeners?
image.png
image.png
Karan Attar
@KaranAttar_twitter
Hi All,
I am working to set team dashboard with Features widget using latest Hygieia UI (version : 1.0.0-SNAPSHOT) , API module (version : 3.3.2-SNAPSHOT) and hygieia-feature-jira-collector version ( version : 3.2.0-SN1APSHOT).
The hygieia-feature-jira-collector runs successfully and populate data in Teams, Scope and features table but in collector_items table. My application settings are configured to work in JiraBoard mode.
When I am trying to add Feature widget from UI, It is making an API (/collector/item/type/searchField/{collectorType})call to verify Team & project Name. In CollectorController class, the method collectorItemsByTypeAndSearchField
Tries to match Team & Project information from collector_items table. Which is empty in my case.
Can you please help me to understand what is wrong.
2 replies
amritasaha1
@amritasaha1
Where to run "echo -n username:password | base64" for jira collectior
Karan Attar
@KaranAttar_twitter
@amritasaha1 you can run this command in IDE terminal or cmd
amritasaha1
@amritasaha1
From any specififc location in cmd?
Like from /target ...?
If I run in cmd, I am getting below message - 'base64' is not recognized as an internal or external command,
operable program or batch file.
Karan Attar
@KaranAttar_twitter
@amritasaha1 you can try online https://www.base64decode.org/
@amritasaha1 Which widgets have you set up successfully for hygieia?
amritasaha1
@amritasaha1
Github, Sonar, Jenkin - so far
12 replies
Ragha Vema
@rvema
@KaranAttar_twitter what’s the issue you are facing, there is so much activity on gitter , it’s quite difficult to get the context. It would be nice if you ping me in person with context and details
4 replies
Ragha Vema
@rvema
The readme for sonar and GitHub are up to date, did you try following the instructions? For Jira I am not sure if I can help
3 replies
For GitHub use the graphql version
Ragha Vema
@rvema
Can you check with @aochsner ?
Chaitanya Chowdary
@HaasyaDhanvika
Hi All, im looking for LDAP Group configuration, is there any new release coming with LDAP Group configuration feature ?
3 replies
laxsin
@laxsin
image.png
Hi, I had set up Hygieia (with lot of collectors) already, locally in my Windows. My system went out of battery and when I started the api again, after running gulp serve, I am getting above error in API logs. Also in the UI, the API connectivity is marked as red.

image.png

2020-10-15 20:42:30,958 [main] INFO com.capitalone.dashboard.Application - Started Application in 28.276 seconds (JVM running for 30.036)
2020-10-15 20:43:56,059 [http-nio-8080-exec-1] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring FrameworkServlet 'dispatcherServlet'
2020-10-15 20:43:56,061 [http-nio-8080-exec-1] INFO o.s.web.servlet.DispatcherServlet - FrameworkServlet 'dispatcherServlet': initialization started
2020-10-15 20:43:56,143 [http-nio-8080-exec-1] INFO o.s.web.servlet.DispatcherServlet - FrameworkServlet 'dispatcherServlet': initialization completed in 77 ms
2020-10-15 20:43:56,342 [http-nio-8080-exec-1] INFO c.c.d.a.t.JwtAuthenticationFilter - requester=READ_ONLY, timeTaken=128, endPoint=/api/dashboard/pagesize, reqMethod=GET, status=404, clientIp=127.0.0.1
2020-10-15 20:44:09,157 [http-nio-8080-exec-3] INFO c.c.d.a.t.JwtAuthenticationFilter - requester=READ_ONLY, timeTaken=54, endPoint=/api/appinfo, reqMethod=GET, status=404, clientIp=127.0.0.1
2020-10-15 20:44:09,181 [http-nio-8080-exec-2] INFO c.c.d.a.t.JwtAuthenticationFilter - requester=READ_ONLY, timeTaken=78, endPoint=/api/authenticationProviders, reqMethod=GET, status=404, clientIp=127.0.0.1

WHAT COULD HAVE WENT WRONG! I did not change anything before and after my system restart in any properties files. This is my application.properties

dbname=dashboarddb
dbusername=dashboarduser
dbpassword=dbpassword
dbhost=localhost
dbport=27017
dbreplicaset=false

server.contextPath=/api
server.port=8080

logRequest=false
logSplunkRequest=false
corsEnabled=false
version.number=0.0.1
pageSize=10

I have already tried building the code again with latest code also. Still getting the same error. Please help urgently, I have cancelled demo because of this.

sathishselvakumar-ai
@sathishselvakumar-ai
Had trouble with hygieia bitbucket collector
its not pulling any data from bitbucket cloud
image.png
Kindly help here asap!!!