Please note that the web adaptor is not essential for a single-machine deployment.
Installed portals are not accessible from a public IP address in AWS. Installing the web adaptor is necessary to make the portal accessible from a public IP address.
This installation guide refers using a setup program but the utility doesn't exist in the AWS Marketplace software image. You can find the utility in the /arcgis/webadaptor10.7.1/.Setup directory.
System requirements call for using the Apache Tomcat 9.0.19 web server, however, be aware that the Linux Ubuntu operating system initially installs Tomcat 9.0.16 via apt.
Step-By-Step Guide
- apt-get install tomcat9
- cd /arcgis/webadaptor10.7.1/java
- ./init_webadaptor.sh
- cd /arcgis/webadaptor10.7.1/java/tools
- ./configurewebadaptor.sh -m portal -w (arcgis server URL) -g (URL) -u siteadmin -p password
Note: Apache Tomcat 9.x does not accept connection from private EC2 IP and 127.0.0.1 if port 80 is used.
Error Messages
If you call a web page with public IP / DNS, lynx (arcgis server URL), 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 a web page with internal IP, $lynx (arcgis web adaptor URL), 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 the CLI tool configurewebadaptor.sh, it cannot access web adaptor URL:
(base) arcgis@(IP address):/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 (arcgis URL) -u siteadmin -p password -a true Unable to connect to WebAdaptor URL : (arcgis web adaptor URL)
References
- https://enterprise.arcgis.com/en/web-adaptor/latest/install/java-linux/install-arcgis-web-adaptor-server.htm
- https://stackoverflow.com/questions/6246127/cant-access-tomcat-using-ip-address
- https://support.esri.com/en/technical-article/000013293
- https://community.esri.com/thread/187407-web-adaptor-not-configuring-portal