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

bsdtar failure #51

Closed
rcarmo opened this Issue Jun 25, 2013 · 14 comments

Comments

Projects
None yet
6 participants
@rcarmo
Copy link
Contributor

rcarmo commented Jun 25, 2013

Trying to setup dokku on Digital Ocean breaks with:

2013/06/25 10:10:46 Error: fork/exec /usr/bin/bsdtar: cannot allocate memory:

...and nothing else. Trying to debug, this is mostly a heads up.

@Soulou

This comment has been minimized.

Copy link
Contributor

Soulou commented Jun 25, 2013

This kind of message appends when you don't have enough available memory !

If you're running a 512MB droplet, create a Swapfile and mount it. By this way your VM will be able to allocate more memory.

@mike-park

This comment has been minimized.

Copy link

mike-park commented Jun 29, 2013

Adding 1G swap did the trick for me.

# dd if=/dev/zero of=/swapfile bs=1024 count=1024000
# mkswap /swapfile
# swapon /swapfile  
@progrium

This comment has been minimized.

Copy link
Contributor

progrium commented Jun 29, 2013

Hmm, at what point did the error happen? I'm curious which part of Dokku actually needs more memory.

@CameronGilroy

This comment has been minimized.

Copy link

CameronGilroy commented Jun 30, 2013

I'm getting the same problem on a Digital Ocean 512 droplet - will add the swapfile.
Here is the terminal log.

wget -qO /usr/local/bin/sshcommand https://raw.github.com/progrium/sshcommand/master/sshcommand
chmod +x /usr/local/bin/sshcommand
sshcommand create dokku /usr/local/bin/dokku
cp dokku /usr/local/bin/dokku
cp receiver /home/git/receiver
cp deploystep /home/git/deploystep
cp buildstep/buildstep /home/git/buildstep
cp nginx-app-conf /home/git/nginx-app-conf
cp nginx-reloader.conf /etc/init/nginx-reloader.conf
echo "include /home/git/*/nginx.conf;" > /etc/nginx/conf.d/dokku.conf
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  333M  100  333M    0     0   808k      0  0:07:02  0:07:02 --:--:--  827k
@progrium

This comment has been minimized.

Copy link
Contributor

progrium commented Jun 30, 2013

Where exactly are you seeing that error since it's not showing up in the log output you're sharing.

@CameronGilroy

This comment has been minimized.

Copy link

CameronGilroy commented Jun 30, 2013

Ok here is it is & it looks as if we have an other problem with Docker (don't know if this should be an other issue)

This error log is in relation to being 32bit

root@domain:~# wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash --verbose
DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
DOKKU_STACK=${DOKKU_STACK:-"https://s3.amazonaws.com/progrium-dokku/progrium_buildstep.tgz"}
DOCKER_PKG=${DOCKER_PKG:-"https://launchpad.net/~dotcloud/+archive/lxc-docker/+files/lxc-docker_0.4.2-1_amd64.deb"}
set -e

apt-get update
Get:1 http://security.ubuntu.com raring-security Release.gpg [933 B]
Get:2 http://security.ubuntu.com raring-security Release [40.8 kB]
Get:3 http://security.ubuntu.com raring-security/main i386 Packages [74.2 kB]  
Get:4 http://security.ubuntu.com raring-security/main Translation-en [38.9 kB] 
Get:5 http://archive.ubuntu.com raring Release.gpg [933 B]                     
Ign http://security.ubuntu.com raring-security/main Translation-en_US        
Get:6 http://archive.ubuntu.com raring-updates Release.gpg [933 B]           
Get:7 http://archive.ubuntu.com raring Release [40.8 kB]
Get:8 http://archive.ubuntu.com raring-updates Release [40.8 kB]
Get:9 http://archive.ubuntu.com raring/main i386 Packages [1,168 kB]
Get:10 http://archive.ubuntu.com raring/universe i386 Packages [5,405 kB]
Hit http://archive.ubuntu.com raring/main Translation-en      
Get:11 http://archive.ubuntu.com raring/universe Translation-en [3,736 kB]
Get:12 http://archive.ubuntu.com raring-updates/main i386 Packages [104 kB]
Get:13 http://archive.ubuntu.com raring-updates/universe i386 Packages [100 kB]
Get:14 http://archive.ubuntu.com raring-updates/main Translation-en [51.3 kB]
Get:15 http://archive.ubuntu.com raring-updates/universe Translation-en [54.6 kB]
Ign http://archive.ubuntu.com raring/main Translation-en_US         
Ign http://archive.ubuntu.com raring/universe Translation-en_US
Ign http://archive.ubuntu.com raring-updates/main Translation-en_US            
Ign http://archive.ubuntu.com raring-updates/universe Translation-en_US        
Fetched 10.9 MB in 8s (1,321 kB/s)                                             
Reading package lists... Done
DEBIAN_FRONTEND=noninteractive apt-get install -y linux-image-extra-`uname -r`
uname -r
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  crda iw libnl-3-200 libnl-genl-3-200 wireless-regdb
The following NEW packages will be installed:
  crda iw libnl-3-200 libnl-genl-3-200 linux-image-extra-3.8.0-19-generic
  wireless-regdb
0 upgraded, 6 newly installed, 0 to remove and 21 not upgraded.
Need to get 30.9 MB of archives.
After this operation, 97.0 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main libnl-3-200 i386 3.2.16-0ubuntu1 [52.3 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main libnl-genl-3-200 i386 3.2.16-0ubuntu1 [11.8 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main wireless-regdb all 2011.04.28-1ubuntu3 [6,164 B]
Get:4 http://archive.ubuntu.com/ubuntu/ raring/main crda i386 1.1.2-1ubuntu2 [14.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ raring/main iw i386 3.4-1 [51.9 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ raring-updates/main linux-image-extra-3.8.0-19-generic i386 3.8.0-19.30 [30.8 MB]
Fetched 30.9 MB in 4s (6,816 kB/s)                             
Selecting previously unselected package libnl-3-200:i386.
(Reading database ... 23420 files and directories currently installed.)
Unpacking libnl-3-200:i386 (from .../libnl-3-200_3.2.16-0ubuntu1_i386.deb) ...
Selecting previously unselected package libnl-genl-3-200:i386.
Unpacking libnl-genl-3-200:i386 (from .../libnl-genl-3-200_3.2.16-0ubuntu1_i386.deb) ...
Selecting previously unselected package wireless-regdb.
Unpacking wireless-regdb (from .../wireless-regdb_2011.04.28-1ubuntu3_all.deb) ...
Selecting previously unselected package crda.
Unpacking crda (from .../crda_1.1.2-1ubuntu2_i386.deb) ...
Selecting previously unselected package iw.
Unpacking iw (from .../apt/archives/iw_3.4-1_i386.deb) ...
Selecting previously unselected package linux-image-extra-3.8.0-19-generic.
Unpacking linux-image-extra-3.8.0-19-generic (from .../linux-image-extra-3.8.0-19-generic_3.8.0-19.30_i386.deb) ...
Processing triggers for man-db ...
Setting up libnl-3-200:i386 (3.2.16-0ubuntu1) ...
Setting up libnl-genl-3-200:i386 (3.2.16-0ubuntu1) ...
Setting up wireless-regdb (2011.04.28-1ubuntu3) ...
Setting up crda (1.1.2-1ubuntu2) ...
Setting up iw (3.4-1) ...
Setting up linux-image-extra-3.8.0-19-generic (3.8.0-19.30) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-19-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-3.8.0-19-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
apt-get install -y git nginx make curl dnsutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version.
dnsutils is already the newest version.
The following extra packages will be installed:
  git-man liberror-perl libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1
  nginx-common nginx-full patch
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
  git-email git-gui gitk gitweb libgd-tools make-doc diffutils-doc
The following NEW packages will be installed:
  git git-man liberror-perl libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1
  make nginx nginx-common nginx-full patch
0 upgraded, 12 newly installed, 0 to remove and 21 not upgraded.
Need to get 8,513 kB of archives.
After this operation, 20.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main libjpeg-turbo8 i386 1.2.1-0ubuntu2 [120 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main libxslt1.1 i386 1.1.27-1ubuntu2 [168 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main libjpeg8 i386 8c-2ubuntu7 [2,112 B]
Get:4 http://archive.ubuntu.com/ubuntu/ raring/main libgd2-noxpm i386 2.0.36~rc1~dfsg-6.1ubuntu1 [199 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ raring/main liberror-perl all 0.17-1 [23.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ raring/main git-man all 1:1.8.1.2-1 [653 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ raring/main git i386 1:1.8.1.2-1 [6,739 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ raring/main make i386 3.81-8.2ubuntu2 [116 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx-common all 1.2.6-1ubuntu3.2 [17.8 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx-full i386 1.2.6-1ubuntu3.2 [382 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx all 1.2.6-1ubuntu3.2 [6,324 B]
Get:12 http://archive.ubuntu.com/ubuntu/ raring/main patch i386 2.6.1-3ubuntu2 [85.2 kB]
Fetched 8,513 kB in 4s (2,071 kB/s)
Selecting previously unselected package libjpeg-turbo8:i386.
(Reading database ... 27402 files and directories currently installed.)
Unpacking libjpeg-turbo8:i386 (from .../libjpeg-turbo8_1.2.1-0ubuntu2_i386.deb) ...
Selecting previously unselected package libxslt1.1:i386.
Unpacking libxslt1.1:i386 (from .../libxslt1.1_1.1.27-1ubuntu2_i386.deb) ...
Selecting previously unselected package libjpeg8:i386.
Unpacking libjpeg8:i386 (from .../libjpeg8_8c-2ubuntu7_i386.deb) ...
Selecting previously unselected package libgd2-noxpm:i386.
Unpacking libgd2-noxpm:i386 (from .../libgd2-noxpm_2.0.36~rc1~dfsg-6.1ubuntu1_i386.deb) ...
Selecting previously unselected package liberror-perl.
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.8.1.2-1_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.8.1.2-1_i386.deb) ...
Selecting previously unselected package make.
Unpacking make (from .../make_3.81-8.2ubuntu2_i386.deb) ...
Selecting previously unselected package nginx-common.
Unpacking nginx-common (from .../nginx-common_1.2.6-1ubuntu3.2_all.deb) ...
Selecting previously unselected package nginx-full.
Unpacking nginx-full (from .../nginx-full_1.2.6-1ubuntu3.2_i386.deb) ...
Selecting previously unselected package nginx.
Unpacking nginx (from .../nginx_1.2.6-1ubuntu3.2_all.deb) ...
Selecting previously unselected package patch.
Unpacking patch (from .../patch_2.6.1-3ubuntu2_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Setting up libjpeg-turbo8:i386 (1.2.1-0ubuntu2) ...
Setting up libxslt1.1:i386 (1.1.27-1ubuntu2) ...
Setting up libjpeg8:i386 (8c-2ubuntu7) ...
Setting up libgd2-noxpm:i386 (2.0.36~rc1~dfsg-6.1ubuntu1) ...
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.8.1.2-1) ...
Setting up git (1:1.8.1.2-1) ...
Setting up make (3.81-8.2ubuntu2) ...
Setting up nginx-common (1.2.6-1ubuntu3.2) ...
Setting up patch (2.6.1-3ubuntu2) ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up nginx-full (1.2.6-1ubuntu3.2) ...
Setting up nginx (1.2.6-1ubuntu3.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

wget -qO- "$DOCKER_PKG" > /tmp/lxc-docker_0.4.2-1_amd64.deb
dpkg --force-depends -i /tmp/lxc-docker_0.4.2-1_amd64.deb && apt-get install -f -y
dpkg: error processing /tmp/lxc-docker_0.4.2-1_amd64.deb (--install):
 package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
 /tmp/lxc-docker_0.4.2-1_amd64.deb
rm /tmp/lxc-docker_0.4.2-1_amd64.deb

sed -i.bak 's/docker -d/docker -d -r=true/' /etc/init/docker.conf # Docker should restart containers 
sed: can't read /etc/init/docker.conf: No such file or directory
@progrium

This comment has been minimized.

Copy link
Contributor

progrium commented Jun 30, 2013

Ok. This is really helpful. It means Digital Ocean is running on the wrong architecture (i386) than the one we assume (amd64). However, if you're getting the same issue, doesn't that mean you're seeing this somewhere?

2013/06/25 10:10:46 Error: fork/exec /usr/bin/bsdtar: cannot allocate memory:

And if so, where are you seeing it?

@CameronGilroy

This comment has been minimized.

Copy link

CameronGilroy commented Jun 30, 2013

I'm not seeing that error any more - I've reinstalled three times trying to see if I could get the original error. These are some of the ways I've run the command. Normal, with --verbose. With and with out the swapfile. Let me know if there are any other things you want me to try.

@progrium

This comment has been minimized.

Copy link
Contributor

progrium commented Jun 30, 2013

Do they let you pick architecture or are you stuck with 386?

@CameronGilroy

This comment has been minimized.

Copy link

CameronGilroy commented Jun 30, 2013

I'll have a look when I'm back in side - does it matter between 32&64bit?

@progrium

This comment has been minimized.

Copy link
Contributor

progrium commented Jun 30, 2013

Yeah, just because dokku assumes 64 at the moment...

@CameronGilroy

This comment has been minimized.

Copy link

CameronGilroy commented Jun 30, 2013

Ok - Looks as if we have it now!

The progrium_buildstep.tgz file is 333M in size see

wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash --verbose
DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
DOKKU_STACK=${DOKKU_STACK:-"https://s3.amazonaws.com/progrium-dokku/progrium_buildstep.tgz"}
DOCKER_PKG=${DOCKER_PKG:-"https://launchpad.net/~dotcloud/+archive/lxc-docker/+files/lxc-docker_0.4.2-1_amd64.deb"}
set -e

apt-get update
Get:1 http://security.ubuntu.com raring-security Release.gpg [933 B]
Get:2 http://security.ubuntu.com raring-security Release [40.8 kB]
Get:3 http://security.ubuntu.com raring-security/main amd64 Packages [75.0 kB] 
Get:4 http://security.ubuntu.com raring-security/main Translation-en [38.9 kB] 
Get:5 http://archive.ubuntu.com raring Release.gpg [933 B]                     
Ign http://security.ubuntu.com raring-security/main Translation-en_US  
Get:6 http://archive.ubuntu.com raring-updates Release.gpg [933 B]     
Get:7 http://archive.ubuntu.com raring Release [40.8 kB]
Get:8 http://archive.ubuntu.com raring-updates Release [40.8 kB]
Get:9 http://archive.ubuntu.com raring/main amd64 Packages [1,170 kB]
Get:10 http://archive.ubuntu.com raring/universe amd64 Packages [5,396 kB]
Hit http://archive.ubuntu.com raring/main Translation-en      
Get:11 http://archive.ubuntu.com raring/universe Translation-en [3,736 kB]
Get:12 http://archive.ubuntu.com raring-updates/main amd64 Packages [105 kB]
Get:13 http://archive.ubuntu.com raring-updates/universe amd64 Packages [99.7 kB]
Get:14 http://archive.ubuntu.com raring-updates/main Translation-en [51.3 kB]
Get:15 http://archive.ubuntu.com raring-updates/universe Translation-en [54.6 kB]
Ign http://archive.ubuntu.com raring/main Translation-en_US
Ign http://archive.ubuntu.com raring/universe Translation-en_US                
Ign http://archive.ubuntu.com raring-updates/main Translation-en_US            
Ign http://archive.ubuntu.com raring-updates/universe Translation-en_US        
Fetched 10.9 MB in 7s (1,429 kB/s)                                             
Reading package lists... Done
DEBIAN_FRONTEND=noninteractive apt-get install -y linux-image-extra-`uname -r`
uname -r
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  crda iw libnl-3-200 libnl-genl-3-200 wireless-regdb
The following NEW packages will be installed:
  crda iw libnl-3-200 libnl-genl-3-200 linux-image-extra-3.8.0-19-generic
  wireless-regdb
0 upgraded, 6 newly installed, 0 to remove and 21 not upgraded.
Need to get 31.0 MB of archives.
After this operation, 130 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main libnl-3-200 amd64 3.2.16-0ubuntu1 [51.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main libnl-genl-3-200 amd64 3.2.16-0ubuntu1 [11.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main wireless-regdb all 2011.04.28-1ubuntu3 [6,164 B]
Get:4 http://archive.ubuntu.com/ubuntu/ raring/main crda amd64 1.1.2-1ubuntu2 [15.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ raring/main iw amd64 3.4-1 [51.7 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ raring-updates/main linux-image-extra-3.8.0-19-generic amd64 3.8.0-19.30 [30.9 MB]
Fetched 31.0 MB in 5s (5,660 kB/s)                             
Selecting previously unselected package libnl-3-200:amd64.
(Reading database ... 23431 files and directories currently installed.)
Unpacking libnl-3-200:amd64 (from .../libnl-3-200_3.2.16-0ubuntu1_amd64.deb) ...
Selecting previously unselected package libnl-genl-3-200:amd64.
Unpacking libnl-genl-3-200:amd64 (from .../libnl-genl-3-200_3.2.16-0ubuntu1_amd64.deb) ...
Selecting previously unselected package wireless-regdb.
Unpacking wireless-regdb (from .../wireless-regdb_2011.04.28-1ubuntu3_all.deb) ...
Selecting previously unselected package crda.
Unpacking crda (from .../crda_1.1.2-1ubuntu2_amd64.deb) ...
Selecting previously unselected package iw.
Unpacking iw (from .../archives/iw_3.4-1_amd64.deb) ...
Selecting previously unselected package linux-image-extra-3.8.0-19-generic.
Unpacking linux-image-extra-3.8.0-19-generic (from .../linux-image-extra-3.8.0-19-generic_3.8.0-19.30_amd64.deb) ...
Processing triggers for man-db ...
Setting up libnl-3-200:amd64 (3.2.16-0ubuntu1) ...
Setting up libnl-genl-3-200:amd64 (3.2.16-0ubuntu1) ...
Setting up wireless-regdb (2011.04.28-1ubuntu3) ...
Setting up crda (1.1.2-1ubuntu2) ...
Setting up iw (3.4-1) ...
Setting up linux-image-extra-3.8.0-19-generic (3.8.0-19.30) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-19-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-3.8.0-19-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
apt-get install -y git nginx make curl dnsutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version.
dnsutils is already the newest version.
The following extra packages will be installed:
  git-man liberror-perl libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1
  nginx-common nginx-full patch
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
  git-email git-gui gitk gitweb libgd-tools make-doc diffutils-doc
The following NEW packages will be installed:
  git git-man liberror-perl libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1
  make nginx nginx-common nginx-full patch
0 upgraded, 12 newly installed, 0 to remove and 21 not upgraded.
Need to get 8,632 kB of archives.
After this operation, 20.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main libjpeg-turbo8 amd64 1.2.1-0ubuntu2 [114 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main libxslt1.1 amd64 1.1.27-1ubuntu2 [171 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main libjpeg8 amd64 8c-2ubuntu7 [2,112 B]
Get:4 http://archive.ubuntu.com/ubuntu/ raring/main libgd2-noxpm amd64 2.0.36~rc1~dfsg-6.1ubuntu1 [200 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ raring/main liberror-perl all 0.17-1 [23.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ raring/main git-man all 1:1.8.1.2-1 [653 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ raring/main git amd64 1:1.8.1.2-1 [6,863 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ raring/main make amd64 3.81-8.2ubuntu2 [120 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx-common all 1.2.6-1ubuntu3.2 [17.8 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx-full amd64 1.2.6-1ubuntu3.2 [380 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx all 1.2.6-1ubuntu3.2 [6,324 B]
Get:12 http://archive.ubuntu.com/ubuntu/ raring/main patch amd64 2.6.1-3ubuntu2 [79.9 kB]
Fetched 8,632 kB in 4s (1,783 kB/s)
Selecting previously unselected package libjpeg-turbo8:amd64.
(Reading database ... 27170 files and directories currently installed.)
Unpacking libjpeg-turbo8:amd64 (from .../libjpeg-turbo8_1.2.1-0ubuntu2_amd64.deb) ...
Selecting previously unselected package libxslt1.1:amd64.
Unpacking libxslt1.1:amd64 (from .../libxslt1.1_1.1.27-1ubuntu2_amd64.deb) ...
Selecting previously unselected package libjpeg8:amd64.
Unpacking libjpeg8:amd64 (from .../libjpeg8_8c-2ubuntu7_amd64.deb) ...
Selecting previously unselected package libgd2-noxpm:amd64.
Unpacking libgd2-noxpm:amd64 (from .../libgd2-noxpm_2.0.36~rc1~dfsg-6.1ubuntu1_amd64.deb) ...
Selecting previously unselected package liberror-perl.
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.8.1.2-1_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.8.1.2-1_amd64.deb) ...
Selecting previously unselected package make.
Unpacking make (from .../make_3.81-8.2ubuntu2_amd64.deb) ...
Selecting previously unselected package nginx-common.
Unpacking nginx-common (from .../nginx-common_1.2.6-1ubuntu3.2_all.deb) ...
Selecting previously unselected package nginx-full.
Unpacking nginx-full (from .../nginx-full_1.2.6-1ubuntu3.2_amd64.deb) ...
Selecting previously unselected package nginx.
Unpacking nginx (from .../nginx_1.2.6-1ubuntu3.2_all.deb) ...
Selecting previously unselected package patch.
Unpacking patch (from .../patch_2.6.1-3ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Setting up libjpeg-turbo8:amd64 (1.2.1-0ubuntu2) ...
Setting up libxslt1.1:amd64 (1.1.27-1ubuntu2) ...
Setting up libjpeg8:amd64 (8c-2ubuntu7) ...
Setting up libgd2-noxpm:amd64 (2.0.36~rc1~dfsg-6.1ubuntu1) ...
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.8.1.2-1) ...
Setting up git (1:1.8.1.2-1) ...
Setting up make (3.81-8.2ubuntu2) ...
Setting up nginx-common (1.2.6-1ubuntu3.2) ...
Setting up patch (2.6.1-3ubuntu2) ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up nginx-full (1.2.6-1ubuntu3.2) ...
Setting up nginx (1.2.6-1ubuntu3.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

wget -qO- "$DOCKER_PKG" > /tmp/lxc-docker_0.4.2-1_amd64.deb
dpkg --force-depends -i /tmp/lxc-docker_0.4.2-1_amd64.deb && apt-get install -f -y
Selecting previously unselected package lxc-docker.
(Reading database ... 28020 files and directories currently installed.)
Unpacking lxc-docker (from .../lxc-docker_0.4.2-1_amd64.deb) ...
dpkg: lxc-docker: dependency problems, but configuring anyway as you requested:
 lxc-docker depends on lxc; however:
  Package lxc is not installed.
 lxc-docker depends on bsdtar; however:
  Package bsdtar is not installed.
 lxc-docker depends on aufs-tools; however:
  Package aufs-tools is not installed.

Setting up lxc-docker (0.4.2-1) ...
docker start/running, process 8133
Processing triggers for ureadahead ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  aufs-tools bridge-utils bsdtar cgroup-lite cloud-utils debootstrap
  distro-info distro-info-data dnsmasq-base euca2ools gdisk libapparmor1
  libarchive13 libcap2-bin libgmp10 libicu48 liblxc0 liblzo2-2
  libnetfilter-conntrack3 libnettle4 libpam-cap libseccomp1 libyaml-0-2 lxc
  lxc-templates python-boto python-crypto python-distro-info python-m2crypto
  python-paramiko python-yaml python3-lxc
Suggested packages:
  bsdcpio shunit2 lrzip libcap-dev btrfs-tools lvm2 lxctl qemu-user-static
  python-crypto-dbg python-crypto-doc
The following NEW packages will be installed:
  aufs-tools bridge-utils bsdtar cgroup-lite cloud-utils debootstrap
  distro-info distro-info-data dnsmasq-base euca2ools gdisk libapparmor1
  libarchive13 libcap2-bin libgmp10 libicu48 liblxc0 liblzo2-2
  libnetfilter-conntrack3 libnettle4 libpam-cap libseccomp1 libyaml-0-2 lxc
  lxc-templates python-boto python-crypto python-distro-info python-m2crypto
  python-paramiko python-yaml python3-lxc
0 upgraded, 32 newly installed, 0 to remove and 21 not upgraded.
Need to get 8,745 kB of archives.
After this operation, 41.4 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main liblzo2-2 amd64 2.06-1build1 [53.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main libnettle4 amd64 2.4-3 [94.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main libarchive13 amd64 3.1.2-5ubuntu1 [311 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ raring/main libgmp10 amd64 2:5.0.5+dfsg-2ubuntu3 [240 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ raring/main libicu48 amd64 4.8.1.1-12 [4,737 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ raring/main libapparmor1 amd64 2.8.0-0ubuntu11 [37.2 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ raring/main libseccomp1 amd64 1.0.1-2 [29.3 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ raring-updates/universe liblxc0 amd64 0.9.0-0ubuntu3.3 [101 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ raring/main libyaml-0-2 amd64 0.1.4-2build1 [57.3 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ raring/main bridge-utils amd64 1.5-6ubuntu1 [32.6 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ raring/main libnetfilter-conntrack3 amd64 1.0.1-1 [36.5 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ raring/main dnsmasq-base amd64 2.65-1ubuntu1 [250 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ raring-updates/universe python3-lxc amd64 0.9.0-0ubuntu3.3 [13.7 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ raring-updates/universe lxc amd64 0.9.0-0ubuntu3.3 [120 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ raring/main python-m2crypto amd64 0.21.1-3ubuntu1 [158 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ raring/universe aufs-tools amd64 1:3.0+20120411-3ubuntu1 [91.8 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ raring/universe bsdtar amd64 3.1.2-5ubuntu1 [52.4 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ raring-updates/main distro-info-data all 0.13ubuntu0.2 [4,164 B]
Get:19 http://archive.ubuntu.com/ubuntu/ raring/main distro-info amd64 0.10 [18.5 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ raring/main python-boto all 2.3.0-1 [390 kB]
Get:21 http://archive.ubuntu.com/ubuntu/ raring/main euca2ools all 2.1.1-0ubuntu2 [159 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ raring/main libcap2-bin amd64 1:2.22-1.2ubuntu2 [18.5 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ raring/main libpam-cap amd64 1:2.22-1.2ubuntu2 [7,792 B]
Get:24 http://archive.ubuntu.com/ubuntu/ raring-updates/universe lxc-templates all 0.9.0-0ubuntu3.3 [33.0 kB]
Get:25 http://archive.ubuntu.com/ubuntu/ raring/main python-crypto amd64 2.6-4 [360 kB]
Get:26 http://archive.ubuntu.com/ubuntu/ raring/main python-distro-info all 0.10 [8,954 B]
Get:27 http://archive.ubuntu.com/ubuntu/ raring/main python-paramiko all 1.7.7.1-3.1ubuntu1 [807 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ raring/main python-yaml amd64 3.10-4build2 [113 kB]
Get:29 http://archive.ubuntu.com/ubuntu/ raring/main cgroup-lite all 1.8 [4,148 B]
Get:30 http://archive.ubuntu.com/ubuntu/ raring/main cloud-utils all 0.27-0ubuntu1 [42.8 kB]
Get:31 http://archive.ubuntu.com/ubuntu/ raring-updates/main debootstrap all 1.0.46ubuntu1 [35.2 kB]
Get:32 http://archive.ubuntu.com/ubuntu/ raring/main gdisk amd64 0.8.5-1ubuntu2 [328 kB]
Fetched 8,745 kB in 6s (1,331 kB/s)                                            
Extracting templates from packages: 100%
Selecting previously unselected package liblzo2-2:amd64.
(Reading database ... 28026 files and directories currently installed.)
Unpacking liblzo2-2:amd64 (from .../liblzo2-2_2.06-1build1_amd64.deb) ...
Selecting previously unselected package libnettle4:amd64.
Unpacking libnettle4:amd64 (from .../libnettle4_2.4-3_amd64.deb) ...
Selecting previously unselected package libarchive13:amd64.
Unpacking libarchive13:amd64 (from .../libarchive13_3.1.2-5ubuntu1_amd64.deb) ...
Selecting previously unselected package libgmp10:amd64.
Unpacking libgmp10:amd64 (from .../libgmp10_2%3a5.0.5+dfsg-2ubuntu3_amd64.deb) ...
Selecting previously unselected package libicu48:amd64.
Unpacking libicu48:amd64 (from .../libicu48_4.8.1.1-12_amd64.deb) ...
Selecting previously unselected package libapparmor1.
Unpacking libapparmor1 (from .../libapparmor1_2.8.0-0ubuntu11_amd64.deb) ...
Selecting previously unselected package libseccomp1:amd64.
Unpacking libseccomp1:amd64 (from .../libseccomp1_1.0.1-2_amd64.deb) ...
Selecting previously unselected package liblxc0.
Unpacking liblxc0 (from .../liblxc0_0.9.0-0ubuntu3.3_amd64.deb) ...
Selecting previously unselected package libyaml-0-2:amd64.
Unpacking libyaml-0-2:amd64 (from .../libyaml-0-2_0.1.4-2build1_amd64.deb) ...
Selecting previously unselected package bridge-utils.
Unpacking bridge-utils (from .../bridge-utils_1.5-6ubuntu1_amd64.deb) ...
Selecting previously unselected package libnetfilter-conntrack3:amd64.
Unpacking libnetfilter-conntrack3:amd64 (from .../libnetfilter-conntrack3_1.0.1-1_amd64.deb) ...
Selecting previously unselected package dnsmasq-base.
Unpacking dnsmasq-base (from .../dnsmasq-base_2.65-1ubuntu1_amd64.deb) ...
Selecting previously unselected package python3-lxc.
Unpacking python3-lxc (from .../python3-lxc_0.9.0-0ubuntu3.3_amd64.deb) ...
Selecting previously unselected package lxc.
Unpacking lxc (from .../lxc_0.9.0-0ubuntu3.3_amd64.deb) ...
Selecting previously unselected package python-m2crypto.
Unpacking python-m2crypto (from .../python-m2crypto_0.21.1-3ubuntu1_amd64.deb) ...
Selecting previously unselected package aufs-tools.
Unpacking aufs-tools (from .../aufs-tools_1%3a3.0+20120411-3ubuntu1_amd64.deb) ...
Selecting previously unselected package bsdtar.
Unpacking bsdtar (from .../bsdtar_3.1.2-5ubuntu1_amd64.deb) ...
Selecting previously unselected package distro-info-data.
Unpacking distro-info-data (from .../distro-info-data_0.13ubuntu0.2_all.deb) ...
Selecting previously unselected package distro-info.
Unpacking distro-info (from .../distro-info_0.10_amd64.deb) ...
Selecting previously unselected package python-boto.
Unpacking python-boto (from .../python-boto_2.3.0-1_all.deb) ...
Selecting previously unselected package euca2ools.
Unpacking euca2ools (from .../euca2ools_2.1.1-0ubuntu2_all.deb) ...
Selecting previously unselected package libcap2-bin.
Unpacking libcap2-bin (from .../libcap2-bin_1%3a2.22-1.2ubuntu2_amd64.deb) ...
Selecting previously unselected package libpam-cap:amd64.
Unpacking libpam-cap:amd64 (from .../libpam-cap_1%3a2.22-1.2ubuntu2_amd64.deb) ...
Selecting previously unselected package lxc-templates.
Unpacking lxc-templates (from .../lxc-templates_0.9.0-0ubuntu3.3_all.deb) ...
Selecting previously unselected package python-crypto.
Unpacking python-crypto (from .../python-crypto_2.6-4_amd64.deb) ...
Selecting previously unselected package python-distro-info.
Unpacking python-distro-info (from .../python-distro-info_0.10_all.deb) ...
Selecting previously unselected package python-paramiko.
Unpacking python-paramiko (from .../python-paramiko_1.7.7.1-3.1ubuntu1_all.deb) ...
Selecting previously unselected package python-yaml.
Unpacking python-yaml (from .../python-yaml_3.10-4build2_amd64.deb) ...
Selecting previously unselected package cgroup-lite.
Unpacking cgroup-lite (from .../cgroup-lite_1.8_all.deb) ...
Selecting previously unselected package cloud-utils.
Unpacking cloud-utils (from .../cloud-utils_0.27-0ubuntu1_all.deb) ...
Selecting previously unselected package debootstrap.
Unpacking debootstrap (from .../debootstrap_1.0.46ubuntu1_all.deb) ...
Selecting previously unselected package gdisk.
Unpacking gdisk (from .../gdisk_0.8.5-1ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up liblzo2-2:amd64 (2.06-1build1) ...
Setting up libnettle4:amd64 (2.4-3) ...
Setting up libarchive13:amd64 (3.1.2-5ubuntu1) ...
Setting up libgmp10:amd64 (2:5.0.5+dfsg-2ubuntu3) ...
Setting up libicu48:amd64 (4.8.1.1-12) ...
Setting up libapparmor1 (2.8.0-0ubuntu11) ...
Setting up libseccomp1:amd64 (1.0.1-2) ...
Setting up liblxc0 (0.9.0-0ubuntu3.3) ...
Setting up libyaml-0-2:amd64 (0.1.4-2build1) ...
Setting up bridge-utils (1.5-6ubuntu1) ...
Setting up libnetfilter-conntrack3:amd64 (1.0.1-1) ...
Setting up dnsmasq-base (2.65-1ubuntu1) ...
Setting up python3-lxc (0.9.0-0ubuntu3.3) ...
Setting up lxc (0.9.0-0ubuntu3.3) ...
lxc start/running
Setting up lxc dnsmasq configuration.
Setting up python-m2crypto (0.21.1-3ubuntu1) ...
Setting up aufs-tools (1:3.0+20120411-3ubuntu1) ...
Setting up bsdtar (3.1.2-5ubuntu1) ...
Setting up distro-info-data (0.13ubuntu0.2) ...
Setting up distro-info (0.10) ...
Setting up python-boto (2.3.0-1) ...
Setting up euca2ools (2.1.1-0ubuntu2) ...
Setting up libcap2-bin (1:2.22-1.2ubuntu2) ...
Setting up libpam-cap:amd64 (1:2.22-1.2ubuntu2) ...
Setting up python-crypto (2.6-4) ...
Setting up python-distro-info (0.10) ...
Setting up python-paramiko (1.7.7.1-3.1ubuntu1) ...
Setting up python-yaml (3.10-4build2) ...
Setting up cgroup-lite (1.8) ...
cgroup-lite start/running
Setting up cloud-utils (0.27-0ubuntu1) ...
Setting up debootstrap (1.0.46ubuntu1) ...
Setting up gdisk (0.8.5-1ubuntu2) ...
Processing triggers for ureadahead ...
Setting up lxc-templates (0.9.0-0ubuntu3.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
rm /tmp/lxc-docker_0.4.2-1_amd64.deb

sed -i.bak 's/docker -d/docker -d -r=true/' /etc/init/docker.conf # Docker should restart containers 

cd ~ && git clone ${DOKKU_REPO}
Cloning into 'dokku'...
remote: Counting objects: 495, done.
remote: Compressing objects: 100% (269/269), done.
remote: Total 495 (delta 265), reused 431 (delta 209)
Receiving objects: 100% (495/495), 61.55 KiB, done.
Resolving deltas: 100% (265/265), done.
cd dokku && make install
wget -qO /usr/local/bin/gitreceive https://raw.github.com/progrium/gitreceive/master/gitreceive
chmod +x /usr/local/bin/gitreceive
gitreceive init
Created receiver script in /home/git for user 'git'.
wget -qO /usr/local/bin/sshcommand https://raw.github.com/progrium/sshcommand/master/sshcommand
chmod +x /usr/local/bin/sshcommand
sshcommand create dokku /usr/local/bin/dokku
cp dokku /usr/local/bin/dokku
cp receiver /home/git/receiver
cp deploystep /home/git/deploystep
cp buildstep /home/git/buildstep
cp nginx-app-conf /home/git/nginx-app-conf
cp nginx-reloader.conf /etc/init/nginx-reloader.conf
echo "include /home/git/*/nginx.conf;" > /etc/nginx/conf.d/dokku.conf
curl "$DOKKU_STACK" | gunzip -cd | docker import - progrium/buildstep
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  333M  100  333M    0     0   741k      0  0:07:40  0:07:40 --:--:--  839k
2013/06/30 07:40:01 Error: fork/exec /usr/bin/bsdtar: cannot allocate memory: 

This is a list of all the images we have available. screen shot 2013-06-30 at 5 32 14 pm

@CameronGilroy

This comment has been minimized.

Copy link

CameronGilroy commented Jun 30, 2013

Ok Here is what is happening if I create a swapfile before running the install.

root@dokku:~# dd if=/dev/zero of=/swapfile bs=1024 count=1024000
1024000+0 records in
1024000+0 records out
1048576000 bytes (1.0 GB) copied, 8.04576 s, 130 MB/s
root@dokku:~# mkswap /swapfile
Setting up swapspace version 1, size = 1023996 KiB
no label, UUID=49e95c85-3ef7-42a4-8cb0-da2bbb970f9e
root@dokku:~# swapon /swapfile
root@dokku:~# wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash --verbose
DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
DOKKU_STACK=${DOKKU_STACK:-"https://s3.amazonaws.com/progrium-dokku/progrium_buildstep.tgz"}
DOCKER_PKG=${DOCKER_PKG:-"https://launchpad.net/~dotcloud/+archive/lxc-docker/+files/lxc-docker_0.4.2-1_amd64.deb"}
set -e

apt-get update
Hit http://archive.ubuntu.com raring Release.gpg
Hit http://archive.ubuntu.com raring-updates Release.gpg
Hit http://archive.ubuntu.com raring Release          
Hit http://archive.ubuntu.com raring-updates Release                           
Hit http://archive.ubuntu.com raring/main amd64 Packages                       
Hit http://archive.ubuntu.com raring/universe amd64 Packages                   
Hit http://archive.ubuntu.com raring/main Translation-en                    
Hit http://archive.ubuntu.com raring/universe Translation-en
Hit http://archive.ubuntu.com raring-updates/main amd64 Packages
Hit http://archive.ubuntu.com raring-updates/universe amd64 Packages
Hit http://security.ubuntu.com raring-security Release.gpg
Hit http://archive.ubuntu.com raring-updates/main Translation-en
Hit http://archive.ubuntu.com raring-updates/universe Translation-en
Hit http://security.ubuntu.com raring-security Release
Hit http://security.ubuntu.com raring-security/main amd64 Packages
Ign http://archive.ubuntu.com raring/main Translation-en_US
Ign http://archive.ubuntu.com raring/universe Translation-en_US
Ign http://archive.ubuntu.com raring-updates/main Translation-en_US
Ign http://archive.ubuntu.com raring-updates/universe Translation-en_US
Hit http://security.ubuntu.com raring-security/main Translation-en
Ign http://security.ubuntu.com raring-security/main Translation-en_US
Reading package lists... Done
DEBIAN_FRONTEND=noninteractive apt-get install -y linux-image-extra-`uname -r`
uname -r
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-image-extra-3.8.0-19-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
apt-get install -y git nginx make curl dnsutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version.
dnsutils is already the newest version.
git is already the newest version.
make is already the newest version.
nginx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.

wget -qO- "$DOCKER_PKG" > /tmp/lxc-docker_0.4.2-1_amd64.deb
dpkg --force-depends -i /tmp/lxc-docker_0.4.2-1_amd64.deb && apt-get install -f -y
(Reading database ... 30086 files and directories currently installed.)
Preparing to replace lxc-docker 0.4.2-1 (using .../lxc-docker_0.4.2-1_amd64.deb) ...
docker stop/waiting
Unpacking replacement lxc-docker ...
Setting up lxc-docker (0.4.2-1) ...
docker start/running, process 10206
Processing triggers for ureadahead ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
rm /tmp/lxc-docker_0.4.2-1_amd64.deb

sed -i.bak 's/docker -d/docker -d -r=true/' /etc/init/docker.conf # Docker should restart containers 

cd ~ && git clone ${DOKKU_REPO}
fatal: destination path 'dokku' already exists and is not an empty directory.
root@dokku:~# Write failed: Broken pipe
~/github/invoices[develop]% ssh root@dokku.ri7.in
The authenticity of host 'dokku.ri7.in (82.196.14.211)' can't be established.
RSA key fingerprint is 28:34:90:ba:aa:8d:80:76:56:de:6d:21:cb:39:2a:ad.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'dokku.ri7.in,82.196.14.211' (RSA) to the list of known hosts.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Welcome to Ubuntu 13.04 (GNU/Linux 3.8.0-19-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
root@dokku:~# dd if=/dev/zero of=/swapfile bs=1024 count=1024000
mkswap /swapfile
1024000+0 records in
1024000+0 records out
1048576000 bytes (1.0 GB) copied, 10.1474 s, 103 MB/s
root@dokku:~# mkswap /swapfile
Setting up swapspace version 1, size = 1023996 KiB
no label, UUID=42b2228b-cb66-4af6-b540-9b844c22c309
root@dokku:~# swapon /swapfile
root@dokku:~# wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash --verbose
DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
DOKKU_STACK=${DOKKU_STACK:-"https://s3.amazonaws.com/progrium-dokku/progrium_buildstep.tgz"}
DOCKER_PKG=${DOCKER_PKG:-"https://launchpad.net/~dotcloud/+archive/lxc-docker/+files/lxc-docker_0.4.2-1_amd64.deb"}
set -e

apt-get update
Get:1 http://security.ubuntu.com raring-security Release.gpg [933 B]
Get:2 http://security.ubuntu.com raring-security Release [40.8 kB]             
Get:3 http://security.ubuntu.com raring-security/main amd64 Packages [75.0 kB] 
Get:4 http://security.ubuntu.com raring-security/main Translation-en [38.9 kB] 
Get:5 http://archive.ubuntu.com raring Release.gpg [933 B]                     
Ign http://security.ubuntu.com raring-security/main Translation-en_US  
Get:6 http://archive.ubuntu.com raring-updates Release.gpg [933 B]     
Get:7 http://archive.ubuntu.com raring Release [40.8 kB]
Get:8 http://archive.ubuntu.com raring-updates Release [40.8 kB]
Get:9 http://archive.ubuntu.com raring/main amd64 Packages [1,170 kB]
Get:10 http://archive.ubuntu.com raring/universe amd64 Packages [5,396 kB]
Hit http://archive.ubuntu.com raring/main Translation-en      
Get:11 http://archive.ubuntu.com raring/universe Translation-en [3,736 kB]
Get:12 http://archive.ubuntu.com raring-updates/main amd64 Packages [105 kB]
Get:13 http://archive.ubuntu.com raring-updates/universe amd64 Packages [99.7 kB]
Get:14 http://archive.ubuntu.com raring-updates/main Translation-en [51.3 kB]
Get:15 http://archive.ubuntu.com raring-updates/universe Translation-en [54.6 kB]
Ign http://archive.ubuntu.com raring/main Translation-en_US
Ign http://archive.ubuntu.com raring/universe Translation-en_US
Ign http://archive.ubuntu.com raring-updates/main Translation-en_US
Ign http://archive.ubuntu.com raring-updates/universe Translation-en_US
Fetched 10.9 MB in 6s (1,700 kB/s)                                             
Reading package lists... Done
DEBIAN_FRONTEND=noninteractive apt-get install -y linux-image-extra-`uname -r`
uname -r
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  crda iw libnl-3-200 libnl-genl-3-200 wireless-regdb
The following NEW packages will be installed:
  crda iw libnl-3-200 libnl-genl-3-200 linux-image-extra-3.8.0-19-generic
  wireless-regdb
0 upgraded, 6 newly installed, 0 to remove and 21 not upgraded.
Need to get 31.0 MB of archives.
After this operation, 130 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main libnl-3-200 amd64 3.2.16-0ubuntu1 [51.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main libnl-genl-3-200 amd64 3.2.16-0ubuntu1 [11.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main wireless-regdb all 2011.04.28-1ubuntu3 [6,164 B]
Get:4 http://archive.ubuntu.com/ubuntu/ raring/main crda amd64 1.1.2-1ubuntu2 [15.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ raring/main iw amd64 3.4-1 [51.7 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ raring-updates/main linux-image-extra-3.8.0-19-generic amd64 3.8.0-19.30 [30.9 MB]
Fetched 31.0 MB in 1s (20.9 MB/s)                              
Selecting previously unselected package libnl-3-200:amd64.
(Reading database ... 23431 files and directories currently installed.)
Unpacking libnl-3-200:amd64 (from .../libnl-3-200_3.2.16-0ubuntu1_amd64.deb) ...
Selecting previously unselected package libnl-genl-3-200:amd64.
Unpacking libnl-genl-3-200:amd64 (from .../libnl-genl-3-200_3.2.16-0ubuntu1_amd64.deb) ...
Selecting previously unselected package wireless-regdb.
Unpacking wireless-regdb (from .../wireless-regdb_2011.04.28-1ubuntu3_all.deb) ...
Selecting previously unselected package crda.
Unpacking crda (from .../crda_1.1.2-1ubuntu2_amd64.deb) ...
Selecting previously unselected package iw.
Unpacking iw (from .../archives/iw_3.4-1_amd64.deb) ...
Selecting previously unselected package linux-image-extra-3.8.0-19-generic.
Unpacking linux-image-extra-3.8.0-19-generic (from .../linux-image-extra-3.8.0-19-generic_3.8.0-19.30_amd64.deb) ...
Processing triggers for man-db ...
Setting up libnl-3-200:amd64 (3.2.16-0ubuntu1) ...
Setting up libnl-genl-3-200:amd64 (3.2.16-0ubuntu1) ...
Setting up wireless-regdb (2011.04.28-1ubuntu3) ...
Setting up crda (1.1.2-1ubuntu2) ...
Setting up iw (3.4-1) ...
Setting up linux-image-extra-3.8.0-19-generic (3.8.0-19.30) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-19-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-3.8.0-19-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
apt-get install -y git nginx make curl dnsutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version.
dnsutils is already the newest version.
The following extra packages will be installed:
  git-man liberror-perl libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1
  nginx-common nginx-full patch
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
  git-email git-gui gitk gitweb libgd-tools make-doc diffutils-doc
The following NEW packages will be installed:
  git git-man liberror-perl libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1
  make nginx nginx-common nginx-full patch
0 upgraded, 12 newly installed, 0 to remove and 21 not upgraded.
Need to get 8,632 kB of archives.
After this operation, 20.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main libjpeg-turbo8 amd64 1.2.1-0ubuntu2 [114 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main libxslt1.1 amd64 1.1.27-1ubuntu2 [171 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main libjpeg8 amd64 8c-2ubuntu7 [2,112 B]
Get:4 http://archive.ubuntu.com/ubuntu/ raring/main libgd2-noxpm amd64 2.0.36~rc1~dfsg-6.1ubuntu1 [200 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ raring/main liberror-perl all 0.17-1 [23.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ raring/main git-man all 1:1.8.1.2-1 [653 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ raring/main git amd64 1:1.8.1.2-1 [6,863 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ raring/main make amd64 3.81-8.2ubuntu2 [120 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx-common all 1.2.6-1ubuntu3.2 [17.8 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx-full amd64 1.2.6-1ubuntu3.2 [380 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx all 1.2.6-1ubuntu3.2 [6,324 B]
Get:12 http://archive.ubuntu.com/ubuntu/ raring/main patch amd64 2.6.1-3ubuntu2 [79.9 kB]
Fetched 8,632 kB in 0s (11.8 MB/s)
Selecting previously unselected package libjpeg-turbo8:amd64.
(Reading database ... 27170 files and directories currently installed.)
Unpacking libjpeg-turbo8:amd64 (from .../libjpeg-turbo8_1.2.1-0ubuntu2_amd64.deb) ...
Selecting previously unselected package libxslt1.1:amd64.
Unpacking libxslt1.1:amd64 (from .../libxslt1.1_1.1.27-1ubuntu2_amd64.deb) ...
Selecting previously unselected package libjpeg8:amd64.
Unpacking libjpeg8:amd64 (from .../libjpeg8_8c-2ubuntu7_amd64.deb) ...
Selecting previously unselected package libgd2-noxpm:amd64.
Unpacking libgd2-noxpm:amd64 (from .../libgd2-noxpm_2.0.36~rc1~dfsg-6.1ubuntu1_amd64.deb) ...
Selecting previously unselected package liberror-perl.
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.8.1.2-1_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.8.1.2-1_amd64.deb) ...
Selecting previously unselected package make.
Unpacking make (from .../make_3.81-8.2ubuntu2_amd64.deb) ...
Selecting previously unselected package nginx-common.
Unpacking nginx-common (from .../nginx-common_1.2.6-1ubuntu3.2_all.deb) ...
Selecting previously unselected package nginx-full.
Unpacking nginx-full (from .../nginx-full_1.2.6-1ubuntu3.2_amd64.deb) ...
Selecting previously unselected package nginx.
Unpacking nginx (from .../nginx_1.2.6-1ubuntu3.2_all.deb) ...
Selecting previously unselected package patch.
Unpacking patch (from .../patch_2.6.1-3ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Setting up libjpeg-turbo8:amd64 (1.2.1-0ubuntu2) ...
Setting up libxslt1.1:amd64 (1.1.27-1ubuntu2) ...
Setting up libjpeg8:amd64 (8c-2ubuntu7) ...
Setting up libgd2-noxpm:amd64 (2.0.36~rc1~dfsg-6.1ubuntu1) ...
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.8.1.2-1) ...
Setting up git (1:1.8.1.2-1) ...
Setting up make (3.81-8.2ubuntu2) ...
Setting up nginx-common (1.2.6-1ubuntu3.2) ...
Setting up patch (2.6.1-3ubuntu2) ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up nginx-full (1.2.6-1ubuntu3.2) ...
Setting up nginx (1.2.6-1ubuntu3.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

wget -qO- "$DOCKER_PKG" > /tmp/lxc-docker_0.4.2-1_amd64.deb
dpkg --force-depends -i /tmp/lxc-docker_0.4.2-1_amd64.deb && apt-get install -f -y
Selecting previously unselected package lxc-docker.
(Reading database ... 28020 files and directories currently installed.)
Unpacking lxc-docker (from .../lxc-docker_0.4.2-1_amd64.deb) ...
dpkg: lxc-docker: dependency problems, but configuring anyway as you requested:
 lxc-docker depends on lxc; however:
  Package lxc is not installed.
 lxc-docker depends on bsdtar; however:
  Package bsdtar is not installed.
 lxc-docker depends on aufs-tools; however:
  Package aufs-tools is not installed.

Setting up lxc-docker (0.4.2-1) ...
docker start/running, process 8255
Processing triggers for ureadahead ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  aufs-tools bridge-utils bsdtar cgroup-lite cloud-utils debootstrap
  distro-info distro-info-data dnsmasq-base euca2ools gdisk libapparmor1
  libarchive13 libcap2-bin libgmp10 libicu48 liblxc0 liblzo2-2
  libnetfilter-conntrack3 libnettle4 libpam-cap libseccomp1 libyaml-0-2 lxc
  lxc-templates python-boto python-crypto python-distro-info python-m2crypto
  python-paramiko python-yaml python3-lxc
Suggested packages:
  bsdcpio shunit2 lrzip libcap-dev btrfs-tools lvm2 lxctl qemu-user-static
  python-crypto-dbg python-crypto-doc
The following NEW packages will be installed:
  aufs-tools bridge-utils bsdtar cgroup-lite cloud-utils debootstrap
  distro-info distro-info-data dnsmasq-base euca2ools gdisk libapparmor1
  libarchive13 libcap2-bin libgmp10 libicu48 liblxc0 liblzo2-2
  libnetfilter-conntrack3 libnettle4 libpam-cap libseccomp1 libyaml-0-2 lxc
  lxc-templates python-boto python-crypto python-distro-info python-m2crypto
  python-paramiko python-yaml python3-lxc
0 upgraded, 32 newly installed, 0 to remove and 21 not upgraded.
Need to get 8,745 kB of archives.
After this operation, 41.4 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main liblzo2-2 amd64 2.06-1build1 [53.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main libnettle4 amd64 2.4-3 [94.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main libarchive13 amd64 3.1.2-5ubuntu1 [311 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ raring/main libgmp10 amd64 2:5.0.5+dfsg-2ubuntu3 [240 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ raring/main libicu48 amd64 4.8.1.1-12 [4,737 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ raring/main libapparmor1 amd64 2.8.0-0ubuntu11 [37.2 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ raring/main libseccomp1 amd64 1.0.1-2 [29.3 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ raring-updates/universe liblxc0 amd64 0.9.0-0ubuntu3.3 [101 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ raring/main libyaml-0-2 amd64 0.1.4-2build1 [57.3 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ raring/main bridge-utils amd64 1.5-6ubuntu1 [32.6 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ raring/main libnetfilter-conntrack3 amd64 1.0.1-1 [36.5 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ raring/main dnsmasq-base amd64 2.65-1ubuntu1 [250 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ raring-updates/universe python3-lxc amd64 0.9.0-0ubuntu3.3 [13.7 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ raring-updates/universe lxc amd64 0.9.0-0ubuntu3.3 [120 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ raring/main python-m2crypto amd64 0.21.1-3ubuntu1 [158 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ raring/universe aufs-tools amd64 1:3.0+20120411-3ubuntu1 [91.8 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ raring/universe bsdtar amd64 3.1.2-5ubuntu1 [52.4 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ raring-updates/main distro-info-data all 0.13ubuntu0.2 [4,164 B]
Get:19 http://archive.ubuntu.com/ubuntu/ raring/main distro-info amd64 0.10 [18.5 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ raring/main python-boto all 2.3.0-1 [390 kB]
Get:21 http://archive.ubuntu.com/ubuntu/ raring/main euca2ools all 2.1.1-0ubuntu2 [159 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ raring/main libcap2-bin amd64 1:2.22-1.2ubuntu2 [18.5 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ raring/main libpam-cap amd64 1:2.22-1.2ubuntu2 [7,792 B]
Get:24 http://archive.ubuntu.com/ubuntu/ raring-updates/universe lxc-templates all 0.9.0-0ubuntu3.3 [33.0 kB]
Get:25 http://archive.ubuntu.com/ubuntu/ raring/main python-crypto amd64 2.6-4 [360 kB]
Get:26 http://archive.ubuntu.com/ubuntu/ raring/main python-distro-info all 0.10 [8,954 B]
Get:27 http://archive.ubuntu.com/ubuntu/ raring/main python-paramiko all 1.7.7.1-3.1ubuntu1 [807 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ raring/main python-yaml amd64 3.10-4build2 [113 kB]
Get:29 http://archive.ubuntu.com/ubuntu/ raring/main cgroup-lite all 1.8 [4,148 B]
Get:30 http://archive.ubuntu.com/ubuntu/ raring/main cloud-utils all 0.27-0ubuntu1 [42.8 kB]
Get:31 http://archive.ubuntu.com/ubuntu/ raring-updates/main debootstrap all 1.0.46ubuntu1 [35.2 kB]
Get:32 http://archive.ubuntu.com/ubuntu/ raring/main gdisk amd64 0.8.5-1ubuntu2 [328 kB]
Fetched 8,745 kB in 0s (8,916 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package liblzo2-2:amd64.
(Reading database ... 28026 files and directories currently installed.)
Unpacking liblzo2-2:amd64 (from .../liblzo2-2_2.06-1build1_amd64.deb) ...
Selecting previously unselected package libnettle4:amd64.
Unpacking libnettle4:amd64 (from .../libnettle4_2.4-3_amd64.deb) ...
Selecting previously unselected package libarchive13:amd64.
Unpacking libarchive13:amd64 (from .../libarchive13_3.1.2-5ubuntu1_amd64.deb) ...
Selecting previously unselected package libgmp10:amd64.
Unpacking libgmp10:amd64 (from .../libgmp10_2%3a5.0.5+dfsg-2ubuntu3_amd64.deb) ...
Selecting previously unselected package libicu48:amd64.
Unpacking libicu48:amd64 (from .../libicu48_4.8.1.1-12_amd64.deb) ...
Selecting previously unselected package libapparmor1.
Unpacking libapparmor1 (from .../libapparmor1_2.8.0-0ubuntu11_amd64.deb) ...
Selecting previously unselected package libseccomp1:amd64.
Unpacking libseccomp1:amd64 (from .../libseccomp1_1.0.1-2_amd64.deb) ...
Selecting previously unselected package liblxc0.
Unpacking liblxc0 (from .../liblxc0_0.9.0-0ubuntu3.3_amd64.deb) ...
Selecting previously unselected package libyaml-0-2:amd64.
Unpacking libyaml-0-2:amd64 (from .../libyaml-0-2_0.1.4-2build1_amd64.deb) ...
Selecting previously unselected package bridge-utils.
Unpacking bridge-utils (from .../bridge-utils_1.5-6ubuntu1_amd64.deb) ...
Selecting previously unselected package libnetfilter-conntrack3:amd64.
Unpacking libnetfilter-conntrack3:amd64 (from .../libnetfilter-conntrack3_1.0.1-1_amd64.deb) ...
Selecting previously unselected package dnsmasq-base.
Unpacking dnsmasq-base (from .../dnsmasq-base_2.65-1ubuntu1_amd64.deb) ...
Selecting previously unselected package python3-lxc.
Unpacking python3-lxc (from .../python3-lxc_0.9.0-0ubuntu3.3_amd64.deb) ...
Selecting previously unselected package lxc.
Unpacking lxc (from .../lxc_0.9.0-0ubuntu3.3_amd64.deb) ...
Selecting previously unselected package python-m2crypto.
Unpacking python-m2crypto (from .../python-m2crypto_0.21.1-3ubuntu1_amd64.deb) ...
Selecting previously unselected package aufs-tools.
Unpacking aufs-tools (from .../aufs-tools_1%3a3.0+20120411-3ubuntu1_amd64.deb) ...
Selecting previously unselected package bsdtar.
Unpacking bsdtar (from .../bsdtar_3.1.2-5ubuntu1_amd64.deb) ...
Selecting previously unselected package distro-info-data.
Unpacking distro-info-data (from .../distro-info-data_0.13ubuntu0.2_all.deb) ...
Selecting previously unselected package distro-info.
Unpacking distro-info (from .../distro-info_0.10_amd64.deb) ...
Selecting previously unselected package python-boto.
Unpacking python-boto (from .../python-boto_2.3.0-1_all.deb) ...
Selecting previously unselected package euca2ools.
Unpacking euca2ools (from .../euca2ools_2.1.1-0ubuntu2_all.deb) ...
Selecting previously unselected package libcap2-bin.
Unpacking libcap2-bin (from .../libcap2-bin_1%3a2.22-1.2ubuntu2_amd64.deb) ...
Selecting previously unselected package libpam-cap:amd64.
Unpacking libpam-cap:amd64 (from .../libpam-cap_1%3a2.22-1.2ubuntu2_amd64.deb) ...
Selecting previously unselected package lxc-templates.
Unpacking lxc-templates (from .../lxc-templates_0.9.0-0ubuntu3.3_all.deb) ...
Selecting previously unselected package python-crypto.
Unpacking python-crypto (from .../python-crypto_2.6-4_amd64.deb) ...
Selecting previously unselected package python-distro-info.
Unpacking python-distro-info (from .../python-distro-info_0.10_all.deb) ...
Selecting previously unselected package python-paramiko.
Unpacking python-paramiko (from .../python-paramiko_1.7.7.1-3.1ubuntu1_all.deb) ...
Selecting previously unselected package python-yaml.
Unpacking python-yaml (from .../python-yaml_3.10-4build2_amd64.deb) ...
Selecting previously unselected package cgroup-lite.
Unpacking cgroup-lite (from .../cgroup-lite_1.8_all.deb) ...
Selecting previously unselected package cloud-utils.
Unpacking cloud-utils (from .../cloud-utils_0.27-0ubuntu1_all.deb) ...
Selecting previously unselected package debootstrap.
Unpacking debootstrap (from .../debootstrap_1.0.46ubuntu1_all.deb) ...
Selecting previously unselected package gdisk.
Unpacking gdisk (from .../gdisk_0.8.5-1ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up liblzo2-2:amd64 (2.06-1build1) ...
Setting up libnettle4:amd64 (2.4-3) ...
Setting up libarchive13:amd64 (3.1.2-5ubuntu1) ...
Setting up libgmp10:amd64 (2:5.0.5+dfsg-2ubuntu3) ...
Setting up libicu48:amd64 (4.8.1.1-12) ...
Setting up libapparmor1 (2.8.0-0ubuntu11) ...
Setting up libseccomp1:amd64 (1.0.1-2) ...
Setting up liblxc0 (0.9.0-0ubuntu3.3) ...
Setting up libyaml-0-2:amd64 (0.1.4-2build1) ...
Setting up bridge-utils (1.5-6ubuntu1) ...
Setting up libnetfilter-conntrack3:amd64 (1.0.1-1) ...
Setting up dnsmasq-base (2.65-1ubuntu1) ...
Setting up python3-lxc (0.9.0-0ubuntu3.3) ...
Setting up lxc (0.9.0-0ubuntu3.3) ...
lxc start/running
Setting up lxc dnsmasq configuration.
Setting up python-m2crypto (0.21.1-3ubuntu1) ...
Setting up aufs-tools (1:3.0+20120411-3ubuntu1) ...
Setting up bsdtar (3.1.2-5ubuntu1) ...
Setting up distro-info-data (0.13ubuntu0.2) ...
Setting up distro-info (0.10) ...
Setting up python-boto (2.3.0-1) ...
Setting up euca2ools (2.1.1-0ubuntu2) ...
Setting up libcap2-bin (1:2.22-1.2ubuntu2) ...
Setting up libpam-cap:amd64 (1:2.22-1.2ubuntu2) ...
Setting up python-crypto (2.6-4) ...
Setting up python-distro-info (0.10) ...
Setting up python-paramiko (1.7.7.1-3.1ubuntu1) ...
Setting up python-yaml (3.10-4build2) ...
Setting up cgroup-lite (1.8) ...
cgroup-lite start/running
Setting up cloud-utils (0.27-0ubuntu1) ...
Setting up debootstrap (1.0.46ubuntu1) ...
Setting up gdisk (0.8.5-1ubuntu2) ...
Processing triggers for ureadahead ...
Setting up lxc-templates (0.9.0-0ubuntu3.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
rm /tmp/lxc-docker_0.4.2-1_amd64.deb

sed -i.bak 's/docker -d/docker -d -r=true/' /etc/init/docker.conf # Docker should restart containers 

cd ~ && git clone ${DOKKU_REPO}
Cloning into 'dokku'...
remote: Counting objects: 495, done.
remote: Compressing objects: 100% (269/269), done.
remote: Total 495 (delta 265), reused 431 (delta 209)
Receiving objects: 100% (495/495), 61.55 KiB, done.
Resolving deltas: 100% (265/265), done.
cd dokku && make install
wget -qO /usr/local/bin/gitreceive https://raw.github.com/progrium/gitreceive/master/gitreceive
chmod +x /usr/local/bin/gitreceive
gitreceive init
Created receiver script in /home/git for user 'git'.
wget -qO /usr/local/bin/sshcommand https://raw.github.com/progrium/sshcommand/master/sshcommand
chmod +x /usr/local/bin/sshcommand
sshcommand create dokku /usr/local/bin/dokku
cp dokku /usr/local/bin/dokku
cp receiver /home/git/receiver
cp deploystep /home/git/deploystep
cp buildstep /home/git/buildstep
cp nginx-app-conf /home/git/nginx-app-conf
cp nginx-reloader.conf /etc/init/nginx-reloader.conf
echo "include /home/git/*/nginx.conf;" > /etc/nginx/conf.d/dokku.conf
curl "$DOKKU_STACK" | gunzip -cd | docker import - progrium/buildstep
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  333M  100  333M    0     0   556k      0  0:10:13  0:10:13 --:--:--  780k
884fef13de81

[[ -f /etc/nginx/nginx.conf ]] && sed -i 's/# server_names_hash_bucket_size/server_names_hash_bucket_size/' /etc/nginx/nginx.conf

/etc/init.d/nginx start
 * Starting nginx nginx                                                  [ OK ] 
start nginx-reloader
nginx-reloader start/running, process 10162

[[ $(dig +short $HOSTNAME) ]] && HOSTFILE=DOMAIN || HOSTFILE=HOSTNAME
dig +short $HOSTNAME)
dig +short $HOSTNAME
echo $HOSTNAME > /home/git/$HOSTFILE

echo

echo "Be sure to upload a public key for your user:"
Be sure to upload a public key for your user:
echo "  cat ~/.ssh/id_rsa.pub | ssh root@$HOSTNAME \"gitreceive upload-key progrium\""
  cat ~/.ssh/id_rsa.pub | ssh root@dokku.ri7.in "gitreceive upload-key progrium"
root@dokku:~# exit
logout
Connection to dokku.ri7.in closed.
~/github/invoices[develop]% cat ~/.ssh/id_rsa.pub | ssh dokku.ri7.in "sudo gitreceive upload-key dokku"
cameron@dokku.ri7.in's password: 

~/github/invoices[develop]% cat ~/.ssh/id_rsa.pub | ssh root@dokku.ri7.in "sudo gitreceive upload-key dokku"
60:67:e2:f0:0d:7e:9a:62:b5:b2:73:35:f4:4b:26:14
~/github/invoices[develop]% git push invoices develop
Counting objects: 902, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (345/345), done.
Writing objects: 100% (902/902), 477.07 KiB, done.
Total 902 (delta 491), reused 893 (delta 485)
To git@dokku.ri7.in:invoices
 * [new branch]      develop -> develop
~/github/invoices[develop]%     
@asm89

This comment has been minimized.

Copy link
Member

asm89 commented Aug 16, 2013

From the log all seems fine. To deploy you have to push to master on your dokku remote. :)

@asm89 asm89 closed this Aug 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment