herlesupreeth / docker_open5gs

Docker files to run open5gs + IMS + eNB + gNB + NR-UE in a docker
BSD 2-Clause "Simplified" License
279 stars 156 forks source link

getting error while deploying 5G SA deployment #261

Closed Deblina96 closed 6 months ago

Deblina96 commented 7 months ago

Hello @herlesupreeth sir, I am trying to deploy sa-deploy.yaml but getting the following error. I am using ubuntu 20.04 version.

5G Core Network

docker compose -f sa-deploy.yaml up. image

Kindly, suggest what could be done for it.

Deblina96 commented 7 months ago

Can anybody please help me to fix the above error.

herlesupreeth commented 7 months ago

Can you please post the docker and docker compose version you are using? my suspicion is that you are using an old docker compose

Deblina96 commented 7 months ago

Hello @herlesupreeth, please find the version below: image

Deblina96 commented 7 months ago

Hello @herlesupreeth Sir, Could you please provide me the correct version to deploy the file.

herlesupreeth commented 7 months ago

I see that you are using latest version so i dont think thats a problem.

Did you modify the deployment file by any chance??

can you send me the output of git diff command from docker-open5gs folder

Deblina96 commented 7 months ago

Dear @herlesupreeth Sir,

Please find the details open5gserror.docx .

Also I haven't changed anything in the deployment file.

herlesupreeth commented 7 months ago

Any reason why you have changed the test network subnet ? If you have changed the test network subnet, have you ensure you have changed the IP address of all other elements in .env file?

If so, can you paste here the git diff entire output (no need to send as screenshot in docx you can copy paste from terminal output). Also, note that you need to press down arrow key in git diff to see the entire git diff

Deblina96 commented 7 months ago

Dear @herlesupreeth Sir,

I am doing a project on integration of OAI NFs with open5gs NFs. I am trying implement a scenario where I am taking NRF from OAI and other NFs from open5gs. In order do that, I changed the IP address accordingly.

I have general question is it even possible to integrate OAI NFs with open5gs NFs ? Also, in open5gs all the NF are using SCP URI instead of NRF ? why is that ?

herlesupreeth commented 7 months ago

I have general question is it even possible to integrate OAI NFs with open5gs NFs ?

It should be possible if the OAI NF is standard compliant

Also, in open5gs all the NF are using SCP URI instead of NRF ? why is that ?

SCP is used a proxy by NFs to communicate with NRF. However, it is possible to communicate directly with NRF rather than via SCP in open5gs. Just remove the SCP sections in the NF's configuration file.

Deblina96 commented 7 months ago

Thank you so much @herlesupreeth sir, I with try with only NRF and see how it comes.

Deblina96 commented 7 months ago

Hello @herlesupreeth Sir, I have tried without scp and it worked. But, I have two questions:

  1. Though in log its showing that NF registered but in wireshark capture through http2 request its not showing.
  2. Now, when I am trying to connect UE and gNB using UERANSIM it is giving the below error:-

image

herlesupreeth commented 7 months ago

For viewing HTTP2 traffic in wireshark you would need to do the steps mentioned here - https://github.com/open5gs/open5gs/discussions/751

Now, when I am trying to connect UE and gNB using UERANSIM it is giving the below error:-

You would need to attach the pcap taken on the machine you are running docker_open5gs at the time of UE registration

Deblina96 commented 7 months ago

Dear @herlesupreeth, I have done the changes in Wireshark before head, But my issue is that I am able to see http2 traffic, But as src and dest address it is only showing my computer loopback address(127.0.0.1) and NRF address(127.0.0.10). But the traffic between AMF(127.0.0.5), SMF(127.0.0.4), AUSF, UDM,UDM are not showing. image

pcap extension is not supporting here.

herlesupreeth commented 7 months ago

If you are using the open5gs without this repo then I am sorry I cannot be of much help since most of the errors stems from wrong configuration.

If you want to use this repo with NRF from OAI then I would suggest the following:

  1. Run the NRF from OAI by binding to a specific IP/ interface on a machine
  2. On the same machine clone this repo and change the configuration file of AMF, SMF, UDR, UDM, AUSF, BSF, PCF, NSSF, UPF (in their respective folder) by commenting out SCP section (in order to do direct communication with NRF)
  3. Then, change in .env file NRF_IP address to the one in step 1
  4. In sa-deploy docker compose file remove nrf and scp from depends_on section of AMF, SMF, UDR, UDM, AUSF, BSF, PCF, NSSF, UPF
  5. Then execute the following commands
source .env
docker compose -f sa-deploy up amf smf udr udm ausf bsf pcf mongo webui upf nssf metrics