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

srsRAN looks for wrong path for config files #1389

Open
armin485 opened this issue Sep 22, 2024 · 2 comments
Open

srsRAN looks for wrong path for config files #1389

armin485 opened this issue Sep 22, 2024 · 2 comments

Comments

@armin485
Copy link

Issue Description

Dear srsRAN commity.
First of all I want to thank you for this wonderful project.
I've been installing srsRAN_4G from code with zmq as RF device and it's working great. However, since the applications (EPC, ENB and UE) required to be run with sudo, all of them are trying to read config files in root directory but the build and installation process have been done with my normal user (ubuntu). The typical error I got is:

`ubuntu@zbook:~$ sudo srsepc

Built in Release mode using commit ec29b0c on branch master.

--- Software Radio Systems EPC ---

Couldn't open , trying /root/.config/srsran/epc.conf
Couldn't open /root/.config/srsran/epc.conf either, trying /etc/srsran/epc.conf
Failed to read EPC configuration file /etc/srsran/epc.conf - exiting`

After copying the config files from home directory (ubuntu) into root, it works.

Setup Details

[Specify details of the test setup. This would help us reproduce the problem reliably]
All nework components are running on same machine (my laptop) with zmq as radio transceiver. I've followed official installation and running instruction.

Expected Behavior

sudo srsepc to be run without setting config directories

Actual Behaviour

srsepc, srsenb and srsue all fail to find config files

Steps to reproduce the problem

Installation and building from source including zmp. Follow the official instruction.

@armin485 armin485 changed the title srsRAN looks for wrong path for config files and LD_LIBRARY_PATH is not set by the make install srsRAN looks for wrong path for config files Sep 22, 2024
@rcbarke
Copy link

rcbarke commented Sep 25, 2024

I am running into this same issue with the sRsRAN version documented here. Oddly enough, it seems to be working fine on one of my node VMs, and is broken on my OAIC RIC VM. This is very strange as I followed exactly the same steps in both environments yet my entire /root/.config/srsran directory is missing on the RIC VM. I am going to blow it up and rebuild it, though deploying I'd greatly appreciate an explanation if someone has one. Thanks!
https://openaicellular.github.io/oaic/srsRAN_installation.html

@rcbarke
Copy link

rcbarke commented Sep 25, 2024

Actually, I spoke too soon. I have no clue why this happened, but the config files are present on my machine, they're just located within my home directory and not root directory.

To fix:
sudo -i
mkdir .config
cp -r ~/.config/* /root/.config/

Then verify that the below returns files (ex: enb.conf):
sudo ls -la /root/.config/srsran/

Weird bug.

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