# Error cloning git repository, access is denied or repository is not found

**URL:** https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898
**Category:** Development
**Created:** [12 februari 2019 om 02:55 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898 "2019-02-12T02:55:35Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![zaino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zaino/32/130057_2.png) [@zaino](https://meta.discourse.org/u/zaino)
#### Post date: [12 februari 2019 om 02:55 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/1 "2019-02-12T02:55:35Z")

</div>

I have been successfully pulling a theme from a public Github repo for the last week and suddenly today I am getting this error:

“Error cloning git repository, access is denied or repository is not found”

I deleted the theme from Discourse and tried to import anew. Same error.

I then tried to import from [GitHub - discourse/discourse: A platform for community discussion. Free, open, simple. · GitHub](https://github.com/discourse/discourse) . Same error.

My Discourse is up to date.

Is this happening to anyone else? Any ideas?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12 februari 2019 om 03:34 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/2 "2019-02-12T03:34:05Z")

</div>

What is the URL of the theme?

---

<div class="post-metadata">

### Author: ![zaino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zaino/32/130057_2.png) [@zaino](https://meta.discourse.org/u/zaino)
#### Post date: [12 februari 2019 om 05:12 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/3 "2019-02-12T05:12:45Z")

</div>

[https://github.com/ZainoLabs/discoball](https://github.com/ZainoLabs/discoball)

Thanks for taking a look

---

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [12 februari 2019 om 06:13 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/4 "2019-02-12T06:13:57Z")

</div>

That looks like your repository to your clone of discourse, not a theme. Jay was asking for the theme’s url. The contents would look something [like this](https://github.com/hnb-ku/discourse-vincent-theme).

---

<div class="post-metadata">

### Author: ![zaino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zaino/32/130057_2.png) [@zaino](https://meta.discourse.org/u/zaino)
#### Post date: [12 februari 2019 om 18:55 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/7 "2019-02-12T18:55:54Z")

</div>

OK, I see my mistake now. Funny thing is that the clone was working as a theme fine for several days before it broke.

Anyway, you got me on the right path. Many thanks! 🌮

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [13 februari 2019 om 02:42 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/10 "2019-02-13T02:42:52Z")

</div>

I hope that you’re not running that clone in production. No good can come from that.

---

<div class="post-metadata">

### Author: ![zaino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zaino/32/130057_2.png) [@zaino](https://meta.discourse.org/u/zaino)
#### Post date: [13 februari 2019 om 02:45 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/11 "2019-02-13T02:45:03Z")

</div>

I’m not. I got a new theme set up properly now.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [13 februari 2019 om 02:50 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/12 "2019-02-13T02:50:37Z")

</div>

Save us some pain down the line and just make sure that when you’re in `/var/docker` the result of `git remote -v` is as follows:

```
origin https://github.com/discourse/discourse_docker.git (fetch)
origin https://github.com/discourse/discourse_docker.git (push)

```

Because if there’s any chance it says `https://github.com/ZainoLabs/discoball` you’re going to have real problems updating in the future.

---

<div class="post-metadata">

### Author: ![zaino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zaino/32/130057_2.png) [@zaino](https://meta.discourse.org/u/zaino)
#### Post date: [13 februari 2019 om 02:53 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/13 "2019-02-13T02:53:29Z")

</div>

Yep cool. And that repo of the clone will be deleted shortly as well. Thanks for the tip.

---

<div class="post-metadata">

### Author: ![Tim\_Jefferies](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tim_jefferies/32/113296_2.png) [@Tim\_Jefferies](https://meta.discourse.org/u/Tim_Jefferies)
#### Post date: [27 februari 2020 om 04:13 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/14 "2020-02-27T04:13:09Z")

</div>

> [@zaino](#):
>
> “Error cloning git repository, access is denied or repository is not found”

I just tried to install the graceful theme using the install feature in the discourse admin and i’m getting this error. Any ideas?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [27 februari 2020 om 13:34 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/15 "2020-02-27T13:34:14Z")

</div>

The error message is almost certainly correct. Does the url you are using work in your web browser?

---

<div class="post-metadata">

### Author: ![Tim\_Jefferies](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tim_jefferies/32/113296_2.png) [@Tim\_Jefferies](https://meta.discourse.org/u/Tim_Jefferies)
#### Post date: [28 februari 2020 om 02:29 UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898/16 "2020-02-28T02:29:10Z")

</div>

Yesterday it wasn’t working. Today it is.
