Skip to content

[CI] Conan-* crosbow jobs need credentials to docker hub (or to not attempt to push there #43449

@jonkeane

Description

@jonkeane

Describe the bug, including details regarding any error messages, version, and platform.

Both conan-minimal and conan-maximal have been failing for a long time (minimal for 116 days, the maximal one has no successful runs that are reported on the crossbow report.

They both seem to fail with:

The push refers to repository [docker.io/conanio/gcc10]
3b2ed178cc9f: Preparing
5f70bf18a086: Preparing
a7c9350b994b: Preparing
28da0445c449: Preparing
28da0445c449: Layer already exists
a7c9350b994b: Layer already exists
3b2ed178cc9f: Layer already exists
5f70bf18a086: Layer already exists
errors:
denied: requested access to the resource is denied
unauthorized: authentication required

Traceback (most recent call last):
  File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/docker/core.py", line 224, in _execute_docker
    result = Docker().run(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/utils/command.py", line 78, in run
    return subprocess.run(invocation, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['docker', 'push', 'conanio/gcc10:1.62.0']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.4/x64/bin/archery", line 8, in <module>
    sys.exit(archery())
             ^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/click/decorators.py", line 45, in new_func
    return f(get_current_context().obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/docker/cli.py", line 259, in docker_compose_push
    compose.push(image, user=user, ***
  File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/docker/core.py", line 447, in push
    _push(service)
  File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/docker/core.py", line 430, in _push
    return self._execute_docker('push', service['image'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/docker/core.py", line 227, in _execute_docker
    raise RuntimeError(
RuntimeError: docker push conanio/gcc10:1.62.0 exited with non-zero exit code 1

recent log.

@kou It looks like you were working on those most recently — do you have the credentials we need? Or know if we can disable the uploading? Or possibly remove those tasks from Crossbow?

Component(s)

Continuous Integration

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions