srsran / srsRAN_4G

Open source SDR 4G software suite from Software Radio Systems (SRS) https://docs.srsran.com/projects/4g
https://www.srsran.com
GNU Affero General Public License v3.0
3.38k stars 1.11k forks source link

open5gs connection error: Failed to initiate NG connection #1240

Open jqhu27 opened 8 months ago

jqhu27 commented 8 months ago

Issue Description

I attempted to set up a 5G Standalone (SA) End-to-End scenario using open5gs as the core. I meticulously followed the step-by-step instructions provided in the documentation found here to deploy the scenario. However, when I attempted to execute the command sudo srsenb, I encountered the following error: srsENB

Subsequently, I investigated the open5gs amf.log file and observed the following: open5gs_amf_log

I noticed that if I use the original open5gs amf.yaml, the AMF service can be started and runs without issues. However, when I attempt to use the modified amf.yaml provided on the srsRAN website, the service fails to start.

I suspect that there may be an issue with the amf.yaml configuration file. Could you kindly assist me in resolving this matter? Your help would be greatly appreciated. Thank you in advance.

Igormartinssilva commented 8 months ago

I have the same problem and I don't know how to solve it either.

whitecloudy commented 6 months ago

The Open5gs version has been updated from 2.6.6 to 2.7.0 recently. I think they changed some rules about config files. I have faced same issue that you showed and I fixed it by carefully changing enb's config file(enb.conf, rr.conf) which is related with 5g core connection. Mostly I changed was IP addresses. Read this article and find your way. I can't tell how I did exactly cause I barely tracked how I did. https://open5gs.org/open5gs/docs/guide/01-quickstart/