konradkar2 / netns5g

A free5gc and UERANSIM deployment using Linux network namespaces.
MIT License
4 stars 1 forks source link

Connection timeout to all services #1

Closed psravikiran closed 2 years ago

psravikiran commented 2 years ago

Hi, I am trying this on Ubuntu 20.04. Getting connection timeouts to mongodb and probably between all the services.

2022-10-31T10:17:37Z [INFO][WebUI][Init] Server started skipping deployment of: host skipping deployment of: gnb skipping deployment of: ue skipping deployment of: internet all services running 2022-10-31T10:18:07Z [ERRO][WebUI][Context] RestfulAPIGetMany err: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: 10.0.123.100:27017, Type: Unknown, Last error: connection() error occured during connection handshake: dial tcp 10.0.123.100:27017: i/o timeout }, ] } UDR register to NRF Error[Put "http://10.0.123.1:8000/nnrf-nfm/v1/nf-instances/c31f85cc-55bf-4f51-ae45-d51e09ba29d1": dial tcp 10.0.123.1:8000: connect: connection timed out] UDM register to NRF Error[Put "http://10.0.123.1:8000/nnrf-nfm/v1/nf-instances/93e1750d-465a-4f2a-91f1-9c3f4a015bfd": dial tcp 10.0.123.1:8000: connect: connection timed out] 2022-10-31T10:19:32Z [ERRO][AUSF][Consumer] AUSF register to NRF Error[Put "http://10.0.123.1:8000/nnrf-nfm/v1/nf-instances/92cc9327-084b-420a-994b-1f8bebb7e161": dial tcp 10.0.123.1:8000: connect: connection timed out] 2022-10-31T10:19:34Z [ERRO][NSSF][Consumer] NSSF register to NRF Error[Put "http://10.0.123.1:8000/nnrf-nfm/v1/nf-instances/917e0173-20df-49b5-9615-c1e6557e2b29": dial tcp 10.0.123.1:8000: connect: connection timed out] AMF register to NRF Error[Put "http://10.0.123.1:8000/nnrf-nfm/v1/nf-instances/5c2c503a-adc8-40f7-815c-d8df616e420c": dial tcp 10.0.123.1:8000: connect: connection timed out] PCF register to NRF Error[Put "http://10.0.123.1:8000/nnrf-nfm/v1/nf-instances/d64545e0-9157-4d5b-aead-c602394e78eb": dial tcp 10.0.123.1:8000: connect: connection timed out] 2022-10-31T10:19:44Z [INFO][SMF][Consumer] SMF register to NRF Error[Put "http://10.0.123.1:8000/nnrf-nfm/v1/nf-instances/ba8d3bb3-ea76-4b48-ac80-31d98f5243b4": dial tcp 10.0.123.1:8000: connect: connection timed out]

Please give some clues on how to solve

konradkar2 commented 2 years ago

Can you verify if you can ping between namespaces? e.g. from smf to upf. If you can't it looks like bridge is not forwarding packets

I had similar issue once, solved it by following this: https://serverfault.com/questions/963759/docker-breaks-libvirt-bridge-network

psravikiran commented 2 years ago

Thank you.. Just setting this after the env-init solved the issue.

sysctl -w net.bridge.bridge-nf-call-iptables=0