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

hostkey doesn't work for github #10

Open
sebastiaandegeus opened this issue Mar 9, 2015 · 2 comments
Open

hostkey doesn't work for github #10

sebastiaandegeus opened this issue Mar 9, 2015 · 2 comments

Comments

@sebastiaandegeus
Copy link

sebastiaandegeus commented Mar 9, 2015

I added a hostkey for github the automatic way: dokku hostkeys:shared:autoadd github.com

This adds the key and during deployment it says:

----> Installing Hostkeys in build environment ...
       No app keys available.
       Adding shared keys.
-----> Done Installing Hostkeys in build environment ...
       Added the following keys:
       |1|mYAxNC3vsEL66uhKGDgh9LwDoZQ=|V/D7XlZCX/voWV+FjbUo7nKAV+E= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==

Which seems ok.

Content of /home/dokku/.hostkeys/shared/.ssh/known_hosts

 [RuntimeException]
       Failed to execute git clone --no-checkout 'git@github.com:deliciousbrains/wp-amazon-s3-and-cloudfront.git' 'web/app/plugins/wp-amazon-s3-and-cloudfront/' && cd 'web/app/plugins/wp-amazon-s3-and-cloudfront/' && git remote add composer 'git@github.com:deliciousbrains/wp-amazon-s3-and-cloudfront.git' && git fetch composer

Weird thing is this works for another server. But on this one it keeps failing. I tried deploying without any composer git packages and then it works fine. So it's absolutely some error during cloning.

But still during deployment it throws the error:

       [RuntimeException]
       Failed to execute git clone --no-checkout 'git@github.com:deliciousbrains/wp-amazon-s3-and-cloudfront.git' 'web/app/plugins/wp-amazon-s3-and-cloudfront/' && cd 'web/app/plugins/wp-amazon-s3-and-cloudfront/' && git remote add composer 'git@github.com:deliciousbrains/wp-amazon-s3-and-cloudfront.git' && git fetch composer
@josegonzalez
Copy link
Collaborator

One thing I've noticed is that - at least for the current version of dokku - the github.com domain seems to be resolved and then the git clone fails. Every so often I add a new hostkey, though thats a bit annoying :(

@cedricziel
Copy link
Owner

Maybe we can get hold of a list of popular hostkeys somehow? I could imagine a list of hosts for github and bitbucket maybe.

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

3 participants