UPF initialize fails, AMF/SMF/UPF has same IP

Hi,

Would you pls help?

My AMF/SMF/UPF (pfcp) used to be have same IP address (192.168.120.12), and there is no problem running UPF, but now for unknown reason, my UPF can’t be up.

Below are my UPF/SMF configurations:

/home/support/free5gc/src/upf/build/config/upfcfg.yaml (same as these 3 files: /home/support/free5gc/src/upf/config/upfcfg.example.yaml, upfcfg.ulcl.example.yaml, upfcfg.test.example.yaml)

info:
version: 1.0.0
description: UPF configuration

configuration:

debugLevel: info

ReportCaller: false

pfcp:
- addr: 192.168.120.12

gtpu:
- addr: 5.5.5.1
# [optional] gtpu.name
# - name: upf.5gc.nctu.me
# [optional] gtpu.ifname
# - ifname: gtpif

dnn_list:
- dnn: internet
cidr: 60.60.0.0/24

SMF config (/home/support/free5gc/config/smfcfg.conf ): (SMF has no problem though)

pfcp:
addr: 192.168.120.12
userplane_information:
up_nodes:
gNB1:
type: AN
an_ip: 5.5.5.4
UPF:
type: UPF
node_id: 5.5.5.1

links:
  - A: gNB1
    B: UPF

ue_subnet: 60.60.0.0/16

I got below error messages when run UPF:

~/free5gc/src/upf/build$ sudo bin/free5gc-upfd
2021-01-17T00:33:38-08:00 [INFO][UPF][Util] Config: /home/support/free5gc/src/upf/build/config/upfcfg.yaml
2021-01-17T00:33:38-08:00 [INFO][UPF][Util] Set log level: info
2021-01-17T00:33:38-08:00 [ERRO][UPF][Util] Error creating message queue: Too many open files
2021-01-17T00:33:38-08:00 [ERRO][UPF][Util] UPF - Event Queue error when UPF initializes
2021-01-17T00:33:38-08:00 [ERRO][UPF][Util] UPF failed to initialize
2021-01-17T00:33:38-08:00 [ERRO][UPF][Util] PFCP Xact already finalized
2021-01-17T00:33:38-08:00 [ERRO][UPF][Util] UPF - PFCP error when UPF terminates
2021-01-17T00:33:38-08:00 [INFO][UPF][Util] Removing DNN routes
2021-01-17T00:33:38-08:00 [ERRO][UPF][Util] mnl_cb_run, run as root?
2021-01-17T00:33:38-08:00 [ERRO][UPF][Util] Delete routing rule to device upfgtp failed: 60.60.0.0/24
2021-01-17T00:33:38-08:00 [ERRO][UPF][Util] UPDK epoll deregister error

Thanks a lot!

Br,
Andrew

Try to clean the message queue file.

rm /dev/mqueue/free5gc*

Thanks a lot calee! I will try it later.