knowledge-repo icon indicating copy to clipboard operation
knowledge-repo copied to clipboard

knowledge_repo script cannot connect to remote git repo

Open pottegil opened this issue 8 years ago • 2 comments

I've setup the knowledge_repo application, initialized a repo, then performed a successful git push origin master. When I check the files on the gitlab server, the initial commit and push is there.

I use the export $KNOWLEDGE_REPO = PATH environmental variable

However, now overtime I run a knowledge_repo command I get:

WARNING:knowledge_repo.repositories.gitrepository:Cannot connect to remote repository hosted on gitlab.server.com. Continuing locally with potentially outdated code.
Created a Rmd knowledge post template at ./documents/example_tableau.Rmd.

I get the same error message when I launch the service, or try to do anything. Whenever I try to use the knowledge_repo commands to commit and merge files, they all fail with the same error message: WARNING:knowledge_repo.repositories.gitrepository:Cannot connect to remote repository hosted on gitlab.server.com. Continuing locally with potentially outdated code.

If I manually git push and merge, then the posts show on the server. Any ideas?

Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj

pottegil avatar Dec 22 '17 14:12 pottegil

@pottegil Hi Gill,

Sorry for the long lead time on this (I've been on paternity leave... just back).

How do you connect to the git repository manually? Do you use SSH keys, or manually type passwords? Is the knowledge repo running in the same shell environment as your manual git efforts?

matthewwardrop avatar Jan 21 '18 22:01 matthewwardrop

Not OP, but having the same issue here. We use SSH keys to connect to GitHub, and running ssh [email protected] shows we're connecting and authenticating successfully. Running knowledge_repo --repo test-knowledge-repo/ runserver yields the error shown by @pottegil.

We're running Knowledge Repo on an AWS EC2 instance, and it's in the same shell environment as we run git in.

Anything we can use to troubleshoot further?

tehshane avatar Mar 01 '18 18:03 tehshane