Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshooting help pls for "repo does not exist" #22

Open
fredjohnston opened this issue Jun 22, 2020 · 1 comment
Open

Troubleshooting help pls for "repo does not exist" #22

fredjohnston opened this issue Jun 22, 2020 · 1 comment

Comments

@fredjohnston
Copy link

fredjohnston commented Jun 22, 2020

I'm getting "my repo does not exist"... tearing my hair out, can you give any troubleshooting tips?
-I can ssh and get the msg "...but i do not provide interactive shell" (so key is good)
-I can "docker exec -it hash /bin/sh" and see /git-server and subs keys and repos, files inside etc
(so my volumes are good and are visible from inside container, and i see "myrepo")
-When i do a "git clone --mirror git@138.777.111.333:222/git-server/repos/myrepo ." from home, i get
..."does not exist"
(In below, i am using port 222 on purpose... 22 and 2222 already used...)
-When i do a "git clone ssh://git@138.777.111.333:222/git-server/repos/myrepo", i get...
"Cloning into 'myrepo'...
git@138.777.111.333: Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

-Is there ANY way to list from remotely? or a way to get it to go interactive to test?

I know i'm SO CLOSE, but not sure why it's not working...

-I did see the post "permission Error when trying to do: git push"
fix: (tried... didn't work for me)
/git-server/repos # sudo chmod -R ug+w .;

Thanks so much for any help...

@fredjohnston
Copy link
Author

fredjohnston commented Jun 22, 2020

ok, got it working... for troubleshooting, i fired up another Digital Ocean droplet, and did a git clone from there, and it worked, so then i knew it was a problem locally on my mac client, not on the git server... that helped to know that!

FYI... The successful commandline i used was:
git clone ssh://git@138.777.111.333:222/git-server/repos/b4doc.git /batch/B4doc08/b4doc

I did some of my hair tearing using "sudo git blah blah"... bad!, as the sudo doesn't have the private key in the right spot for it to use it (thus the Permission denied (publickey,keyboard-interactive) message, and using the command w/o sudo uses the account logged into.

Hope this helps someone along the way...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant