I’m getting the following errors when trying to push to my new space for the first time.
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/spaces/Grokgpt/grokgpt
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://huggingface.co/spaces/Grokgpt/grokgpt'
I am logged in with a write token. I don’t have any large files, but I did activate lfs. I have huggingface_hub installed and huggingface-cli. I get the following output from cli whoami.
I have an SSH key. I have a GPG key. I’ve got 3 write tokens. I’ve restarted and reset my space a dozen times. Cloned it a dozen times. Here is my .git/config.
Shouldn’t be this difficult to push to a repo. I’ve spent way too many hours of my life on it. Maybe I have something misconfigured, but can’t figure out what. Ready to give up on Huggingface spaces.
Can you do huggingface-cli login (press Enter to add to git credentials) and then huggingface-cli env and copy-paste the output of both commands please?
hi @ducchau , thanks for sharing you env. I see you’re on OSX, and as you noticed on this thread there a few folks facing similar issue with OSX.
Perhaps you could try the SSH authentication approach? Hugging Face – The AI community building the future. ? If you add your keys to your settings you can edit the file from your .git/config or reclone the repo git clone [email protected]:spaces/ducchau/hello-world
hi @antoinescenario ,
perhaps you have infringing files? we default to LFS for binary files, such as images, models, etc.
so if you’ve committed such file in the past and posteriorly track then with LFS, you will still get errors. In general you get a log message stating the problem on git push
hi @radames, I am experiencing a similar problem in OSX.
I was able to push models directly into my space until I did some file reorganization and I have messed up some things, after hours of debugging I still can’t find what is happening.
After training, when pushing my model, I get the error:
Several commits (3) will be pushed upstream.
2023-10-08 16:36:17 huggingface_hub.repository WARNING: Several commits (3) will be pushed upstream.
The progress bars may be unreliable.
2023-10-08 16:36:17 huggingface_hub.repository WARNING: The progress bars may be unreliable.
EOF
error: failed to push some refs to 'https://huggingface.co/inesani/ner-test3'
The weird thing is it creates the model on the remote repository and is able to push some files related to the tokenizer but large files as training_args.bin and pytorch_model.bin are not…that’s why I think it might be related with lfs.
I have tried the hack of having my token into the .git/config but same thing happens. I have created many new Access Tokens and the issue is the same.
I am logged in without trouble:
(.venv) inesanibarro@Iness-MacBook-Pro ner-test2 % huggingface-cli login
_| _| _| _| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _|_|_|_| _|_| _|_|_| _|_|_|_|
_| _| _| _| _| _| _| _|_| _| _| _| _| _| _| _|
_|_|_|_| _| _| _| _|_| _| _|_| _| _| _| _| _| _|_| _|_|_| _|_|_|_| _| _|_|_|
_| _| _| _| _| _| _| _| _| _| _|_| _| _| _| _| _| _| _|
_| _| _|_| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _| _| _| _|_|_| _|_|_|_|
A token is already saved on your machine. Run `huggingface-cli whoami` to get more information or `huggingface-cli logout` if you want to log out.
Setting a new token will erase the existing one.
To login, `huggingface_hub` requires a token generated from https://huggingface.co/settings/tokens .
Token:
Add token as git credential? (Y/n) Y
Token is valid (permission: write).
Your token has been saved in your configured git credential helpers (osxkeychain,store).
Your token has been saved to /Users/inesanibarro/.cache/huggingface/token
Login successful
(.venv) inesanibarro@Iness-MacBook-Pro ner-test2 % huggingface-cli env
Copy-and-paste the text below in your GitHub issue.
- huggingface_hub version: 0.15.1
- Platform: macOS-12.5-arm64-i386-64bit
- Python version: 3.10.9
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Token path ?: /Users/inesanibarro/.cache/huggingface/token
- Has saved token ?: True
- Who am I ?: inesani
- Configured git credential helpers: osxkeychain, store
- FastAI: N/A
- Tensorflow: N/A
- Torch: 2.0.1
- Jinja2: 3.1.2
- Graphviz: N/A
- Pydot: N/A
- Pillow: 9.5.0
- hf_transfer: N/A
- gradio: 3.33.1
- numpy: 1.24.3
- ENDPOINT: https://huggingface.co
- HUGGINGFACE_HUB_CACHE: /Users/inesanibarro/.cache/huggingface/hub
- HUGGINGFACE_ASSETS_CACHE: /Users/inesanibarro/.cache/huggingface/assets
- HF_TOKEN_PATH: /Users/inesanibarro/.cache/huggingface/token
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False
if you can push some files, then the error is not on the authentication side. perhaps the git history of your model is mixed with files that need to be lfs. Do you have more logs besides this? Can you confirm whether it is possible to push some files?
its not working for me . can someone help me with this
(base) adduser@HP-LPT:~/First/Minima$ git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 439 bytes | 439.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: -------------------------------------------------------------------------
remote: You are not authorized to push to this repo.
remote: Make sure that you are properly logged in.
remote: -------------------------------------------------------------------------
To Minima - a Hugging Face Space by SanaullahCh
! [remote rejected] main → main (pre-receive hook declined)
error: failed to push some refs to ‘Minima - a Hugging Face Space by SanaullahCh’