Upgraded ArcGIS Server from 10.4.1 to 10.5. Now facing error when publishing new map services to ArcGIS Server.
Error: System.PublishingTools.GPServer: com.esri.arcgis.discovery.servicelib.AGSException: java.lang.Exception: java.lang.Exception: The server was unable to access the URL '. Please check your firewall and security settings. For more information, see the ArcGIS Server help topic Ports used by ArcGIS Server. You can access this topic in the table of contents by navigating to Administering ArcGIS for Server > Securing your ArcGIS Server site > Configuring a secure environment for ArcGIS Server.