CircleCI local app: "circleci/picard@sha256:...:" is not a valid repository/tag

docker

#1

Looks like the circleci local app is trying to use a reference to a docker image that somehow isn’t valid according to my version of docker.

$ circleci 
Receiving latest version of circleci...
/usr/bin/docker-current: Error parsing reference: "circleci/picard@sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3:" is not a valid repository/tag.
See '/usr/bin/docker-current run --help'.

$ docker search circleci/picard
INDEX       NAME                        DESCRIPTION   STARS     OFFICIAL   AUTOMATED
docker.io   docker.io/circleci/picard                 2        

$ docker version
Client:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-common-1.12.6-6.gitae7d637.fc25.x86_64
 Go version:      go1.7.4
 Git commit:      ae7d637/1.12.6
 Built:           Mon Jan 30 16:15:28 2017
 OS/Arch:         linux/amd64

Server:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-common-1.12.6-6.gitae7d637.fc25.x86_64
 Go version:      go1.7.4
 Git commit:      ae7d637/1.12.6
 Built:           Mon Jan 30 16:15:28 2017
 OS/Arch:         linux/amd64

$ docker pull docker.io/circleci/picard
Using default tag: latest
Trying to pull repository docker.io/circleci/picard ... 
sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3: Pulling from docker.io/circleci/picard
Digest: sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3
Status: Image is up to date for docker.io/circleci/picard:latest

Possibly caused by the extra colon at the end of the SHA256 hash?


#2

What do you get from circleci version? I was able to update && run it without problems.


#3

The following:

$ circleci version

circleci version: 0.0.3315-e9cc358
/usr/bin/docker-current: Error parsing reference: "circleci/picard@sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3:" is not a valid repository/tag.
See '/usr/bin/docker-current run --help'.

#4

For science, can you run this and share the output?

docker images circleci/picard

For resolution, can you try this?

docker pull circleci/picard:latest

#5

For science!

$ docker images circleci/picard
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
docker.io/circleci/picard   latest              8238f8a0f991        15 hours ago        50.39 MB

$ docker pull circleci/picard:latest
Trying to pull repository docker.io/circleci/picard ... 
sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3: Pulling from docker.io/circleci/picard

Digest: sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3
Status: Image is up to date for docker.io/circleci/picard:latest

#6

Can you wget (or curl) https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci to update your current circleci version? The Docker bits look right, but something is wrong with the shell script.


#7
$ wget https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci
--2017-05-30 14:51:02--  https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci
Resolving circle-downloads.s3.amazonaws.com (circle-downloads.s3.amazonaws.com)... 52.216.81.120
Connecting to circle-downloads.s3.amazonaws.com (circle-downloads.s3.amazonaws.com)|52.216.81.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3354 (3.3K) [text/x-sh]
Saving to: ‘circleci.1’

circleci.1                                                  100%[=========================================================================================================================================>]   3.28K  --.-KB/s    in 0s      

2017-05-30 14:51:03 (60.1 MB/s) - ‘circleci.1’ saved [3354/3354]

$ mv circleci{,.orig}
$ mv circleci.1 circleci
$ chmod +x circleci

$ ./circleci version

circleci version: 0.0.3315-e9cc358
/usr/bin/docker-current: Error parsing reference: "circleci/picard@sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3:" is not a valid repository/tag.
See '/usr/bin/docker-current run --help'.

$ ./circleci.orig version

circleci version: 0.0.3315-e9cc358
/usr/bin/docker-current: Error parsing reference: "circleci/picard@sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3:" is not a valid repository/tag.
See '/usr/bin/docker-current run --help'.

#8

What do you get from these?

cat .circleci/latest_picard_digest
cat .circleci/current_picard_digest

If one (or both?) of those end with that trailing colon, can you modify the file to remove it?


#9
$ cat .circleci/latest_picard_digest
sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3: Pulling from docker.io/circleci/picard sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3

$ cat .circleci/current_picard_digest
sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3: Pulling from docker.io/circleci/picard sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3

#10

Found the issue :slight_smile:

$ cat ~/.circleci/latest_picard_digest
sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3
$ cat ~/.circleci/current_picard_digest
sha256:39ece541a60dcba847a67faf4d0524e65fb4ff91e3e645d0fc39af687a1d6ea3

Can you remove the second colon and everything following it? I will open a bug ticket to address this.


#11

LOL… that was in my first comment :slight_smile: Thanks for digging in. Removing the text after that colon at the end of the first SHA256 hash fixed the issue.


#12

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.