Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub repo's not loading #6038

Closed
2 of 3 tasks
pramodh-b opened this issue Sep 7, 2023 · 15 comments
Closed
2 of 3 tasks

GitHub repo's not loading #6038

pramodh-b opened this issue Sep 7, 2023 · 15 comments
Assignees
Labels
priority/high This issue is very important type/bug This issue is a bug
Milestone

Comments

@pramodh-b
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

After adding the GitHub connection, it keeps on loading the data scopes. repositories won't show up to select for data scopes.
image

What do you expect to happen

After adding the GitHub connection it should show up the repositories present in the GitHub for adding in data scopes

How to reproduce

As of now can be reproduced anytime

Anything else

It's happening every time now

FYI I've used the helm chart to deploy

Version

Apache 2.0 License v0.18.0-beta9@

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@pramodh-b pramodh-b added the type/bug This issue is a bug label Sep 7, 2023
@Startrekzky Startrekzky added this to the v0.19 milestone Sep 7, 2023
@mintsweet
Copy link
Member

Hi @pramodh-b thank you for your report.
Could you please provide the network response to this request?

@pramodh-b
Copy link
Author

Hope this helps
image

@Startrekzky Startrekzky added the priority/high This issue is very important label Sep 12, 2023
@klesh
Copy link
Contributor

klesh commented Sep 13, 2023

@pramodh-b Thanks, seems like it was a BE problem, can you share the devlake container log as well?

@d4x1
Copy link
Contributor

d4x1 commented Sep 13, 2023

hi @pramodh-b I am following this issue. Could please tell me the connection info you are using to help me reproduce this issue?
image

Do not paste your personal information here. I just want to reproduce this issue.

@pramodh-b
Copy link
Author

pramodh-b commented Sep 13, 2023

Hi @d4x1 , please find the below details

  1. Github version: GitHub cloud
  2. Authentication type: GitHub access token ➡️ Classic token
  3. Proxy URL: Do not use any proxy URL
  4. Use GraphQL APIs: Disabled.

When I used a Fine-grained token, the required repo wasn't showing even though proper permission and other required approvals were provided.

@d4x1
Copy link
Contributor

d4x1 commented Sep 13, 2023

Hi @d4x1 , please find the below details

  1. Github version: GitHub cloud
  2. Authentication type: GitHub access token ➡️ Classic token
  3. Proxy URL: Do not use any proxy URL
  4. Use GraphQL APIs: Disabled.

When I used a Fine-grained token, the required repo wasn't showing even though proper permission and other required approvals were provided.

Thank you @pramodh-b , Let me test it and find what's going wrong.

@mintsweet mintsweet assigned d4x1 and unassigned mintsweet Sep 13, 2023
@pramodh-b
Copy link
Author

@pramodh-b Thanks, seems like it was a BE problem, can you share the devlake container log as well?

Hi @klesh please find the below logs of container

[GIN] 2023/09/13 - 07:31:27 | 200 | 753.707µs | 10.244.5.60 | GET "/plugins/github/connections"
[GIN] 2023/09/13 - 07:31:27 | 200 | 2.323422ms | 10.244.5.60 | GET "/plugins/gitlab/connections"
[GIN] 2023/09/13 - 07:31:27 | 200 | 2.15022ms | 10.244.5.60 | GET "/plugins/sonarqube/connections"
[GIN] 2023/09/13 - 07:31:27 | 200 | 564.806µs | 10.244.5.60 | GET "/plugins/pagerduty/connections"
[GIN] 2023/09/13 - 07:31:28 | 200 | 607.806µs | 10.244.5.60 | GET "/plugins/jira/connections"
[GIN] 2023/09/13 - 07:31:28 | 200 | 464.605µs | 10.244.5.60 | GET "/plugins/tapd/connections"
[GIN] 2023/09/13 - 07:31:28 | 200 | 515.305µs | 10.244.5.60 | GET "/plugins/zentao/connections"
[GIN] 2023/09/13 - 07:31:28 | 200 | 3.219831ms | 10.244.5.60 | GET "/plugins/bitbucket/connections"
[GIN] 2023/09/13 - 07:31:28 | 200 | 519.105µs | 10.244.5.60 | GET "/plugins/jenkins/connections"
[GIN] 2023/09/13 - 07:31:28 | 200 | 803.407µs | 10.244.5.60 | GET "/plugins/azuredevops/connections"
[GIN] 2023/09/13 - 07:31:28 | 200 | 697.507µs | 10.244.5.60 | GET "/plugins/webhook/connections"
[GIN] 2023/09/13 - 07:31:28 | 200 | 47.601µs | 10.244.5.60 | GET "/userinfo"
[GIN] 2023/09/13 - 07:31:32 | 200 | 1.04841ms | 10.244.5.60 | GET "/plugins/github/connections/5/scopes?blueprints=true"
[GIN] 2023/09/13 - 07:31:32 | 200 | 269.621344ms | 10.244.5.60 | POST "/plugins/github/test"
[GIN] 2023/09/13 - 07:31:33 | 200 | 1.4µs | 10.244.5.1 | GET "/ping"
[GIN] 2023/09/13 - 07:31:35 | 200 | 286.364789ms | 10.244.5.60 | GET "/plugins/github/connections/5/remote-scopes"
time="2023-09-13 07:31:37" level=error msg="HTTP 500 error
caused by: error decoding response from https://api.github.com/orgs/10290767/repos?page=1&per_page=100: raw response: {"message":"Resource protected by organization SAML enforcement. You must grant your Personal Access token access to this organization.","documentation_url":"https://docs.github.com/articles/authenticating-to-a-github-organization-with-saml-single-sign-on/"}"
[GIN] 2023/09/13 - 07:31:37 | 500 | 226.567028ms | 10.244.5.60 | GET "/plugins/github/connections/5/remote-scopes?groupId=10290767"
[GIN] 2023/09/13 - 07:31:43 | 200 | 1.1µs | 10.244.5.1 | GET "/ping"

@d4x1
Copy link
Contributor

d4x1 commented Sep 13, 2023

@pramodh-b Thanks, seems like it was a BE problem, can you share the devlake container log as well?

Hi @klesh please find the below logs of container

[GIN] 2023/09/13 - 07:31:27 | 200 | 753.707µs | 10.244.5.60 | GET "/plugins/github/connections" [GIN] 2023/09/13 - 07:31:27 | 200 | 2.323422ms | 10.244.5.60 | GET "/plugins/gitlab/connections" [GIN] 2023/09/13 - 07:31:27 | 200 | 2.15022ms | 10.244.5.60 | GET "/plugins/sonarqube/connections" [GIN] 2023/09/13 - 07:31:27 | 200 | 564.806µs | 10.244.5.60 | GET "/plugins/pagerduty/connections" [GIN] 2023/09/13 - 07:31:28 | 200 | 607.806µs | 10.244.5.60 | GET "/plugins/jira/connections" [GIN] 2023/09/13 - 07:31:28 | 200 | 464.605µs | 10.244.5.60 | GET "/plugins/tapd/connections" [GIN] 2023/09/13 - 07:31:28 | 200 | 515.305µs | 10.244.5.60 | GET "/plugins/zentao/connections" [GIN] 2023/09/13 - 07:31:28 | 200 | 3.219831ms | 10.244.5.60 | GET "/plugins/bitbucket/connections" [GIN] 2023/09/13 - 07:31:28 | 200 | 519.105µs | 10.244.5.60 | GET "/plugins/jenkins/connections" [GIN] 2023/09/13 - 07:31:28 | 200 | 803.407µs | 10.244.5.60 | GET "/plugins/azuredevops/connections" [GIN] 2023/09/13 - 07:31:28 | 200 | 697.507µs | 10.244.5.60 | GET "/plugins/webhook/connections" [GIN] 2023/09/13 - 07:31:28 | 200 | 47.601µs | 10.244.5.60 | GET "/userinfo" [GIN] 2023/09/13 - 07:31:32 | 200 | 1.04841ms | 10.244.5.60 | GET "/plugins/github/connections/5/scopes?blueprints=true" [GIN] 2023/09/13 - 07:31:32 | 200 | 269.621344ms | 10.244.5.60 | POST "/plugins/github/test" [GIN] 2023/09/13 - 07:31:33 | 200 | 1.4µs | 10.244.5.1 | GET "/ping" [GIN] 2023/09/13 - 07:31:35 | 200 | 286.364789ms | 10.244.5.60 | GET "/plugins/github/connections/5/remote-scopes" time="2023-09-13 07:31:37" level=error msg="HTTP 500 error caused by: error decoding response from https://api.github.com/orgs/10290767/repos?page=1&per_page=100: raw response: {"message":"Resource protected by organization SAML enforcement. You must grant your Personal Access token access to this organization.","documentation_url":"https://docs.github.com/articles/authenticating-to-a-github-organization-with-saml-single-sign-on/"}" [GIN] 2023/09/13 - 07:31:37 | 500 | 226.567028ms | 10.244.5.60 | GET "/plugins/github/connections/5/remote-scopes?groupId=10290767" [GIN] 2023/09/13 - 07:31:43 | 200 | 1.1µs | 10.244.5.1 | GET "/ping"

You can follow {"message":"Resource protected by organization SAML enforcement. You must grant your Personal Access token access to this organization.","documentation_url":"[https://docs.github.com/articles/authenticating-to-a-github-organization-with-saml-single-sign-on/"}](https://docs.github.com/articles/authenticating-to-a-github-organization-with-saml-single-sign-on/%22%7D)" to solve your problem.

As to the long term, we will dive into the SAML and see what we can do to find it in the early stage.

@pramodh-b
Copy link
Author

HI @klesh

Issue resolved. Thank you all for the help.

@klesh
Copy link
Contributor

klesh commented Sep 14, 2023

Nice to know, @d4x1 I think we should forward the error message instead of throwing 500 error for this particular case, what do you think?

@WuJiahu
Copy link

WuJiahu commented Sep 16, 2023

@pramodh-b Thanks, seems like it was a BE problem, can you share the devlake container log as well?

Hi,how to find the devlake container logs?

@klesh
Copy link
Contributor

klesh commented Sep 18, 2023

@WuJiahu run command docker-compose logs -f devlake in the folder of docker-compose.yml

Copy link
Contributor

This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Nov 18, 2023
@mintsweet mintsweet removed the Stale label Nov 19, 2023
@d4x1
Copy link
Contributor

d4x1 commented Nov 23, 2023

@WuJiahu run command docker-compose logs -f devlake in the folder of docker-compose.yml

@WuJiahu Any updation?

@WuJiahu
Copy link

WuJiahu commented Dec 7, 2023

@WuJiahu run command docker-compose logs -f devlake in the folder of docker-compose.yml

@WuJiahu Any updation?

yes, i have fixed it

@d4x1 d4x1 closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/high This issue is very important type/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

6 participants