Can't push to a public repo I am an admin of

Hi,
I created an organization that I am the admin and under it a repo for a new dataset. Trying to push from cli I get this error:

remote: -------------------------------------------------------------------------
remote: You are not authorized to push to this repo.
remote: Make sure that you are properly logged in.
remote: -------------------------------------------------------------------------
To https://huggingface.co/datasets/myorg/mydataset

Running whoami gives the expected result:

myusername
orgs:  myorg

I checked and I am defined as admin in the organizational settings page of myorg.

3 Likes

I’ve also got this issue for a dataset repo of which I am the owner and only contributor.

I authenticated Git via HTTPS using my username and access key. I am logged in via the Hugging Face CLI as confirmed by running huggingface-cli whoami and my Git username and user email are (correctly) set.

What other causes can there be for this issue?

1 Like

If that doesn’t work, it may be that the token permissions are insufficient, or for some reason, logging out and logging back in may fix the problem.
In addition, there have been reports that it worked the next day. In such cases, it is probably a hub or network error.