UPF/Ubuntu getting hanged after running test script

Hi Experts,

I have installed free5gc in Ubuntu 20.0.4 without any issues.

After executing the test script “./test.sh TestRegistration”, after the last message “Removing DNN routes” my system is getting hanged. I need to restart the system.

I think there is some issue in removing DNN routes configured in UPF.

I have tried to install in amazon ec2 instance. There also I am able to see the same issue.

Can you help me out to resolve the same?

I have tested with UERANSIM, during de-registration, I am facing the same issue. Could you please comment on how to resolve it ?

Hi @ajay,

Is it possible to add debug prints in the removing code flow.

Sure, where shall I add the statements? Please let me know if I need to print any variables

@ajay

Could you install the latest gtp5g and try again?

git clone https://github.com/free5gc/gtp5g.git
cd gtp5g
git checkout master
git pull
make
sudo make install

sure, Ill do that and update you.

I have installed latest gtp5g version, by using above commands, I am able to repro the issue.
Pl suggest how to move forward with investigation.

What kernel version does you use?

I am facing the same problem, even rebuild an ec2 instance the kernel still panic, the further information is as shown as below picture:

Can you give me the kernel crash dump?

Here, is the reference

Could you check your kernel version?

I am using 5.8.0-59-generic

@ajay @williamlin0504

We didn’t test gtp5g with kernel v5.8.0.
Please downgrade to kernel v5.4.0 and rebuild/reinstall gtp5g.

Hi @free5GC I’ve tested downgrade to v5.4.0, and it works well for me, the kernel didn’t panic, I will post any problems if I encountered further more.
Thanks a lot!

Sure I’ll do that and let you know. But I cannot change it immediately, might take some time

Latest, gtp5g(ver 1.0.3b) can resolve this issue.

Hi Muthuram,

I am not able to find the gtp5g(ver 1.0.3b) tag, hence installed latest version from the source: GitHub - free5gc/gtp5g: GTP-U Linux Kernel Module.

Now the system is not hanging. But getting below errors. Could you please let me know the reason or where I am going wrong ? I think we can go ahead and mark this as solution.

021-08-07T21:59:21+05:30 [INFO][AUSF][Init] AUSF terminated
> — PASS: TestRegistration (9.57s)
> PASS
ok test 11.488s
> genl_socket_talk: No such file or directory
> 2021-08-07T21:59:24+05:30 [ERRO][UPF][Util] GtpTunnelDelFar fail: FAR id[4]
> 2021-08-07T21:59:24+05:30 [ERRO][UPF][Util] FAR[4] delete failed
> 2021-08-07T21:59:24+05:30 [ERRO][UPF][Util] Remove FAR[4] failed
> genl_socket_talk: No such file or directory
> 2021-08-07T21:59:24+05:30 [ERRO][UPF][Util] GtpTunnelDelFar fail: FAR id[2]
> 2021-08-07T21:59:24+05:30 [ERRO][UPF][Util] FAR[2] delete failed
> 2021-08-07T21:59:24+05:30 [ERRO][UPF][Util] Remove FAR[2] failed
2021-08-07T21:59:24+05:30 [INFO][UPF][Util] Removing DNN routes
ls: cannot access ‘*sslkey.log’: No such file or directory

hi @ajay, Did you manage to fix the gtp tunnel error you got? because I am facing the same problem