Gradiant / 5g-charts

Helm charts for 5G Technologies
Apache License 2.0
108 stars 42 forks source link

AMF Crashes - open5gs-2.1.0.tgz #148

Closed nitinbhat closed 6 months ago

nitinbhat commented 6 months ago

Hi,

I used open5gs-2.1.0.tgz charts to deploy it on my kubernetes cluster with default amf configuration. I see amf crashes whenever a registration request is received,

01/16 12:30:11.344: [amf] INFO: gNB-N2[10.1.0.44] max_num_of_ostreams : 1 (../src/amf/amf-sm.c:780) 01/16 12:30:11.359: [amf] WARNING: NG-Setup failure: (../src/amf/ngap-handler.c:313) 01/16 12:30:11.359: [amf] WARNING:     Cannot find Served TAI. Check 'amf.tai' configuration (../src/amf/ngap-handler.c:314) 01/16 12:37:53.959: [amf] INFO: gNB-N2 accepted[10.1.0.44]:36493 in ng-path module (../src/amf/ngap-sctp.c:113) 01/16 12:37:53.959: [amf] INFO: gNB-N2 accepted[10.1.0.44] in master_sm module (../src/amf/amf-sm.c:741) 01/16 12:37:53.959: [amf] INFO: [Added] Number of gNBs is now 2 (../src/amf/context.c:1178) 01/16 12:37:53.959: [amf] INFO: gNB-N2[10.1.0.44] max_num_of_ostreams : 1 (../src/amf/amf-sm.c:780) 01/16 12:46:49.065: [amf] INFO: gNB-N2 accepted[10.1.0.44]:38243 in ng-path module (../src/amf/ngap-sctp.c:113) 01/16 12:46:49.065: [amf] INFO: gNB-N2 accepted[10.1.0.44] in master_sm module (../src/amf/amf-sm.c:741) 01/16 12:46:49.066: [amf] INFO: [Added] Number of gNBs is now 3 (../src/amf/context.c:1178) 01/16 12:46:49.066: [amf] INFO: gNB-N2[10.1.0.44] max_num_of_ostreams : 1 (../src/amf/amf-sm.c:780) 01/16 12:47:39.633: [amf] INFO: InitialUEMessage (../src/amf/ngap-handler.c:372) 01/16 12:47:39.633: [amf] FATAL: ran_ue_add: Assertion (gnb->max_num_of_ostreams-1) >= 1' failed. (../src/amf/context.c:1298)
01/16 12:47:39.635: [core] FATAL: backtrace() returned 11 addresses (../lib/core/ogs-abort.c:37)
open5gs-amfd(+0x114f5) [0x5606171e04f5]
open5gs-amfd(+0x5c2fd) [0x56061722b2fd]
open5gs-amfd(+0x20df4) [0x5606171efdf4]
/opt/open5gs/lib/x86_64-linux-gnu/libogscore.so.2(ogs_fsm_dispatch+0x10f) [0x7fe964a33376]
open5gs-amfd(+0x38812) [0x560617207812]
/opt/open5gs/lib/x86_64-linux-gnu/libogscore.so.2(ogs_fsm_dispatch+0x10f) [0x7fe964a33376]
open5gs-amfd(+0x90a8) [0x5606171d80a8]
/opt/open5gs/lib/x86_64-linux-gnu/libogscore.so.2(+0x10886) [0x7fe964a24886]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7ea7) [0x7fe963dccea7]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7fe963ceca2f]
/entrypoint.sh: line 43: 7 Aborted (core dumped) $@`

I am using UERANSIM here with the default configuration

Any idea what could be the issue?

or is there any new release that is available?

Thanks Nitin

avrodriguezgrad commented 6 months ago

Hi Nitin,

What steps did you do to deploy the charts? Did you follow our tutorial?

Thanks, Álvaro

nitinbhat commented 6 months ago

Hi Álvaro,

Yes, I followed the same steps mentioned in the tutorial.

Just that I am not using gNBs and UE as pods but running them outside the cluster but with same configuration and same version of UERANSIM i.e v3.2.6. Please let me know if you need more details on this.

Thanks Nitin

nitinbhat commented 6 months ago

Update on this Issue, gNB was sending Inbound and Outbound streams as 1 in SCTP handshake which caused this crash. i do not see a crash after updating it to 10