Trouble accessing server machines with Web Adaptor on linux. The configuration works, but trying to access the directory gives error- Could not access any server machines.

2103
6
07-31-2017 07:08 AM
ScottStopyak
Occasional Contributor II

I can't access services through my Centos 6.9 Web Adaptor.  Although the Web Adaptor configuration worked, trying to reach the REST directory fails with "Could not access any server machines. Please contact your system administrator." Firewall rules are the same for the Centos server as they are for a Windows server with a working Web Adaptor on it.

I can hit the tomcat page, but not the rest services directory. Running 10.5.1. The ArcGIS server is Windows 2012 R2.

0 Kudos
6 Replies
RandallWilliams
Esri Regular Contributor

Hi Scott,

a. Which version Tomcat are you using?

b. I assume you registered the web adaptor with the GIS Server using HTTPS (port 6443). Is that correct?

c. I'm surprised you were able to register the web adaptor with the GIS Server. Non-default ports aren't supported:

http://server.arcgis.com/en/portal/latest/administer/linux/about-the-arcgis-web-adaptor.htm

"You can only use the Web Adaptor with port 80 or 443. Using different ports is not supported."

0 Kudos
ScottStopyak
Occasional Contributor II

Hi Randall,

I’m running tomcat 8.5.16.

I don’t recall the linux web adaptor config giving an option for 80 or 443 like the windows one does. Tomcat runs on 8080 by default. Do you think I need to reconfigure the tomcat port?

0 Kudos
RandallWilliams
Esri Regular Contributor

Cool, 8.5.6 is supported.

You're correct. By default, Tomcat runs on port 8080 and 8443 (assuming HTTPS is enabled).  On Linux, there's a restriction on ports below 1024 - they're considered privileged. This restriction is addressed by:

a. Running Tomcat as root (*not* a preferred work around) or

b. Using IP Tables or

c. Using AuthBind

https://blog.webhosting.net/how-to-get-tomcat-running-on-centos-7-2-using-privileged-ports-1024/

https://stackoverflow.com/questions/10450045/why-does-tomcat-work-with-port-8080-but-not-80

ScottStopyak
Occasional Contributor II

Thanks! I’ll give it a whirl.

0 Kudos
NicholasReseburg1
New Contributor III

Did anyone ever get this to work?  I am running into the same issue, albeit in ubuntu 16.04 & tomcat 8.5.35 on port 8080

0 Kudos
RandallWilliams
Esri Regular Contributor

Which ArcGIS Enterprise version are you working with? You'll also want to get a cert. I'd bind to 443 or 8443. Depending on the version you're working with, 8080/8443 may not be supported for the web adaptor.

0 Kudos