aligungr / UERANSIM

Open source 5G UE and RAN (gNodeB) implementation.
GNU General Public License v3.0
758 stars 316 forks source link

RLS failure [Socket bind failed: Address already in use] <--and--> GTP/UDP task could not be created. Socket bind failed: Address already in use #568

Open chiducaf opened 1 year ago

chiducaf commented 1 year ago

Hi @aligungr @louisroyer I'm facing the below issue, Could you pls help me to understand the cause of this issue?

image

when executing ss -unlp | grep ':4997' I'm getting below one

Croot@ueransim-gnb-deployment-ddf87f74c-bntvq:/UERANSIM# ss -unlp | grep ':4997'
UNCONN    0         0                  0.0.0.0:4997             0.0.0.0:*        users:(("nr-gnb",pid=1,fd=4))

and this is when firing ps -ax | grep nr-gnb

root@ueransim-gnb-deployment-ddf87f74c-bntvq:/UERANSIM# ps -ax | grep nr-gnb
      1 ?        Ssl    0:13 ./build/nr-gnb -c ./config/free5gc-gnb.yaml
    355 ?        Z      0:00 [nr-gnb] <defunct>
   1021 pts/2    S+     0:00 grep --color=auto nr-gnb

Note: All my setup is running on the same machine.

free5gc-gnb.yaml image

free5gc-ue.yaml image

free5gc-amf.yaml image

free5gc-smf.yaml image

free5gc-upf.yaml image

Waiting for your quick reply!!

louisroyer commented 1 year ago

Hi @chiducaf you have a zombie process (355), probably from a previous attempt, already listening on 0.0.0.0:4997. You should ensure to kill it first. Also, I don't recommend running the core on the same machine than the RAN. UEs and gNB share the same machine, but you should use 127.0.0.1 instead of 0.0.0.0, especially on gnbSearchList where 0.0.0.0 makes no sense at all.