Upf library test fails

Dear free5gc support,

Run UPF library test
(In directory: $GOPATH/src/free5gc/src/upf/build

sudo ./bin/testgtpv1

it fails:

[Sudo Testing] testGtpv1 1
ERRO[2020-08-17T06:15:53Z] c/upf/lib/gtpv1/src/gtp_link.c:32 GtpLinkCreate() GTP device named GtPvLtEsT Create fail UPF=Util
ERRO[2020-08-17T06:15:53Z] c/upf/lib/gtpv1/test.c:21 testGtpv1_1() GtpLinkCreate ifdev[GtPvLtEsT] fail UPF=Util
[Sudo Testing] testGtpv1 2
ERRO[2020-08-17T06:15:53Z] c/upf/lib/gtpv1/src/gtp_link.c:32 GtpLinkCreate() GTP device named gTpDeV1CeTeSt Create fail UPF=Util
ERRO[2020-08-17T06:15:53Z] c/upf/lib/gtpv1/test.c:50 testGtpv1_2() GtpLinkCreate ifdev[gTpDeV1CeTeSt] fail UPF=Util

I find that file ‘upfcfg.yaml’ is as below:

info:
version: 1.0.0
description: UPF configuration

configuration:

debugLevel: panic|fatal|error|warn|info|debug|trace

debugLevel: info

pfcp:
- addr: 127.0.0.8

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

apn_list:
- apn: internet
cidr: 60.60.0.0/24
# [optional] apn_list[*].natifname
# natifname: eth0

and file ‘upfcfg.test.yaml’ is as below:

info:
version: 1.0.0
description: UPF configuration

configuration:

debugLevel: panic|fatal|error|warn|info|debug|trace

debugLevel: info

pfcp:
- addr: 10.200.200.101

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

apn_list:
- apn: internet
cidr: 60.60.0.0/24
# [optional] apn_list[*].natifname
# natifname: eth0
~

thanks.

Was upf installed successfully? or were there any errors?

Which kernel version are you using? Did you insert gtp5g modules?

Thanks for your reply.
I was following https://github.com/free5gc/free5gc-stage-3, Part B, steps 1 to 5, and it fails at step 5, all previous steps passed.

Hi,

free5gc-stage-3 is an archive repository. Why not trying our latest repository free5gc? :smiley:

issue was solved, would you pls close it? thanks