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

Ubuntu 18.04 Service Problem #109

Open
florian-asche opened this issue Jan 5, 2019 · 1 comment
Open

Ubuntu 18.04 Service Problem #109

florian-asche opened this issue Jan 5, 2019 · 1 comment

Comments

@florian-asche
Copy link

    ================================================================================
    Error executing action `enable` on resource 'service[php-fpm]'
    ================================================================================
    
    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of /usr/sbin/update-rc.d -n -f php7.2-fpm remove ----
    STDOUT: 
    STDERR: update-rc.d: error: unknown option
    usage: update-rc.d [-f] <basename> remove
           update-rc.d [-f] <basename> defaults
           update-rc.d [-f] <basename> defaults-disabled
           update-rc.d <basename> disable|enable [S|2|3|4|5]
    		-f: force
    
    The disable|enable API is not stable and might change in the future.
    ---- End output of /usr/sbin/update-rc.d -n -f php7.2-fpm remove ----
    Ran /usr/sbin/update-rc.d -n -f php7.2-fpm remove returned 1
    
    Resource Declaration:
    ---------------------
    # In /root/chef-solo/local-mode-cache/cache/cookbooks/php-fpm/recipes/install.rb
    
     56: service 'php-fpm' do
     57:   provider service_provider if service_provider
     58:   service_name php_fpm_service_name
     59:   supports start: true, stop: true, restart: true, reload: true
     60:   action [:enable, :start]
     61: end
    
    Compiled Resource:
    ------------------
    # Declared in /root/chef-solo/local-mode-cache/cache/cookbooks/php-fpm/recipes/install.rb:56:in `from_file'
    
    service("php-fpm") do
      provider Chef::Provider::Service::Debian
      action [:enable, :start]
      default_guard_interpreter :default
      service_name "php7.2-fpm"
      enabled nil
      running nil
      masked nil
      pattern "php-fpm"
      declared_type :service
      cookbook_name "php-fpm"
      recipe_name "install"
      supports {:start=>true, :stop=>true, :restart=>true, :reload=>true}
    end
    
    System Info:
    ------------
    chef_version=13.8.5
    platform=ubuntu
    platform_version=18.04
    ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
    program_name=chef-solo worker: ppid=30645;start=23:48:10;
    executable=/opt/chef/bin/chef-solo

@chuhn
Copy link

chuhn commented Jan 29, 2021

For the record:
Old bug, fixed here

Still present though in the distro-provided chef package from Debian Buster.

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

2 participants