arcgis-cookbook icon indicating copy to clipboard operation
arcgis-cookbook copied to clipboard

Unable to place portal-directories in f:\arcgisportal

Open thormk opened this issue 6 years ago • 4 comments

I am running into a problem similar to "#105 - Portal site creation fails when data_dir is set to E drive”" But #105 does not provide a solution. I am using the following parameters for the Portal-installation:

... "portal":{ "domain_name":"some.domain.no", "url":"https://some.domain.no:7443/arcgis", "private_url":"some.domain.no:7443/arcgis", "web_context_url":"https://some.domain.no/portal", "wa_url":"https://some.domain.no/portal", "wa_name":"portal", "admin_username":"portaladmin", "admin_password":"password", "admin_email":"[email protected]", "admin_full_name":"Administrator", "content_dir":"F:\arcgisportal\content", "content_store_connection_string":"F:\arcgisportal\content", "setup":"f:\Software\ArcGIS\PortalForArcGIS\Setup.exe", "authorization_file":"f:\Software\ArcGIS\Lisenser\PortalforArcGIS_625568.prvc", "keystore_file":"f:\Software\Certificate\certificate.pfx", "keystore_password":"password", "cert_alias":"age_certificate", "root_cert":"f:\Software\Certificate\RootCertificate.cer", "root_cert_alias":"rootcertificate" } }, "run_list":[ "recipe[arcgis-enterprise::system]", "recipe[esri-iis]", "recipe[arcgis-enterprise::portal]", "recipe[arcgis-enterprise::portal_wa]", "recipe[arcgis-enterprise::federation]" ] }

But it fails with the following error: Running handlers: [2018-04-04T13:31:26+02:00] ERROR: Running exception handlers Running handlers complete [2018-04-04T13:31:26+02:00] ERROR: Exception handlers complete Chef Client failed. 4 resources updated in 36 minutes 12 seconds [2018-04-04T13:31:26+02:00] FATAL: Stacktrace dumped to c:/chef/local-mode-cache/cache/chef-stacktrace.out [2018-04-04T13:31:26+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2018-04-04T13:31:26+02:00] FATAL: RuntimeError: arcgis_enterprise_portal[Create Portal Site] (arcgis-enterprise::portal line 117) had an error: RuntimeError: java.io.FileNotFoundException: C:\arcgisportal\content\items\portal\properties.json (The system cannot find the path specified)

I have tried multiple variations of parameter-settings without any luck.
My goal is to place all directories (content, db, index, logs, temp) in F:\arcgisportal. Not in C:\arcgisportal

Any idea what I am doing wrong?

Thanks

thormk avatar Apr 04 '18 12:04 thormk

Try to set data_dir portal attribute in addition to content_dir.

{
"portal":{
"domain_name":"some.domain.no",
"url":"https://some.domain.no:7443/arcgis",
"private_url":"some.domain.no:7443/arcgis",
"web_context_url":"https://some.domain.no/portal",
"wa_url":"https://some.domain.no/portal",
"wa_name":"portal",
"admin_username":"portaladmin",
"admin_password":"password",
"admin_email":"[email protected]",
"admin_full_name":"Administrator",
"data_dir":"F:\\arcgisportal",
"content_dir":"F:\\arcgisportal\\content",
"setup":"f:\\Software\\ArcGIS\\PortalForArcGIS\\Setup.exe",
"authorization_file":"f:\\Software\\ArcGIS\\Lisenser\\PortalforArcGIS_625568.prvc",
"keystore_file":"f:\\Software\\Certificate\\certificate.pfx",
"keystore_password":"password",
"cert_alias":"age_certificate",
"root_cert":"f:\\Software\\Certificate\\RootCertificate.cer",
"root_cert_alias":"rootcertificate"
}

pbobov avatar Apr 04 '18 15:04 pbobov

I tried setting data_dir as you suggested, but I still get the same error.

thormk avatar Apr 04 '18 18:04 thormk

I'm also receiving this error: RuntimeError: arcgis_enterprise_portal[Create Portal Site] (arcgis-enterprise::portal line 117) had an error: RuntimeError: Forbidden

I'm using the D: drive in my case and have set the data_dir and content_dir.

Update: In this case, the same error occurred whether I was on C: or D: - so it wasn't related to the drive. Running adding -l debug to my chef-solo command gave me more detail and the log shows the forbidden error was caused when calling the public URL (port 6443 blocked) to create the site, instead of the host's private name. I corrected my urls in the json file to fix this.

bweisberg avatar Jun 22 '18 19:06 bweisberg

I have the same issue. It seems to just ignore the path when setting the folders so the data_dir is C:\arcgisportal no matter what is defined in configuration. Then it looks for the value used in content_dir which it does not find because it created it at c:\arcgisportal.

Seems cannot use chef if you want portal content on a drive other than C:. Disappointing

This configuration everything still on C:

"portal":{
  "data_dir":"D:\\arcgisportal",
  "content_dir":"D:\\arcgisportal\\content",
  "log_dir":"D:\\arcgisportal\\logs",
  "setup":"D:\\ArcGIS\\Portal1061\\PortalForArcGIS\\Setup.exe",
  "authorization_file":"C:\\chef\\ArcGIS\\10.6.1\\Authorization_Files\\Portal.prvc"
}

ramtechjoe avatar Jan 24 '19 23:01 ramtechjoe