-
Notifications
You must be signed in to change notification settings - Fork 1.8k
GitLab Collector is not running #957
Comments
Do you have the latest code pulled down? I made some changes last week that might help with your issue. Based on your stack trace, it looks like you are on the old version. I would try pulling the latest and updating your properties file to the new values to see if that works. Let me know if you have questions. |
See also #910 |
Hi All , Thanks . Per suggestion , i cloned new master code and now getting new error . Can anybody please suggest me on how do i mention port in .properties file . My Current Properties File looks like : dbname=db
dbusername=db
dbpassword=dbpass
dbhost=10.14.34.73
dbport=27017
dbreplicaset=false
dbhostport=10.14.34.73:27017
gitlab.cron=0 0/3 * * * *
gitlab.branche=master
gitlab.apiToken=BrXVX-EFBtkq3Jkv6JCD
gitlab.saveLog=true
gitlab.server=http://10.14.34.73:8181
gitlab.host=10.14.34.73
gitlab.port=8181
gitlab.selfSignedCertificate=false
gitlab.commitThresholdDays=15
|
As far as the properties, the only ones that are used are below. If you are using port 8181 for your gitlab instance, try adding that to the end of the host as seen below. If your instance of gitlab has a self signed certificate, you should should try setting that property to true as well. gitlab.cron=0 0/3 * * * *
gitlab.branche=master
gitlab.apiToken=BrXVX-EFBtkq3Jkv6JCD
gitlab.host=10.14.34.73:8181
gitlab.selfSignedCertificate=false
gitlab.commitThresholdDays=15 |
And "branche" is also no longer a property. You set that from the UI now. |
I get error when i append port number to the host like below . gitlab.host=10.14.34.73:8181 Getting below error :
|
Yeah, had a feeling that might happen. What happens if you try to hit the url it's building in a browser. https://10.14.34.73/api/v3/projects/root%2FHygieia/repository/commits/?ref_name&since=2016-11-24T00:20:00Z&per_page=100" |
Got ya, think a couple small changes have to be made to the code to make this work. Currently it will always try to use https, and doesn't support ports. I hadn't tested it with an IP address and port, but it shouldn't be hard to fix. I can probably get a pull request out there to fix this issue later next week, probably won't have time this week with Thanksgiving and all. Sorry about the inconvenience. |
My idea would be to add two additional (optional) fields to the properties file, one for protocol, and one for port. Would probably default the protocol to "https", and omit the port if not given. All of the logic would go into the class below. https://github.com/capitalone/Hygieia/blob/master/collectors/scm/gitlab/src/main/java/com/capitalone/dashboard/collecteur/GitlabUrlUtility.java |
Sure @rob-miller-777 .. Thanks a lot for quick response . Appreciate your effort and time . Have a fun filled thanksgiving . |
@hackeys I made the changes that should fix your issue. Just waiting on some approvals from our end before I can submit the pull request. Hopefully have that open in the next day or two. I'll put a link in here when I open the pull request. |
Hi , |
Hi all,
I'm running this off of docker images, I did not want to do this locally:
and when I check the docker logs:
|
@Mpluya , can you help us out here? |
Hi guys, Anyone think they can help with this? |
@vanjos it looks like you're using an encrypted property in your gitlab collector. Given this, you will need to pass the 'secret' in order for jasypt to decrypt the property value. In your docker run command, pass in an the 'JASYPT_ENCRYPTOR_PASSWORD' environment variable (e.g. If you continue to run into problems, please open up a different issue. |
That change helped, it now started. I have moved the issue over to a new issue here #1318 as I am having issues with it connecting to Gitlab at all (seems to think that my repo does not exist). |
Hi ,
Whenever i run gitlab collector , i get following error .
Below is my property file
The text was updated successfully, but these errors were encountered: