Esri / arcgis-cookbook

Chef cookbooks for ArcGIS
Apache License 2.0
300 stars 116 forks source link

webgis-windows.json "Error executing action `enable` on resource 'windows_service[ArcGIS Server" #123

Closed mohibulah closed 4 years ago

mohibulah commented 6 years ago

Hello,

While running webgis-windows.json Chef client in Windows Server 2012 R2 terminates with error below:

11T13:17:58+04:30] INFO: Processing windows_feature_dism[IIS-WebServerManagement Tools] action install (c:/chef/local-mode-cache/cache/cookbooks/windows/resource s/feature.rb line 60) (up to date) (up to date)

[2017-12-11T13:24:12+04:30] INFO: Running queued delayed notifications before re -raising exception

============================================================================

==== Error executing action configure_autostart on resource 'arcgisenterprise server[Configure arcgisserver service]'

====

SystemCallError
---------------
windows_service[ArcGIS Server] (c:/chef/local-mode-cache/cache/cookbooks/arc

gis-enterprise/providers/server.rb line 655) had an error: SystemCallError: The specified service does not exist as an installed service. - OpenService: The spe cified service does not exist as an installed service.

Resource Declaration:
---------------------
# In c:/chef/local-mode-cache/cache/cookbooks/arcgis-enterprise/recipes/serv

er.rb

 68: arcgis_enterprise_server 'Configure arcgisserver service' do
 69:   install_dir node['arcgis']['server']['install_dir']
 70:   only_if { node['arcgis']['server']['configure_autostart'] }
 71:   action :configure_autostart
 72: end
 73:

Compiled Resource:
------------------
# Declared in c:/chef/local-mode-cache/cache/cookbooks/arcgis-enterprise/rec

ipes/server.rb:68:in `from_file'

arcgis_enterprise_server("Configure arcgisserver service") do
  action [:configure_autostart]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :arcgis_enterprise_server
  cookbook_name "arcgis-enterprise"
  recipe_name "server"
  install_dir "C:\\Program Files\\ArcGIS\\Server"
  system_properties {}
  log_level "WARNING"
  user_store_config {}
  role_store_config {}
  privileges {}
  only_if { #code block }
end

System Info:
------------
chef_version=12.21.26
platform=windows
platform_version=6.3.9600
ruby=ruby 2.3.5p376 (2017-09-14 revision 59905) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-solo
executable=C:/opscode/chef/bin/chef-solo

[2017-12-11T13:24:12+04:30] INFO: Running queued delayed notifications before re -raising exception

Running handlers: [2017-12-11T13:24:12+04:30] ERROR: Running exception handlers Running handlers complete [2017-12-11T13:24:12+04:30] ERROR: Exception handlers complete Chef Client failed. 17 resources updated in 07 minutes 53 seconds [2017-12-11T13:24:12+04:30] FATAL: Stacktrace dumped to c:/chef/local-mode-cache /cache/chef-stacktrace.out [2017-12-11T13:24:12+04:30] FATAL: Please provide the contents of the stacktrace .out file if you file a bug report [2017-12-11T13:24:12+04:30] FATAL: SystemCallError: arcgis_enterprise_server[Con figure arcgisserver service] (arcgis-enterprise::server line 68) had an error: S ystemCallError: windows_service[ArcGIS Server] (c:/chef/local-mode-cache/cache/c ookbooks/arcgis-enterprise/providers/server.rb line 655) had an error: SystemCal lError: The specified service does not exist as an installed service. - OpenServ ice: The specified service does not exist as an installed service. C:\opscode\chef\bin>

This machine is not in a domain environment, we are using self-signed SSL certificate with root trust. FQDN is fully resolving and pinging from intranet computers.

The Windows User we are using to run Chef Client 12.21.26 in the server is an Administrator account. Please let us know what could be wrong.

Thank you. Mohibullah

pbobov commented 6 years ago

Can you try it with Chef Client 12.21.12? ArcGIS Chef cookbooks seem to have issues with Chef Client 12.21.26.

mohibulah commented 6 years ago

Hi Pavel,

Thank you for your prompt response. Sure I will try it with 12.21.12 and let you know.

Thank you.

mohibulah commented 6 years ago

Hi Pavel,

With version 12.21.12 it terminates with exactly the same error:

[2017-12-12T10:54:01+04:30] INFO: Running queued delayed notifications before re -raising exception

============================================================================

==== Error executing action configure_autostart on resource 'arcgisenterprise server[Configure arcgisserver service]'

====

SystemCallError
---------------
windows_service[ArcGIS Server] (c:/chef/local-mode-cache/cache/cookbooks/arc

gis-enterprise/providers/server.rb line 655) had an error: SystemCallError: The specified service does not exist as an installed service. - OpenService: The spe cified service does not exist as an installed service.

Resource Declaration:
---------------------
# In c:/chef/local-mode-cache/cache/cookbooks/arcgis-enterprise/recipes/serv

er.rb

 68: arcgis_enterprise_server 'Configure arcgisserver service' do
 69:   install_dir node['arcgis']['server']['install_dir']
 70:   only_if { node['arcgis']['server']['configure_autostart'] }
 71:   action :configure_autostart
 72: end
 73:

Compiled Resource:
------------------
# Declared in c:/chef/local-mode-cache/cache/cookbooks/arcgis-enterprise/rec

ipes/server.rb:68:in `from_file'

arcgis_enterprise_server("Configure arcgisserver service") do
  action [:configure_autostart]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :arcgis_enterprise_server
  cookbook_name "arcgis-enterprise"
  recipe_name "server"
  install_dir "C:\\Program Files\\ArcGIS\\Server"
  system_properties {}
  log_level "WARNING"
  user_store_config {}
  role_store_config {}
  privileges {}
  only_if { #code block }
end

System Info:
------------
chef_version=12.21.12
platform=windows
platform_version=6.3.9600
ruby=ruby 2.3.5p376 (2017-09-14 revision 59905) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-solo
executable=C:/opscode/chef/bin/chef-solo

[2017-12-12T10:54:01+04:30] INFO: Running queued delayed notifications before re -raising exception

Running handlers: [2017-12-12T10:54:01+04:30] ERROR: Running exception handlers Running handlers complete [2017-12-12T10:54:01+04:30] ERROR: Exception handlers complete Chef Client failed. 10 resources updated in 05 minutes 18 seconds [2017-12-12T10:54:01+04:30] FATAL: Stacktrace dumped to c:/chef/local-mode-cache /cache/chef-stacktrace.out [2017-12-12T10:54:01+04:30] FATAL: Please provide the contents of the stacktrace .out file if you file a bug report [2017-12-12T10:54:01+04:30] FATAL: SystemCallError: arcgis_enterprise_server[Con figure arcgisserver service] (arcgis-enterprise::server line 68) had an error: S ystemCallError: windows_service[ArcGIS Server] (c:/chef/local-mode-cache/cache/c ookbooks/arcgis-enterprise/providers/server.rb line 655) had an error: SystemCal lError: The specified service does not exist as an installed service. - OpenServ ice: The specified service does not exist as an installed service.

pbobov commented 6 years ago

@mohibulah Please check if 'ArcGIS Server' windows service exists on the machine? (There must be one if ArcGIS Server setup completed successfully.)

nadiaChaimae commented 6 years ago

Hi, @pbobov I have the same error but in webgis-ubuntu.json

Error executing action `enable` on resource 'service[arcgisserver]'

  Errno::ENOENT
  -------------
  No such file or directory - /sbin/status

  Resource Declaration:
  ---------------------
  # In /var/chef/local-mode-cache/cache/cookbooks/arcgis-enterprise/providers/server.rb

  698:     service 'arcgisserver' do
  699:       supports :status => true, :restart => true, :reload => true
  700:       action :enable
  701:       retries 5
  702:       retry_delay 60
  703:     end
  704:
cameronkroeker commented 4 years ago

very likely the installation did not complete successfully or create the service. try with the latest cookbook v3.5.0