Cannot onboard XV2-2 to cloud

hi,
Please can anybody support me about cnMaestro cloud?First i have add by XV2-2 though Serial, the cloud recognized devices but they show in status "waiting for device’ and still nothig happens. I have check the conectivity in the XV2 AP and it ping ok , trace route ok to cloud.cambiumnetworks.com. and Here the logs. Plz help me!

ogs

2021-12-23 03:05:40 21344 wifi.c:1429:fcgi_accept_cb: Accepted# 1 fd 0
2021-12-23 03:05:40 21344 wifi.c:1357:Got fcgi request on fd 0
2021-12-23 03:05:40 21344 wifi.c:1394:fcgi_recv_cb: MSG_EXEC_STOP received on fd 0
2021-12-23 03:10:39 21344 https-client.c:699:Calling OpenConnection
2021-12-23 03:10:39 21344 https-client.c:278:OpenConnection: hostname [cloud.cambiumnetworks.com] port [443/443]
2021-12-23 03:10:39 21344 https-client.c:305:Resolving URL cloud.cambiumnetworks.com
2021-12-23 03:10:39 21344 https-client.c:310:Resolved cloud.cambiumnetworks.com to IPv4 address
2021-12-23 03:10:39 21344 https-client.c:317:Trying connection with ip [34.193.171.229], ai_next 0xe01410
2021-12-23 03:10:39 21344 https-client.c:333:connect() Operation now in progress
2021-12-23 03:10:39 21344 https-client.c:355:connect() success
2021-12-23 03:10:39 21344 https-client.c:358:Connected socket 0 IP [192.168.0.20]
2021-12-23 03:10:39 21344 https-client.c:361:Device IP 192.168.0.20
2021-12-23 03:10:39 21344 https-client.c:705:TCP connection is successful

2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
2021-12-23 03:10:39 21344 https-client.c:709:Create SSL context, ca certs path is /etc/ssl/certs/
2021-12-23 03:10:39 21344 https-client.c:730:Openssl connection to cloud.cambiumnetworks.com : 443

2021-12-23 03:10:39 21344 https-client.c:752:SSL_ERROR_WANT_READ try again
2021-12-23 03:10:39 21344 https-client.c:752:SSL_ERROR_WANT_READ try again
2021-12-23 03:10:39 21344 common.c:292:Server cert validation is enabled
2021-12-23 03:10:39 21344 device-agent.c:2026:https server ‘cloud.cambiumnetworks.com’ has this certificate, which looks good to me:
/CN=*.cloud.camb2021-12-23 03:10:39 21344 https-client.c:752:SSL_ERROR_WANT_READ try again
2021-12-23 03:10:40 21344 https-client.c:743:SSL_connect successful
2021-12-23 03:10:40 21344 https-client.c:782:Server certificate is verified and it is valid
2021-12-23 03:10:40 21344 https-client.c:796:SSL write 290 bytes

2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
2021-12-23 03:10:41 21344 https-client.c:823:Wait for headers from router,max_tries =0
2021-12-23 03:10:41 21344 https-client.c:827:Received 571 bytes
2021-12-23 03:10:41 21344 http-header.c:36:Found end of http headers
2021-12-23 03:10:41 21344 http-header.c:78:Found http 302 status code
2021-12-23 03:10:41 21344 http-header.c:117:Found Location Header
2021-12-23 03:10:41 21344 http-header.c:214:HTTP content-length is 26

2021-12-23 03:10:41 21344 discover-cns.c:38:cns cloud url = https://ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com:443/device, cloud len 65
2021-12-23 03:10:41 21344 wifi.c:1903:platform_save_deviceId_cookie: ENTRY
2021-12-23 03:10:41 21344 discover-cns.c:255:Discovered method is 0 cns_url [https://ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com:443/device]
2021-12-23 03:10:41 21344 http_parser.c:2432:get_parsed_url_details: len=5 offset=0

2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
2021-12-23 03:10:41 21344 http_parser.c:2433:url= [https://ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com:443/device]
2021-12-23 03:10:41 21344 http_parser.c:2441:get_parsed_url_details: protocol=[https]
2021-12-23 03:10:42 21344 utils.c:125:CheckConnection: ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com is available
2021-12-23 03:10:42 21344 utils.c:138:Resolved ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com to IPv4 address
2021-12-23 03:10:42 21344 utils.c:146:Checking TCP connection with before websocket session [54.64.111.210], ai_next 0xe03480
2021-12-23 03:10:42 21344 utils.c:169:connect() Operation now in progress
2021-12-23 03:10:42 21344 utils.c:190:connect success and updating dns cache for websocket module
2021-12-23 03:10:42 21344 device-agent.c:2533:Make Websocket connection to ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com : 443 : path = /device
2021-12-23 03:10:42 21344 device-agent.c:2398:Previous state 1 new state 2
2021-12-23 03:10:42 21344 device-agent.c:2564:da_enter_state:DA_STATE_CONNEC
2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
2021-12-23 03:10:42 21344 device-agent.c:2566:call libwebsocket_create_context
2021-12-23 03:10:42 21344 device-agent.c:2218:Add FD to the pollfd 0 events 1
2021-12-23 03:10:42 21344 device-agent.c:2626:Device-Agent Waiting for connect… to Cambium Cloud:[ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com] Dec 23 03:10:40: uscd : Successfully sent ARP Reply for ip=192.168.0.1 mac=00-1D-AA-95-99-FC from ip=192.168.0.101 mac=28-C6-3F-81-23-
2021-12-23 03:10:42 21344 wifi.c:1429:fcgi_accept_cb: Accepted# 0 fd 5
2021-12-23 03:10:42 21344 wifi.c:1357:Got fcgi request on fd 5
2021-12-23 03:10:42 21344 wifi.c:1394:fcgi_recv_cb: MSG_EXEC_STOP received on fd 5
2021-12-23 03:10:42 21344 wifi.c:1461:Failed to send message
2021-12-23 03:10:42 21344 device-agent.c:656:Not connected to Cambium Cloud, cannot send message
Dec 23 03:10:42: scmd : Exec recv failed to load json closing 0 (actions.c:102)

2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
2021-12-23 03:10:42 21344 common.c:292:Server cert validation is enabled
2021-12-23 03:10:42 21344 device-agent.c:2026:https server ‘ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com’ has this certificate, which looks good toDec 23 03:10:47: xrp : ============================================================== (xrpev.c:128)
Dec 23 03:10:47: xrp : XRP: timer event occurred (xrpev.c:129)
2021-12-23 03:11:21 21344 device-agent.c:2286:aggr_mode_timeout_cb: Aggressive mode ended
2021-12-23 03:11:35 21344 device-agent.c:385:da_alive_cb
Dec 23 03:11:40: uscd : Successfully sent ARP Reply for ip=192.168.0.1 mac=00-1D-AA-95-99-FC from ip=192.168.0.101 mac=28-C6-3F-81-23-
2021-12-23 03:11:43 21344 device-agent.c:2276:lws_connect_timeout_cb: Unable to connect websocket to Cambium Cloud, trying again
2021-12-23 03:11:43 21344 device-agent.c:2277:lws_connect_timeout_cb: context=0xe2a4c8
2021-12-23 03:11:43 21344 device-agent.c:1944:wait_for_reconnect: ENTRY

2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
2021-12-23 03:11:43 21344 device-agent.c:1950:max_reconnect_attempts 0, reconnect_timeout 77
Dec 23 03:11:43: wmd : hostapd: wlan0: ap_handle_timer: 28:c6:3f:81:23:51 flags=0x8aa3 timeout_next=0 (wmd_hostapd.c:75)
Dec 23 03:11:43: wmd : hostapd: Check inactivity: Could not get station info from kernel driver for 28:c6:3f:81:23:51 (wmd_hostapd.c:
Dec 23 03:11:43: wmd : hostapd: ap_handle_timer: register ap_handle_timer timeout for 28:c6:3f:81:23:51 (309 seconds) (wmd_hostapd.c:
Dec 23 03:11:47: xrp : ============================================================== (xrpev.c:128)
Dec 23 03:11:47: xrp : XRP: timer event occurred (xrpev.c:129)
Dec 23 03:11:47: xrp : publishing XRP_CAOS_REQ_IFACE_ADDRS_PUBSUB_MSG_TYPE (xrpev.c:443)
Dec 23 03:11:47: xrp : -------------------------------------------------------------- (xrpev.c:569)
Dec 23 03:11:47: xrp : Receive RPC pub addrs (xrpev.c:604)
Dec 23 03:11:47: xrp : got XRP_FCN_SETIFACEADDRS: RadioMacAddrBase = bc:a9:93:73:c5:00 (xrp.cpp:1679)

2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
Dec 23 03:11:47: xrp : got XRP_FCN_SETIFACEADDRS: ifaceName: br0.1, ipAddr: 192.168.0.20 (xrp.cpp:1687)
Dec 23 03:11:47: xrp : bc:a9:93:73:c5:00 is not a xirrus mac address! (task_xrp.cpp:1011)
Dec 23 03:11:47: xrp : not xirrus mac addr! (task_xrp.cpp:1213)
Dec 23 03:11:47: xrp : ============================================================== (xrpev.c:687)
Dec 23 03:11:47: xrp : XRP: New packet received from remote, ip = 192.168.0.20, len = 171 (xrpev.c:688)
Dec 23 03:11:47: xrp : Received XRP message size: 171, cmd = 6 (xrp.cpp:1568)
Dec 23 03:12:06: wmd : hostapd: wlan0: ap_handle_timer: 86:2c:33:69:59:75 flags=0x8aa3 timeout_next=0 (wmd_hostapd.c:75)
Dec 23 03:12:06: wmd : hostapd: Check inactivity: Could not get station info from kernel driver for 86:2c:33:69:59:75 (wmd_hostapd.c:
Dec 23 03:12:06: wmd : hostapd: ap_handle_timer: register ap_handle_timer timeout for 86:2c:33:69:59:75 (313 seconds) (wmd_hostapd.c:
Dec 23 03:12:30: wmd : SA: time check callback invoked after 300 seconds (ssid_access.c:297)

2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
Dec 23 03:12:30: wmd : SA: System time OK (ssid_access.c:305)
2021-12-23 03:12:36 21344 device-agent.c:385:da_alive_cb
Dec 23 03:12:40: uscd : Successfully sent ARP Reply for ip=192.168.0.1 mac=00-1D-AA-95-99-FC from ip=192.168.0.101 mac=28-C6-3F-81-23-
Dec 23 03:12:47: xrp : ============================================================== (xrpev.c:128)
Dec 23 03:12:47: xrp : XRP: timer event occurred (xrpev.c:129)
2021-12-23 03:13:01 21344 device-agent.c:2398:Previous state 2 new state 2
2021-12-23 03:13:01 21344 device-agent.c:2564:da_enter_state:DA_STATE_CONNECTING
2021-12-23 03:13:01 21344 device-agent.c:2566:call libwebsocket_create_context
2021-12-23 03:13:01 21344 device-agent.c:2218:Add FD to the pollfd 0 events 1
2021-12-23 03:13:01 21344 device-agent.c:2626:Device-Agent Waiting for connect… to Cambium Cloud:[ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com]
2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
2021-12-23 03:13:01 21344 common.c:292:Server cert validation is enabled
2021-12-23 03:13:01 21344 device-agent.c:2026:https server ‘ap-ne1-s6-8rwwoizbf8.cloud.cambiumnetworks.com’ has this certificate, which looks good to2021-12-23 03:13:11 21344 wifi.c:1429:fcgi_accept_cb: Accepted# 0 fd 0
2021-12-23 03:13:11 21344 wifi.c:1357:Got fcgi request on fd 0
2021-12-23 03:13:11 21344 wifi.c:1383:fcgi_recv_cb: MSG_EXEC_CMD received on fd 0
2021-12-23 03:13:11 21344 exec-cmd.c:1120:Command from Cambium Cloud: log
2021-12-23 03:13:11 21344 exec-cmd.c:1176:Got duration 60
2021-12-23 03:13:11 21344 exec-cmd.c:885:Starting command execution for log
2021-12-23 03:13:11 21344 exec-cmd.c:889:Command execution timed for 60
2021-12-23 03:13:11 21344 exec-cmd.c:894:start_exec_cmd: command [log] host []

2021-12-23 03:13:11 21344 log.c:207:start_cns_logging: Send log history (10 lines)
2021-12-23 03:13:35 21344 wifi.c:1429:fcgi_accept_cb: Accepted# 1 fd 5
2021-12-23 03:13:35 21344 wifi.c:1357:Got fcgi request on fd 5
2021-12-23 03:13:35 21344 wifi.c:1394:fcgi_recv_cb: MSG_EXEC_STOP received on fd 5

it’s onboared now. But it cannot sync configuration with the cloud. The issue is "country code: unknown country_code ". But in the AP GUI there is Vietnam option in country code

Could you please share output of "show version’ of your device.

my XV-2 version is 6.3.5-r4. after re-config some parameter, it seem working fine now!

1 Like

Hi Hiếu Quang, which parameter did you config? Can you show me how to do it? I have the same problem when onboarding Xv2-2. Its still stuck at “waiting for device” after approval.