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

[JFROG] bintray is gone away - docker-compose state failed #281

Closed
noelmcloughlin opened this issue Apr 12, 2021 · 5 comments
Closed

[JFROG] bintray is gone away - docker-compose state failed #281

noelmcloughlin opened this issue Apr 12, 2021 · 5 comments
Labels

Comments

@noelmcloughlin
Copy link
Member

noelmcloughlin commented Apr 12, 2021

Describe the bug

Jfrog has shutdown bintray: https://www.infoq.com/news/2021/02/jfrog-jcenter-bintray-closure/

          ID: docker-compose-software-binary-install
    Function: file.managed
        Name: /usr/local/docker-compose-latest/bin//docker-compose
      Result: False
     Comment: Attempt 1: Returned a result of "False", with the following comment: "Failed to cache https://dl.bintray
.com/docker-compose/master/docker-compose-Linux-x86_64: Error: HTTP 403: Forbidden reading https://dl.bintray.com/dock
er-compose/master/docker-compose-Linux-x86_64"
              Attempt 2: Returned a result of "False", with the following comment: "Failed to cache https://dl.bintray
.com/docker-compose/master/docker-compose-Linux-x86_64: Error: HTTP 403: Forbidden reading https://dl.bintray.com/dock
er-compose/master/docker-compose-Linux-x86_64"
              Failed to cache https://dl.bintray.com/docker-compose/master/docker-compose-Linux-x86_64: Error: HTTP 40
3: Forbidden reading https://dl.bintray.com/docker-compose/master/docker-compose-Linux-x86_64
     Started: 19:44:00.721217
    Duration: 135371.269 ms
     Changes:
----------
          ID: docker-compose-software-binary-install-symlink-docker-compose
    Function: file.symlink
        Name: /usr/local/bin/docker-compose
      Result: False
     Comment: One or more requisite failed: docker.compose.software.binary.install.docker-compose-software-binary-inst
all
     Started: 19:46:16.174253
    Duration: 0.005 ms
     Changes:
@B1ue-W01f
Copy link

For those coming across this issue, a temporary solution is to override the pillar defaults as below:

docker:
  pkg:
    compose:
      binary:
        options: ''
        source: 'https://github.com/docker/compose/releases/download/1.29.1/docker-compose-Linux-x86_64'
        source_hash: '8097769d32e34314125847333593c8edb0dfc4a5b350e4839bef8c2fe8d09de7'

Using the releases from the Docker Compose Github

@danny-smit
Copy link
Collaborator

Can we use the github.com sources by default in the formula yaml files as well? That seems to work if I test it.

However, with the current use of bintray.org the source always points 'latest', but the source_hash is hard-coded. I'm a bit confused by that. Isn't the hash of the 'latest' changing all the time?

@noelmcloughlin
Copy link
Member Author

noelmcloughlin commented May 18, 2021

Looking at https://github.com/docker/compose/releases each release tarball (tar.gz) has a checksum (tar.gz.sha256).

If source_hash: null then formula will automatically calculate correct source_hash value so nullis best for github source.

{%- if 'source_hash' in p.archive and p.archive.source_hash %}
{%- do p.archive.update({'name': p.path, 'source_hash': p.archive.source_hash}) %}
{%- else %}
{%- do p.archive.update({'name': p.path, 'source_hash': url ~ '.sha256'}) %}
{%- endif %}

@danny-smit
Copy link
Collaborator

@noelmcloughlin Thanks, that seems to work: #290

@myii
Copy link
Member

myii commented May 19, 2021

Fixed by #290.

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

No branches or pull requests

4 participants