在资源'supervisor_service [service-analytics_poller]上执行操作`start`时出错

时间:2016-11-30 16:57:10

标签: azure chef scalr

我正在尝试将Azure公共云与Scalr集成,并进行了一些配置更改,例如在scalr-server.rb文件中添加Azure“app_client_id,app_secret_key”。保存此更改后,我正在尝试运行重新配置命令“sudo / opt / scalr-server / bin / scalr-server-ctl reconfigure”以重新加载/重新启动服务/组件。但在这样做时,我遇到了一个错误“在资源'supervisor_service [service-analytics_poller]上执行操作start时出错”。所以来自另一端的任何人都可以帮助我。

错误详情:

    RuntimeError
    ------------
    Supervisor service service-analytics_poller was unable to be started

    Cookbook Trace:
    ---------------
    /opt/scalr-server/embedded/cookbooks/supervisor/providers/service.rb:49:in `block (2 levels) in class_from_file'
    /opt/scalr-server/embedded/cookbooks/supervisor/providers/service.rb:47:in `block in class_from_file'

    Resource Declaration:
    ---------------------
    # In /opt/scalr-server/embedded/cookbooks/scalr-server/recipes/group_service_always_post.rb

      5:   supervisor_service name do
      6:     command         "#{bin_dir_for node, 'service'}/scalrpy_proxy" \
      7:                     " #{run_dir_for node, 'service'}/#{svc[:name]}.pid" \
      8:                     " #{node[:scalr_server][:install_root]}/embedded/bin/python" \
      9:                     " #{scalr_bundle_path node}/app/python/scalrpy/#{svc[:service_module]}.py" \
     10:                     " --pid-file=#{run_dir_for node, 'service'}/#{svc[:name]}.pid" \
     11:                     " --log-file=#{log_dir_for node, 'service'}/python-#{svc[:name]}.log" \
     12:                     " --user=#{node[:scalr_server][:app][:user]}" \
     13:                     " --group=#{node[:scalr_server][:app][:user]}" \
     14:                     " --config=#{scalr_bundle_path node}/app/etc/config.yml" \
     15:                     ' --verbosity=INFO' \
     16:                     " #{svc[:service_extra_args]}" \
     17:                     # Note: 'start' is added by the proxy.
     18:     stdout_logfile  "#{log_dir_for node, 'supervisor'}/#{name}.log"
     19:     stderr_logfile  "#{log_dir_for node, 'supervisor'}/#{name}.err"
     20:     autostart       true
     21:     action          [:enable, :start]
     22:     subscribes      :restart, 'file[scalr_config]' if should_restart
     23:     subscribes      :restart, 'file[scalr_code]' if should_restart
     24:     subscribes      :restart, 'file[scalr_cryptokey]' if should_restart
     25:     subscribes      :restart, 'file[scalr_id]' if should_restart
     26:     subscribes      :restart, 'user[scalr_user]' if should_restart
     27:   end
     28: end

    Compiled Resource:
    ------------------
    # Declared in /opt/scalr-server/embedded/cookbooks/scalr-server/recipes/group_service_always_post.rb:5:in `block in from_file'

    supervisor_service("service-analytics_poller") do
      action [:enable, :start]
      updated true
      retries 0
      retry_delay 2
      default_guard_interpreter :default
      declared_type :supervisor_service
      cookbook_name :"scalr-server"
      recipe_name "group_service_always_post"
      command "/opt/scalr-server/libexec/service/scalrpy_proxy /opt/scalr-server/var/run/service/analytics_poller.pid /opt/scalr-server/embedded/bin/python /opt/scalr-server/embedded/scalr/app/python/scalrpy/analytics_poller.py --pid-file=/opt/scalr-server/var/run/service/analytics_poller.pid --log-file=/opt/scalr-server/var/log/service/python-analytics_poller.log --user=scalr-app --group=scalr-app --config=/opt/scalr-server/embedded/scalr/app/etc/config.yml --verbosity=INFO "
      stdout_logfile "/opt/scalr-server/var/log/supervisor/service-analytics_poller.log"
      stderr_logfile "/opt/scalr-server/var/log/supervisor/service-analytics_poller.err"
      autostart true
      startsecs 1
      service_name "service-analytics_poller"
      process_name "%(program_name)s"
      numprocs 1
      numprocs_start 0
      priority 999
      autorestart :unexpected
      startretries 3
      exitcodes [0, 2]
      stopsignal :TERM
      stopwaitsecs 10
      stdout_logfile_maxbytes "50MB"
      stdout_logfile_backups 10
      stdout_capture_maxbytes "0"
      stderr_logfile_maxbytes "50MB"
      stderr_logfile_backups 10
      stderr_capture_maxbytes "0"
      serverurl "AUTO"
    end

Running handlers:
[2016-11-30T09:37:25-05:00] ERROR: Running exception handlers
  - Raven::Chef::SentryHandler
Running handlers complete
[2016-11-30T09:37:26-05:00] ERROR: Exception handlers complete
[2016-11-30T09:37:26-05:00] FATAL: Stacktrace dumped to /opt/scalr-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 53 resources updated in 10.841172558 seconds
[2016-11-30T09:37:26-05:00] ERROR: supervisor_service[service-analytics_poller] (scalr-server::group_service_always_post line 5) had an error: RuntimeError: Supervisor service service-analytics_poller was unable to be started
[2016-11-30T09:37:26-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

0 个答案:

没有答案