5G-MAG / rt-mbms-modem

MBMS - Modem
https://www.5g-mag.com/5gbroadcast
GNU Affero General Public License v3.0
15 stars 12 forks source link

5gmag-rt-modem.service can't find bladerf #27

Closed FMPandolfi closed 2 years ago

FMPandolfi commented 2 years ago

Describe the bug On Ubuntu 20.04, when starting the modem as a daemon, it prompts an error saying bladerf_open_with_devinfo() returned -7 - No device(s) available. The modem service does not work properly and nothing is displayed in the wui. fivegmag-rt is already in the sudoers list and the command sudo setcap 'cap_sys_nice=eip' usr/local/bin/modem was prompted as well. If modem is run through the command line, though, everything works as intended.

To Reproduce Steps to reproduce the behavior:

  1. Run 'sudo systemctl start 5gmag-rt-modem.service'

Expected behavior Modem can find bladerf SDR and start as intended.

Screenshots Screenshot from 2022-02-09 15-11-52

Desktop (please complete the following information):

Additional context Intel NUC10 i7, BladeRF.

FMPandolfi commented 2 years ago

Screenshot from 2022-02-09 15-11-52

dsilhavy commented 2 years ago

@FMPandolfi Please check the troubleshooting guide here: https://github.com/5G-MAG/Documentation-and-Architecture/wiki/MBMS-Modem#troubleshooting-insufficient-permissions-when-trying-to-open-sdr

Try adding your username and group and launch the process again

dsilhavy commented 2 years ago

Closing this for now, please comment if you still encounter the problem