Page MenuHomePhabricator

Initialization Error
Closed, InvalidPublic

Description

We are trying to import our git repository into phabricator. We getting the below error:-

Kindly suggest some solution about this problem.

Pulling 'XXXX'...
[2015-05-30 11:37:45] EXCEPTION: (Exception) git fetch failed with error #1:
stdout:Fetching origin

stderr:fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin

at [<phabricator>/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php:326]
arcanist(head=master, ref.master=e1a051a033b8), phabricator(head=master, ref.master=e185d8fe0234), phutil(head=master, ref.master=afc60bc131e1)

#0 PhabricatorRepositoryPullEngine::executeGitUpdate() called at [<phabricator>/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php:93]
#1 PhabricatorRepositoryPullEngine::pullRepository() called at [<phabricator>/src/applications/repository/management/PhabricatorRepositoryManagementPullWorkflow.php:39]
#2 PhabricatorRepositoryManagementPullWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:406]
#3 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:301]
#4 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/repository/manage_repositories.php:22]

Event Timeline

Karthik123 raised the priority of this task from to Needs Triage.
Karthik123 updated the task description. (Show Details)

Please make sure you have the correct access rights
and the repository exists.

Overwhelmingly, the most common reason for this error is that you have the wrong remote URI or the wrong credentials. Have you double checked that those are correct?

chad renamed this task from Phabricator - Initialization Error to Initialization Error .May 31 2015, 7:41 PM
chad added a project: Diffusion.

Hi epriestley,

Thanks for your update. I have rechecked the remote URI and verified the "git clone" & "git fetch" command in Linux machine. Everything work in terminal mode. While adding the remote URI into the Phabricator, I got the error. Please advice some.

Is the repo you are cloning public? or does it require authentication, if it requires authentication, you need to make sure that you have uploaded/generated/added the credentials to phabricator so that it can connect.

Yes. That repository server having authentication like as password and ssh public key, How to add this key or password into the Phabricator. Can you explain the procedure.

My repo URI: xxxxx@code.phab.com:/opt/project.git

xxxxxx - Username of the server
code.phab.com - GIT repo Server (Linux)

When you setup the import there is a screen that has you add credentials. That would be the ssh key or the password, if you go to the repo in Diffusion you can add the credentials there as well.

Hi mnkras,

Thank you so much for your update. I can try the procedure and update the status.

Credential.JPG (578×1 px, 48 KB)

Hi Mnkras,

I have tried the procedure and added the private key into Credential. But still I am facing the error. Please refer the attached file for your reference.

And the credential was assigned to the repo?

Yes. I have assigned the credential into repo link. Please check the image.

Credential-1.JPG (119×1 px, 13 KB)

epriestley claimed this task.

This does not appear to describe a reproducible issue. See:

https://secure.phabricator.com/book/phabcontrib/article/bug_reports/