-
Notifications
You must be signed in to change notification settings - Fork 117
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 execute chef script from user_data #330
Comments
Hi @Ayushyadav19, Looks like it is getting stuck here: arcgis-cookbook/cookbooks/esri-tomcat/recipes/firewalld.rb Lines 38 to 41 in 237b0e3
The default
This opens all ports, which could be getting blocked since it's already setup. If you are configuring the firewalld rules and port forwarding prior then you can set
Thanks, |
Hi @cameronkroeker, We have bypassed the issue with the steps that you suggested but, we are facing issues with the ArcGIS portal setup. The chef log file shows the following error - FATAL: Mixlib::ShellOut::CommandTimeout: arcgis_enterprise_portal[Install Portal for ArcGIS] (arcgis-enterprise::install_portal line 53) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 30s: Attaching the log file for your reference. Thanks |
Hi @Ayushyadav19, The cookbooks use the built in stopportal.sh tool to stop the service after the setup completes, so that later it can start the portal service using systemd. Looks like the command to stop portal after installation timed out. However, I am not quite sure what would cause it to take longer than 30 seconds. Check to see if there are any clues within the portal logs. If you manually run the command how long does it take for portal to stop?
If the timeout needs to be increased, modify it here:
|
Hi @cameronkroeker, I increased the timeout from the 30s to the 300s and after that when we ran the chef script we encountered the following error. I am writing down the following steps on how I increased the timeout in the portal.rb:-
Let me know if you have any thoughts on the error that we are facing. Thanks |
Hi @Ayushyadav19, For the 412 "Precondition Failed" error, could you provide the stacktrace.out? There could be useful or helpful information in there. Thanks, |
Hi @cameronkroeker,
We are trying to install Portal for ArcGIS 10.9.1 on an AWS ec2 RHEL 7.9 instance. The deployment needs to be a "one-click" approach and hence we are using terraform to provision and configure the ec2 instance.
We prepare and configured the instance using a bash script under the user_data parameter. However. the ArcGIS Portal installation does not go through entirely. It seems as though it gets stuck at installing/configuring tomcat The chef script logs display the following message.
We confirmed that the firewalld is set up on the machine and the port numbers are also added as an exception. However, this still fails at the same stage.
Interestingly, if we do not run the command to execute the Chef Script from user_data, the installation goes through successfully. This tells me that there is no issue with the machine setup/system requirements.
Any thoughts/suggestions on how to achieve this Chef Script execution from user_data would be helpful.
Thank you
Ayush
The text was updated successfully, but these errors were encountered: