ERROR
ArcGIS for Server becomes unresponsive when publishing a geoprocessing service, and returns the following error message in ArcGIS Server logs:
Error: Services containing process crashed. ServiceName.GPServer instance has crashed.
Note: The ArcGIS for Server log files can be found in the following path: C:\arcgisserver\logs\<machine_name>\server
ArcGIS for Server is referencing an empty Python subkey. This can occur if a standalone Python installation occurred and was later removed. Uninstalling the standalone Python removes keys associated with the main Python hive but does not remove the main hive, which is empty because of the uninstall, and causes the error in the ArcGIS for Server logs.
Note: In Windows Registry, a hive is a logical group of keys, subkeys and values in the registry, which includes a set of associated files containing backups of its data.
The following are possible solutions for this issue:
Configure the PythonPath key in the Windows Registry to reference the correct path
Note: The following instructions are meant to be used on a Microsoft Windows operating system.
Warning: The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary. ESRI cannot guarantee results from incorrect modifications while following these instructions. Therefore, use caution and proceed at your own risk.
Note: The following is an example of a complete path to a Python installation: C:\Python27\ArcGISx6410.3\Lib;C:\Python27\ArcGISx6410.3\DLLs;C:\Python27\ArcGISx6410.3\Lib\lib-tk
Run a Repair on the ArcGIS for Server installation
The Repair function checks and repairs any missing or corrupt files in the operating system. The following Microsoft document provides instructions on how to repair an installation, Microsoft Support: Repair apps and programs in Windows.
Get help from ArcGIS experts
Download the Esri Support App