phundament / app

Dockerized Yii2 web application base
http://phundament.com
Other
310 stars 129 forks source link

First vagrant up db fails #134

Closed schmunk42 closed 8 years ago

schmunk42 commented 9 years ago
mbp-13-2:p4-kitchen-sink localadmin$ vagrant up db
Bringing machine 'db' up with 'docker' provider...
==> db: Docker host is required. One will be created if necessary...
    db: Vagrant will now create or start a local VM to act as the Docker
    db: host. You'll see the output of the `vagrant up` for this VM below.
    db:  
    db: Importing base box 'phusion/ubuntu-14.04-amd64'...
    db: Matching MAC address for NAT networking...
    db: Checking if box 'phusion/ubuntu-14.04-amd64' is up to date...
    db: Setting the name of the VM: p4-kitchen-sink_default_1421246112634_19859
    db: Clearing any previously set forwarded ports...
    db: Clearing any previously set network interfaces...
    db: Preparing network interfaces based on configuration...
    db: Adapter 1: nat
    db: Adapter 2: hostonly
    db: Forwarding ports...
    db: 22 => 2222 (adapter 1)
    db: Running 'pre-boot' VM customizations...
    db: Booting VM...
    db: Waiting for machine to boot. This may take a few minutes...
    db: SSH address: 127.0.0.1:2222
    db: SSH username: vagrant
    db: SSH auth method: private key
    db: Warning: Connection timeout. Retrying...
    db: 
    db: Vagrant insecure key detected. Vagrant will automatically replace
    db: this with a newly generated keypair for better security.
    db: 
    db: Inserting generated public key within guest...
    db: Removing insecure key from the guest if its present...
    db: Key inserted! Disconnecting and reconnecting using new SSH key...
    db: Machine booted and ready!
    db: Checking for guest additions in VM...
    db: Configuring and enabling network interfaces...
    db: Mounting shared folders...
    db: /vagrant => /Users/localadmin/Desktop/p4-kitchen-sink
    db: Running provisioner: shell...
    db: Running: inline script
    db: stdin: is not a tty
    db: OK

    db: Reading package lists...
    db: Building dependency tree...
    db: 
    db: Reading state information...
    db: The following extra packages will be installed:
    db:   aufs-tools cgroup-lite git git-man liberror-perl lxc-docker-1.4.1
    db: Suggested packages:
    db:   git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
    db:   gitweb git-arch git-bzr git-cvs git-mediawiki git-svn
    db: The following NEW packages will be installed:
    db:   aufs-tools cgroup-lite git git-man liberror-perl lxc-docker lxc-docker-1.4.1
    db: 0 upgraded, 7 newly installed, 0 to remove and 148 not upgraded.
    db: Need to get 7,864 kB of archives.
    db: After this operation, 36.7 MB of additional disk space will be used.
    db: Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe aufs-tools amd64 1:3.2+20130722-1.1 [92.3 kB]
    db: Get:2 http://get.docker.io/ubuntu/ docker/main lxc-docker-1.4.1 amd64 1.4.1 [4,420 kB]
    db: Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB]
    db: Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main git-man all 1:1.9.1-1ubuntu0.1 [698 kB]
    db: Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main git amd64 1:1.9.1-1ubuntu0.1 [2,627 kB]
    db: Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty/main cgroup-lite all 1.9 [3,918 B]
    db: Get:7 http://get.docker.io/ubuntu/ docker/main lxc-docker amd64 1.4.1 [2,090 B]
    db: dpkg-preconfigure: unable to re-open stdin: No such file or directory
    db: Fetched 7,864 kB in 16s (489 kB/s)
    db: Selecting previously unselected package aufs-tools.
    db: (Reading database ... 74120 files and directories currently installed.)
    db: Preparing to unpack .../aufs-tools_1%3a3.2+20130722-1.1_amd64.deb ...
    db: Unpacking aufs-tools (1:3.2+20130722-1.1) ...
    db: Selecting previously unselected package liberror-perl.
    db: Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
    db: Unpacking liberror-perl (0.17-1.1) ...
    db: Selecting previously unselected package git-man.
    db: Preparing to unpack .../git-man_1%3a1.9.1-1ubuntu0.1_all.deb ...
    db: Unpacking git-man (1:1.9.1-1ubuntu0.1) ...
    db: Selecting previously unselected package git.
    db: Preparing to unpack .../git_1%3a1.9.1-1ubuntu0.1_amd64.deb ...
    db: Unpacking git (1:1.9.1-1ubuntu0.1) ...
    db: Selecting previously unselected package cgroup-lite.
    db: Preparing to unpack .../cgroup-lite_1.9_all.deb ...
    db: Unpacking cgroup-lite (1.9) ...
    db: Selecting previously unselected package lxc-docker-1.4.1.
    db: Preparing to unpack .../lxc-docker-1.4.1_1.4.1_amd64.deb ...
    db: Unpacking lxc-docker-1.4.1 (1.4.1) ...
    db: Selecting previously unselected package lxc-docker.
    db: Preparing to unpack .../lxc-docker_1.4.1_amd64.deb ...
    db: Unpacking lxc-docker (1.4.1) ...
    db: Processing triggers for man-db (2.6.7.1-1) ...
    db: Processing triggers for ureadahead (0.100.0-16) ...
    db: ureadahead will be reprofiled on next reboot
    db: Setting up aufs-tools (1:3.2+20130722-1.1) ...
    db: Setting up liberror-perl (0.17-1.1) ...
    db: Setting up git-man (1:1.9.1-1ubuntu0.1) ...
    db: Setting up git (1:1.9.1-1ubuntu0.1) ...
    db: Setting up cgroup-lite (1.9) ...
    db: cgroup-lite start/running
    db: Setting up lxc-docker-1.4.1 (1.4.1) ...
    db: docker start/running, process 4096
    db: Processing triggers for ureadahead (0.100.0-16) ...
    db: Setting up lxc-docker (1.4.1) ...
    db: Processing triggers for libc-bin (2.19-0ubuntu6) ...
==> db: Syncing folders to the host VM...
    db: Mounting shared folders...
    db: /var/lib/docker/docker_1421246198_40531 => /Users/localadmin/Desktop/p4-kitchen-sink
A Docker command executed by Vagrant didn't complete successfully!
The command run along with the output from the command is shown
below.

Command: "docker" "ps" "-a" "-q" "--no-trunc"

Stderr: time="2015-01-14T14:36:39Z" level="fatal" msg="Get http:///var/run/docker.sock/v1.16/containers/json?all=1: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?" 

Stdout: 
mbp-13-2:p4-kitchen-sink localadmin$ 
mbp-13-2:p4-kitchen-sink localadmin$ 
mbp-13-2:p4-kitchen-sink localadmin$ vagrant up db
Bringing machine 'db' up with 'docker' provider...
==> db: Docker host is required. One will be created if necessary...
    db: Docker host VM is already ready.
==> db: Warning: When using a remote Docker host, forwarded ports will NOT be
==> db: immediately available on your machine. They will still be forwarded on
==> db: the remote machine, however, so if you have a way to access the remote
==> db: machine, then you should be able to access those ports there. This is
==> db: not an error, it is only an informational message.
==> db: Creating the container...
    db:   Name: db
    db:  Image: mysql
    db: Volume: /var/lib/docker/docker_1421246198_40531:/vagrant
    db:   Port: 23306:3306
    db:  
    db: Container created: 24f627e380d05ac7
==> db: Starting container...
==> db: Provisioners will not be run since container doesn't support SSH.
schmunk42 commented 8 years ago

Vagrant is no longer actively supported.