Docker install cookbook error


#1

Hi

I am trying to install docker using the Docker cookbook. I get the
following error.
The target OS is centos 6.5 . Is that an issue? Please help.

  • service[docker] action start

================================================================================

 Error executing action `start` on resource 'service[docker]'

================================================================================

 Mixlib::ShellOut::ShellCommandFailed

 ------------------------------------

 Expected process to exit with [0], but received '7'

 ---- Begin output of /sbin/service docker start ----

 STDOUT: [FAILED]

 /var/run/docker.pid still exists...

 STDERR:

 ---- End output of /sbin/service docker start ----

 Ran /sbin/service docker start returned 7


 Resource Declaration:

 ---------------------

 # In /var/chef/cache/cookbooks/docker/recipes/sysv.rb


  21: service 'docker' do

  22:   supports :status => true, :restart => true, :reload => true

  23:   action [:start, :enable]

  24: end


 Compiled Resource:

 ------------------

 # Declared in /var/chef/cache/cookbooks/docker/recipes/sysv.rb:21:in

`from_file’

 service("docker") do

   action [:start, :enable]

   updated true

   supports {:status=>true, :restart=>true, :reload=>true}

   retries 0

   retry_delay 2

   guard_interpreter :default

   service_name "docker"

   enabled true

   running true

   pattern "docker"

   cookbook_name "docker"

   recipe_name "sysv"

 end

Recipe: ntp::default

  • service[ntpd] action restart

    • restart service service[ntpd]

#2

To add - I think there is a compatibility issue with CentOS 6.5 and Docker.
I thought the cookbook takes care of it.

docker -d

2014/11/28 04:41:10 docker daemon: 1.3.1 c78088f/1.3.1; execdriver: native;
graphdriver:

[5c5ed120] +job serveapi(unix:///var/run/docker.sock)

[info] WARNING: You are running linux kernel version 2.6.32-431.el6.x86_64,
which might be unstable running docker. Please upgrade your kernel to 3.8.0.

[info] Listening for HTTP on unix (/var/run/docker.sock)

docker: relocation error: docker: symbol
dm_task_get_info_with_deferred_remove, version Base not defined in file
libdevmapper.so.1.02 with link time reference

On 28 November 2014 at 15:09, Mukta A amukta@gmail.com wrote:

Hi

I am trying to install docker using the Docker cookbook. I get the
following error.
The target OS is centos 6.5 . Is that an issue? Please help.

  • service[docker] action start

================================================================================

 Error executing action `start` on resource 'service[docker]'

================================================================================

 Mixlib::ShellOut::ShellCommandFailed

 ------------------------------------

 Expected process to exit with [0], but received '7'

 ---- Begin output of /sbin/service docker start ----

 STDOUT: [FAILED]

 /var/run/docker.pid still exists...

 STDERR:

 ---- End output of /sbin/service docker start ----

 Ran /sbin/service docker start returned 7


 Resource Declaration:

 ---------------------

 # In /var/chef/cache/cookbooks/docker/recipes/sysv.rb


  21: service 'docker' do

  22:   supports :status => true, :restart => true, :reload => true

  23:   action [:start, :enable]

  24: end


 Compiled Resource:

 ------------------

 # Declared in /var/chef/cache/cookbooks/docker/recipes/sysv.rb:21:in

`from_file’

 service("docker") do

   action [:start, :enable]

   updated true

   supports {:status=>true, :restart=>true, :reload=>true}

   retries 0

   retry_delay 2

   guard_interpreter :default

   service_name "docker"

   enabled true

   running true

   pattern "docker"

   cookbook_name "docker"

   recipe_name "sysv"

 end

Recipe: ntp::default

  • service[ntpd] action restart

    • restart service service[ntpd]

#3

hi,

kill existing pid for docker start again

 /var/run/docker.pid still exists...

thanks,

On Fri, Nov 28, 2014 at 3:09 PM, Mukta A amukta@gmail.com wrote:

Hi

I am trying to install docker using the Docker cookbook. I get the
following error.
The target OS is centos 6.5 . Is that an issue? Please help.

  • service[docker] action start

================================================================================

 Error executing action `start` on resource 'service[docker]'

================================================================================

 Mixlib::ShellOut::ShellCommandFailed

 ------------------------------------

 Expected process to exit with [0], but received '7'

 ---- Begin output of /sbin/service docker start ----

 STDOUT: [FAILED]

 /var/run/docker.pid still exists...

 STDERR:

 ---- End output of /sbin/service docker start ----

 Ran /sbin/service docker start returned 7


 Resource Declaration:

 ---------------------

 # In /var/chef/cache/cookbooks/docker/recipes/sysv.rb


  21: service 'docker' do

  22:   supports :status => true, :restart => true, :reload => true

  23:   action [:start, :enable]

  24: end


 Compiled Resource:

 ------------------

 # Declared in /var/chef/cache/cookbooks/docker/recipes/sysv.rb:21:in

`from_file’

 service("docker") do

   action [:start, :enable]

   updated true

   supports {:status=>true, :restart=>true, :reload=>true}

   retries 0

   retry_delay 2

   guard_interpreter :default

   service_name "docker"

   enabled true

   running true

   pattern "docker"

   cookbook_name "docker"

   recipe_name "sysv"

 end

Recipe: ntp::default

  • service[ntpd] action restart

    • restart service service[ntpd]

#4

Hey for CentOS 6.5 we are using this version of docker :
$ rpm -qa docker*
docker-io-1.1.2-1.el6.x86_64

If you used a much recent version you could encounter this kind of issue. I hope it helps.

Regards,
JM

From: kritivagop01 . [mailto:krithiva.gopal@gmail.com]
Sent: vendredi 28 novembre 2014 10:45
To: chef@lists.opscode.com
Subject: [chef] Re: Docker install cookbook error

hi,

kill existing pid for docker start again

 /var/run/docker.pid still exists...

thanks,

On Fri, Nov 28, 2014 at 3:09 PM, Mukta A <amukta@gmail.commailto:amukta@gmail.com> wrote:
Hi

I am trying to install docker using the Docker cookbook. I get the following error.
The target OS is centos 6.5 . Is that an issue? Please help.

  • service[docker] action start

    ================================================================================

    Error executing action start on resource ‘service[docker]’

    ================================================================================

    Mixlib::ShellOut::ShellCommandFailed


    Expected process to exit with [0], but received ‘7’

    ---- Begin output of /sbin/service docker start ----

    STDOUT: [FAILED]

    /var/run/docker.pid still exists…

    STDERR:

    ---- End output of /sbin/service docker start ----

    Ran /sbin/service docker start returned 7

    Resource Declaration:


    In /var/chef/cache/cookbooks/docker/recipes/sysv.rb

    21: service 'docker' do
    
    22:   supports :status => true, :restart => true, :reload => true
    
    23:   action [:start, :enable]
    
    24: end
    

    Compiled Resource:


    Declared in /var/chef/cache/cookbooks/docker/recipes/sysv.rb:21:in `from_file’

    service(“docker”) do

     action [:start, :enable]
    
     updated true
    
     supports {:status=>true, :restart=>true, :reload=>true}
    
     retries 0
    
     retry_delay 2
    
     guard_interpreter :default
    
     service_name "docker"
    
     enabled true
    
     running true
    
     pattern "docker"
    
     cookbook_name "docker"
    
     recipe_name "sysv"
    

    end

Recipe: ntp::default

  • service[ntpd] action restart

    • restart service service[ntpd]

#5

I keep seeing that error.

On 28 November 2014 at 15:14, kritivagop01 . krithiva.gopal@gmail.com
wrote:

hi,

kill existing pid for docker start again

 /var/run/docker.pid still exists...

thanks,

On Fri, Nov 28, 2014 at 3:09 PM, Mukta A amukta@gmail.com wrote:

Hi

I am trying to install docker using the Docker cookbook. I get the
following error.
The target OS is centos 6.5 . Is that an issue? Please help.

  • service[docker] action start

================================================================================

 Error executing action `start` on resource 'service[docker]'

================================================================================

 Mixlib::ShellOut::ShellCommandFailed

 ------------------------------------

 Expected process to exit with [0], but received '7'

 ---- Begin output of /sbin/service docker start ----

 STDOUT: [FAILED]

 /var/run/docker.pid still exists...

 STDERR:

 ---- End output of /sbin/service docker start ----

 Ran /sbin/service docker start returned 7


 Resource Declaration:

 ---------------------

 # In /var/chef/cache/cookbooks/docker/recipes/sysv.rb


  21: service 'docker' do

  22:   supports :status => true, :restart => true, :reload => true

  23:   action [:start, :enable]

  24: end


 Compiled Resource:

 ------------------

 # Declared in /var/chef/cache/cookbooks/docker/recipes/sysv.rb:21:in

`from_file’

 service("docker") do

   action [:start, :enable]

   updated true

   supports {:status=>true, :restart=>true, :reload=>true}

   retries 0

   retry_delay 2

   guard_interpreter :default

   service_name "docker"

   enabled true

   running true

   pattern "docker"

   cookbook_name "docker"

   recipe_name "sysv"

 end

Recipe: ntp::default

  • service[ntpd] action restart

    • restart service service[ntpd]

#6

All,

I had the same issue and was able to get past it by doing a 'yum update -y’
before running.

I was using this box in Vagrant:
https://vagrantcloud.com/chef/boxes/centos-6.5/versions/1/providers/virtualbox.box

Best,
Chris

Christopher Farnham
chris.farnham@gmail.com

On Fri, Nov 28, 2014 at 4:51 AM, Mukta A amukta@gmail.com wrote:

I keep seeing that error.

On 28 November 2014 at 15:14, kritivagop01 . krithiva.gopal@gmail.com
wrote:

hi,

kill existing pid for docker start again

 /var/run/docker.pid still exists...

thanks,

On Fri, Nov 28, 2014 at 3:09 PM, Mukta A amukta@gmail.com wrote:

Hi

I am trying to install docker using the Docker cookbook. I get the
following error.
The target OS is centos 6.5 . Is that an issue? Please help.

  • service[docker] action start

================================================================================

 Error executing action `start` on resource 'service[docker]'

================================================================================

 Mixlib::ShellOut::ShellCommandFailed

 ------------------------------------

 Expected process to exit with [0], but received '7'

 ---- Begin output of /sbin/service docker start ----

 STDOUT: [FAILED]

 /var/run/docker.pid still exists...

 STDERR:

 ---- End output of /sbin/service docker start ----

 Ran /sbin/service docker start returned 7


 Resource Declaration:

 ---------------------

 # In /var/chef/cache/cookbooks/docker/recipes/sysv.rb


  21: service 'docker' do

  22:   supports :status => true, :restart => true, :reload => true

  23:   action [:start, :enable]

  24: end


 Compiled Resource:

 ------------------

 # Declared in

/var/chef/cache/cookbooks/docker/recipes/sysv.rb:21:in `from_file’

 service("docker") do

   action [:start, :enable]

   updated true

   supports {:status=>true, :restart=>true, :reload=>true}

   retries 0

   retry_delay 2

   guard_interpreter :default

   service_name "docker"

   enabled true

   running true

   pattern "docker"

   cookbook_name "docker"

   recipe_name "sysv"

 end

Recipe: ntp::default

  • service[ntpd] action restart

    • restart service service[ntpd]

#7

+1 for the “yum update -y” solution!

On 1 December 2014 at 21:28, Christopher Farnham chris.farnham@gmail.com
wrote:

All,

I had the same issue and was able to get past it by doing a ‘yum update
-y’ before running.

I was using this box in Vagrant:
https://vagrantcloud.com/chef/boxes/centos-6.5/versions/1/providers/virtualbox.box

Best,
Chris

Christopher Farnham
chris.farnham@gmail.com

On Fri, Nov 28, 2014 at 4:51 AM, Mukta A amukta@gmail.com wrote:

I keep seeing that error.

On 28 November 2014 at 15:14, kritivagop01 . krithiva.gopal@gmail.com
wrote:

hi,

kill existing pid for docker start again

 /var/run/docker.pid still exists...

thanks,

On Fri, Nov 28, 2014 at 3:09 PM, Mukta A amukta@gmail.com wrote:

Hi

I am trying to install docker using the Docker cookbook. I get the
following error.
The target OS is centos 6.5 . Is that an issue? Please help.

  • service[docker] action start

================================================================================

 Error executing action `start` on resource 'service[docker]'

================================================================================

 Mixlib::ShellOut::ShellCommandFailed

 ------------------------------------

 Expected process to exit with [0], but received '7'

 ---- Begin output of /sbin/service docker start ----

 STDOUT: [FAILED]

 /var/run/docker.pid still exists...

 STDERR:

 ---- End output of /sbin/service docker start ----

 Ran /sbin/service docker start returned 7


 Resource Declaration:

 ---------------------

 # In /var/chef/cache/cookbooks/docker/recipes/sysv.rb


  21: service 'docker' do

  22:   supports :status => true, :restart => true, :reload => true

  23:   action [:start, :enable]

  24: end


 Compiled Resource:

 ------------------

 # Declared in

/var/chef/cache/cookbooks/docker/recipes/sysv.rb:21:in `from_file’

 service("docker") do

   action [:start, :enable]

   updated true

   supports {:status=>true, :restart=>true, :reload=>true}

   retries 0

   retry_delay 2

   guard_interpreter :default

   service_name "docker"

   enabled true

   running true

   pattern "docker"

   cookbook_name "docker"

   recipe_name "sysv"

 end

Recipe: ntp::default

  • service[ntpd] action restart

    • restart service service[ntpd]

#8

On Thu, 11 Dec 2014, Mukta A wrote:

+1 for the “yum update -y” solution!

On 1 December 2014 at 21:28, Christopher Farnham chris.farnham@gmail.com
wrote:

All,

I had the same issue and was able to get past it by doing a ‘yum update
-y’ before running.

I was using this box in Vagrant:
https://vagrantcloud.com/chef/boxes/centos-6.5/versions/1/providers/virtualbox.box

There’s also a CentOS 6.6 box up there that might already have the
relevant updates to make this go.

  • Julian

[ Julian C. Dunn jdunn@aquezada.com * Sorry, I’m ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]