Readthedocs.org: Organization not showing up in repository list

Created on 12 Aug 2020  路  27Comments  路  Source: readthedocs/readthedocs.org

Details

  • Read the Docs project URL: n/a
  • Build URL (if applicable): n/a
  • Read the Docs username (if applicable): JoshIzaac

Expected Result

I am having trouble importing repositories from an organization (https://github.com/PennyLaneAI). I am listed as an owner of the organization, and 3rd party access has been provided to the organization:

image

Actual Result

Pressing the sync button on my ReadTheDocs 'Import a Project' page has no effect; the PennyLaneAI organization is not listed.

stale Support

Most helpful comment

It's actually working for me, after a recent update.

All 27 comments

@josh146 could you share a screenshot of the https://readthedocs.org/dashboard/import page?

@stsewd Sure!
image

@stsewd just wondering if there is an update on this? Some (non-owner) members of the organization _do_ have access to the PennyLaneAI organization in their readthedocs dashboard, it is only organization Owners that do not seem to

Sorry, haven't had time to debug this.

Some (non-owner) members of the organization do have access to the PennyLaneAI organization in their readthedocs dashboard, it is only organization Owners that do not seem to

That information is useful, thanks!

@josh146 I haven't jumped too deep into debugging this, but I guess that it could be solved after today's deploy. There are some cases where RemoteOrganization are not being synced properly due to a bug and it's solved in master already and going out today. I'm not 100% sure that this will solve your issue, but worth to try again tomorrow by hitting the two arrows button to re-sync your repositories and organizations. Please, let us know tomorrow.

I started seeing this problem yesterday. That update does not seem to have fixed it.

@humitos indeed, the update seems to have fixed it for me. Thanks!

We pushed another update yesterday, please try the rezync button again.

No, still not working for me.

Aha! I refreshed the page after clicking the sync button and now the organization has appeared!
Thank you

And now it has disappeared again.

@JamesRandom do you have more than one account connected? (github and gitlab?)

No, just GitHub. I tried disconnecting and reconnecting the GitHub account, but that didn't help.

The existing docs from that organization can still be built, so cloning is working. Just no list of repos

I just logged in to readthedocs with a different browser. When I went to the import page, the organization, and all the doc repos were visible. I hit the refresh button and the organization disappeared.

This is still not working for me.

If I log out and then go straight to the import URL (and login) then I get a full list of repositories, but the organisation is not shown in the filter list:
Screenshot 2020-09-08 at 10 20 06

If I hit the refresh button then those repos disappear:
Screenshot 2020-09-08 at 10 20 25

@JamesRandom Hi! Please, for issues with Read the Docs for Business contact our support team.

We plan to do a deploy today with a fix, so this issue should disappear later today. Thanks you all for the updates!

Hey @humitos, I'm an owner of https://github.com/orgs/marvel-ncc, but its not showing up in the list (I've tried re-syncing but its still not there)

image

I'm reopening this issue because it seems that @JamesRandom (jamiep) and @chrisjsewell (cjsewell) still have this problem. I will try to debug this today and come back with an answer.

@chrisjsewell GitHub returns only 4 organizations for your username when hitting https://api.github.com/user/orgs (https://github.com/readthedocs/readthedocs.org/blob/4ec6175282f7e3dbfc167c9db9ef0733a1044b04/readthedocs/oauth/services/github.py#L60)

(Pdb) [o.get('login') for o in orgs]
['docutils', 'conda-forge', 'aiidateam', 'executablebooks']

So, there may be something on GitHub's side because we are not getting that information. BTW, accessing to https://github.com/orgs/marvel-ncc gives me 404 to me. Is it a private organization?

It's actually working for me, after a recent update.

oops left of the last r: https://github.com/marvel-nccr

Hmm, thats weird, on https://github.com/chrisjsewell, it definitely shows this organisation (plus also another new one https://github.com/aiidaplugins which I created):

image

and I'm definitely down as an owner on marvel-nccr:

image

any tips 馃し

@chrisjsewell can you check what's returning the GitHub's API to you with these commands?

export GITHUB_TOKEN=<your-token-here>

curl --silent -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user/orgs | grep login

Yep it is there:

$ curl --silent -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user/orgs | grep login
    "login": "docutils",
    "login": "conda-forge",
    "login": "aiidateam",
    "login": "marvel-nccr",
    "login": "executablebooks",
    "login": "aiidaplugins",

FYI, I've got the GitHub hook working to push to RTD and trigger PR builds (another owner remade https://readthedocs.org/projects/quantum-mobile/ and added me as admin), but its still not working to push back to GitHub

image

any easy fix?

I'm really confused here. I will need more time to debug this because I ran out of ideas about where the problem could be. In my previous comment I saw GitHub not returning that organization. So, maybe the access_token that Read the Docs has in the DB does not have permissions to query that organization? (guessing aloud) :thinking:

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings