Skip to content

resource type not found: git #2196

Closed
Closed

Description

@stela

Bug Report

I receive a resource type not found: git error when viewing a resource pipeline using the web interface. Concourse fails to check out anything from git and start the build job state of the pipeline.

  • Concourse version: 3.13.0 on macOS 10.13.4
  • Deployment type (BOSH/Docker/binary): binary
  • Infrastructure/IaaS: macOS and concourse quickstart or concourse web + concourse worker
  • Browser (if applicable): current stable chrome on macOS
  • Did this used to work? Yes, in an older 3.x.x release deployed via bosh instead of as a binary.

Log output:

{"timestamp":"1525361872.408726454","source":"tsa","message":"tsa.connection.keepalive","log_level":1,"data":{"remote":"127.0.0.1:59324","session":"1","type":"keepalive"}}
{"timestamp":"1525361872.411205053","source":"atc","message":"atc.syncer.myproject-pipeline:radar.scan-resource.interval-runner.tick.failed-to-find-or-create-resource-config-check-session","log_level":2,"data":{"error":"resource type not found: git","pipeline-scoped-name":"myproject-pipeline:resource:myproject","session":"34.1.15.1.1"}}
{"timestamp":"1525361872.412256479","source":"atc","message":"atc.syncer.myproject-pipeline:radar.scanresources-runner-error","log_level":1,"data":{"error":{"Name":"git"},"session":"34.1"}}
{"timestamp":"1525361872.420531988","source":"atc","message":"atc.syncer.myproject-pipeline:radar.scan-resource.interval-runner.tick.failed-to-find-or-create-resource-config-check-session","log_level":2,"data":{"error":"resource type not found: cf","pipeline-scoped-name":"myproject-pipeline:resource:deploy-myproject-dev","session":"34.1.16.1.1"}}
{"timestamp":"1525361872.422108650","source":"atc","message":"atc.syncer.myproject-pipeline:radar.scanresources-runner-error","log_level":1,"data":{"error":{"Name":"cf"},"session":"34.1"}}
{"timestamp":"1525361872.672489643","source":"tsa","message":"tsa.connection.channel.forward-worker.heartbeat.start","log_level":1,"data":{"remote":"127.0.0.1:59324","session":"1.1.1.22","worker-address":"127.0.0.1:59328","worker-platform":"darwin","worker-tags":""}}

pipeline:

resources:
- name: myproject
  type: git
  source:
    uri: [email protected]:mycompany/myproject.git
    branch: monorepo-first-attempt
    private_key: ((github-private-key))
- name: deploy-myproject-dev
  type: cf
  source:
    api: https://cf.endpoint.here
    username: ((cf-username))
    password: ((cf-password))
    organization: ((cf-org))
    space: ((cf-space))
    skip_cert_check: false

jobs:
- name: build-and-test-job
  public: false
  plan:
  - get: myproject
  - task: tests
    file: myproject/concourse/build.yml
  - put: deploy-myproject-dev
    params:
      manifest: cloudfoundry/manifest.mf

In the atc postgresql database, some tables contain data, but seemingly related tables are empty:

atc=# SELECT * FROM resource_types;
 id | pipeline_id | name | type | version | last_checked | config | active | nonce | resource_config_id 
----+-------------+------+------+---------+--------------+--------+--------+-------+--------------------
(0 rows)

atc=# SELECT * FROM base_resource_types;
 id | name 
----+------
(0 rows)

I mainly followed this guide to install concourse:
https://gist.github.com/kevin-smets/f20afd45a24ab3f88d01b2049ce7744f

Activity

  1. marco-m commented on May 3, 2018

    @marco-m
    Contributor

    You need at least a Linux worker, which is the only platform that supports containers and so Concourse resources like git. From what you are writing, it seems you have both ATC and worker on MacOS. You can use the Docker-based version of Concourse or you can try my all-in-one VM, which also comes with the Minio S3 compatible blob storage https://github.com/marco-m/concourse-ci-formula

  2. stela commented on May 4, 2018

    @stela
    Author

    Aha, thanks for telling, that wasn't obvious to me, since I have Docker for Mac which mostly works as if it was "the real thing" from the command line, maven and gradle plugins, etc. Now I do see the "Note: Resources require at least one Linux worker" note next to the download link, stupidly missed that.

    Assuming it's difficult to fix, for ignorant people like me, how about replacing resource type not found: git with a more clear this worker build/platform doesn't support resources or containers. Add a Linux worker. when none are available. For newbies, a different remedy suggestion for a worker-less "web" and an attached but probably-wrong-platform-worker would be even better. :-)

  3. bigorangemachine commented on May 22, 2018

    @bigorangemachine

    @stela,
    What is the solution if I am running on OSX then?

    Do I need to change one of the workers?

  4. marco-m commented on May 23, 2018

    @marco-m
    Contributor

    @bigorangemachine as marked on the download page https://concourse-ci.org/download.html:

    Note: Resources require at least one Linux worker.

    So you don't need to change, you need to have at least one Linux worker.

  5. stela commented on May 23, 2018

    @stela
    Author

    @bigorangemachine assuming you quickly just want to get concourse with all the "bells and whistles" running on your Mac, for personal use, the most simple instructions I found are here: https://concoursetutorial.com/#getting-started
    This will run concourse in a Linux Docker container on your Mac, so you'll get features like resources working out-of-the-box. It runs with authentication disabled, so not suitable for sharing.

  6. bigorangemachine commented on May 23, 2018

    @bigorangemachine

    @marco-m, I did read that on the downloads page and to someone who's only just started out with docker its not clear what that means as far as following that gist and resolving the error.

  7. bigorangemachine commented on May 23, 2018

    @bigorangemachine

    @stela,

    Thanks. I see that this fires up a quickstart version of concourse. Maybe I'll try a quick-start version of the workers rather than two separate workers as per that gist.

  8. marco-m commented on May 23, 2018

    @marco-m
    Contributor

    @bigorangemachine I understand it is difficult for a newcomer to grasp everything at once. This is why I created https://github.com/marco-m/concourse-ci-formula, which is a VM you can run on any OS and that, compared to the Linux Docker container approach, has the advantage of providing also an S3-compatible storage and a secrets manager, two components that are needed to write a real Concourse pipeline.

  9. bigorangemachine commented on May 23, 2018

    @bigorangemachine

    Thanks @marco-m,

    Understanding whats going on is a bit of a long lead-up for me. I get whats going on now. Thanks for your help.

  10. jama22 commented on Jun 11, 2018

    @jama22

    Closing, because of @marco-m kind help! @bigorangemachine if you feel otherwise please feel free to re-open!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions