In certain instances, users upgrading to ArcGIS Enterprise 10.9.1 are unable to publish services from ArcGIS Pro and ArcMap. This issue affects multiple versions of ArcGIS Server, but is specific to upgrading to ArcGIS Server 10.9.1.
Note: If you believe that you are running into this issue, please log a case with Esri Technical Support to be added to BUG-000146553: Unable to publish services from ArcGIS Pro and ArcMap after upgrading to ArcGIS Enterprise 10.9.1 (ERROR 001378).
At ArcGIS Server 10.9.1 name and runtime changes were made for some of the ArcGIS Server system services. In some instances, these system services are not updated to use the correct runtime. In addition, some system services persist that should not be present at ArcGIS Server 10.9.1. These issues can cause publishing to fail from ArcMap and ArcGIS Pro.
Note: The attached script has been updated. The previous script does not correct all the issues with the ArcGIS Server system services affected by the upgrade. If you ran the prior script, you may still not be able to use some enterprise workflows such as caching and analysis. Esri advises running the latest script attached to this article.
Download, extract, and run the script attached to this knowledge article. The script iterates through existing ArcGIS Server system services. The script deletes and re-creates system services as needed. Services that should not be present or that are using an incorrect runtime will be deleted and re-created.
To run the script, follow the instructions below:
Note: Provide the script name if the script is copied directly to the ArcGIS Server python directory. Alternatively, provide the file path to the script.