Seeking asssitance with base deployment errors using arcgis-enterprise-primary.json file #387
-
Hello everyone! I'm having a little bit of trouble correctly configuring this base deployment. For some reason, the datastore component fails to configure and says it cant reach the arcgis server component on localhost. I have validated the url below with the ip:port is indeed accessible, and both the portal and server components are in place and running and appear to be working fine. Im attaching the stack trace as well as the config file (with passwords removed). Any help is appreciated as I've kind of hit a roadblock. Thanks in advance! STDERR: Error encountered: Could not connect to server on machine 'localhost'. ArcGIS Data Store or ArcGIS Server on that machine may not be running or the machine is not reachable at this time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
Hi @J-J-E, One thing I notice is using IP for server and portal but datastore is set to hostname. In the datastore json block, try changing "data_store": {
"install_dir": "/opt",
"setup_options": "-f Relational,TileCache",
"data_dir": "/opt/arcgis/gisdata/arcgisdatastore",
"preferredidentifier": "ip",
"install_system_requirements": true,
"types": "relational",
"tilecache": {
"backup_type": "none",
"backup_location": "/net/FILESERVER/gisdata/arcgisbackup/tilecache"
},
"relational": {
"backup_type": "fs",
"backup_location": "/opt/arcgis/gisdata/arcgisbackup/relational"
}
} The other thing is may want to change Thanks, |
Beta Was this translation helpful? Give feedback.
-
@J-J-E thanks for the additional logs and information. One observation is in the localdirectories.rb recipe the following is defined localdirectories.rb: #
# Cookbook Name:: arcgis-enterprise
# Recipe:: createlocaldirs
#
# Copyright 2023 John Ehlen
#
# Create local server directories
node['arcgis']['localserver']['directories'].each do |dir|
directory dir do
owner node['arcgis']['run_as_user']
mode '0755' if node['platform'] != 'windows'
recursive true
action :create
end
end I would expect the json to look like this to match the localdirectories.rb: "localserver": {
"directories": [
"/opt/arcgis/gisdata/arcgisserver",
"/opt/arcgis/gisdata/arcgisbackup",
"/opt/arcgis/gisdata/arcgisbackup/relational",
"/opt/arcgis/gisdata/arcgisportal",
"/opt/arcgis/gisdata/arcgisportal/content"
]
}, Alternatively update the localdirectories.rb to match the json: node['arcgis']['localdirectories']['directories'].each do |dir|
directory dir do
owner node['arcgis']['run_as_user']
mode '0755' if node['platform'] != 'windows'
recursive true
action :create
end
end At any rate I suppose it worked somehow and its likely not related to the relational data store failing to register with server. Let's check to ensure both the arcgis server and arcgis data store services are started. As a sudo user run the following two commands on share the result:
Thanks, |
Beta Was this translation helpful? Give feedback.
Actually, I just thought of something. Let's check to ensure the hostname.properties file for ArcGIS Server is configured with the correct ip and not set to hostname. I wonder if since originally the /etc/hosts file contained the entry
10.168.0.23 gis-test.filmla.com
when server installed it picked gis-test.filmla.com as its hostname/machine name./opt/arcgis/server/framework/etc/hostname.properties
Also sign into https://10.168.0.23:6443/arcgis/admin and select machine and see what the machine name is set to.
As well as for portal: