Please note that web adoptor is not essential for single-machine deployment.

Portal, after it is installed, is not accessible from public IP in AWS. Hence, installing Web Adaptor is necessary to make it accessible from public IP.

The installation guide refers Setup program but it doesn't exist in AWS Marketplace image. You can find /arcgis/webadaptor10.7.1/.Setup directory though.

System requirement says Tomcat 9.0.19 but Ubuntu installs Tomcat 9.0.16 via apt.

Step-by-step guide

  1. apt-get install tomcat9
  2. cd /arcgis/webadaptor10.7.1/java
  3. ./init_webadaptor.sh
  4. cd /arcgis/webadaptor10.7.1/java/tools
  5. ./configurewebadaptor.sh -m portal -w https://arcgis-s.gisdemo.net/arcgis/webadaptor -g https://172.31.49.200:7443 -u siteadmin -p password


Tomcat9 doesn't accept connection from private EC2 IP and 127.0.0.1 if port 80 is used.

Error Messages

If you call web page with public IP / DNS, lynx http://arcgis-server.gisdemo.net:8080/arcgis/webadaptor, you get the following 999 error:

   The web adaptor configuration URL has to be accessed from the machine hosting the web adaptor.


If you call web page with internal IP, $lynx http://172.31.49.200:8080/arcgis/webadaptor, you get the following 400 error:

   Unable to configure the ArcGIS Server with the Web Adaptor. Please make
   sure that the server machine is running and that the account specified
   has administrative privileges to the site.

If you use CLI tool configurewebadaptor.sh, it cannot access web adaptor URL:

(base) arcgis@ip-172-31-49-200:/arcgis/webadaptor10.7.1/java/tools$ /arcgis/webadaptor10.7.1/java/.Setup/jre/bin/java -jar /arcgis/webadaptor10.7.1/java/tools/arcgis-wareg.jar  -m portal -w http://172.31.49.200:8080/arcgis/webadaptor -g https://172.31.49.200:7443/arcgis -u siteadmin -p password -a true
Unable to connect to WebAdaptor URL : http://172.31.49.200:8080/arcgis/webadaptor


References

  1. https://enterprise.arcgis.com/en/web-adaptor/latest/install/java-linux/install-arcgis-web-adaptor-server.htm
  2. https://stackoverflow.com/questions/6246127/cant-access-tomcat-using-ip-address
  3. https://support.esri.com/en/technical-article/000013293
  4. https://community.esri.com/thread/187407-web-adaptor-not-configuring-portal