infochimps-labs / ironfan

Chef orchestration layer -- your system diagram come to life. Provision EC2, OpenStack or Vagrant without changes to cookbooks or configuration
http://infochimps.com
Other
501 stars 103 forks source link

rake full_sync error #276

Open timgasper opened 11 years ago

timgasper commented 11 years ago

rake full_sync errors while preparing an enterprise-homebase repo for personal development use. happens either part of or right after the zookeeper step...

all the cookbooks seem uploaded and fine, and i can ssh into my sandbox machine just fine

the error:

Inventorying servers in zk cluster, all facets, all servers zk: Loading chef zk: Loading ec2 zk: Reconciling DSL and provider information +----------------+-------+-------------+----------+------------+-------------+-----------+ | Name | Chef? | State | Flavor | AZ | Env | relevant? | +----------------+-------+-------------+----------+------------+-------------+-----------+ | zk-zookeeper-0 | no | not running | t1.micro | us-east-1c | development | - | | zk-zookeeper-1 | no | not running | t1.micro | us-east-1c | development | - | | zk-zookeeper-2 | no | not running | t1.micro | us-east-1c | development | - | +----------------+-------+-------------+----------+------------+-------------+-----------+ Preparing shared resources: zk: Loading chef zk: Loading ec2 zk: Reconciling DSL and provider information Loaded information for 3 computer(s) in cluster zk zk: ensuring security group permissions ssh: ensuring tcp access from 0.0.0.0/0 to 22..22 zk: ensuring access from zk to zk Applying aggregations: zk: Loading chef zk: Loading ec2 zk: Reconciling DSL and provider information Loaded information for 3 computer(s) in cluster zk WARNING: No computers to sync Failed to download 'boswell' from github: 'infochimps/ironfan-enterprise' with branch: 'master' over protocol: 'ssh' An error occured during Git execution: fatal: working tree '/Users/Tim/Code/timgasper-homebase' already exists.

pakulat commented 10 years ago

I hit a similar issue, though mine fails on downloading ant. Hope that's a better description than "me too".

westbywest commented 10 years ago

This appears to be related: https://github.com/infochimps-labs/ironfan/issues/311

I was able to work-around this problem (encountered on initial sync to chef server) by running the tasks for full_sync manually:

bundle exec rake roles
bundle exec rake sync_environment
bundle exec rake sync_clusters
bundle exec rake berkshelf
bundle exec rake upload_cookbooks_without_metadata

Once the initial sync to Chef server succeeded, this error didn't reoccur. Also, you can append "-V -V" to each of the rake commands above for more visibility about what may be going awry.

rdegraci commented 9 years ago

I cloned the ironfan-homebase repository and it installed:

gem 'ironfan',         "~> 4.11.3"
gem 'berkshelf',       "= 1.4.2"     # FIXME: pins chef to the 10.16 branch.

But when I do bundle exec rake full_sync I get the following error:

Failed to download 'ant' from github: 'infochimps-labs/ironfan-pantry' with branch: 'master' over protocol: 'ssh'
An error occured during Git execution:
        Permission denied (publickey).
        fatal: The remote end hung up unexpectedly

ERROR: The data in your request was invalid

I ran the individual rake tasks under full_sync, and bundle exec rake berkshelf_install seems to be where the error occurs.

This seems to be a show-stopper since ant is the first cookbook in the ironfan-pantry, therefore none of the cookbooks are being uploaded to Chef.

dsdinter commented 9 years ago

To fix that you need to generate the right ssh key pair in your box and upload the public key into Github, otherwise the git command will fail as it is using ssh protocol to communicate with Github. https://help.github.com/articles/generating-ssh-keys#platform-linux