Skip to content
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

Error executing action run on resource 'docker_exec[default]' #1137

Open
ramereth opened this issue Oct 12, 2020 · 0 comments
Open

Error executing action run on resource 'docker_exec[default]' #1137

ramereth opened this issue Oct 12, 2020 · 0 comments
Labels
Bug Something isn't working Needs Triage Issue is waiting to be categorised

Comments

@ramereth
Copy link
Contributor

🗣️ Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

👻 Brief Description

Running docker_exec 'default' results in the following error:

  * docker_exec[default] action run
    
    ================================================================================
    Error executing action `run` on resource 'docker_exec[default]'
    ================================================================================
    
    TypeError
    ---------
    no implicit conversion of String into Integer
    
    Cookbook Trace: (most recent call first)
    ----------------------------------------
    /opt/kitchen/cache/cookbooks/docker/libraries/docker_exec.rb:18:in `block (3 levels) in <class:DockerExec>'
    /opt/kitchen/cache/cookbooks/docker/libraries/docker_base.rb:29:in `with_retries'
    /opt/kitchen/cache/cookbooks/docker/libraries/docker_exec.rb:18:in `block (2 levels) in <class:DockerExec>'
    /opt/kitchen/cache/cookbooks/docker/libraries/docker_exec.rb:17:in `block in <class:DockerExec>'
    
    Resource Declaration:
    ---------------------
    # In /opt/kitchen/cache/cookbooks/docker_test/recipes/exec.rb
    
     27: docker_exec 'default'
    
    Compiled Resource:
    ------------------
    # Declared in /opt/kitchen/cache/cookbooks/docker_test/recipes/exec.rb:27:in `from_file'
    
    docker_exec("default") do
      action [:run]
      default_guard_interpreter :default
      declared_type :docker_exec
      cookbook_name "docker_test"
      recipe_name "exec"
      connection #<Docker::Connection:0x0000000005442d20 @url="unix:///", @options={:socket=>"/var/run/docker.sock", :read_timeout=>60}>
    end
    
    System Info:
    ------------
    chef_version=16.5.77
    platform=debian
    platform_version=9
    ruby=ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
    program_name=/opt/chef/bin/chef-client
    executable=/opt/chef/bin/chef-client

🥞 Cookbook version

Version of the cookbook where you are encountering the issue.

👩‍🍳 Chef-Infra Version

Version of chef-client in your environment.

🎩 Platform details

Operating system distribution and release version. Cloud provider if running in the cloud.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

🚓 Expected behavior

A clear and concise description of what you expected to happen.

➕ Additional context

Add any other context about the problem here. e.g. related issues or existing pull requests.

@ramereth ramereth added Bug Something isn't working Needs Triage Issue is waiting to be categorised labels Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs Triage Issue is waiting to be categorised
Projects
None yet
Development

No branches or pull requests

1 participant