Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7399001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:57:02+00:00 2026-05-29T03:57:02+00:00

I am using chef to deploy a rails/node app. Everything deploys fine when I

  • 0

I am using chef to deploy a rails/node app. Everything deploys fine when I deploy from a public github repository. I would like to deploy from a private github repository, though, and am having trouble doing so. Here is what I am currently doing

cd ~/.ssh                        # change directory to my .ssh directory
ssh-keygen -f'deploy_key' -N ''  # create a deploy_key key pair without a passphrase
cat deploy_key.pub | pbcopy      # copy the public key into my clipboard

-go to https://github.com/HairyMezican/PrivateRepoName/admin/keys
-click on 'Add another deploy key'
-type 'deploy_key' into 'Title' field
- ⌘V (paste command) into 'Key' field
-click 'Add Key'

tr "\n" "#" < deploy_key | sed 's/#/\\n/g' | pbcopy      #copy the private key into my clipboard, except with all of the newlines replaced with a slash-n
cd ~/chef-repo                                           #change over the the chef repo directory

mate data_bags/apps/my_app.json                          #edit the appropriate data bag in TextMate
--set the following couple of lines before saving
-"repository": "https://HairyMezican@github.com/HairyMezican/PrivateRepoName.git",
-"deploy_key": "⌘V (paste command into here)",

knife data bag from file apps data_bags/apps/my_app.json                        #upload the databag to my chef server
ssh root@12.34.56.789 "mkdir ~/.ssh"                                            #create a ssh directory on my remote server
scp ~/.ssh/id_dsa root@12.34.56.789:.ssh/                                       #copy my private key over to the ssh directory on the remote server
cat ~/.ssh/id_dsa.pub | ssh root@12.34.56.789 'cat - >> ~/.ssh/authorized_keys' #add my public key into the authorized keys list on the remote server
knife bootstrap 12.34.56.789 -dubuntu10.04-gems -rrole[myapp]                   #tell my chef server to bootstrap the remote server

Everything goes fine until the bootstrap process tries to deploy from the private repository. and it displays this:

12.34.56.789 [Sat, 03 Dec 2011 01:41:42 +0000] INFO: Processing deploy_revision[myapp] action deploy (application::rails line 155)
12.34.56.789 Password:

and then practically freezes up (technically, I can still type, but nothing I type affects the script), until 10 minutes later

12.34.56.789 [Sat, 03 Dec 2011 01:51:51 +0000] ERROR: deploy_revision[myapp] (application::rails line 155) has had an error
12.34.56.789 [Sat, 03 Dec 2011 01:51:51 +0000] ERROR: deploy_revision[myapp] (/var/chef/cache/cookbooks/application/recipes/rails.rb:155:in `from_file') had an error:
12.34.56.789 deploy_revision[myapp] (application::rails line 155) had an error: command timed out:

It then lists a blank output in stdout and stderr, and a stack trace of it trying to run the command

What am I doing wrong and how can I deploy from a private repository?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:57:08+00:00Added an answer on May 29, 2026 at 3:57 am

    If this is a private repo you should be using the SSH path to your git repo which starts with git@github.com too.

    git@github.com:HairyMezican/PrivateRepoName.git
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using Chef to manage our servers. My roles/app.rb looks like this:
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
How is it possible to keep my rails application up to date using chef?
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
Using PHP I'd like to compare an actual ip address to part of one,
using namespace boost; class A {}; class B : public A {}; class X
I've just started using chef-solo. I've started using chef-solo to build my Ruby on
Is it feasible to have a Ruby on Rails app, which is: a) deployed
Using Xcode4.2.1, with a basic PhoneGap template based app. (I say template, but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.