<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Altering mss.py for https only server in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1252467#M34999</link>
    <description>&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I replaced the port number with 6443 and updated all of the http calls to https but I still get these errors - do you think this is the self signed cert that you mentioed?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Temp\python_scripts\map_service_stats\mss.py", line 203, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;sys.exit(main(sys.argv[1:]))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Temp\python_scripts\map_service_stats\mss.py", line 56, in main&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;token = getToken(username, password, serverName, serverPort)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Temp\python_scripts\map_service_stats\mss.py", line 183, in getToken&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;if not assertJsonSuccess(data):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Temp\python_scripts\map_service_stats\mss.py", line 193, in assertJsonSuccess&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;obj = json.loads(data)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Python27\ArcGIS10.7\lib\json\__init__.py", line 339, in loads&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;return _default_decoder.decode(s)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Python27\ArcGIS10.7\lib\json\decoder.py", line 364, in decode&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;obj, end = self.raw_decode(s, idx=_w(s, 0).end())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Python27\ArcGIS10.7\lib\json\decoder.py", line 382, in raw_decode&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;raise ValueError("No JSON object could be decoded")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ValueError: No JSON object could be decoded&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bernie.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 18:52:28 GMT</pubDate>
    <dc:creator>berniejconnors</dc:creator>
    <dc:date>2023-01-27T18:52:28Z</dc:date>
    <item>
      <title>Altering mss.py for https only server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1250429#M34950</link>
      <description>&lt;P&gt;I found a great script a few years ago to generate a report for the map service requests on our server:&lt;/P&gt;&lt;P&gt;&lt;A href="https://enterprise.arcgis.com/en/server/10.8/administer/linux/example-create-a-report-of-all-service-requests.htm" target="_blank" rel="noopener"&gt;Example: Create a report of all service requests—ArcGIS Server | Documentation for ArcGIS Enterprise&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The script worked great as it was.&amp;nbsp; But now I need to run it on a server that is configured for https only.&amp;nbsp; The script includes a comment:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;serverPort = &lt;/SPAN&gt;&lt;SPAN class=""&gt;6080&lt;/SPAN&gt; &lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;# assumes server is enabled for HTTP access, HTTPS only sites will require (minor) script changes&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Changing "serverPort = 6443" does not work.&amp;nbsp; Has anyone modified this script to work with a server configured for https only?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bernie.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 16:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1250429#M34950</guid>
      <dc:creator>berniejconnors</dc:creator>
      <dc:date>2023-01-23T16:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Altering mss.py for https only server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1250464#M34951</link>
      <description>&lt;P&gt;Could it be that https traffic is using a different port such as 443?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 17:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1250464#M34951</guid>
      <dc:creator>MikeVolz</dc:creator>
      <dc:date>2023-01-23T17:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Altering mss.py for https only server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1250469#M34952</link>
      <description>&lt;P&gt;There are also 5 http:// calls that will need to be updated to https:// so make sure to update those along with the port number.&lt;/P&gt;&lt;P&gt;Just as a note - My 10.9.1 server still uses the self signed cert for the internal server and Python definitely does not like that. There are plenty of search results to disable Python TLS checking if you need to explore that avenue.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 17:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1250469#M34952</guid>
      <dc:creator>ThomasHoman</dc:creator>
      <dc:date>2023-01-23T17:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Altering mss.py for https only server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1252467#M34999</link>
      <description>&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I replaced the port number with 6443 and updated all of the http calls to https but I still get these errors - do you think this is the self signed cert that you mentioed?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Temp\python_scripts\map_service_stats\mss.py", line 203, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;sys.exit(main(sys.argv[1:]))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Temp\python_scripts\map_service_stats\mss.py", line 56, in main&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;token = getToken(username, password, serverName, serverPort)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Temp\python_scripts\map_service_stats\mss.py", line 183, in getToken&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;if not assertJsonSuccess(data):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Temp\python_scripts\map_service_stats\mss.py", line 193, in assertJsonSuccess&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;obj = json.loads(data)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Python27\ArcGIS10.7\lib\json\__init__.py", line 339, in loads&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;return _default_decoder.decode(s)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Python27\ArcGIS10.7\lib\json\decoder.py", line 364, in decode&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;obj, end = self.raw_decode(s, idx=_w(s, 0).end())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;File "C:\Python27\ArcGIS10.7\lib\json\decoder.py", line 382, in raw_decode&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;raise ValueError("No JSON object could be decoded")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ValueError: No JSON object could be decoded&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bernie.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 18:52:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1252467#M34999</guid>
      <dc:creator>berniejconnors</dc:creator>
      <dc:date>2023-01-27T18:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Altering mss.py for https only server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1253172#M35009</link>
      <description>&lt;P&gt;Hi Berine,&lt;/P&gt;&lt;P&gt;It could be. When I ran it the self signed cert was very obvious in the last few lines of the traceback. I think I ran the code from the command prompt so there might have been more verbose error response in my running. c:\python27\... mss.py . I was looking at running it under task scheduler so thought I would go the command line router rather than a windowed interpreter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have web access to the server for administration do you have a valid certificate lock or a bad cert indicator showing self-signed?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 03:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/altering-mss-py-for-https-only-server/m-p/1253172#M35009</guid>
      <dc:creator>ThomasHoman</dc:creator>
      <dc:date>2023-01-31T03:56:49Z</dc:date>
    </item>
  </channel>
</rss>

