adterskov opened a new issue, #4756:
URL: https://github.com/apache/incubator-devlake/issues/4756

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
didn't find similar issues.
   
   ### What do you expect to happen
   
   When I try to configure connection with self-hosted GitLab an error occurred
   **Test Failed. Please check your configuration.**
   
   Logs in the Devlake container are following
   `[GIN] 2023/03/23 - 11:47:58 | 500 |  878.823223ms |    *.*.*.* | POST     
"/plugins/gitlab/test"
   [GIN] 2023/03/23 - 11:48:06 | 200 |   10.393876ms |    *.*.*.* | GET      
"/blueprints"
   time="2023-03-23 11:48:08" level=error msg="HTTP 500 error
        caused by: error requesting https://gitlab.example.com/api/v4/user
        Wraps: (2) Get "https://gitlab.loc/api/v4/user": x509: certificate 
signed by unknown authority
        Wraps: (3) Get "https://gitlab.loc/api/v4/user";
        Wraps: (4) x509: certificate signed by unknown authority
        Error types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) 
*url.Error (4) x509.UnknownAuthorityError"`
   
   Environment variable is set
   `IN_SECURE_SKIP_VERIFY=true`
   
   I've already added CA certificate in docker image and run command
   `/usr/sbin/update-ca-certificates`
   Finaky I see CA certificate on the right path
   `/etc/ssl/certs/ca-certificates.crt`
   
   CA certificate was installed correctly and this check completed successfully
   curl 
"https://gitlab.example.com/api/v4/user?access_token=gitlab-personal-access-token";
   
   I also try to solve this issue with different Devlake versions
   
[v0.16.0-beta9](https://github.com/apache/incubator-devlake/releases/tag/v0.16.0-beta9)
   
[v0.15.1-beta5](https://github.com/apache/incubator-devlake/releases/tag/v0.15.1-beta5)
   [v0.15.0](https://github.com/apache/incubator-devlake/releases/tag/v0.15.0)
   
   ### How to reproduce
   
   Reproduce the steps from the official documentation
   https://devlake.apache.org/docs/Configuration/GitLab
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   v0.15.0
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to