Closed stuart-c-moore closed 5 years ago
Looking into this. The change was supposed to be backwards-compatible with old instances.
Can you clarify whether that error is coming from get
, put
, or the resource check?
Tag latest
was overridden 6 hours ago on DockerHub.
docker run -it --rm concourse/concourse-pipeline-resource /opt/resource/fly -v
now returns 4.0.0
.
A possible fix would be to push the previous latest
image with tag v3.14.1
.
I haven't been able to reproduce the error @migs reported, but I was able to get the following error:
~/w/concourse-pipeline-resource (master) $ docker run --rm -i -t foo
/ # /opt/resource/fly --version
4.0.0
/ # echo '{"source":{"debug":true,"target":"http://10.244.15.2:8080","teams":[{"name":"main","username":"foo","password":"bar"}]}}' | /opt/resource/check
Logging to /tmp/concourse-pipeline-resource-check.log055532294
2018/08/08 19:51:47 exit status 1 - error: unknown flag `json'
This happens because it fly sync
s to the v3.14.1 version which doesn't have the --json
flag.
I've built a new image, concourse/concourse-pipeline-resource:3
which fixes this, but I haven't tried setting any pipelines yet. I'm at least not seeing the "not authorized" error. Can someone try it out?
Also, next time this happens can you hijack the step and dump the logs? They should be in /tmp
.
I'm still experiencing the error on a put
.
Received input: {Source:{Target:https://MY_CONCOURSE.com/ Teams:[{Name:MY_TEAM Username:MY_USER Password:***REDACTED-PASSWORD-TEAM-0***}] Insecure:} Params:{Pipelines:[{Name:MY_PIPELINE ConfigFile:output-pipeline/pipeline.yml VarsFiles:[] TeamName:MY_TEAM Unpaused:false}] PipelinesFile:}}
Input pipelines: [{Name:NEW_PIPELINE ConfigFile:output-pipeline/pipeline.yml VarsFiles:[] TeamName:MY_TEAM Unpaused:false}]
Setting pipelines
Performing login
Starting fly command: [-t https://MY_CONCOURSE.com/ login -c https://MY_CONCOURSE.com/ -n MY_TEAM -u MY_USER -p ***REDACTED-PASSWORD-TEAM-0***]
Waiting for fly command: [-t https://MY_CONCOURSE.com/ login -c https://MY_CONCOURSE.com/ -n MY_TEAM -u MY_USER -p ***REDACTED-PASSWORD-TEAM-0***]
Exiting with error: exit status 1 - WARNING:
fly version (4.0.0) is out of sync with the target (3.14.1). to sync up, run the following:
fly -t https://MY_CONCOURSE.com/ sync
error: EOF
fly sync
runs after fly login
.
Try again? Just pushed a version with an older fly
checked in.
We're also now tagging the image with the version of fly
that it was built with. So the latest
is now additionally tagged with 4.0.0
.
It's working.
Thanks!
For others experiencing the issue, update your resource_type
.
resource_types:
- name: concourse-pipeline
type: docker-image
source:
repository: concourse/concourse-pipeline-resource
tag: 3
Similar issue, as per https://discuss.concourse-ci.org/t/concourse-pipeline-resource/442. Worked around it by pulling the older tagged image.. Will gather logs from failing task if needed, we just use it to set pipeline
@felixcontant Thanks for confirming! I'll close this out then.
I am glad to have finally found this issue and the fix for it. Is there any chance we can better document this?
Do you plan to make a fix in latest tag to avoid such workarounds? This makes the whole funcionality broken because it is not documented in README file...
We are now seeing this issue on tag 3, which was meant to be the work around. I also see that tag 3 image was update 13 days ago. Is it possible the issue has been introduced in tag 3 again?
The latest docker image (updated at around 15:00 UTC 8th August) cannot log into Concourse v3.14.1, showing the following error:
Can the docker images please use appropriate tags, so we can use the versions of the resource appropriate for our version of concourse?