Page 1 of 1

Warning message

PostPosted: Thu Dec 30, 2021 10:11 am
by jalves
I recently noted I'm getting a warning notice in my Indigo log:
Code: Select all
 uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.1.1, no os and / port found, tried ports:[u'443', u'8443']


I see this is just a warning notice, but I can't figure out what is causing it and how I can correct it. Any suggestions?

Re: Warning message

PostPosted: Thu Dec 30, 2021 3:37 pm
by kw123
Any upgrades on UniFi?


Sent from my iPhone using Tapatalk

Re: Warning message

PostPosted: Thu Dec 30, 2021 3:58 pm
by jalves
As a matter of fact, yes I did have an update to the device. Now that you mention it, I think that's when the message began.

Re: Warning message

PostPosted: Thu Dec 30, 2021 4:21 pm
by kw123
I still have not setup my indigo server after my move. Lamps and furniture is still a priority.

But next year definitely


Sent from my iPhone using Tapatalk

Re: Warning message

PostPosted: Thu Dec 30, 2021 4:47 pm
by jalves
I understand your priorities!

Re: Warning message

PostPosted: Thu Jan 06, 2022 5:30 am
by kw123
ok I am ready to look into it:

could you please switch on debug in config, save
# 6, 6.1 and 14
and restart plugin
and send (karlwachs at me com) the results (plugin.log in the logs directory in indigo) !! will contain user id password etc!!

Karl
it should look like.. and a lot more, I have xxx out the uid and passwords

Code: Select all
06 12:33:30 myLogSet setting parameters -- logFileActive= indigo; logFile= /Library/Application Support/Perceptive Automation/Indigo 2021.2/Logs/com.karlwachs.uniFiAP/plugin.log;  debugLevel= [u'ConnectionCMD', u'ConnectionRET']
06 12:33:30 ... debug enabled for GW-dev:F, AP-dev:F,F,F,F,F, SW-dev:F,F,F,F,F,F,F,F,F,F,F,F,F
06 12:33:31 getunifiOSAndPort existing  os>< .. ip#>192.168.1.xx< .. trying ports>[u'443', u'443', u'8443']<
06 12:33:31 getunifiOSAndPort trying port#:>/usr/bin/curl --insecure  -I -s -o /dev/null -w "%{http_code}" 'https://192.168.1.xx:443'< gives ret code:200
06 12:33:31 getunifiOSAndPort found  OS:unifi_os, port#:443 using ip#:192.168.1.xx
06 12:33:31 Connection: requests login url:https://192.168.1.xx:443/api/auth/login;
dataLogin:{"username": "xxx", "password": "xxx"};
loginHeaders:{'referer': '/login', 'Content-Type': 'application/json', 'Accept': 'application/json'};
06 12:33:32 Connection: requests login code:200; ret-Text:
 {
  "unique_id": "xxx",
  "first_name": "xxx",
....

Re: Warning message

PostPosted: Thu Jan 06, 2022 10:45 am
by jalves
Sent. Hope it helps.