Esri / arcgis-cookbook

Chef cookbooks for ArcGIS
Apache License 2.0
300 stars 116 forks source link

Unable to access tomcat server #331

Open Ayushyadav19 opened 2 years ago

Ayushyadav19 commented 2 years ago

Hi @cameronkroeker,

We are deploying ArcGIS Enterprise v1091 on Linux RHEL - 7.9 on AWS using this AMI - ami-030e754805234517e. We are facing issues with the apache tomcat server (v9.0.65) installation. The recipe esri-tomcat, didn't throw any error during the deployment but when we try to access the tomcat URL - http://localhost:8080 we are encountering a 404 error. Refer to the below screenshot

MicrosoftTeams-image

And when we are following the manual steps to deploy tomcat it starts working as usual and we are able to access the URL http://localhost:8080.

For your reference, I am attaching the chef script. Kindly note that we are using _"forwardports": false due to your suggestion in the issue

BEDLinuxServer2.txt

Looking forward to your thoughts/suggestions.

Thanks Ayush

cameronkroeker commented 2 years ago

Hi @Ayushyadav19,

Are there any errors in the tomcat logs?

Since node['tomcat']['forward_ports'] is set to false you may want to check to ensure firewalld is configured properly and port forwarding is configured. When it's true it sets the following rules:

https://github.com/Esri/arcgis-cookbook/blob/237b0e39fca0a3b5988b997430bf7beb3637e039/cookbooks/esri-tomcat/recipes/firewalld.rb#L46-L52

Thanks, Cameron K.

cameronkroeker commented 2 years ago

Hi @Ayushyadav19,

I actually believe the 404 error you are receiving is by design. The esri-tomcat cookbook deletes the root folder which contains the index.html.

Could you instead check the full web adaptor url?

curl https://localhost/<wa_name>/webadaptor --insecure -v

or

curl http://localhost/<wa_name>/webadaptor -v
Ayushyadav19 commented 2 years ago

Hi @cameronkroeker,

Thanks for providing us with the info.

Unfortunately, we are still facing issues with the web-adaptor configuration. Below is the screenshot attached for the same:-

image

We already opened all the required ports on the ec2 instance firewall. Below is the screenshot attached for the same:-

MicrosoftTeams-image (1)

Any help/suggestions/thoughts will be much appreciated.

Thanks Ayush

cameronkroeker commented 2 years ago

Hi @Ayushyadav19,

Looks like the web adaptor url is unavailable or timing out. What happens when running the following command?

curl https://172.31.19.112/portal/webadaptor --insecure -v
curl https://172.31.19.112:8443/portal/webadaptor --insecure -v
curl http://172.31.19.112/portal/webadaptor -v
curl http://172.31.19.112:8080/portal/webadaptor -v

Thanks, Cameron K.