Travis error repository not Could not read from remote repository
Asked Answered
E

2

6

My folder structure is as below rserver-docker contains gitsubmodule of rserver

git submodule(rserver-docker) is as below:

[submodule "rserver"]   
path = rserver  
url = [email protected]:VInc/rserver.git

Travis looks as below

before_install:
  - echo $CI_USER_TOKEN
  - echo -e "\n\nmachine github.com\n login $CI_USER_TOKEN\n" >>~/.netrc
  - git submodule update --init --recursive

CI_USER_TOKEN is Personal access token updated in Travis-settings

I am getting error as below

 $ git clone --depth=50 --branch=dev [email protected]:VInc/rserver-docker.git VInc/rserver-docker
Cloning into 'VInc/rserver-docker'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
$ cd VInc/rserver-docker
$ git checkout -qf d445f5afe71a6f3390345842644e600ee4bbb68b
7.47s$ git submodule update --init --recursive
Submodule 'rserver' ([email protected]:VInc/rserver.git) registered for path 'rserver'
Cloning into '/home/travis/build/VInc/rserver-docker/rserver'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:VInc/rserver.git' into submodule path '/home/travis/build/VInc/rserver-docker/rserver' failed
Failed to clone 'rserver'. Retry scheduled
Cloning into '/home/travis/build/VInc/rserver-docker/rserver'...
ERROR: Repository not found.
Equipment answered 5/10, 2018 at 12:20 Comment(0)
T
4

From Travis doc on the subject:

Git cannot clone my Submodules #

If your project uses Git submodules, make sure you use public Git URLs. For example, on GitHub, instead of

[email protected]:someuser/somelibrary.git

use

https://github.com/someuser/somelibrary.git
Tachymetry answered 26/11, 2018 at 20:55 Comment(0)
E
2

It was issue with Personal access token as it didnot have permissions to gitclone the code

Equipment answered 5/10, 2018 at 14:9 Comment(1)
or can add ssh key to travisEquipment

© 2022 - 2024 — McMap. All rights reserved.