Not able to configure BitBucket collector due to password Encryption issue #1418
Comments
can someone please take a look into this issue? |
I tried to add git.key and github.key in application.properties as well as added key in api.properties which is generated from core by following documentation of Private repo password encryption under UI section. here is my application.properties, dbname=hygieiadb git.key=4DKrBLraYpKhC4pGJRCSRXMEcFekStx8 can someone check what am i doing wrong? |
Okay I finally find out the issue, Looks like URL hard-coded is wrong for bit bucket cloud. What i have done is, then i tried to run and i got again error with,
I tried to browse URL https://api.bitbucket.org/2.0/repositories/awsagero/testapi/commits?sha=master&since=2017-05-26T18:54z Output i got from above URL.
I am thinking, team will need to find why it's adding cket.org and taking default host name even if we pass the diff. host name by git.host. can you guys please confirm the above troubleshooting is correct or not? Also, can you please let me know where can i do this changes to fix the URL. or can you help to fix it? @softwareklinic @tabladrum @aryasunny. |
can someone please provide any advice, solution to this issue? |
closed it by mistake, I am getting this error if i take URL (https://bitbucket.org/api/2.0/repositories/cket.org/awsagero/testapi/commits?sha=master&since=2017-05-23T17:52Z) and remove "cket.org" (https://bitbucket.org/api/2.0/repositories/awsagero/testapi/commits?sha=master&since=2017-05-23T17:52Z) If i try it in browser. i am getting popup for username and password. by entering username and password, I am able to get all details from repo. can you please let me know, why am i getting 'cket.org' in URL? how can i remove it? Thanks |
no one is responding to this issue. closing this. will reopen a new issue. |
I almost read every link about this collector online :) and this comment @meet101 led me to the solution:
The 2 most tricky parameters:
The rest required parameters
|
I tried to add git.key and github.key in application.properties as well as added key in api.properties which is generated from core by following documentation of Private repo password encryption under UI section. please help @RayanZahab @meet101 |
I am trying to configure BitBucket collector. I am running into issue while passing encryption key in api.properties and in dashboard.properties. I followed steps "Encryption for private repos" as mentioned in README.
It gave me secret key - xxxxxxxxx
dbname=dashboard
dbusername=admin
dbpassword=admin
dbhost=127.0.0.1
dbport=27017
key=xxxxxxxxxxxxxxxxxxxxxxxxx
#Database HostName - default is localhost
dbhost=127.0.0.1
#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=admin
#Database Password - default is blank
dbpassword=admin
#Logging File location
logging.file=./logs/bitbucket.log
#Collector schedule (required)
git.cron=0 0/5 * * * *
#mandatory:
git.host=https://xxxxx@bitbucket.org/
git.key=xxxxxxxxxxxxxxxxxxxxxx
git.api=/rest/api/1.0/
Maximum number of days to go back in time when fetching commits
git.commitThresholdDays=15
git.pageSize=25
git.product=cloud
is should be git.host and git.key or something else for bitbucket cloud?
When i run api and collector with above setting. I am getting errors in API as,
2017-05-24 15:09:26,598 ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [/api] threw exception
io.jsonwebtoken.SignatureException: JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.
at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:342) ~[jjwt-0.6.0.jar!/:0.6.0]
at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:458) ~[jjwt-0.6.0.jar!/:0.6.0]at io.jsonwebtoken.impl.DefaultJwtParser.parseClaimsJws(DefaultJwtParser.java:518) ~[jjwt-0.6.0.jar!/:0.6.0atcom.capitalone.dashboard.auth.token.TokenAuthenticationServiceImpl.getAuthentication(TokenAuthenticationServiceImpl.java:59) ~[api.jar!/:2.0.5-SNAPSHOT]
in bitbucket collector, I am getting 404 not found as,
2017-05-24 15:10:00,365 ERROR c.c.d.c.DefaultBitbucketCloudClient - 404 Not Found:https://bitbucket.org/rest/api/1.0/cket.org/awsagero/tdapi/commits?sha=master&since=2017-05-24T14:55Z
2017-05-24 15:10:00,370 INFO c.c.d.collector.CollectorTask - Repo Count 1 0s
2017-05-24 15:10:00,370 INFO c.c.d.collector.CollectorTask - New Commits 0 0s
2017-05-24 15:10:00,370 INFO c.c.d.collector.CollectorTask - Finished 0s
can someone please help?
The text was updated successfully, but these errors were encountered: