Trying to connect to cloud service worked my way through various versions of “init failed” now it is just hiding quietly in the corner saying Discovering cnMaestro.
DA log littered with …
/home/jenkins/workspace/cnmaestro-agent/src/main.go:126 +0x820
Starting cnAgent
{"file":"main.go:102","func":"main.main","level":"info","msg":"Configuration Loaded Successfully","name":"main","time":"2022-02-06T11:44:54-08:00"}
{"file":"e2e.go:824","func":"e2e.(*E2E).GetSerialNo","level":"info","msg":"onboard e2e getDeviceInfo API {Type:POP Name:node-V5000-88335c Mac:0--------c Msn:V5WJ======= Model:V5000}","name":"e2e","time":"2022-02-06T11:44:54-08:00"}
{"file":"conn.go:77","func":"agent.(*Agent).routerConnect","level":"warning","msg":"Cookie file does not exists","name":"agent","time":"2022-02-06T11:44:54-08:00"}
{"file":"conn.go:84","func":"agent.(*Agent).routerConnect","level":"info","msg":"Connecting to router: https://cloud.cambiumnetworks.com /cns-onboarding/device?&type=cnAgent&serialNo=V5WJ------------&mac=00:04:56:------&mode=e2e&deployment=onboard","name":"agent","time":"2022-02-06T11:44:54-08:00"}
{"file":"conn.go:85","func":"agent.(*Agent).routerConnect","level":"info","msg":"User-agent header: cnEA/1.0 (e2e/1.2; EA/1.2.0-r4)","name":"agent","time":"2022-02-06T11:44:54-08:00"}
{"file":"panic.go:967","func":"runtime.gopanic","level":"info","msg":"Exited Agent","name":"agent","time":"2022-02-06T11:44:54-08:00"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x280100]
Please ensure you have debug logs enabled for the agent and run it for a while and if you see the crash, then download the logs and share with customer support.
Thanks for reporting that factory reset resolved the issue, which is bit strange.
But in future if that happens again please do let us know. We are also trying to find the root cause on our end as to why the process is crashing (we haven’t got any breakthrough yet — it might be some corner scenarios)
We will let you know in case we find the root cause and resolve in the latest release.