Error on 7.40.380 and Indigo 2022.1

Posted on
Tue Jun 28, 2022 1:13 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Error on 7.40.380 and Indigo 2022.1

Hi Karl,

I used to have this plugin running, but I am setting my network back up after being out of the house for 1.5 years and using a gen 2 cloud key, and I cannot seem to get the plug-in to discover devices. I am getting one error but I have no idea if it has anything to do with anything:
Code: Select all
 Stopped plugin "uniFiAP 7.40.380"
   Warning                         plugin "uniFiAP 7.40.380" may not be compatible with next Indigo release without an update
   Starting plugin "uniFiAP 7.40.380" (pid 97404)
   uniFiAP                         initializing  ...
   uniFiAP                         path To files:          =================
   uniFiAP                         detailed logging        /Library/Application Support/Perceptive Automation/Indigo 2022.1/Logs/com.karlwachs.uniFiAP/plugin.log
   uniFiAP                         testing logging levels, for info only:
   uniFiAP                         logger  enabled for     INFO           ==> TEST ONLY
   uniFiAP Warning                 logger  enabled for     WARNING        ==> TEST ONLY
   uniFiAP Error                   logger  enabled for     ERROR          ==> TEST ONLY
   uniFiAP Error                   logger  enabled for     CRITICAL       ==> TEST ONLY
   uniFiAP                         using '/usr/local/bin/python' for utily programs
   Started plugin "uniFiAP 7.40.380"
   uniFiAP                         debug settings :[]
   uniFiAP Error                   decideMyLog in Line '12911' has error='[Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.uniFiAP/suspended''


everything is on the latest firmware
I have the correct IP address for my cloud key
I am using curl and ensured the path is correct
I use my unify web credentials for CONTROLLER/UDM (not it uses root for ssh, but the plugin did not prompt me for that)
I am using the same credentials as above for ssh unix UserID AP, SW, GW
I am using default ports

The entry from my USG has the correct IP address
Enabling my action points makes no difference

Any direction you can point me in to help would be greatly appreciated!

Edit:
I am also getting these messages:
Code: Select all
testServerIf ssh connection to server failed, cmd: /usr/bin/expect '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'MY_USERNAME' 'MY_PASSWORD' 192.168.1.254
   uniFiAP Error                   getMessages: (1 - test connect)  error for APtail, ip#: 192.168.1.254, prompt:'9# '; wrong ip/ password or system down or ssh timed out or ..?


Posted on
Wed Jun 29, 2022 8:18 am
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: Error on 7.40.380 and Indigo 2022.1

"decideMyLog in Line '12911' has error='[Errno 2] No such file or directory:" is not really a problem. the file does not exist. I will suppress the error message

"getMessages: (1 - test connect) error for APtail, ip#: 192.168.1.254, prompt:'9# '; wrong ip/ password or system do .."

could you open a terminal - on the server- and paste:
Code: Select all
/usr/bin/expect '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'MY_USERNAME' 'MY_PASSWORD' 192.168.1.254
or
Code: Select all
cd '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/'
/usr/bin/expect test.exp 'MY_USERNAME' 'MY_PASSWORD' 192.168.1.254
with proper userid and password

could you post the output?

Karl

Posted on
Wed Jun 29, 2022 4:47 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Error on 7.40.380 and Indigo 2022.1

Okay, I realized three of my AP's aren't even plugged in, but I get similar probelms with them turned off in the config:
Code: Select all
   Started plugin "uniFiAP 7.40.380"
   uniFiAP                         debug settings :[u'Logic', u'Log', u'Dict', u'LogDetails', u'DictDetails', u'ConnectionCMD', u'ConnectionRET', u'Expect', u'ExpectRET']
   uniFiAP Error                   decideMyLog in Line '12911' has error='[Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.uniFiAP/suspended''
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP                         initialized ... looping

Jun 29, 2022 at 6:39:06 PM
   BlueIris Plugin                 No result from status enquiry. If repeated please check Login Server Details in Plugin Config
   uniFiAP Error                   testServerIf ssh connection to server failed, cmd: /usr/bin/expect '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'USER' 'PASSWORD' 192.168.1.19
   uniFiAP Error                   getMessages: (1 - test connect)  error for APtail, ip#: 192.168.1.19, prompt:'3# '; wrong ip/ password or system down or ssh timed out or ..?
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   testServerIf ssh connection to server failed, cmd: /usr/bin/expect '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'USER' 'PWD' 192.168.1.19
   uniFiAP Error                   getMessages: (1 - test connect)  error for APdict, ip#: 192.168.1.19, prompt:'3# '; wrong ip/ password or system down or ssh timed out or ..?


So trying /usr/bin/expect on an AP I know is active (192.168.1.145), i get this
Code: Select all
BusyBox v1.25.1 () built-in shell (ash)


  ___ ___      .__________.__
 |   |   |____ |__\_  ____/__|
 |   |   /    \|  ||  __) |  |   (c) 2010-2022
 |   |  |   |  \  ||  \   |  |   Ubiquiti Inc.
 |______|___|  /__||__/   |__|
            |_/                  https://www.ui.com

      Welcome to UniFi UAP-AC-Lite!

********************************* NOTICE **********************************
* By logging in to, accessing, or using any Ubiquiti product, you are     *
* signifying that you have read our Terms of Service (ToS) and End User   *
* License Agreement (EULA), understand their terms, and agree to be       *
* fully bound to them. The use of SSH (Secure Shell) can potentially      *
* harm Ubiquiti devices and result in lost access to them and their data. *
* By proceeding, you acknowledge that the use of SSH to modify device(s)  *
* outside of their normal operational scope, or in any manner             *
* inconsistent with the ToS or EULA, will permanently and irrevocably     *
* void any applicable warranty.                                           *
***************************************************************************

basementAP-BZ.6.0.19#


All seems good so far.

After cleaning up some inactive devices, I get this now, using do not auto-detect port and entering port 443:
Code: Select all
   uniFiAP Error                   decideMyLog in Line '12911' has error='[Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.uniFiAP/suspended''
   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.1.105:443/api/auth/login
gives, ok not found or status_code:499 not in [200]
  error: {
  "data": {
    "required": "2fa",
    "authenticators": [
      {
        "blocked_reason": null,
        "created": "2021-04-22T03:00:39.790622Z",
        "email": "ds············ey@protonmail.com",
        "id": "98a88e05-dada-4bfd-9c22-2ac671dd514e",
        "last_success": null,
        "stat

   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.1.105:443/api/auth/login
gives, ok not found or status_code:499 not in [200]
  error: {
  "data": {
    "required": "2fa",
    "authenticators": [
      {
        "blocked_reason": null,
        "created": "2021-04-22T03:00:39.790622Z",
        "email": "ds············ey@protonmail.com",
        "id": "98a88e05-dada-4bfd-9c22-2ac671dd514e",
        "last_success": null,
        "stat

   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.1.105:443/api/auth/login
gives, ok not found or status_code:499 not in [200]
  error: {
  "data": {
    "required": "2fa",
    "authenticators": [
      {
        "blocked_reason": null,
        "created": "2021-04-22T03:00:39.790622Z",
        "email": "ds············ey@protonmail.com",
        "id": "98a88e05-dada-4bfd-9c22-2ac671dd514e",
        "last_success": null,
        "stat

   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.1.105:443/api/auth/login
gives, ok not found or status_code:499 not in [200]
  error: {
  "data": {
    "required": "2fa",
    "authenticators": [
      {
        "blocked_reason": null,
        "created": "2021-04-22T03:00:39.790622Z",
        "email": "ds············ey@protonmail.com",
        "id": "98a88e05-dada-4bfd-9c22-2ac671dd514e",
        "last_success": null,
        "stat

   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.1.105:443/api/auth/login
gives, ok not found or status_code:499 not in [200]
  error: {
  "data": {
    "required": "2fa",
    "authenticators": [
      {
        "blocked_reason": null,
        "created": "2021-04-22T03:00:39.790622Z",
        "email": "ds············ey@protonmail.com",
        "id": "98a88e05-dada-4bfd-9c22-2ac671dd514e",
        "last_success": null,
        "stat

   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.1.105:443/api/auth/login
gives, ok not found or status_code:499 not in [200]
  error: {
  "data": {
    "required": "2fa",
    "authenticators": [
      {
        "blocked_reason": null,
        "created": "2021-04-22T03:00:39.790622Z",
        "email": "ds············ey@protonmail.com",
        "id": "98a88e05-dada-4bfd-9c22-2ac671dd514e",
        "last_success": null,
        "stat

   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.1.105:443/api/auth/login
gives, ok not found or status_code:499 not in [200]
  error: {
  "data": {
    "required": "2fa",
    "authenticators": [
      {
        "blocked_reason": null,
        "created": "2021-04-22T03:00:39.790622Z",
        "email": "ds············ey@protonmail.com",
        "id": "98a88e05-dada-4bfd-9c22-2ac671dd514e",
        "last_success": null,
        "stat

   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.1.105:443/api/auth/login
gives, ok not found or status_code:499 not in [200]
  error: {
  "data": {
    "required": "2fa",
    "authenticators": [
      {
        "blocked_reason": null,
        "created": "2021-04-22T03:00:39.790622Z",
        "email": "ds············ey@protonmail.com",
        "id": "98a88e05-dada-4bfd-9c22-2ac671dd514e",
        "last_success": null,
        "stat

   uniFiAP                         initialized ... looping


Perhaps relevant: by changing the port to 8443, I instead get this:

Code: Select all
 uniFiAP Error                   decideMyLog in Line '12911' has error='[Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.uniFiAP/suspended''
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP Error                   No JSON object could be decoded; line#,Module,Statement:(382, 'raw_decode', 'raise ValueError("No JSON object could be decoded")')
   uniFiAP Error                   UNIFI executeCMDOnController error no json object: (wrong UID/passwd, ip number?192.168.1.105) ...>><<
   uniFiAP                         initialized ... looping


Posted on
Thu Jun 30, 2022 7:56 am
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: Error on 7.40.380 and Indigo 2022.1

1. msg:
uniFiAP Error UNIFI executeCMDOnController login url:https://192.168.1.105:443/api/auth/login
gives, ok not found or status_code:499 not in [200]
error: {
"data": {
>>>>>"required": "2fa",<<<<<

===> 2 factor authentication is not supported (yet) <====

2. and if the APs are not plugged in, it should not work ;)


so ssh to the devices works, that works w/o 2FA

http to the controller does not work with 2FA

You can run the plugin w/o the controller part, then you "only" get the AP and switch infos, likely not the DHCP info. depending on your gateway / controller setup
Separate gateway/router and controller should work fine, but not the dream-machine I believe, have to check


Karl

ps just checked:
with a dedicated router eg USG (pro) ssh info delivers
uptime and ips Numbers etc for all clients. so that should work fine

http info missing would be detailed info of the controller device. The plugin can use the controller client info to double check the info demo the APs and switches and Router

Posted on
Thu Jun 30, 2022 9:13 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Error on 7.40.380 and Indigo 2022.1

Karl, it is incredibly life-affirming that i suspected the web address somehow invoked 2FA in a way that ssh did not!

Thank you!

I am getting no error messages, and I am not yet aware of any limitations introduced by using the switches, gateway, and action points without the Cloud Key Controller.

I shall keep yuou posted, and thank you again!

Edit: For perpetuity, I disabled the controller in the Plugin-> Configure menu

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests