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:
Error 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
Solved! Go to Solution.
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
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