Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webui & MonDB problems #30

Closed
minziran opened this issue Aug 11, 2021 · 3 comments
Closed

Webui & MonDB problems #30

minziran opened this issue Aug 11, 2021 · 3 comments

Comments

@minziran
Copy link

sudo docker-compose up
......
webui | 2021-08-11T20:30:14Z [FATA][LIB][MonDB] server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: db:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp: lookup db: Temporary failure in name resolution }, ] }
webui exited with code 1

sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1b63d96acd76 free5gc-compose_free5gc-n3iwf "sh -c './n3iwf-ipse…" 43 seconds ago Up 42 seconds n3iwf
83be3fe27eb2 free5gc-compose_free5gc-pcf "./pcf -pcfcfg ../co…" 46 seconds ago Up 42 seconds 8000/tcp pcf
47a7aa7708ee free5gc-compose_free5gc-udr "./udr -udrcfg ../co…" 46 seconds ago Up 42 seconds 8000/tcp udr
c2d8b2a168f4 free5gc-compose_free5gc-ausf "./ausf -ausfcfg ../…" 46 seconds ago Up 43 seconds 8000/tcp ausf
0b2e6d9ccacb free5gc-compose_free5gc-nssf "./nssf -nssfcfg ../…" 46 seconds ago Up 42 seconds 8000/tcp nssf
dbe4d2fa3c34 free5gc-compose_free5gc-amf "./amf -amfcfg ../co…" 46 seconds ago Up 43 seconds 8000/tcp amf
8cc64e4956a1 free5gc-compose_free5gc-smf "./smf -smfcfg ../co…" 46 seconds ago Up 43 seconds 8000/tcp smf
aafcdaea867b free5gc-compose_free5gc-udm "./udm -udmcfg ../co…" 46 seconds ago Up 43 seconds 8000/tcp udm
0940a468c05b free5gc-compose_free5gc-nrf "./nrf -nrfcfg ../co…" 47 seconds ago Up 45 seconds 8000/tcp nrf
1031d1bf583f free5gc-compose_free5gc-webui "./webui" 47 seconds ago Exited (1) 15 seconds ago webui
3b93e85f41d4 free5gc-compose_free5gc-upf-2 "./free5gc-upfd -f .…" 49 seconds ago Up 47 seconds upf2
22efc8870d7b free5gc-compose_free5gc-upf-b "./free5gc-upfd -f .…" 49 seconds ago Up 47 seconds upfb
a608318a1e5c mongo "docker-entrypoint.s…" 49 seconds ago Exited (132) 46 seconds ago mongodb
f13ed290f9f8 free5gc-compose_free5gc-upf-1 "./free5gc-upfd -f .…" 49 seconds ago Up 46 seconds upf1

sudo docker logs 1031d1bf583f
2021-08-11T20:33:37Z [INFO][WebUI][App] webui
2021-08-11T20:33:37Z [INFO][WebUI][App] webconsole version:
free5GC version: v3.0.5
build time: 2021-08-09T21:32:56Z
commit hash: d176304c
commit time: 2021-01-31T17:55:01Z
go version: go1.14.4 linux/amd64
2021-08-11T20:33:37Z [WARN][WebUI][Init] Webconsole config without log level setting!!!
2021-08-11T20:33:37Z [INFO][WebUI][Init] Server started
2021-08-11T20:34:07Z [FATA][LIB][MonDB] server selection error: server selection timeout, current topology: { Type: U nknown, Servers: [{ Addr: db:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp: lookup db: Temporary failure in name resolution }, ] }

sudo docker logs a608318a1e5c
WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
see https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
see also docker-library/mongo#485 (comment)

mongod --version

db version v3.6.8
git version: 8e540c0b6db93ce994cc548f000900bdc740f80a
OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
allocator: tcmalloc
modules: none
build environment:
distarch: x86_64
target_arch: x86_64

cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 165
model name : Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
stepping : 2
microcode : 0xffffffff
cpu MHz : 1467.367
cache size : 12288 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni ssse3 pcid sse4_1 sse4_2 hypervisor lahf_lm invpcid_single ibrs_enhanced fsgsbase invpcid md_clear flush_l1d arch_capabilities
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs itlb_multihit
bogomips : 2934.73
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 165
model name : Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
stepping : 2
microcode : 0xffffffff
cpu MHz : 1467.367
cache size : 12288 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni ssse3 pcid sse4_1 sse4_2 hypervisor lahf_lm invpcid_single ibrs_enhanced fsgsbase invpcid md_clear flush_l1d arch_capabilities
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs itlb_multihit
bogomips : 2934.73
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 165
model name : Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
stepping : 2
microcode : 0xffffffff
cpu MHz : 1467.367
cache size : 12288 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni ssse3 pcid sse4_1 sse4_2 hypervisor lahf_lm invpcid_single ibrs_enhanced fsgsbase invpcid md_clear flush_l1d arch_capabilities
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs itlb_multihit
bogomips : 2934.73
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 165
model name : Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
stepping : 2
microcode : 0xffffffff
cpu MHz : 1467.367
cache size : 12288 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni ssse3 pcid sse4_1 sse4_2 hypervisor lahf_lm invpcid_single ibrs_enhanced fsgsbase invpcid md_clear flush_l1d arch_capabilities
bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs itlb_multihit
bogomips : 2934.73
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

@abousselmi
Copy link
Collaborator

Hi @minziran

This is normally as you noted an issue with Mongo for some intel processors. As per you /proc/cpuinfo your system doesn't support AVX instructions. I think, there is nothing to do here. Although, you can try to downgrade your mongo version to 4.4.

@free5gc-org should we document this somewhere ?

Bests,

@minziran
Copy link
Author

Thank you for your reply. I will try it in another machine : )

@free5gc-org
Copy link
Contributor

Update this WARNING in https://github.com/free5gc/free5gc/wiki/Installation

@abousselmi abousselmi mentioned this issue Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants