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

unknown target: main #18

Open
ianatarewe opened this issue May 7, 2024 · 2 comments
Open

unknown target: main #18

ianatarewe opened this issue May 7, 2024 · 2 comments

Comments

@ianatarewe
Copy link

ianatarewe commented May 7, 2024

Can you clarify in the readme whether the resource logs in by itself or if we need to log in ourselves. It does not seem to create a target, which AFAIK is done on initial login.

resource:

- name: admin-fly
  type: fly
  source:
    url: my.server.duckdns.org
    username: ((concourse_admin_username))
    password: ((concourse_admin_password))
    team: main

put:

  # Apply user configs
  - put: admin-fly
    inputs: all
    params:
      options: set-team -n initial-pipeline-team -c initial-concourse/teams/initial-pipeline-team.yml 
@ianatarewe
Copy link
Author

ianatarewe commented May 8, 2024

Ran with debug and got this both with and without https://:

Logging in...
++ /usr/local/bin/fly login -t main -c my.server.duckdns.org -n main --username=admin --password=aPassword
+ local 'out=logging in to team '\''main'\''

could not reach the Concourse server called main:

    Get "my.server.duckdns.org/api/v1/info": unsupported protocol scheme ""

is the targeted Concourse running? better go catch it lol'
+ grep 'fly -t main sync'
+ echo 'logging in to team '\''main'\''

could not reach the Concourse server called main:

    Get "my.server.duckdns.org/api/v1/info": unsupported protocol scheme ""

is the targeted Concourse running? better go catch it lol'
+ READSWITCH=-r
+ '[' false = true ']'
+ read -r line
+ '[' true = false ']'
+ fly -t main set-team -n initial-pipeline-team -c initial-concourse/teams/initial-pipeline-team.yml
error: unknown target: main

Tried http:// and instead got error: oauth2: "invalid_request" "method not allowed"'

@ianatarewe
Copy link
Author

Quoting the URL gives the cleanest log output so far:

 Get "https://my.server.duckdns.org/api/v1/user": dial tcp: lookup my.server.duckdns.org: i/o timeout

is the targeted Concourse running? better go catch it lol'

Seems to be acting like the concourse worker can't access it's own API, which is weird because earlier in the log it says this:

Fetching fly...
+ curl -fSsL 'https://my.server.duckdns.org/api/v1/cli?arch=amd64&platform=linux' -o /usr/local/bin/fly
+ chmod +x /usr/local/bin/fly

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

No branches or pull requests

1 participant