HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/api/datasets/lora-training-frenzi/hf-cli-jobs-uv-run-scripts

#5
by YuLexuan30 - opened

I always get this error:

/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_experimental.py:60: UserWarning: 'HfApi.run_uv_job' is experimental and might be subject to breaking changes in the future without prior notice. You can disable this warning by setting HF_HUB_DISABLE_EXPERIMENTAL_WARNING=1 as environment variable. warnings.warn( Creating repository: lora-training-frenzi/hf-cli-jobs-uv-run-scripts Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_http.py", line 409, in hf_raise_for_status response.raise_for_status() File "/usr/local/lib/python3.9/dist-packages/requests/models.py", line 1026, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/api/datasets/lora-training-frenzi/hf-cli-jobs-uv-run-scripts The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/hf_api.py", line 10815, in _create_uv_command_env_and_secrets self.repo_info(repo_id, repo_type="dataset") File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/hf_api.py", line 2864, in repo_info return method( File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/hf_api.py", line 2722, in dataset_info hf_raise_for_status(r) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_http.py", line 459, in hf_raise_for_status raise _format(RepositoryNotFoundError, message, response) from e huggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-68db2145-11fd0471739f59881a72ad6f;64f8b6d9-77c5-498f-8054-9852b097d11f) Repository Not Found for url: https://huggingface.co/api/datasets/lora-training-frenzi/hf-cli-jobs-uv-run-scripts. Please make sure you specified the correct repo_id and repo_type. If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface.co/docs/huggingface_hub/authentication During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_http.py", line 409, in hf_raise_for_status response.raise_for_status() File "/usr/local/lib/python3.9/dist-packages/requests/models.py", line 1026, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/api/repos/create The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/bin/hf", line 8, in sys.exit(main()) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/cli/hf.py", line 59, in main service.run() File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/cli/jobs.py", line 521, in run job = api.run_uv_job( File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_experimental.py", line 66, in _inner_fn return fn(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/hf_api.py", line 10346, in run_uv_job command, env, secrets = self._create_uv_command_env_and_secrets( File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/hf_api.py", line 10819, in _create_uv_command_env_and_secrets create_repo(repo_id, repo_type="dataset", private=True, exist_ok=True) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/hf_api.py", line 3779, in create_repo raise err File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/hf_api.py", line 3766, in create_repo hf_raise_for_status(r) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_http.py", line 473, in hf_raise_for_status raise _format(HfHubHTTPError, message, response) from e huggingface_hub.errors.HfHubHTTPError: (Request ID: Root=1-68db2145-561e459c263e966c4a7c52dd;f637f1be-5fc7-4b9f-8fc5-6fb1de110813) 403 Forbidden: You don't have the rights to create a dataset under the namespace "lora-training-frenzi". Cannot access content at: https://huggingface.co/api/repos/create. Make sure your token has the correct permissions.

Go to https://huggingface.co/settings/connected-applications and remove Ostris AI Toolkit. Then go back to this application and login again, this time authorizing the lora-training-frenzi organization

Thanks, it has solved the problem and training started as expected!
ComfyUI_00063_

YuLexuan30 changed discussion status to closed

Sign up or log in to comment