arcpy.mapping.CreateGISServerConnectionFile("PUBLISH_GIS_SERVICES", outDir, outName, serverUrl, "ARCGIS_SERVER", False, outDir, usr, pwd, "SAVE_USERNAME") arcpy.mapping.CreateMapSDDraft(mapDoc, sddraft, service, 'ARCGIS_SERVER', outName, False, None, 'summary', 'tags') arcpy.StageService_server(sddraft, sd) arcpy.UploadServiceDefinition_server(sd, outName)
The sign-in dialog should never appear when running as a Python script. This is a bug. Please contact support.
Hello @Surgey Burmisov, did you every find a resolution to the sign-in box appearing while running a python script that calls arcpy.UploadServiceDefinition_server()?
We never actually found a _solution_ to the problem, but we did perform multiple reinstalls of different ArcGIS Server versions, and it seemed like a floating bug less likely to appear on new installations.
So we reached some point when all production servers were running OK (no dialog box pops up), and settled on that infirm ground, hoping never to see the problem again
Okay well I appreciate the information. I did come across this bug which was addressed at 10.2 and might explain the behaviour.
NIM-088658
When background processing is enabled, the Upload Service Definition tool makes HTTP requests to 'http://www.arcgis.com/arcgisuris.xml' when it is run.