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

Error running make test #1303

Open
raul-parada opened this issue Mar 18, 2024 · 7 comments
Open

Error running make test #1303

raul-parada opened this issue Mar 18, 2024 · 7 comments

Comments

@raul-parada
Copy link

raul-parada commented Mar 18, 2024

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.

@pgawlowicz
Copy link
Contributor

Could you provide gnb and srsUE logs?

@raul-parada
Copy link
Author

Please, tell me how to get them.

@pgawlowicz
Copy link
Contributor

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.

@raul-parada
Copy link
Author

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

@pgawlowicz
Copy link
Contributor

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

@raul-parada
Copy link
Author

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.

@pgawlowicz
Copy link
Contributor

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

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

2 participants