Page 1 of 2

Config issue

PostPosted: Wed Jun 23, 2021 1:34 pm
by roquej
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

Re: Config issue

PostPosted: Wed Jun 23, 2021 3:47 pm
by FlyingDiver
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.

Config issue

PostPosted: Wed Jun 23, 2021 4:14 pm
by roquej
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

Re: Config issue

PostPosted: Wed Jun 23, 2021 4:35 pm
by FlyingDiver
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

Re: Config issue

PostPosted: Wed Jun 23, 2021 4:51 pm
by roquej
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

Re: Config issue

PostPosted: Wed Jun 23, 2021 5:52 pm
by FlyingDiver
404 is page not found. What's the exact URL you're using in a browser to connect?

Re: Config issue

PostPosted: Wed Jun 23, 2021 6:01 pm
by FlyingDiver
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.

Re: Config issue

PostPosted: Wed Jun 23, 2021 6:32 pm
by roquej
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:

Re: Config issue

PostPosted: Wed Jun 23, 2021 6:35 pm
by roquej
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

Re: Config issue

PostPosted: Wed Jun 23, 2021 6:37 pm
by FlyingDiver
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.

Re: Config issue

PostPosted: Wed Jun 23, 2021 6:45 pm
by roquej
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

Re: Config issue

PostPosted: Wed Jun 23, 2021 6:51 pm
by FlyingDiver
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?

Re: Config issue

PostPosted: Wed Jun 23, 2021 7:30 pm
by roquej
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

Re: Config issue

PostPosted: Wed Jun 23, 2021 7:50 pm
by roquej
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

Re: Config issue

PostPosted: Wed Jun 23, 2021 7:55 pm
by FlyingDiver
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.