進行飛行同步時的未知目標 (unknown target when doing a fly sync)


問題描述

進行飛行同步時的未知目標 (unknown target when doing a fly sync)

我啟動了一個虛擬機,並嘗試使用以下內容登錄我的大廳服務器:

Christoher:pipeline christopher$ fly ‑‑target chris login ‑‑team‑name chris ‑‑concourse‑url http://ld4370.mycompany.com

然後,我收到此消息:

WARNING:

fly version (2.5.0) is out of sync with the target (2.4.0). to sync up, run the following:

fly ‑t chris sync

但是,當我執行以下操作,我得到了這個問題:

Christoher:pipeline christopher$ fly ‑t chris sync
error: unknown target: chris

起初,我有一個舊版本的fly。所以我在我的 /usr/local/bin 目錄中刪除了 fly,然後下載了最新的。現在,我領先於我在 VM 上安裝的大廳版本。我查看了 fly 文檔,但還沒有弄清楚如何解決這個問題。


參考解法

方法 1:

As an immediate fix to your problem, you can download any version of fly from github https://github.com/concourse/concourse/releases.

方法 2:

Download/ update concourse and fly version 4 and below 4 Hi go to this website basically you need to install the relevant version https://gist.github.com/kevin‑smets/f20afd45a24ab3f88d01b2049ce7744f

for example: copy this command

curl ‑Lo fly https://github.com/concourse/concourse/releases/download/2.5.0/fly_darwin_amd64 && chmod +x fly && mv fly /usr/local/bin/

and changed the version v2.6.0 to v2.5.0 past it in the terminal and same goes for the below :

curl ‑Lo concourse https://github.com/concourse/concourse/releases/download/v2.4.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin

and it should work. I had similar problem i wanted install the v4.2.2 and it worked. the idea is the get the same version

方法 3:

Download concourse & fly new version 5.0.0 on Mac do the following:

Download the latest version from concourse website https://mockersf.github.io/docs/download.html

then open finder press CMD + Shift + . it will make all your hidden files visible temporarily open your user/local/bin folder then drag the new version of concourse to the bin and click replace do the same for the fly and now go in command line press fly ‑‑version and you should see the new version

(by Chris BoltonJosh ZarrabiArian PopalyarArian Popalyar)

參考文件

  1. unknown target when doing a fly sync (CC BY‑SA 2.5/3.0/4.0)

#concourse






相關問題

進行飛行同步時的未知目標 (unknown target when doing a fly sync)

從另一個大廳到達一個大廳任務的容器 (Reach one concourse task's container from another one)

從 Concourse 克隆 Bitbucket 上的 git 存儲庫的問題 (Issues cloning a git repo on Bitbucket from Concourse)

如果作業被取消,Concourse 會阻止後台進程停止 (Concourse prevent background processes from being stopped if job is canceled)

Concourse 流水線:如何讓嵌入式腳本使流水線失敗 (Concourse Pipeline: How to have an Embedded Script Fail the Pipeline)

將構建目錄 (/dist) 從一個作業傳遞到大廳中的下一個作業 (Pass build directory (/dist) from a job to next job in concourse)

Concourse CI 找不到 kubernetes 機密 (Concourse CI can't find kubernetes secrets)

大廳工作人員“找不到文件” (Concourse Worker "file not found")

windows系統需要安裝Concourse(CI/CD) (Need to Install Concourse(CI/CD) on windows system)

在管道任務中指定運行時參數 (Specify runtime parameter in a pipeline task)

如何遍歷大廳中的數組 (How to iterate through an array in concourse)







留言討論