ArcSOC Optimizer (Sept 20th update)
ArcGIS Monitor (10.6.1)
I made an Optimizer task using the same URL's and credentials as an existing ArcGIS counter.
Hitting "Test" results in:
Attempts to fix:
a) I searched the filesystem for ArcSOCOptimizer.py but did not find it.
b) python was not installed, so I installed version 2.7.15 64 bit, ensured %path% included python.exe and rebooted.
c) I ran a copy of C:\ArcGIS Monitor\Administrator\resources\app\bin\ArcSOC Optimizer\test.bat, modifying the parameters to match our credentials and urls. Running the script from cmd.exe yields an extra error: "Page not found!", after which the above quoted error occurs: the JSON object must be str, not 'NoneType'
d) I tried using a copy of the 1 day config instead of the 30 days config.
The above error continues to happen.
What do you suggest?
Thanks!
-Pete
Solved! Go to Solution.
It appears you might be providing incorrect credentials. Please follow documentation section 4. You'd need to provide both ArcGIS Monitor Site and ArcGIS Server credentials.
It appears you might be providing incorrect credentials. Please follow documentation section 4. You'd need to provide both ArcGIS Monitor Site and ArcGIS Server credentials.
Hello Andrew,
I'm trying to setup a task with this add-on (Feb 11, 2019 update) in Monitor 10.6.1 and I'm getting same error:
Traceback (most recent call last): File "ArcSOCOptimizer.py", line 11, in main File "Modules\Outputs\ReportBuilder.py", line 15, in __init__ File "Modules\Outputs\OutputBuilder.py", line 11, in __init__ File "Modules\Inputs\InputBuilder.py", line 20, in __init__ File "Modules\SMCounters\View.py", line 4, in __init__ File "Modules\SMCounters\View.py", line 10, in __GetArcGISView File "Modules\pysm\SmClient.py", line 94, in __view_find File "Modules\pysm\base.py", line 100, in find_views TypeError: Can't convert 'NoneType' object to str implicitly Traceback (most recent call last): File "ArcSOCOptimizer.py", line 11, in main File "Modules\Outputs\ReportBuilder.py", line 15, in __init__ File "Modules\Outputs\OutputBuilder.py", line 11, in __init__ File "Modules\Inputs\InputBuilder.py", line 20, in __init__ File "Modules\SMCounters\View.py", line 4, in __init__ File "Modules\SMCounters\View.py", line 10, in __GetArcGISView File "Modules\pysm\SmClient.py", line 94, in __view_find File "Modules\pysm\base.py", line 100, in find_views TypeError: Can't convert 'NoneType' object to str implicitly
- I made sure I was using correct credentials; I tried with "Site" user and also a new user created with Admin privileges. - - ArcGIS (global) user is also correct and it works in other 'ArcGIS' counters.
- User running Monitor service is Local System, and all Enterprise is deployed in same machine.
Any other idea of what can be causing this issue?
Thanks,
Jose Miguel
Hi Jose,
This error is expected when there's not enough data yet for the ArcSOC optimizer to process. When using the config1day.json as your config file, there should be at least 1 full day of data already collected for the target ArcGIS site in ArcGIS Monitor. Try the task again tomorrow.
Best Regards,
John
Andrew,
That must have been it, it works now! Thanks.
Just to play with it, I tried changing the credentials to use an incorrect password, and the same error resulted.
Then I tried changing the permissions of the user to "None" and a different error occurred:
Then I re-granted Admin permissions and re-entered the password and it works!
Much appreciated ^^
-Pete
Hi Pete - did you do these actions on the Site administrator login or the ArcGIS Server administrator login? Where were you granting admin privileges? I only see a need to grant permissions to users of ArcGIS Monitor not accounts for counters and extensions. I.e., I am getting the same error and looking to replicate your steps. Which account and where did you 're-grant admin permissions'?
Thank you.
Hi Ashley,
I was referring to the Monitor user.
-Pete