Config issue

Posted on
Wed Jun 23, 2021 1:34 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Config issue

This is probably user-error, but I have my CloudKey Gen2 configured with local access. No 2FA. However, this stopped working with Indigo 2021.1

I am getting: miniUniFi Warning new device: Unable to determine controller type - using Unifi Standard controller

and the device shows: Login error

Also tested with a regular account, not local, also without 2FA and getting the same error.

Ideas?

JP

Posted on
Wed Jun 23, 2021 3:47 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

A cloud key is a standard controller, I believe. I think it's only the UDM that's not.

So you're probably getting that error for the same reason you're getting the login error. The username & password aren't working.

It's working fine on both of my systems running 2021.1, so something else broke on your system. Do you have SSL verification enabled? If so, try with it turned off.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 23, 2021 4:14 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Config issue

I have tested the local access userid and password several times. I am able to login from a browser with no problem and not getting 2F2 challenged. So, I am using the correct password. Just checked it again right now.

Also, SSL verification is disabled.

Could it be the CloudKey Gen2 appl version? Mine is 6.2.26.

JP


Sent from my iPad using Tapatalk Pro

Posted on
Wed Jun 23, 2021 4:35 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

The docker version of the controller I'm running is still at 6.0.41. I just haven't updated it recently.

In a Terminal window, enter this (with substitutions for your controller config) and report it back here:

Code: Select all
 curl -k -v https://IP-ADDRESS:PORT

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 23, 2021 4:51 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Config issue

Here you go:

Code: Select all
   Trying 192.168.X.X...
* TCP_NODELAY set
* Connected to 192.168.X.X (192.168.X.X) port 8443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: C=US; ST=New York; L=New York; O=Ubiquiti Inc.; OU=UniFi; CN=UniFi
*  start date: Jun  9 00:14:35 2021 GMT
*  expire date: Sep 12 00:14:35 2023 GMT
*  issuer: C=US; ST=New York; L=New York; O=Ubiquiti Inc.; OU=UniFi; CN=UniFi
*  SSL certificate verify result: self signed certificate (18), continuing anyway.
> GET / HTTP/1.1
> Host: 192.168.X.X:8443
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 404
< Content-Length: 0
< Date: Wed, 23 Jun 2021 22:50:10 GMT
<
* Connection #0 to host 192.168.2.9 left intact
* Closing connection 0

Posted on
Wed Jun 23, 2021 5:52 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

404 is page not found. What's the exact URL you're using in a browser to connect?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 23, 2021 6:01 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

I don't see how the Indigo version could have caused this. Are you sure it was working with Indigo 7.5 and the current CloudKey software? It looks more like that changed.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 23, 2021 6:32 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Config issue

FlyingDiver wrote:
404 is page not found. What's the exact URL you're using in a browser to connect?


I am using http://192.168.X.X and I can login:
Attachments
Screen Shot 2021-06-23 at 8.29.14 PM.png
Screen Shot 2021-06-23 at 8.29.14 PM.png (191.76 KiB) Viewed 2968 times

Posted on
Wed Jun 23, 2021 6:35 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Config issue

FlyingDiver wrote:
I don't see how the Indigo version could have caused this. Are you sure it was working with Indigo 7.5 and the current CloudKey software? It looks more like that changed.


Three things changed within a few days of each other, that I noticed as Unifi is set to update automatically:

1. upgrade to the controller software
2. upgrade to the CloudKey firmware
3. Indigo upgrade

JP

Posted on
Wed Jun 23, 2021 6:37 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

You're entering http, not https? So there's a redirect going on already.

Also, I've never seen that UI before. But then, I don't have a cloud key. What's the link URL for that Network icon?

I just saw your second post. This is clearly a change to the UBNT software, somehow. I'm not sure how to address this.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 23, 2021 6:45 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Config issue

FlyingDiver wrote:
You're entering http, not https? So there's a redirect going on already.

Also, I've never seen that UI before. But then, I don't have a cloud key. What's the link URL for that Network icon?

I just saw your second post. This is clearly a change to the UBNT software, somehow. I'm not sure how to address this.


Correct, as I don't have an SSL certificate configured. Is all internal to my home so not really needed.

The URL if the network Item is:

192.168.X.X/network/site/default/dashboard (default)

Also, I have my old CloudKey, before the upgrade to Gen2. If you msg me an address, I will send it your way. I don't need it.

JP

Posted on
Wed Jun 23, 2021 6:51 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

roquej wrote:

Correct, as I don't have an SSL certificate configured. Is all internal to my home so not really needed.


I'm pretty sure it's redirecting to https anyway. Do you have a lock icon in the browser address field? When I try to connect with http it tells me no. But that might be a specific setting in the UI.

roquej wrote:
The URL if the network Item is:

192.168.X.X/network/site/default/dashboard (default)

Also, I have my old CloudKey, before the upgrade to Gen2. If you msg me an address, I will send it your way. I don't need it.


Before you do that, can you hook it up and try to connect to it? What URLs is it using?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 23, 2021 7:30 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Config issue

I am glad I checked, can't get my old Gen1 CloudKey to work. Sorry.

However, if upgraded to the latest version, you will see the same screen. Gen1 and Gen2 don't offer any discerning difference from the OS point of view. Gen2 just has an internal battery and a faster processor.

The URL for the devices page is: https://192.168.2.9/network/site/defaul ... list/1/100, when the last number is the number of devices to list. I have it set at 100.

Also, because the SSL certificate isn't installed, the https crossed in by browser.

JP

Posted on
Wed Jun 23, 2021 7:50 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Config issue

I was able to reset the CloudKey. Is working fine again. Here are the screens.

https://192.168.Y.Y

Clicking on manage, you get

https://192.168.Y.Y:8443/manage/site/default/dashboard

JP
Attachments
Screen Shot 2021-06-23 at 9.49.12 PM.png
Screen Shot 2021-06-23 at 9.49.12 PM.png (424.4 KiB) Viewed 2947 times
Screen Shot 2021-06-23 at 9.41.01 PM.png
Screen Shot 2021-06-23 at 9.41.01 PM.png (447.87 KiB) Viewed 2947 times

Posted on
Wed Jun 23, 2021 7:55 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

That screen looks like the standard controller that you get with the stand-alone software. Obviously they made some major change to the UI and the same URLs aren't working anymore in the new version. So there's a couple problems. How to identify the version that's currently running, does login work the same, and are the URLs to fetch the data the same as one of the existing methods.

The UBNT Wiki that this code is based on doesn't mention the new UI at all.

It might be worth taking that cloud key if it can be upgraded to the new software version for testing. I'll PM you an address.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 1 guest