After restart computer Free5GC UPF GtpTunnel build fail

,

After install free5gc v3.0.5, I did run program and connect to UE and RAN successfully.

But right after I reboot my computer and run free5gc again, some issue occurred:

genl_socket_talk: No such file or directory
2021-09-01T18:34:39+08:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:3][SUPI:imsi-466666100000149] create smContext[pduSessionID: 1] Success
2021-09-01T18:34:39+08:00 [ERRO][UPF][Util] GtpTunnelAddQer Fail: QER id[1]
2021-09-01T18:34:39+08:00 [ERRO][UPF][Util] Add QER failed
2021-09-01T18:34:39+08:00 [ERRO][UPF][Util] QER not pushed to kernel
2021-09-01T18:34:39+08:00 [ERRO][UPF][Util] Gtpv1TunnelCreateQER failed
2021-09-01T18:34:39+08:00 [ERRO][UPF][Util] Create QER error
2021-09-01T18:34:39+08:00 [INFO][UPF][Util] [PFCP] Session Establishment Response
2021-09-01T18:34:39+08:00 [INFO][SMF][PFCP] In HandlePfcpSessionEstablishmentResponse
2021-09-01T18:34:39+08:00 [INFO][LIB][PFCP] Remove Request Transaction [2]
2021-09-01T18:34:55+08:00 [INFO][AMF][NGAP][192.168.44.4:60110] Handle Uplink Nas Transport
2021-09-01T18:34:55+08:00 [INFO][AMF][NGAP][192.168.44.4:60110][AMF_UE_NGAP_ID:3] Uplink NAS Transport (RAN UE NGAP ID: 21)
2021-09-01T18:34:55+08:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:3][SUPI:imsi-466666100000149] Handle UL NAS Transport
2021-09-01T18:34:55+08:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:3][SUPI:imsi-466666100000149] Transport 5GSM Message to SMF
2021-09-01T18:34:55+08:00 [WARN][AMF][GMM][AMF_UE_NGAP_ID:3][SUPI:imsi-466666100000149] Duplicated PDU session ID[1]
2021-09-01T18:34:55+08:00 [INFO][SMF][PduSess] Recieve Update SM Context Request
2021-09-01T18:34:55+08:00 [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate
2021-09-01T18:34:55+08:00 [WARN][SMF][PduSess] SMContext[imsi-466666100000149-01] should be Active, but actual ModificationPending
2021-09-01T18:34:55+08:00 [INFO][SMF][CTX] [SMF] Cause_REL_DUE_TO_DUPLICATE_SESSION_ID
2021-09-01T18:34:55+08:00 [INFO][SMF][PduSess] Send PFCP Deletion from HandlePDUSessionSMContextUpdate
2021-09-01T18:34:55+08:00 [ERRO][UPF][Util] no SEID but not SESSION ESTABLISHMENT
2021-09-01T18:34:58+08:00 [ERRO][UPF][Util] no SEID but not SESSION ESTABLISHMENT
2021-09-01T18:35:01+08:00 [ERRO][UPF][Util] no SEID but not SESSION ESTABLISHMENT
2021-09-01T18:35:04+08:00 [INFO][LIB][PFCP] Remove Request Transaction [3]

&&

genl_socket_talk: No such file or directory
2021-09-01T19:24:42+08:00 [ERRO][UPF][Util] GtpTunnelAddQer Fail: QER id[1]
2021-09-01T19:24:42+08:00 [ERRO][UPF][Util] Add QER failed
2021-09-01T19:24:42+08:00 [ERRO][UPF][Util] QER not pushed to kernel
2021-09-01T19:24:42+08:00 [ERRO][UPF][Util] Gtpv1TunnelCreateQER failed
2021-09-01T19:24:42+08:00 [ERRO][UPF][Util] Create QER error
2021-09-01T19:24:42+08:00 [INFO][UPF][Util] [PFCP] Session Establishment Response
2021-09-01T19:24:42+08:00 [INFO][LIB][PFCP] Remove Request Transaction [2]
2021-09-01T19:24:42+08:00 [INFO][SMF][PFCP] In HandlePfcpSessionEstablishmentResponse
2021-09-01T19:24:47+08:00 [INFO][AMF][NGAP][192.168.44.167:38412] Handle Uplink Nas Transport
2021-09-01T19:24:47+08:00 [INFO][AMF][NGAP][192.168.44.167:38412][AMF_UE_NGAP_ID:6] Uplink NAS Transport (RAN UE NGAP ID: 2)
2021-09-01T19:24:47+08:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:6][SUPI:imsi-466660000038583] Handle Deregistration Request(UE Originating)
2021-09-01T19:24:47+08:00 [INFO][SMF][PduSess] Recieve Release SM Context Request
2021-09-01T19:24:47+08:00 [INFO][SMF][PduSess] In HandlePDUSessionSMContextRelease
2021-09-01T19:24:47+08:00 [ERRO][UPF][Util] no SEID but not SESSION ESTABLISHMENT
2021-09-01T19:24:50+08:00 [ERRO][UPF][Util] no SEID but not SESSION ESTABLISHMENT
2021-09-01T19:24:53+08:00 [ERRO][UPF][Util] no SEID but not SESSION ESTABLISHMENT
2021-09-01T19:24:56+08:00 [INFO][LIB][PFCP] Remove Request Transaction [3]

Had try several ways like:
Free5gc GTP Payload doesn't contain PDU session container in UL and DL - #5 by muthuramanecs03g,
or reload gtp5g file, or rebuild mongoDB database …etc
But still couldn’t solve the issue.

We successfully resolved this issue by executing the following steps:

  1. Remove the linux kernel gtp5g module:

sudo rmmod -f gtp5g

  1. download the gtp5g module from github:

git clone [email protected]:PrinzOwO/gtp5g.git

  1. Install gtp5g:

cd gtp5g
make clean && make
sudo make install