# Failing to checkout from GitHub, with 'Could not read from remote repository'

**URL:** <https://discuss.circleci.com/t/failing-to-checkout-from-github-with-could-not-read-from-remote-repository/17366>\
**Category:** Deployments\
**Tags:** github, circle-yml, cci-20\
**Created:** [October 13, 2017, 11:34pm UTC](https://discuss.circleci.com/t/failing-to-checkout-from-github-with-could-not-read-from-remote-repository/17366 "2017-10-13T23:34:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajmas](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ajmas/32/8895_2.png) [@ajmas](https://discuss.circleci.com/u/ajmas)\
**Post date:** [October 13, 2017, 11:34pm UTC](https://discuss.circleci.com/t/failing-to-checkout-from-github-with-could-not-read-from-remote-repository/17366/1 "2017-10-13T23:34:04Z")

</div>

I have recently switched a project to use CircleCI 2.0, from CircleCI 1.0, by replacing the circleci.yml with .circleci/config.yml. The configuration is based on work that I did for a new project, that successfully built.

The issue is that the build now fails with:

```
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Exited with code 128

```

I have since removed the ‘deploy key’ from the checkout section of the project and also checked that it was removed from the GitHub project. I then got CircleCI to regenerate one. This does not resolve the issue and I am not sure what I need to do to resolve the problem?

Note, that I did try ‘stopping’ the CircleCI project and recreating it, in the hopes that it would reset to some default, but instead it kept the old settings and state when I recreated.

In case it helps this is the first part of the config.yml file:

```
version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
      - image: circleci/node:7.10

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/
      # - image: circleci/mongo:3.4.4

    working_directory: ~/repo

    steps:
      - checkout
      - run:
          name: save SHA to a file
          command: echo $CIRCLE_SHA1 > .circle-sha
      - restore_cache:
          key: dependency-cache-{{ checksum "package.json" }}
      - run:
          name: Install dependencies via npm
          command: npm install
      - run:
          name: Run tests
          command: npm run test
      - run: scripts/build.sh
      - save_cache:
          key: dependency-cache-{{ checksum "package.json" }}
          paths:
            - node_modules
      - save_cache:
          key: v1-repo-{{ checksum ".circle-sha" }}
          paths:
            - ~/repo
```

---

<div class="post-metadata">

**Author:** ![sebastianovide](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sebastianovide/32/13258_2.png) [@sebastianovide](https://discuss.circleci.com/u/sebastianovide)\
**Post date:** [January 23, 2018, 4:13pm UTC](https://discuss.circleci.com/t/failing-to-checkout-from-github-with-could-not-read-from-remote-repository/17366/2 "2018-01-23T16:13:58Z")

</div>

any luck with it ?

My project was working well and at some point it just stopped… (same error)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:41am UTC](https://discuss.circleci.com/t/failing-to-checkout-from-github-with-could-not-read-from-remote-repository/17366/3 "2018-06-18T11:41:24Z")

</div>


