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

Upload from cirun server fails #390

Closed
h-vetinari opened this issue May 23, 2024 · 2 comments
Closed

Upload from cirun server fails #390

h-vetinari opened this issue May 23, 2024 · 2 comments

Comments

@h-vetinari
Copy link
Member

Unfortunately, while #385 had green CI in the PR (and the packages build successfully), it fails during package upload:

Using STAGING_BINSTAR_TOKEN for anaconda.org uploads to cf-staging.
WARNING: No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.22
Adding in variants from internal_defaults
Adding in variants from /home/conda/recipe_root/conda_build_config.yaml
Adding in variants from /home/conda/feedstock_root/.ci_support/linux_64_c_compiler_version12c_stdlib_version2.12cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version12python3.11.____cpython.yaml
[ERROR] 
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/commands/upload.py", line 457, in get_release
    self.api.release(self.username, meta.name, meta.version)
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/__init__.py", line 424, in release
    self._check_response(res)
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/__init__.py", line 229, in _check_response
    raise ErrCls(msg, res.status_code)
binstar_client.errors.NotFound: ("release version='2.16.1' does not exist", 404)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/bin/anaconda", line 10, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/scripts/cli.py", line 257, in main
    binstar_main(commands, args, exit_)
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/scripts/cli.py", line 206, in binstar_main
    return arguments.main(arguments)
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/commands/upload.py", line 61, in main
    uploader.upload(filename)
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/commands/upload.py", line 504, in upload
    return self.upload_package(filename, package_meta)
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/commands/upload.py", line 537, in upload_package
    self.get_release(meta)
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/commands/upload.py", line 473, in get_release
    self.api.add_release(self.username, meta.name, meta.version, [], announce, meta.release_attrs)
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/__init__.py", line 464, in add_release
    self._check_response(res)
  File "/opt/conda/lib/python3.10/site-packages/binstar_client/__init__.py", line 229, in _check_response
    raise ErrCls(msg, res.status_code)
binstar_client.errors.Unauthorized: ('Authorization token is no longer valid', 401)
Failed to upload due to Command '['anaconda', '--quiet', '--show-traceback', '-t', '/tmp/tmp5nhy5lju/binstar.token', 'upload', '/home/conda/feedstock_root/build_artifacts/linux-64/libtensorflow_cc-2.16.1-cpu_hb0d1dac_0.conda', '--user=cf-staging', '--channel=main', '--force-metadata-update']' returned non-zero exit status 1.. Trying again in 10 seconds

I've cancelled the remaining runs to avoid wasting resources. Does this need a token rotation somewhere? On admin-requests or in https://github.com/conda-forge/.cirun somewhere?

CC @jaimergp @isuruf

@isuruf
Copy link
Member

isuruf commented May 23, 2024

This repository had a STAGING_BINSTAR_TOKEN for some reason added 2 years ago. Deleted it.

@isuruf isuruf closed this as completed May 23, 2024
@h-vetinari
Copy link
Member Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants