I was playing around with Hatch last night and it's really cool, awesome work! I am having a little drouble deploying though.
I'm getting this
Git clone failed
This usually happens because you either had a typo in your git repo name or your server didn't have permission to clone.
- Double check you didn't make a typo with the repository name
- Make sure that your server's SSH deploy key has been added to your git server.
Here's the error after cloning fails (let me know if you want the whole error) :
Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. git clone failed
I also can't ssh into my server using the provided ssh [email protected]. I get
Permission denied (publickey)
DevOps is clearly not my thing, so I appreciate any help! Please let me know if anyone needs any more info.
So two things here:
Hatch generates a key for your server so it can check out your code and that way it doesn't have to know your personal SSH key either when it clones your repo.
You can also add the SSH key to your account which will be pre-installed on all the new servers you setup as well for convenience. You'll still have to add it to the already created server individually though.
Thanks for the quick response!
Let me know if you need more info.
Thanks again for your help!
I just manually re-ran the add SSH key script on your server. You should see the server's SSH key in your bitbucket account now at https://bitbucket.org/account/user/USERNAME/ssh-keys/
Was doing support and accidentally posted as the wrong account in case you saw the email notification from the wrong user. ;)
Chris! you are the man, it's there! Thanks for the awesome, quick support!
Haha, I did see the email notifacation. Your secret identity is safe with me ;)
Haha! Perfect. Only you and the internet will know. ;)
Trying to think why that happened. Did you add your Bitbucket account after your server was provisioned?
No, I definitely connected all my accounts way before the server was provisioned. I added all my accounts right when I signed up, then a couple weeks later created my first server.
Let me know if you have anymore questions or if there's anything else I can do to help.
Hmm! I guess probably since you tested it earlier on I probably fixed some of the bugs around the Bitbucket stuff. I will wait until another report of that issue and see if it's a consistent thing or not. :)
If you run into any other issues, just ping me and I'll make sure it gets all fixed up.
Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.