Onboarding E410 AP to cnMaestro onPremise

Hi! I am relatively new in Cambium Networks, so forgive me if I ask stupid questions.
I am trying to onboard E410 AP to cnMaestro3 on Premise, but I am having problems connecting.

I have cnPilot e410 AP (latest firmware) on 192.168.100.0/24 network, and cnMaestro 3(latest version) on premise server on 192.168.200.10/24 network.
AP can ping the server and vice versa, but can’t connect to cnMaestro server.
This is what i get in logs:

021-08-24 15:30:29 8603 device-agent.c:2421:Previous state 0 new state 1
2021-08-24 15:30:29 8603 device-agent.c:2491:da_enter_state:DA_STATE_DISCOVERY
2021-08-24 15:31:46 8603 log.c:207:start_cns_logging: Send log history (10 lines)
2021-08-24 15:30:29 8603 wifi.c:424:platform_get_static_url: cns_url [ 192.168.200.10]
2021-08-24 15:30:29 8603 discover-cns.c:105:cnMaestro url =  192.168.200.10
2021-08-24 15:30:29 8603 http_parser.c:2432:get_parsed_url_details: len=5 offset=0
2021-08-24 15:30:29 8603 http_parser.c:2433:url= [https:// 192.168.200.10]
2021-08-24 15:30:29 8603 http_parser.c:2441:get_parsed_url_details: protocol=[https]
2021-08-24 15:30:29 8603 discover-cns.c:133:cnMaestro host  192.168.200.10 port 443
2021-08-24 15:30:29 8603 discover-cns.c:167:discover_cns: method 0 cns_url [ 192.168.200.10]
2021-08-24 15:30:29 8603 https-client.c:144:dev_type [Sage] sw_vers [4.2.1-r12] user_agent [cnDA/1.0 (Sage/4.2.1-r12; DA/3.36)]
2021-08-24 15:30:29 8603 https-client.c:147:build_http_get_request: cns_url [ 192.168.200.10]
2021-08-24 15:30:29 8603 https-client.c:175:build_http_get_request: No cambium_id available
2021-08-24 15:31:46 8603 log.c:207:start_cns_logging: Send log history (10 lines)
2021-08-24 15:30:29 8603 wifi.c:1879:platform_get_deviceId_cookie: ENTRY
2021-08-24 15:30:29 8603 wifi.c:1932:platform_set_cns_connection_state: New Connection_state Connecting(4)
2021-08-24 15:30:29 8603 wifi.c:1967:platform_set_cns_connection_state: idle_timeout=312
2021-08-24 15:30:29 8603 https-client.c:680:Calling OpenConnection
2021-08-24 15:30:29 8603 https-client.c:269:OpenConnection: hostname [ 192.168.200.10] port [443/443]
2021-08-24 15:30:29 8603 utils.c:82:hostname is an IPv4 address
2021-08-24 15:30:29 8603 https-client.c:296:Resolving URL  192.168.200.10
2021-08-24 15:30:29 8603 https-client.c:301:Resolved  192.168.200.10 to IPv4 address
2021-08-24 15:30:29 8603 https-client.c:308:Trying connection with ip [ 192.168.200.10], ai_next (nil)
2021-08-24 15:30:29 8603 https-client.c:324:connect() Operation now in progress
2021-08-24 15:31:46 8603 log.c:207:start_cns_logging: Send log history (10 lines)
2021-08-24 15:30:29 8603 https-client.c:346:connect() success
2021-08-24 15:30:29 8603 https-client.c:349:Connected socket 0 IP [192.168.103.248]
2021-08-24 15:30:29 8603 https-client.c:352:Device IP 192.168.103.248
2021-08-24 15:30:29 8603 https-client.c:686:TCP connection is successful
2021-08-24 15:30:29 8603 https-client.c:690:Create SSL context, ca certs path is /etc/ssl/certs/
2021-08-24 15:30:29 8603 https-client.c:711:Openssl connection to  192.168.200.10 : 443

2021-08-24 15:30:29 8603 https-client.c:733:SSL_ERROR_WANT_READ try again
2021-08-24 15:30:29 8603 https-client.c:733:SSL_ERROR_WANT_READ try again
2021-08-24 15:30:29 8603 common.c:283:Non-cambium/cloud cnMaestro URL [ 192.168.200.10], disabling Server Cert check
2021-08-24 15:30:29 8603 device-agent.c:1953:Allowing all certificates
2021-08-24 15:31:46 8603 log.c:207:start_cns_logging: Send log history (10 lines)
2021-08-24 15:30:30 8603 https-client.c:733:SSL_ERROR_WANT_READ try again
2021-08-24 15:30:30 8603 https-client.c:724:SSL_connect successful
2021-08-24 15:30:30 8603 https-client.c:763:Server certificate is verified and it is valid
2021-08-24 15:30:30 8603 https-client.c:777:SSL write 165 bytes
2021-08-24 15:30:30 8603 https-client.c:804:Wait for headers from router,max_tries =0
2021-08-24 15:30:30 8603 https-client.c:808:Received 320 bytes
2021-08-24 15:30:30 8603 http-header.c:36:Found end of http headers
2021-08-24 15:30:30 8603 http-header.c:214:HTTP content-length is 158

2021-08-24 15:30:30 8603 https-client.c:635:Error response: [{"message":"Page Not Found","_links":{"self":{"href":"/admin/cns-onboarding/device?mac=b2021-08-24 15:30:30 8603 https-client.c:871:get_from_cnsrouter: Received 404 from cnRouter ret=0
2021-08-24 15:31:46 8603 log.c:207:start_cns_logging: Send log history (10 lines)
2021-08-24 15:30:30 8603 https-client.c:890:get_from_cnsrouter: max_tries 1, ret 0 , error 1
2021-08-24 15:30:30 8603 discover-cns.c:53:Not able to find cnMaestro, Try Discovering again
2021-08-24 15:30:30 8603 discover-cns.c:147:Slow rediscover: idle_timeout 340
2021-08-24 15:30:30 8603 discover-cns.c:256:Discovery of cnMaestro Failed
2021-08-24 15:30:30 8603 device-agent.c:2529:Unable to discover cnMaestro URL (re-discover in 340 seconds)
2021-08-24 15:30:30 8603 device-agent.c:2421:Previous state 1 new state 0
2021-08-24 15:30:30 8603 device-agent.c:2440:da_enter_state:DA_STATE_IDLE
2021-08-24 15:30:30 8603 device-agent.c:2459:started discover timer, idle_timeout = 340
2021-08-24 15:30:30 8603 device-agent.c:2461:Attempting (re)connection in 5 minutes
2021-08-24 15:30:30 8603 wifi.c:1932:platform_set_cns_connection_state: New Connection_state Connecting(4)
2021-08-24 15:31:46 8603 log.c:207:start_cns_logging: Send log history (10 lines)
2021-08-24 15:30:30 8603 wifi.c:1967:platform_set_cns_connection_state: idle_timeout=340

Any help is appreciated.

Welcome to the Cambium community!

It’s probably not relevant, but there appears to be an extra space before the IP address on those log lines. Can you find where that space is being introduced and remove it, and see if that makes a difference?

If you visit https://192.168.200.10 in a web browser while on that same network, do you see cnMaestro?

I think this is just bad formatting, there is no space when i check logs on AP.

Yes, when I open https://192.168.200.10 I see cnMaestro, no matter what network I am on (.200 or .100).
Ofcourse, since I don’t have https certificates I do get “Your connection is not private” error before I can login, but everything works ok after i bypass it.
I tried with both enabled and disabled “Validate Server Certificate” option, but cnMaestro Connection Status keeps showing cnMaestro Connection Status “Connecting to 192.168.250.160 in 5 minutes…”

Da li je url cnmaestra na APu unesen rucno ili preko dhcpa? Probaj unjeti rucno mac adresu na cnmaestro i kliknuti “approve” pa pricekati koju minutu

I am gonna answer in english just so someone else can use this so fix same problem…
cnMaestro URL is inserted manually in URL field, not using DHCP.
I did try to enter MAC address in cnMaestro, bul all i get is Status: Waiting for Device

I think these log lines mean that the device is successfully contacting the cnMaestro front-end web server, but the front end is failing to pass the request to the appropriate back-end handler. This may mean that the request is malformed, or that cnMaestro is misconfigured somehow.

You should raise a support ticket so that someone who knows what they are talking about (not me) can help you.