hygieia / hygieia-scm-gitlab-collector

Hygieia Collector for Gitlab SCM
https://github.com/capitalone/Hygieia/blob/gh-pages/pages/hygieia/collectors/scm/gitlab.md
Apache License 2.0
4 stars 13 forks source link

gitlab data not available #27

Open 15846363412 opened 3 years ago

15846363412 commented 3 years ago

image (1)Problem One I can't collect gitlab data when I run the program,No error was reported gitlab the connection, however, and it was not possible to determine whether the connection gitlab successful application.properties gitlab.cron=0/2 *

gitlab.host=xxx.com gitlab.useProjectId=true

gitlab.protocol=https

gitlab.port=443

gitlab.selfSignedCertificate=false

gitlab.apiToken=xxxxxx gitlab.commitThresholdDays=1

gitlab.key=xxx

(2)Problem two image How does this spring cloud configuration center solve .I didn't use the configuration center, but it did n' t work when I customized the port

15846363412 commented 3 years ago

@spennec @chtompki @yannschepens @Irvyne

image

gitlab service is not called, is there no call in the code

15846363412 commented 3 years ago

2021-01-27 15:29:28,023 [taskScheduler-1] DEBUG org.mongodb.driver.protocol.query - Query completed 2021-01-27 15:29:28,023 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Repo Count 0 0s 2021-01-27 15:29:28,023 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New Commits 0 0s 2021-01-27 15:29:28,023 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New Issues 0 0s 2021-01-27 15:29:28,023 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - New Pulls 0 0s 2021-01-27 15:29:28,023 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished 0s 2021-01-27 15:29:28,023 [taskScheduler-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'enableEncryptablePropertySourcesPostProcessor' 2021-01-27 15:29:28,023 [taskScheduler-1] DEBUG c.u.j.EnableEncryptablePropertySourcesPostProcessor - Application Event Raised: BeforeConvertEvent 2021-01-27 15:29:28,023 [taskScheduler-1] DEBUG c.u.j.EnableEncryptablePropertySourcesPostProcessor - Application Event Raised: BeforeConvertEvent 2021-01-27 15:29:28,023 [taskScheduler-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'enableEncryptablePropertySourcesPostProcessor' 2021-01-27 15:29:28,024 [taskScheduler-1] DEBUG c.u.j.EnableEncryptablePropertySourcesPostProcessor - Application Event Raised: BeforeSaveEvent 2021-01-27 15:29:28,024 [taskScheduler-1] DEBUG c.u.j.EnableEncryptablePropertySourcesPostProcessor - Application Event Raised: BeforeSaveEvent

15846363412 commented 3 years ago

@Irvyne HI com.capitalone.dashboard.collector.GitlabGitCollectorTask #collect for (GitlabGitRepo repo : enabledRepos(collector)) { boolean isRepoFirstRun = isFirstRun(start, repo.getLastUpdated()); // moved last update date to collector item. This is to clean old data. repo.removeLastUpdateDate(); xxxxxx } he loop in this method is not executed

lqwatgit commented 3 years ago

@Irvyne @rvema Hello ,any ideas can be suggested on this issue ?

scchaitha commented 2 years ago

I am having the same issue. I dont see the GitlabGitCollectorTask calls the repo urls and also the above code posted is being executed. Any help is appreciated.

OnlyJeep commented 2 years ago

having the same issue too, no api to call gitlab server and no code about saving items in mongo dashboarddb/collector_items