Esri / arcgis-cookbook

Chef cookbooks for ArcGIS
Apache License 2.0
290 stars 115 forks source link

Running the recipe for installing patches keeps failing with a timeout #283

Closed anandak closed 3 years ago

anandak commented 3 years ago

Trying to install patches for a fresh install of base enterprise deployment of 10.8.1. The role json contains only one recipe for installing patches and includes the correct repository path for patches folder in network location.

We are using v3.6.1 of cookbook. Initially we observed a timeout error and noticed the update in patches.rb in latest version which increased the timeout to one hour. We added the same line locally in patches.rb and uploaded to chef server and ran the recipe again.

However this time, it is still failing with a timeout error after an hour. I have attached the debug log of chef run. Patch installation chef run log.txt

When I install the patch manually by remoting into the machine with the same user mentioned in role json, it works fine.

This is the role json file image

cameronkroeker commented 3 years ago

Hi @anandak,

How long does the patch take to successfully complete when manually installing?

"\\aws-harman1\arcgis-repo\patches\bed\arcgis-1081-pfa-awg-patch.msp" /qn

Have you tried increasing it above 1 hour? Perhaps try 2 hours (7200).

Thanks, Cameron K.

anandak commented 3 years ago

When installing manually, I could install 3-4 patches within an hour, out of the full list of 8 patches for portal 10.8.1. I tried increasing the timeout to 24 hours and it still I see the same error of time out, with no indication of how many were successful, none were installed.

cameronkroeker commented 3 years ago

Hi @anandak,

I am now thinking there is something else causing the timeout, like perhaps the *.msp installer is asking for user input but since its silently being installed /qn we are not seeing it. Can we try updating the following to /qb:

https://github.com/Esri/arcgis-cookbook/blob/f973da68d5d092ebedc005bc9b79611e5aa5aaba/cookbooks/arcgis-enterprise/providers/patches.rb#L32

Hopefully this will display a basic UI and may give us some more insight.

Thanks, Cameron K.

anandak commented 3 years ago

Hi @cameronkroeker

We tried this with chef-server (12.19) as well as chef-solo(14.14.29) with /qb in patches.rb. We saw the GUI only when using chef-solo. When doing a run using chef-server in another environment, we did not see a GUI on that node.

image

Chef-solo was successful after we clicked through the GUI, but chef-server run is still failing with a timeout.

cameronkroeker commented 3 years ago

Hi @cameronkroeker

We tried this with chef-server (12.19) as well as chef-solo(14.14.29) with /qb in patches.rb. We saw the GUI only when using chef-solo. When doing a run using chef-server in another environment, we did not see a GUI on that node.

image

Chef-solo was successful after we clicked through the GUI, but chef-server run is still failing with a timeout.

Hi @anandak,

Thanks for the additional testing with /qb this is helpful information. Chef is timing out because of the Open File - Security Warning is requesting user input. Once you add a security exception for opening/running *.msp files or could be all files in general that were originally downloaded from the Internet the timeout should no longer occur.

Thanks, Cameron K.

anandak commented 3 years ago

Hi @cameronkroeker that was it! thank you so much for pointing us in the right direction. Once we added the exception, everything was fine and we were able to successfully install all patches. thanks again, closing.