# GitHub repository moved but Travis CI didn't?

**URL:** <https://travis-ci.community/t/github-repository-moved-but-travis-ci-didnt/8247>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** github\
**Created:** [April 20, 2020, 11:36am UTC](https://travis-ci.community/t/github-repository-moved-but-travis-ci-didnt/8247 "2020-04-20T11:36:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![riccardomurri](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/riccardomurri/32/4382_2.png) [@riccardomurri](https://travis-ci.community/u/riccardomurri)\
**Post date:** [April 20, 2020, 11:36am UTC](https://travis-ci.community/t/github-repository-moved-but-travis-ci-didnt/8247/1 "2020-04-20T11:36:28Z")

</div>

Hello,

A few months ago I moved a GitHub repository from [https://github.com/gc3-uzh-ch/elasticluster](https://github.com/gc3-uzh-ch/elasticluster) to [https://github.com/elasticluster/elasticluster](https://github.com/elasticluster/elasticluster)

Everything seems to have been redirected from the old to the new repo location, except for the Travis CI integration: Travis shows a “cannot display” page for [https://travis-ci.org/github/elasticluster/elasticluster](https://travis-ci.org/github/elasticluster/elasticluster) and still shows the correct results at [https://travis-ci.org/github/gc3-uzh-ch/elasticluster](https://travis-ci.org/github/gc3-uzh-ch/elasticluster)

How can I fix this?

Thanks,  
Riccardo

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [April 20, 2020, 12:33pm UTC](https://travis-ci.community/t/github-repository-moved-but-travis-ci-didnt/8247/2 "2020-04-20T12:33:28Z")

</div>

Hmmm. The organization `elasticluster` is not recognized. Has anyone from that organization set up Travis CI?

---

<div class="post-metadata">

**Author:** ![riccardomurri](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/riccardomurri/32/4382_2.png) [@riccardomurri](https://travis-ci.community/u/riccardomurri)\
**Post date:** [April 20, 2020, 12:47pm UTC](https://travis-ci.community/t/github-repository-moved-but-travis-ci-didnt/8247/3 "2020-04-20T12:47:20Z")

</div>

Not sure what you mean… The org contains a single repository, which is the one that has been moved. I don’t recall having to set up anything at the org level to get Travis CI to run on the repo when it was in the `gc3-uzh-ch` org (but it was long time ago, maybe things have changed in the meanwhile?)

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [April 21, 2020, 3:04pm UTC](https://travis-ci.community/t/github-repository-moved-but-travis-ci-didnt/8247/4 "2020-04-21T15:04:31Z")

</div>

From what I can see at

> **[Build software better, together](https://github.com/orgs/community/discussions/)**
>
> GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

> **[Webhooks documentation - GitHub Docs](https://docs.github.com/en/webhooks)**
>
> Webhooks can let your integrations take an action in response to events that occur on GitHub.

it’s impossible for a 3rd-party service, including Travis, to know when a repository is moved because there’s no notification for that.

Neither is it possible to automatically set up integration at the repo’s new location because Travis needs a brand new permission grant for the new organization to be able to do anything on its behalf.

* * *

So, set up the integration anew as per below.  
It’s possible that this won’t be needed if Github was smart enough to update webhooks appropriately when moving – then you will see that the integration is already enabled after registering at Travis with the new organization. (Still, it won’t hurt to reset everything just in case.)

> [@Pushes won't trigger new builds anymore after the project has been inactive for a long time](https://travis-ci.community/t/pushes-wont-trigger-new-builds-anymore-after-the-project-has-been-inactive-for-a-long-time/5716/2):
>
> Most probably, Travis webhook changed in these 10 months in a backward-incompatible way (I do remember topics that suggest so: [GitHub services to Webhooks migration update](https://travis-ci.community/t/github-services-to-webhooks-migration-update/2079), [No new builds being triggered](https://travis-ci.community/t/no-new-builds-being-triggered/185), [Double builds for all merges and PRs](https://travis-ci.community/t/double-builds-for-all-merges-and-prs/2316/2)). So you need to: Disable CI for the project in [https://travis-ci.org/account/repositories](https://travis-ci.org/account/repositories) Look through Webhooks and Integrations & services in Github project’s settings and delete anything Travis-related Re-enable CI for the project

---

<div class="post-metadata">

**Author:** ![riccardomurri](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/riccardomurri/32/4382_2.png) [@riccardomurri](https://travis-ci.community/u/riccardomurri)\
**Post date:** [April 23, 2020, 6:56am UTC](https://travis-ci.community/t/github-repository-moved-but-travis-ci-didnt/8247/5 "2020-04-23T06:56:20Z")

</div>

Thank you all for the suggestions!

It turns out that the issue was elsewhere: Travis had not been granted permission to access the new `elasticluster` org on GitHub; once it had the correct permissions, CI job history appeared in the new location without further settings.
