s5uishida / open5gs_5gc_srsran_sample_config

Open5GS 5GC & srsRAN 5G with ZeroMQ UE / RAN Sample Configuration
6 stars 1 forks source link

error while running smf #3

Open faratell opened 4 months ago

faratell commented 4 months ago

Hello. I have implimented senario as described. have 2 openstack instance for user plane and control plane open5gs-Up : 172.20.70.106 open5gs-CP: 172.20.70.126 all functions of open5gs run correctly but when i run smf have this error:

04/10 08:15:19.451: [app] INFO: Configuration: '/root/open5gs/install/etc/open5gs/smf.yaml' (../lib/app/ogs-init.c:126) 04/10 08:15:19.451: [app] INFO: File Logging: '/root/open5gs/install/var/log/open5gs/smf.log' (../lib/app/ogs-init.c:129) 04/10 08:15:19.579: [gtp] WARNING: unknown key dnn (../lib/gtp/context.c:177) 04/10 08:15:19.580: [metrics] INFO: metrics_server() [http://127.0.0.4]:9090 (../lib/metrics/prometheus/context.c:299) 04/10 08:15:19.671: [sock] ERROR: socket bind(2) [172.20.70.106]:2123 failed (99:Cannot assign requested address) (../lib/core/ogs-socket.c:114) 04/10 08:15:19.671: [sock] ERROR: udp_server() [172.20.70.106]:2123 failed (99:Cannot assign requested address) (../lib/core/ogs-udp.c:67) 04/10 08:15:19.671: [app] ERROR: Failed to intialize SMF (../src/smf/app.c:28) 04/10 08:15:19.671: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:219)

it is noticable that i have installe open5gs v 2.6.6 and this is the smf.yaml file:

logger: file: /root/open5gs/install/var/log/open5gs/smf.log sbi: server: no_tls: true cacert: /root/open5gs/install/etc/open5gs/tls/ca.crt key: /root/open5gs/install/etc/open5gs/tls/smf.key cert: /root/open5gs/install/etc/open5gs/tls/smf.crt client: no_tls: true cacert: /root/open5gs/install/etc/open5gs/tls/ca.crt key: /root/open5gs/install/etc/open5gs/tls/smf.key cert: /root/open5gs/install/etc/open5gs/tls/smf.crt

  port: 7777
pfcp:
  - addr: 172.20.70.126
  - addr: ::1
gtpc:
  - addr: 172.20.70.106
  - addr: ::1
    dnn:  internet
gtpu:
  - addr: 172.20.70.126
  - addr: ::1
metrics:
  - addr: 127.0.0.4
    port: 9090
subnet:
  - addr: 10.45.0.1/16
    dnn:  internet
dns:
    - 8.8.8.8
    - 8.8.4.4
mtu: 1400
ctf:
    enabled: auto
freeDiameter: /root/open5gs/install/etc/freeDiameter/smf.conf

scp: sbi:

faratell commented 4 months ago

My problem is solved by changing the address of gtpc to 127.0.0.4

faratell commented 4 months ago

now I have this error when running ue: Non cleartext IEs is included

04/10 19:14:03.420: [amf] INFO: [Added] Number of gNB-UEs is now 1 (../src/amf/c ontext.c:2523) 04/10 19:14:03.420: [amf] INFO: RAN_UE_NGAP_ID[0] AMF_UE_NGAP_ID[1] TAC[1] C ellID[0x19b0] (../src/amf/ngap-handler.c:562) 04/10 19:14:03.420: [amf] INFO: [suci-0-001-01-0000-0-0-0000000000] Unknown UE b y SUCI (../src/amf/context.c:1789) 04/10 19:14:03.421: [amf] INFO: [Added] Number of AMF-UEs is now 1 (../src/amf/c ontext.c:1570) 04/10 19:14:03.421: [gmm] INFO: Registration request (../src/amf/gmm-sm.c:1061) 04/10 19:14:03.421: [gmm] ERROR: Non cleartext IEs is included [0xc] (../src/amf /gmm-handler.c:116) 04/10 19:14:03.421: [gmm] ERROR: Unknown reg_type[0] (../src/amf/gmm-sm.c:1080) 04/10 19:14:03.421: [gmm] ERROR: gmm_handle_registration_request() failed [95] ( ../src/amf/gmm-sm.c:1084) 04/10 19:14:03.421: [amf] ERROR: Unknown reg_type[0] (../src/amf/nas-path.c:215) 04/10 19:14:03.421: [amf] WARNING: [(null)] Registration reject [95] (../src/amf /nas-path.c:219) 04/10 19:14:03.565: [amf] INFO: UE Context Release [Action:3] (../src/amf/ngap-h andler.c:1677) 04/10 19:14:03.565: [amf] INFO: RAN_UE_NGAP_ID[0] AMF_UE_NGAP_ID[1] (../src/ amf/ngap-handler.c:1678) 04/10 19:14:03.565: [amf] INFO: SUCI[Unknown] (../src/amf/ngap-handler.c:168 1) 04/10 19:14:03.565: [amf] INFO: [Removed] Number of gNB-UEs is now 0 (../src/amf /context.c:2530) 04/10 19:14:03.565: [amf] INFO: [Removed] Number of AMF-UEs is now 0 (../src/amf /context.c:1663) 04/10 19:15:50.247: [app] INFO: Signal-NUM[28] received (Window changed) (../src/main.c:63)

s5uishida commented 4 months ago

@faratell

See below.

https://github.com/s5uishida/build_srsran_4g_zmq_disable_rf_plugins?tab=readme-ov-file#issues

faratell commented 4 months ago

Thanks for your reply. I delete the line 281:286 in srsRAN_4G/srsue/src/stack/upper/nas_5g.cc file. but also have the same error. any other changes should be apply?

s5uishida commented 4 months ago

@faratell

If the same error occurs even after rebuilding, I don't know the cause.