Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

Error executing action enable on resource 'windows_service[Go Server]' #78

Open
bonganim911 opened this issue Mar 17, 2016 · 0 comments

Comments

@bonganim911
Copy link

Running a go cookbook on windows server 2012R2, throws this exception below:

Recipe: gocd::server

      ================================================================================
      Error executing action `enable` on resource 'windows_service[Go Server]'
      ================================================================================

      SystemCallError
      ---------------
      The specified service does not exist as an installed service. - OpenService: The specified service does not exist as an installed service.

      Resource Declaration:
      ---------------------
      # In C:\Users\vagrant\AppData\Local\Temp\kitchen\cookbooks\gocd\recipes\server.rb

        8: service (platform?('windows') ? 'Go Server' : 'go-server') do
        9:   supports :status => true, :restart => true, :start => true, :stop => true
       10:   action [:enable, :start]
       11:   if node['gocd']['server']['wait_up']['retries'] != 0
       12:     notifies :get, 'http_request[verify_go-server_comes_up]', :immediately
       13:   end
       14: end

      Compiled Resource:
      ------------------
      # Declared in C:\Users\vagrant\AppData\Local\Temp\kitchen\cookbooks\gocd\recipes\server.rb:8:in `from_file'

      windows_service("Go Server") do
        action [:enable, :start]
        supports {:status=>true, :restart=>true, :start=>true, :stop=>true}
        retries 0
        retry_delay 2
        default_guard_interpreter :default
        service_name "Go Server"
        pattern "Go Server"
        startup_type :automatic
        declared_type :service
        cookbook_name :gocd
        recipe_name "server"
      end


  Running handlers:
  [2016-03-17T06:56:47-07:00] ERROR: Running exception handlers
  Running handlers complete
  [2016-03-17T06:56:47-07:00] ERROR: Exception handlers complete
  Chef Client failed. 0 resources updated in 24 seconds
  [2016-03-17T06:56:47-07:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
  [2016-03-17T06:56:47-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
  [2016-03-17T06:56:47-07:00] FATAL: SystemCallError: windows_service[Go Server] (gocd::server line :sunglasses: had an error: SystemCallError: The specified service does not exist as an installed service. - OpenService: The specified service does not exist as an installed service.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant