[ERRO][UPF][Main] UPF Cli Run Error: open Gtp5g: open link: create: operation not supported

How to solve the error :

[ERRO][UPF][Main] UPF Cli Run Error: open Gtp5g: open link: create: operation not supported

Hi @kalinjiang, UPF requires gtp5g kernel module.
Did you install it (https://github.com/free5gc/gtp5g.git) on the host running the UPF?

Avi

Hi @kalinjiang,

I know I am late but I will post it in case someone else faces similar error.

I also faced this issue today. In my case, I already had a full running Free5GC setup but my machine crashed unexpectedly and after starting it again, I got this error.

Here is how I resolved it:

First, make sure you have followed the steps for GTP5G installation mentioned here: Installation · free5gc/free5gc Wiki · GitHub

As I mentioned, I had a running version of the Free5GC so I already cloned the gtp5g repository (https://github.com/free5gc/gtp5g.git).

So, I ran the following commands again:

cd gtp5g
make
sudo make install

After running these, the UPF started working again normally.

I hope this helps.

Regards.