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

[chef-server] opscode-plugins #1

Open
MichaelSp opened this issue Jun 16, 2015 · 0 comments
Open

[chef-server] opscode-plugins #1

MichaelSp opened this issue Jun 16, 2015 · 0 comments

Comments

@MichaelSp
Copy link

I tried to install opscode-manage with poor results:

502 Bad Gateway
openresty/1.7.10.1

I didn't find a way to recover from that error other than rebuilding the image.

Installing the plugin yielded some errors

* runit_service[redis] action restart

    ================================================================================
    Error executing action `restart` on resource 'runit_service[redis]'
    ================================================================================

    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of /opt/opscode-manage/embedded/bin/sv restart /opt/opscode-manage/service/redis ----
    STDOUT: warning: /opt/opscode-manage/service/redis: unable to open supervise/ok: file does not exist
    STDERR: 
    ---- End output of /opt/opscode-manage/embedded/bin/sv restart /opt/opscode-manage/service/redis ----
    Ran /opt/opscode-manage/embedded/bin/sv restart /opt/opscode-manage/service/redis returned 1

    Cookbook Trace:
    ---------------
    /opt/opscode-manage/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:205:in `restart_service'

    Resource Declaration:
    ---------------------
    # In /opt/opscode-manage/embedded/cookbooks/cache/cookbooks/enterprise/definitions/component_runit_service.rb

     37:   runit_service component do
     38:     action :enable
     39:     retries 20
     40:     control params[:control] if params[:control]
     41:     options(
     42:       :log_directory => log_directory
     43:     )
     44:     params[:runit_attributes].each do |attr_name, attr_value|
     45:       send(attr_name.to_sym, attr_value)
     46:     end
     47:   end
     48: 

    Compiled Resource:
    ------------------
    # Declared in /opt/opscode-manage/embedded/cookbooks/cache/cookbooks/enterprise/definitions/component_runit_service.rb:37:in `block in from_file'

    runit_service("redis") do
      params {:package=>"opscode-manage", :log_directory=>nil, :svlogd_size=>nil, :svlogd_num=>nil, :ha=>nil, :control=>nil, :runit_attributes=>{}, :action=>:enable, :name=>"redis"}
      provider Chef::Provider::Service::Runit
      action [:enable]
      updated true
      supports {:restart=>true, :reload=>true, :status=>true}
      retries 20
      retry_delay 2
      default_guard_interpreter :default
      service_name "redis"
      enabled true
      pattern "redis"
      status_command "/opt/opscode-manage/embedded/bin/sv status /opt/opscode-manage/service"
      sv_bin "/opt/opscode-manage/embedded/bin/sv"
      sv_dir "/opt/opscode-manage/sv"
      service_dir "/opt/opscode-manage/service"
      lsb_init_dir "/opt/opscode-manage/init"
      options {:log_directory=>"/var/log/opscode-manage/redis"}
      log true
      restart_on_update true
      run_template_name "redis"
      log_template_name "redis"
      check_script_template_name "redis"
      finish_script_template_name "redis"
      sv_templates true
      service_mirror # Declared in 

    service("redis") do
      provider Chef::Provider::Service::Simple
      action [:nothing]
      supports {:restart=>true, :reload=>true, :status=>true}
      retries 0
      retry_delay 2
      default_guard_interpreter :default
      service_name "redis"
      pattern "redis"
      start_command "/opt/opscode-manage/embedded/bin/sv start /opt/opscode-manage/service/redis"
      stop_command "/opt/opscode-manage/embedded/bin/sv stop /opt/opscode-manage/service/redis"
      status_command "/opt/opscode-manage/embedded/bin/sv status /opt/opscode-manage/service/redis"
      restart_command "/opt/opscode-manage/embedded/bin/sv restart /opt/opscode-manage/service/redis"
    end

      declared_type :runit_service
      cookbook_name "opscode-manage"
      recipe_name "redis"
    end

I think the core of the problem is this one STDOUT: warning: /opt/opscode-manage/service/redis: unable to open supervise/ok: file does not exist.

I know you said UNSUPPORTED, but let's try to figure out what is required to get the plugins supported. What is your experience? What can we do? I've no Idea how to fix this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant