Select to view content in your preferred language

Not Able to Set up and run the Mission Critical Services For ArcGIS Monitor 2023.2

544
1
Jump to solution
12-18-2023 03:32 PM
BHK
by
Occasional Contributor

Using ArcGIS Monitor 2023.2, I have downloaded the  AdminUtlity from Here

and the ArcGIS Monitor 2023.2 sample gallery (Analysis sample: Mission Critical services) from Here

I have updated the the server node 

 

 

 

    "server":{
        "url":"https://gmonitor:30443/",
        "username": "ADMINUzer",
        "password": "PASS0rd"
    },

 

 

 

and the analysis

 

 

    "analysis":[
            {"file":"C:\\Monitor\\MissionCriticalServices.json"}
        ],

 

 

 

But when I run the script by CMD, I am getting these errors!

python AdminUtility.py -f SampleConfig.json -o analysis  

 

 

C:\Monitor>python AdminUtility.py -f SampleConfig.json -o analysis
C:\Users\me\Python\Python311\Lib\site-packages\urllib3\connectionpool.py:1099: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gismonitor'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "C:\Users\me\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
    return complexjson.loads(self.text, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\Python\Python311\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\Python\Python311\Lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Monitor\AdminUtility.py", line 8, in main
    builder.Builder()
  File "C:\Monitor\Modules\Builder\builder.py", line 34, in __init__
    self.token=helper.get_token(self.config, self.url, log )
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Monitor\Modules\Helper\helper.py", line 31, in get_token
    token = response.json()['access_token']
          ^^^^^^^^^^^^^^^
  File "C:\Users\me\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
None
Traceback (most recent call last):
  File "C:\Users\me\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
    return complexjson.loads(self.text, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\Python\Python311\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\Python\Python311\Lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Monitor\AdminUtility.py", line 8, in main
    builder.Builder()
  File "C:\Monitor\Modules\Builder\builder.py", line 34, in __init__
    self.token=helper.get_token(self.config, self.url, log )
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Monitor\Modules\Helper\helper.py", line 31, in get_token
    token = response.json()['access_token']
          ^^^^^^^^^^^^^^^
  File "C:\Users\me\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

 

 

 

Can someone please tell why this is happening. Should I fill all nodes of the the sampleConfig.json? basically what I did was just  updating those to nodes as the document mentioned in section 4 of the MC_Services.docx

 

BHK_0-1702942245686.png

 

0 Kudos
1 Solution

Accepted Solutions
IrisHadarStltd
Occasional Contributor

Hi , 

Try to use the AdminUtility.exe , for us it  functioned seamlessly.

this is the JSON we used.

{
    "server":{
        "url":"XXXX:30080",
        "username": "xxx",
        "password": "xxx"
    },
    "password_encoding": false, 
    "analysis":[
            {"file":"C:\\ArcGISMonitorAddOns\\MissionCriticalAnalysis\\Test22.json"}
        ]
}

 

View solution in original post

1 Reply
IrisHadarStltd
Occasional Contributor

Hi , 

Try to use the AdminUtility.exe , for us it  functioned seamlessly.

this is the JSON we used.

{
    "server":{
        "url":"XXXX:30080",
        "username": "xxx",
        "password": "xxx"
    },
    "password_encoding": false, 
    "analysis":[
            {"file":"C:\\ArcGISMonitorAddOns\\MissionCriticalAnalysis\\Test22.json"}
        ]
}