Open pottegil opened 6 years ago
@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?
Not OP, but having the same issue here. We use SSH keys to connect to GitHub, and running ssh git@github.com
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?
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:
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