ERROR
When accessing Portal for ArdcGIS or ArcGIS Server through ArcGIS Web Adaptor (Java), the Web Adaptor URL returns the following error:
Could not access any ArcGIS Enterprise portal machines. Please contact your system administrator.

Even if the Web Adaptor appears registered (or not registered) in the Portal Administrator Directory, attempts to configure or reconfigure the Web Adaptor using configurewebadaptor.sh fail with:
[arcgis@<machine> tools]$ ./configurewebadaptor.sh -m portal -w https://<FQDN>/portal/webadaptor -g https://<PORTAL_HOSTNAME>:7443 -u <PORTAL_ADMIN> -p ******** -a true Unable to connect to WebAdaptor URL : https://<FQDN>/portal/webadaptor
Reviewing the external Tomcat logs (catalina.out) shows a decryption exception similar to:
“Could not decrypt: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.”
The repetition of the “Could not access any ArcGIS Enterprise portal machines” message indicates that each request processed by the Web Adaptor fails.
One possible cause is an inconsistency in the Web Adaptor configuration state after an upgrade or rollback.
In some rollback scenarios, the Web Adaptor configuration file may reflect a different version state than the restored ArcGIS Enterprise environment. For example, the webadaptor.config file still indicates a newer version

At this time, this behavior is considered an unknown scenario. The error presents on either the Tomcat or Web Adaptor side and has not been tied to a single root cause beyond.
/home/tomcat_arcgis/.webadaptor/portal/webadaptor.config
Article ID: 000040576
Get help from ArcGIS experts
Start chatting now