How to connect a Unifi Controller through WAN ?
I've got multiple site, each with a cloud key controller.
I've setup a spotipo server on a hosted server, it' up and running everything is fine.
But I cant add controllers to spotipo each time I get the error about login/password incorrect.
Anybody got a hint please ?
@Nicolas-Broutin Sounds strange, can you check what errors are coming in /usr/share/nginx/spotipo/logs/spotipo.log when you try to save
I managed to get rid of the login incorrect error.
But I'm stuck on a timeout when trying to add my controller.
Here is the log :
DEBUG:unifispot.modules.unifi.controller:Controller for https://188.8.131.52:8443/
DEBUG:unifispot.modules.unifi.controller:No cookies found for controller https://184.108.40.206:8443/ going to try login
DEBUG:unifispot.modules.unifi.controller:login() as spotipo
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): 220.127.116.11
DEBUG:urllib3.util.retry:Incremented Retry for (url='/api/login'): Retry(total=3, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4132b84e50>: Failed to establish a new connection: [Errno 110] Connection timed out',)': /api/login
I've tried to open port on my unifi firewall but still hang.
I'm looking after the firewall settings. It's a Unifi also.
I have opened ports and made a nat on firewall but still got this error on logs :
ConnectionError: HTTPSConnectionPool(host='18.104.22.168', port=8443): Max retries exceeded with url: /api/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4132b62e90>: Failed to establish a new connection: [Errno 113] No route to host',))
The UI shows wrong login/password, but I'm sure about the credentials I've entered
Are you able to open the controller UI on your browser ?
Looks like spotipo server is not able to reach 22.214.171.124
Try wget https://126.96.36.199:8443/ on spotipo server console and check if it can download the page