Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access tomcat server #331

Open
Ayushyadav19 opened this issue Oct 18, 2022 · 4 comments
Open

Unable to access tomcat server #331

Ayushyadav19 opened this issue Oct 18, 2022 · 4 comments

Comments

@Ayushyadav19
Copy link

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 "forward_ports": false due to your suggestion in the issue

BEDLinuxServer2.txt

Looking forward to your thoughts/suggestions.

Thanks
Ayush

@cameronkroeker
Copy link
Contributor

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:

# Add firewalld services to forward ports 80 to 8080 and 443 to 8443.
execute 'firewall-cmd --permanent --add-forward-port=port=80:proto=tcp:toport=8080'
execute 'firewall-cmd --permanent --add-forward-port=port=443:proto=tcp:toport=8443'
execute 'firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p tcp -o lo --dport 80 -j REDIRECT --to-ports 8080'
execute 'firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p tcp -o lo --dport 443 -j REDIRECT --to-ports 8443'
execute 'firewall-cmd --reload'

Thanks,
Cameron K.

@cameronkroeker
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

cameronkroeker commented Nov 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants