N3iwf connection to AMF fails

Hi,

I installed free5gc version 3.0.6 on a Ubuntu LTS 20.04 with Linux kernel 5.8. After installation, I ran ~/run.sh to start all the NFs. Everything worked fine except for n3iwf, which had SCTP connection failure for NAGP connection with AMF. After about 6 minutes, n3iwf daemon died. The log information from n3iwf is attached. I suspect that n3iwf might not use the correct address/port of amf but don’t know how to debug further. Any hints/help will be highly appreciated.

Best regards,

Feng

ime=“2022-02-02T21:50:06-05:00” level=info msg=n3iwf category=App component=N3IWF
time=“2022-02-02T21:50:06-05:00” level=info msg=“N3IWF version: \n\tfree5GC version: v3.0.6\n\tbuild time: 2022-01-30T21:53:37Z\n\tcommit hash: d9cf2ac2\n\tcommit time: 2021-08-27T13:01:20Z\n\tgo version: go1.17.6 linux/amd64” category=App component=N3IWF
time=“2022-02-02T21:50:06-05:00” level=info msg=“N3IWF Log level is set to [info] level” category=Init component=N3IWF
time=“2022-02-02T21:50:06-05:00” level=info msg=“config version [1.0.0]” category=CFG component=N3IWF
time=“2022-02-02T21:50:06-05:00” level=info msg=“Server started” category=Init component=N3IWF
time=“2022-02-02T21:50:06-05:00” level=warning msg=“No private key file path specified, load default key file…” category=Context component=N3IWF
time=“2022-02-02T21:50:06-05:00” level=warning msg=“Parse PKCS8 private key failed: x509: failed to parse private key (use ParsePKCS1PrivateKey instead for this key format)” category=Context component=N3IWF
time=“2022-02-02T21:50:06-05:00” level=info msg=“Parse using PKCS1…” category=Context component=N3IWF
time=“2022-02-02T21:50:06-05:00” level=warning msg=“No certificate authority file path specified, load default CA certificate…” category=Context component=N3IWF
time=“2022-02-02T21:50:06-05:00” level=warning msg=“No certificate file path specified, load default certificate…” category=Context component=N3IWF
time=“2022-02-02T21:55:47-05:00” level=error msg="[SCTP] DialSCTP(): connection timed out" category=NGAP component=N3IWF
time=“2022-02-02T21:55:47-05:00” level=info msg=“Retry to connect AMF after 1 second…” category=NGAP component=N3IWF
time=“2022-02-02T21:56:16-05:00” level=error msg="[SCTP] DialSCTP(): operation already in progress" category=NGAP component=N3IWF
time=“2022-02-02T21:56:16-05:00” level=info msg=“Retry to connect AMF after 1 second…” category=NGAP component=N3IWF
time=“2022-02-02T21:58:34-05:00” level=error msg="[SCTP] DialSCTP(): operation already in progress" category=NGAP component=N3IWF
time=“2022-02-02T21:58:34-05:00” level=error msg=“Failed to connect to AMF.” category=NGAP component=N3IWF
time=“2022-02-02T21:58:34-05:00” level=error msg=“Start NGAP service failed: NGAP service run failed” category=Init component=N3IWF

Hi @fxie

The AMF could be dead, did you verified that it is UP ?

If you do a netstat on the AMF side, can you confirm that the ng-control port 38412 is open. Here is a sample output:

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
sctp       0      0 172.168.1.8:38412       0.0.0.0:*               LISTEN      1/./amf

Hi, @fxie
since there hasn’t been any replies from you, this topic is closed by admin.
If you have further questions about this topic, please create another topic.
Thanks.