Skip to content

hostkey doesn't work for github #10

Open
@sebastiaandegeus

Description

@sebastiaandegeus

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 '[email protected]: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 '[email protected]: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 '[email protected]: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 '[email protected]:deliciousbrains/wp-amazon-s3-and-cloudfront.git' && git fetch composer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions