Skip to content

Instantly share code, notes, and snippets.

View dginther's full-sized avatar

Demian Ginther dginther

  • Adhoc, LLC
  • Albuquerque, NM
View GitHub Profile
Demians-MacBook-Air:systemd demian$ deis
Traceback (most recent call last):
File "/usr/local/bin/deis", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
[Service]
TimeoutStartSec=20m
ExecStartPre=/bin/sh -c "/usr/bin/docker history deis/controller >/dev/null || /usr/bin/docker pull deis/controller"
ExecStart=/bin/sh -c "IFACE=$(netstat -nr | grep ^0.0.0.0 | awk '{print $8}') && HOST_IP=$(/bin/ifconfig $IFACE |grep ^inet|cut -d: -f2| awk '{print $2}') && exec /usr/bin/docker run --name deis-controller -p 8000:8000 -e PUBLISH=8000 -e HOST=$HOST_IP --volumes-from=deis-logger deis/controller"
ExecStop=/usr/bin/docker rm -f deis-controller
until fleetctl --strict-host-key-checking=false list-units | egrep -q "deis-registry.+(running|failed)"; do printf "Status: "; fleetctl --strict-host-key-checking=false list-units | grep "deis.registry" | awk '{printf $$3}'; printf "\r" ; sleep 10; done
Output:
Waiting for initial services to start (this can take some time)...
until fleetctl --strict-host-key-checking=false list-units | egrep -q "deis-registry.+(running|failed)"; do printf "Status: "; fleetctl --strict-host-key-checking=false list-units | grep "deis.registry" | awk '{printf $3}'; printf "\r" ; sleep 10; done
Status: activating
ec2-174-129-130-212.compute-1.amazonaws.com Error Syncing Cookbooks:
ec2-174-129-130-212.compute-1.amazonaws.com ================================================================================
ec2-174-129-130-212.compute-1.amazonaws.com
ec2-174-129-130-212.compute-1.amazonaws.com
ec2-174-129-130-212.compute-1.amazonaws.com
ec2-174-129-130-212.compute-1.amazonaws.com Networking Error:
ec2-174-129-130-212.compute-1.amazonaws.com
ec2-174-129-130-212.compute-1.amazonaws.com -----------------
ec2-174-129-130-212.compute-1.amazonaws.com
ec2-174-129-130-212.compute-1.amazonaws.com Error connecting to https://chef-server/bookshelf/organization-00000000000000000000000000000000/checksum-7abc6351b63398270b67be3241aa09a8?AWSAccessKeyId=80fea482987013ccd23594658b90e57a763616c7&Expires=1395867292&Signature=VZEJhI9rEG62onIaxh/anFE4Ie4%3D - getaddrinfo: Name or service not known
apt 2.3.8
build-essential 1.4.0
chef_handler 1.1.4
deis 0.7.0
dmg 1.1.0
docker 0.31.0
dpkg_autostart 0.1.10
git 2.5.2
golang 1.3.0
homebrew 1.5.4
Security group deis-controller exists
WARNING: SSH key /Users/demian/.ssh/deis-controller exists
Data bag deis-formations already exists
Data bag deis-apps already exists
Provisioning deis-controller-ec2 with knife ec2...
+ knife ec2 server create --bootstrap-version 11.8.2 --region us-east-1 --image ami-15382c7c --flavor m1.large --groups deis-controller --tags Name=deis-controller-ec2 --ssh-key deis-controller --ssh-user ubuntu --identity-file /Users/demian/.ssh/deis-controller --node-name deis-controller-ec2 --ebs-size 100 --run-list 'recipe[deis::controller]'
[fog][WARNING] Unable to load the 'unf' gem. Your AWS strings may not be properly encoded.
Instance ID: i-7db2f62c
Flavor: m1.large
Image: ami-15382c7c
ec2-23-20-80-219.compute-1.amazonaws.com Creating a new client identity for deis-controller-ec2 using the validator key.
ec2-23-20-80-219.compute-1.amazonaws.com resolving cookbooks for run list: ["deis::controller"]
ec2-23-20-80-219.compute-1.amazonaws.com
ec2-23-20-80-219.compute-1.amazonaws.com ================================================================================
ec2-23-20-80-219.compute-1.amazonaws.com Error Resolving Cookbooks for Run List:
ec2-23-20-80-219.compute-1.amazonaws.com ================================================================================
ec2-23-20-80-219.compute-1.amazonaws.com
ec2-23-20-80-219.compute-1.amazonaws.com
ec2-23-20-80-219.compute-1.amazonaws.com Cookbook dependency resolution error:
ec2-23-20-80-219.compute-1.amazonaws.com
web:
build: ./atpay-docker-web
command: /bin/bash -c "/usr/local/bin/bundle exec rake db:migrate && /usr/local/bin/bundle exec phrase pull && /usr/local/bin/bundle exec unicorn -c config/unicorn.rb"
ports:
- 80:3001
links:
- redis
- mysql
- memcache
environment:
############################################################
# Dockerfile to run Memcached Containers
# Based on Ubuntu Image
# Based on Digital Ocean Post
# https://www.digitalocean.com/community/articles/docker-explained-how-to-create-docker-containers-running-memcached
############################################################
# Set the base image to use to Ubuntu
FROM ubuntu:precise
vagrant@packer-virtualbox:/vagrant$ make
mkdir -p /tmp/keys
cp /home/vagrant/.ssh/id_rsa.pub /tmp/keys/vagrant
bin/forego start
forego | starting etcd on port 5000
forego | starting discoverd on port 5100
forego | starting gitreceive on port 5200
forego | starting shelf on port 5300
forego | starting strowger on port 5400
forego | starting host on port 5500