Select to view content in your preferred language

SSL-error when programmatically stop and start service. 10.91

461
1
Jump to solution
02-16-2022 11:52 PM
Sveinung_Bertnes_Råheim
New Contributor III

In an automated process, I have for a long time stopped and started services with a command line. The command line is like this:

"E:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe" "E:\Program Files\ArcGIS\Server\tools\admin\manageservice.py" -u <username> -p <Password> -s http://localhost:6080/arcgis/admin -n Arealplan_SK/Arealplaner_komm_horing_SK -o stop

This has worked for some years on all versions. Yesterday I upgraded from 10.81 to 10.91. Then I cant run this command line anymore. I get an SSL-error:

Sveinung_Bertnes_Rheim_0-1645084006640.pngError connecting to admin site http://localhost:6080/arcgis/admin/: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1091)>

I tried to change to https://localhost:6443/arcgis/admin, same result.

The public ssl-sertificate works. The public services works.

This is an arcgisserver work group installation, one machine deployment. windows server 2019

 

 

0 Kudos
1 Solution

Accepted Solutions
Sveinung_Bertnes_Råheim
New Contributor III

I found a solution, a simple one.

Add the python-argument  --ignoressl. Then it works!
"E:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe" "E:\Program Files\ArcGIS\Server\tools\admin\manageservice.py" -u <username> -p <Password> --ignoressl -s http://localhost:6080/arcgis/admin -n <servicename> -o stop

View solution in original post

1 Reply
Sveinung_Bertnes_Råheim
New Contributor III

I found a solution, a simple one.

Add the python-argument  --ignoressl. Then it works!
"E:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe" "E:\Program Files\ArcGIS\Server\tools\admin\manageservice.py" -u <username> -p <Password> --ignoressl -s http://localhost:6080/arcgis/admin -n <servicename> -o stop