Skip to content

docker compose controller up failed from build and for pull for baremetal rtue setup #92

@mfuentesg2021

Description

@mfuentesg2021

Hi I am trying to set up the environments with either from baremetal installation or using the docker rtue. So far I have attached the baremetal ue to a zmq based srs gnb and obtained an ip allocated from the Open5gs core and being able to ping to the core. When trying to integrate the docker image to launch any attack I am failing to setup the controller. I tested the docker compose up controller, in both modes using the pulled images and also building, but I failed to obtain a successful setup. My understanding is that I require the rtue with config configs/zmq/ue_zmq.conf to achieve this. Can you confirm this is the correct file to point to or if there a sucessful log to compare and find where I am failing.

For the setup using the pulled images locally I modified the ENV to build rtue with config configs/zmq/ue_zmq.conf, but when setting up the image, after building it, it is still launching the configs/zmq/ue_zmq_docker.conf, there is also an error on binding the ports : even though they are free to use for this purpose, following the error initializing radio as follows:

Attaching to controller-1
controller-1  | 2025-03-13 16:56:13 - DEBUG - Trying paths: ['/root/.docker/config.json', '/root/.dockercfg']
controller-1  | 2025-03-13 16:56:13 - DEBUG - Found file at path: /root/.docker/config.json
controller-1  | 2025-03-13 16:56:13 - DEBUG - Found 'auths' section
controller-1  | 2025-03-13 16:56:13 - DEBUG - Found entry (registry='https://index.docker.io/v1/', username='mfuentesg@pucp.pe')
controller-1  | 2025-03-13 16:56:13 - DEBUG - rtue container initialized: rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862
controller-1  | 2025-03-13 16:56:13 - DEBUG - [<Container: 8328c4f9fa5b>]
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: Active RF plugins: libsrsran_rf_uhd.so libsrsran_rf_zmq.so
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: Inactive RF plugins:
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: Reading configuration file configs/zmq/ue_zmq_docker.conf...
controller-1  | 2025-03-13 16:56:13 - INFO - Backing up infludb with command: influx query 'from(bucket: \"rtusystem\") |> range(start: -1d)' --raw > /tmp/host/test//backup.csv
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: 
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: Built in Release mode using 23.04.0.
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: 
controller-1  | 2025-03-13 16:56:13 - ERROR - Failed to create CSV backup: Error: must specify org ID or org name
controller-1  | 
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: Opening 1 channels in RF device=zmq with args=tx_port=tcp://172.22.0.2:2001,rx_port=tcp://172.22.0.1:2000,base_srate=23.04e6
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: Error: binding transmitter socket (tcp://172.22.0.2:2001): Cannot assign requested address
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: [zmq] Error: opening transmitter
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: Supported RF device list: UHD zmq file
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: CHx base_srate=23.04e6
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: CH0 rx_port=tcp://172.22.0.1:2000
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: CH0 tx_port=tcp://172.22.0.2:2001
controller-1  | 2025-03-13 16:56:13 - DEBUG - [rtue_ac43ed2e-548b-4b9b-8e39-e828c3ac8862]: Error initializing radio.
Gracefully stopping... (press Ctrl+C again to force)

From the local build I see a continuous error "not found rtue image", even it has already been previously built. I tested default main docker compose built and successfully created image locally: ghcr.io/oran-testing/rtue after modifying some config files, failing in both cases.

 controller-1  | 2025-03-12 17:28:43 - DEBUG - Trying paths: ['/root/.docker/config.json', '/root/.dockercfg']
controller-1  | 2025-03-12 17:28:43 - DEBUG - Found file at path: /root/.docker/config.json
controller-1  | 2025-03-12 17:28:43 - DEBUG - Found 'auths' section
controller-1  | 2025-03-12 17:28:43 - DEBUG - Found entry (registry='https://index.docker.io/v1/', username='mfuentesg@pucp.pe')
controller-1  | 2025-03-12 17:28:44 - ERROR - Image ghcr.io/oran-testing/rtue not found locally.
controller-1  | Traceback (most recent call last):
controller-1  |   File "/app/main.py", line 186, in <module>
controller-1  |     process_metadata = start_subprocess_threads()
controller-1  |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
controller-1  |   File "/app/main.py", line 121, in start_subprocess_threads
controller-1  |     process_handle.start(
controller-1  |   File "/app/rtue_worker_thread.py", line 44, in start
controller-1  |     raise RuntimeError(f"Required Docker image {self.image_name} not found")
controller-1  | RuntimeError: Required Docker image ghcr.io/oran-testing/rtue not found
controller-1 exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions