Giter Club home page Giter Club logo

docker-open5gs's People

Contributors

borjis131 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-open5gs's Issues

webui

Hi, @Borjis131 .
It was confirmed that the core was operating normally.
I know open5gs provides webui, how can I use webui as a container?

Unable to run open5gs-base.

Hi @Borjis131,

I've cloned the repo, build the docker images but, when I try to boot them up I am stuck at the following error...

$ docker-compose -f compose-files/basic/docker-compose.yaml --env-file=.env up
WARNING: The MONGODB_VERSION variable is not set. Defaulting to a blank string.
WARNING: The OPEN5GS_VERSION variable is not set. Defaulting to a blank string.
WARNING: The UBUNTU_VERSION variable is not set. Defaulting to a blank string.
WARNING: The DOCKER_HOST_IP variable is not set. Defaulting to a blank string.
WARNING: Some services (amf, ausf, bsf, nrf, nssf, pcf, smf, udm, udr, upf) use the 'configs' key, which will be ignored. Compose does not support 'configs' configuration - use `docker stack deploy` to deploy to a swarm.
ERROR: invalid reference format

Any suggestions as to what am I doing wrong?

Thanks!!

Issue finding the docker image.

Hi @Borjis131, I am not able to find the docker image for open5gs. Could you please help? I am trying to install an open5gs docker container and a srsRAN project gNB in a separate container. I am new to docker, I did test open5gs core and srsRAN gNB with COTS UE build from source.

How to enable TLS?

In the /docker-open5gs/configs/basic directory, I modified the no_tls option of the NFs from true to false (modify the .yaml file).

sbi:
server:
no_tls: false

client:
no_tls: false

However, the warning log below is repeated on the core.

image

Do I need to change any other settings?

Error encountered while running docker-open5gs

While running the following command in Ubuntu 22.04 terminal
sudo docker compose -f compose-files/basic/docker-compose.yaml --env-file=.env up -d

Output
Error response from daemon: driver failed programming external connectivity on endpoint upf (6774019c3e494d67d275329c5c03a7fe9682a6cb454b71a82377b8bf7271c2f8): Error starting userland proxy: listen udp4 0.0.0.0:2152: bind: address already in use

i have changed host_IP_address several times with different IP_address values but i have encountered the following above error repeteadly

Open5GS initialization failed. Aborted

Hi @Borjis131 ,

I've built the basic deployment and the docker images are up and running but I am facing the following errors for all the core components...

$ docker-compose -f compose-files/basic/docker-compose.yaml --env-file=/home/amit/docker-open5gs/.env up
WARNING: Some services (amf, ausf, bsf, nrf, nssf, pcf, smf, udm, udr, upf) use the 'configs' key, which will be ignored. Compose does not support 'configs' configuration - use `docker stack deploy` to deploy to a swarm.
WARNING: Volume open5gs_db_data: label "org.open5gs.mongodb_version" has changed. It may need to be recreated.
WARNING: Volume open5gs_db_config: label "org.open5gs.mongodb_version" has changed. It may need to be recreated.
Starting db   ... done
Starting nrf ... done
Starting upf ... done
Starting ausf ... done
Starting amf  ... done
Starting bsf  ... done
Starting nssf ... done
Starting udm  ... done
Starting smf  ... done
Starting udr  ... done
Starting pcf  ... done
Attaching to upf, nrf, db, ausf, amf, nssf, pcf, bsf, udm, udr, smf
ausf    | 10/12 10:54:31.028: [app] FATAL: cannot open file `/open5gs/config/ausf.yaml` (../lib/app/ogs-init.c:171)
ausf    | 10/12 10:54:31.028: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
db      | {"t":{"$date":"2023-10-12T10:54:30.550+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
bsf     | 10/12 10:54:32.027: [app] FATAL: cannot open file `/open5gs/config/bsf.yaml` (../lib/app/ogs-init.c:171)
bsf     | 10/12 10:54:32.027: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
db      | {"t":{"$date":"2023-10-12T10:54:30.551+00:00"},"s":"I",  "c":"NETWORK",  "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true}}}
amf     | 10/12 10:54:31.209: [app] FATAL: cannot open file `/open5gs/config/amf.yaml` (../lib/app/ogs-init.c:171)
amf     | 10/12 10:54:31.209: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
db      | {"t":{"$date":"2023-10-12T10:54:30.551+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
db      | {"t":{"$date":"2023-10-12T10:54:30.552+00:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
db      | {"t":{"$date":"2023-10-12T10:54:30.552+00:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
db      | {"t":{"$date":"2023-10-12T10:54:30.552+00:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
db      | {"t":{"$date":"2023-10-12T10:54:30.552+00:00"},"s":"I",  "c":"CONTROL",  "id":5945603, "ctx":"main","msg":"Multi threading initialized"}
db      | {"t":{"$date":"2023-10-12T10:54:30.552+00:00"},"s":"I",  "c":"CONTROL",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"bad57dde1560"}}
db      | {"t":{"$date":"2023-10-12T10:54:30.552+00:00"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"6.0.10","gitVersion":"8e4b5670df9b9fe814e57cb5f3f8ee9407237b5a","openSSLVersion":"OpenSSL 3.0.2 15 Mar 2022","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2204","distarch":"x86_64","target_arch":"x86_64"}}}}
db      | {"t":{"$date":"2023-10-12T10:54:30.552+00:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"22.04"}}}
db      | {"t":{"$date":"2023-10-12T10:54:30.552+00:00"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"0.0.0.0","port":27017}}}}
ausf exited with code 255
nrf     | 10/12 10:54:30.500: [app] FATAL: cannot open file `/open5gs/config/nrf.yaml` (../lib/app/ogs-init.c:171)
nrf     | 10/12 10:54:30.500: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
nssf    | 10/12 10:54:31.387: [app] FATAL: cannot open file `/open5gs/config/nssf.yaml` (../lib/app/ogs-init.c:171)
nssf    | 10/12 10:54:31.387: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
db      | {"t":{"$date":"2023-10-12T10:54:30.553+00:00"},"s":"I",  "c":"STORAGE",  "id":22270,   "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}}
db      | {"t":{"$date":"2023-10-12T10:54:30.553+00:00"},"s":"I",  "c":"STORAGE",  "id":22297,   "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]}
db      | {"t":{"$date":"2023-10-12T10:54:30.553+00:00"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=15477M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],"}}
nrf exited with code 255
db      | {"t":{"$date":"2023-10-12T10:54:31.126+00:00"},"s":"I",  "c":"STORAGE",  "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":573}}
db      | {"t":{"$date":"2023-10-12T10:54:31.126+00:00"},"s":"I",  "c":"RECOVERY", "id":23987,   "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
amf exited with code 255
bsf exited with code 255
nssf exited with code 255
db      | {"t":{"$date":"2023-10-12T10:54:31.139+00:00"},"s":"W",  "c":"CONTROL",  "id":22120,   "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
db      | {"t":{"$date":"2023-10-12T10:54:31.139+00:00"},"s":"W",  "c":"CONTROL",  "id":5123300, "ctx":"initandlisten","msg":"vm.max_map_count is too low","attr":{"currentValue":65530,"recommendedMinimum":1677720,"maxConns":838860},"tags":["startupWarnings"]}
pcf     | 10/12 10:54:31.665: [app] FATAL: cannot open file `/open5gs/config/pcf.yaml` (../lib/app/ogs-init.c:171)
pcf     | 10/12 10:54:31.665: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
db      | {"t":{"$date":"2023-10-12T10:54:31.140+00:00"},"s":"I",  "c":"NETWORK",  "id":4915702, "ctx":"initandlisten","msg":"Updated wire specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":17,"maxWireVersion":17},"outgoing":{"minWireVersion":17,"maxWireVersion":17},"isInternalClient":true}}}
db      | {"t":{"$date":"2023-10-12T10:54:31.140+00:00"},"s":"I",  "c":"REPL",     "id":5853300, "ctx":"initandlisten","msg":"current featureCompatibilityVersion value","attr":{"featureCompatibilityVersion":"6.0","context":"startup"}}
db      | {"t":{"$date":"2023-10-12T10:54:31.140+00:00"},"s":"I",  "c":"STORAGE",  "id":5071100, "ctx":"initandlisten","msg":"Clearing temp directory"}
smf     | 10/12 10:54:33.407: [app] FATAL: cannot open file `/open5gs/config/smf.yaml` (../lib/app/ogs-init.c:171)
smf     | 10/12 10:54:33.407: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
db      | {"t":{"$date":"2023-10-12T10:54:31.141+00:00"},"s":"I",  "c":"CONTROL",  "id":20536,   "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
db      | {"t":{"$date":"2023-10-12T10:54:31.141+00:00"},"s":"I",  "c":"FTDC",     "id":20625,   "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}}
udm     | 10/12 10:54:32.402: [app] FATAL: cannot open file `/open5gs/config/udm.yaml` (../lib/app/ogs-init.c:171)
udm     | 10/12 10:54:32.402: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
udr     | 10/12 10:54:32.725: [app] FATAL: cannot open file `/open5gs/config/udr.yaml` (../lib/app/ogs-init.c:171)
udr     | 10/12 10:54:32.725: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
db      | {"t":{"$date":"2023-10-12T10:54:31.142+00:00"},"s":"I",  "c":"REPL",     "id":6015317, "ctx":"initandlisten","msg":"Setting new configuration state","attr":{"newState":"ConfigReplicationDisabled","oldState":"ConfigPreStart"}}
db      | {"t":{"$date":"2023-10-12T10:54:31.142+00:00"},"s":"I",  "c":"STORAGE",  "id":22262,   "ctx":"initandlisten","msg":"Timestamp monitor starting"}
udm exited with code 255
upf     | Error: open /open5gs/config/upf.yaml: no such file or directory
upf     | 10/12 10:54:30.479: [app] FATAL: cannot open file `/open5gs/config/upf.yaml` (../lib/app/ogs-init.c:171)
upf     | 10/12 10:54:30.479: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
db      | {"t":{"$date":"2023-10-12T10:54:31.143+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
db      | {"t":{"$date":"2023-10-12T10:54:31.143+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}}
db      | {"t":{"$date":"2023-10-12T10:54:31.143+00:00"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
upf exited with code 255
smf exited with code 255
pcf exited with code 255
udr exited with code 255
udr exited with code 255
pcf exited with code 255
udr     | 10/12 10:54:37.670: [app] FATAL: cannot open file `/open5gs/config/udr.yaml` (../lib/app/ogs-init.c:171)
udr     | 10/12 10:54:37.670: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
udr exited with code 255
pcf exited with code 255
udr     | 10/12 10:54:41.191: [app] FATAL: cannot open file `/open5gs/config/udr.yaml` (../lib/app/ogs-init.c:171)
udr     | 10/12 10:54:41.191: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:210)
udr exited with code 255
pcf exited with code 255
udr exited with code 255
^CGracefully stopping... (press Ctrl+C again to force)
Stopping pcf  ... done
Stopping udr  ... done
Stopping db   ... done

Why are the "yaml" files not readable?

Also, I've the above "yaml" files in docker-open5gs/configs/basic/*.yaml location.

I am not able to figure out why the binaries are looking for the config in other location.

Pls suggest how to proceed ahead!!

Thanks.

About ogstun

Hi, @Borjis131

I'm currently trying to connect with OAI and Open5GS.

I know that in open5gs going back to daemon, you make gtp tunnels through ogstun, but I'm wondering how you can make gtp tunnels in docker-open5gs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.