srsRAN_4G icon indicating copy to clipboard operation
srsRAN_4G copied to clipboard

Error running make test

Open raul-parada opened this issue 11 months ago • 7 comments

When running make test from the latest version, it didn't pass the whole suite of tests:

image

I'm using this tutorial: https://docs.srsran.com/projects/project/en/latest/tutorials/source/srsUE/source/index.html#multi-ue-emulation

Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy

While running docker-5gc correctly, I'll try to run the gNB I got this error:

user@pc:~/srsRAN_Project/build/apps/gnb$ sudo ./gnb -c gnb_zmq.yaml

The PRACH detector will not meet the performance requirements with the configuration {Format 0, ZCZ 0, SCS 1.25kHz, Rx ports 1}.
Lower PHY in executor blocking mode.

--== srsRAN gNB (commit 4d9f22329) ==--

Connecting to AMF on 10.53.1.2:38412
Available radio types: zmq.
srsGNB ERROR: Unable to create radio session.

I don't know if it is correlated.

raul-parada avatar Mar 18 '24 14:03 raul-parada

Could you provide gnb and srsUE logs?

pgawlowicz avatar Mar 22 '24 09:03 pgawlowicz

Please, tell me how to get them.

raul-parada avatar Mar 22 '24 09:03 raul-parada

They are located at /tmp/gnb.log, and /tmp.ueX.log

Could you try running this command in the srsRAN-4G build directory:

./lib/src/radio/test/benchmark_radio -d zmq -a "tx_port=tcp://*:2000,rx_port=tcp://localhost:2000,tx_port=tcp://*:2001,rx_port=tcp://localhost:2001,tx_port=tcp://*:2002,rx_port=tcp://localhost:2002,tx_port=tcp://*:2003,rx_port=tcp://localhost:2003" -p 4 -g 100

and post its output here.

pgawlowicz avatar Mar 22 '24 09:03 pgawlowicz

They are located at /tmp/gnb.log, and /tmp.ueX.log

Could you try running this command in the srsRAN-4G build directory:

./lib/src/radio/test/benchmark_radio -d zmq -a "tx_port=tcp://*:2000,rx_port=tcp://localhost:2000,tx_port=tcp://*:2001,rx_port=tcp://localhost:2001,tx_port=tcp://*:2002,rx_port=tcp://localhost:2002,tx_port=tcp://*:2003,rx_port=tcp://localhost:2003" -p 4 -g 100

and post its output here.

Active RF plugins: libsrsran_rf_zmq.so Inactive RF plugins: Instantiating objects and allocating memory... Initialising instances... Opening 4 channels in RF device=zmq with args=tx_port=tcp://:2000,rx_port=tcp:/ /localhost:2000,tx_port=tcp://:2001,rx_port=tcp://localhost:2001,tx_port=tcp:// :2002,rx_port=tcp://localhost:2002,tx_port=tcp://:2003,rx_port=tcp://localhost :2003 Supported RF device list: zmq file Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation) CH0 rx_port=tcp://localhost:2000 CH0 tx_port=tcp://:2000 Error: binding transmitter socket (tcp://:2000): Address already in use [zmq] Error: opening transmitter Error: Calling radio_multi constructor Tearing down... Failed! gnb.log ue.log

raul-parada avatar Mar 22 '24 09:03 raul-parada

It seems that some active process is already using the socket. Please kill the process and try again. You can find out the process ID with:

sudo netstat -nlp | grep 2000

pgawlowicz avatar Mar 22 '24 09:03 pgawlowicz

It seems that some active process is already using the socket. Please kill the process and try again. You can find out the process ID with:

sudo netstat -nlp | grep 2000

is it possible to change the port of gNB (2000) for another one? another required software is using it.

raul-parada avatar Mar 22 '24 15:03 raul-parada

Sure, you can set any port you want. You have to change the port number in the srsgnb config and also in gnuradio-compantion.

pgawlowicz avatar Mar 22 '24 15:03 pgawlowicz