問題背景
ArcGIS Enterprise Portal的WebAdaptor出現故障。用戶為了正常使用ArcGIS Server,在server端解除聯合托管。由于與門戶通信受阻,門戶沒有同步接觸聯合托管。WA恢復后,想要ArcGIS Enterprise 完全恢復,使用原來的托管服務。
解決步驟
構建server 的config-store下的security文件夾下的security-config.json,以孤立Server的這個配置文件為文件基礎。
修改serverRole為"FEDERATED_SERVER"
添加portal的信息。
"portalProperties": {
"portalUrl": "https://Portal的WA所在機器域名/WA名",
"privatePortalUrl": "https://Portal所在機器的域名:7443/arcgis",
"portalSecretKey": "01b9e3c466564c08980062d3cdb2e2b4",
"portalMode": "ARCGIS_PORTAL_FEDERATION",
"serverId": "SfkisPZOtOVhnZT4",
"serverUrl": "https://Server的WA所在機器的域名/server的WA名",
"webgisServerTrustKey": "8rHF8Xcroh8cmTmgAKeqMZ4CUQTJvO6dXchfiYkq1kI=",
"privateHostingServerUrl": "https://Server所在機器的域名:6443/arcgis"
},
其中:webgisServerTrustKey 從 https://域名/portal/portaladmin/security/config里面獲得
portalSecretKey 從 Portal內置PG庫中獲得,表名為gw_account_server
serverId也可以在那里獲得。