Simultaneous Clients + gr_satellites

I have two simultaneous clients on RPI4 with 2 RTL_SDRs and they have been working fine without any problems for some time now, I have gr_satellites enabled and it works fine on the first VHF session, while on the second I can’t get it to work. Has anyone had similar experience? I guess it’s because I didn’t configure gr_satellites correctly in the second session, but I don’t receive any errors and I don’t see the pre- and post-observation starting from the logs.
Thank you
pino@ik1jns

Could you please describe how you have done this ? There’s a few different solutions out there.

I try to explain, even if my English is decidedly poor. First of all I installed the 2 clients, checked that everything worked, added gr_satellite and verified that it worked. Then I copied the gr_satellites, JQ programs and libraries and files into the satnogs2 chroot, modified the files in /etc/ansible and etc/default, also adding the correct parameters to satnogs2. The gr_satellites program on client1 is OK, on client2 I get this log file grsat_9333286.log with this error:

Traceback (most recent call last):
File “/usr/local/lib/python3/dist-packages/satellites/init.py”, line 42, in
from .satellites_swig import *
File “/usr/local/lib/python3/dist-packages/satellites/satellites_swig.py”, line 13, in
from . import _satellites_swig
ImportError: libgnuradio-satellites.so.3.20.0git: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/bin/gr_satellites”, line 16, in
import satellites.core
File “/usr/local/lib/python3/dist-packages/satellites/init.py”, line 44, in
from satellites_swig import *
ModuleNotFoundError: No module named ‘satellites_swig’

The client2 log seems to be working:

Apr 08 23:09:24 raspberrypi satnogs-client[29787]: satnogsclient.observer.observer - INFO - Executing pre-observation script.
Apr 08 23:09:24 raspberrypi satnogs-client[685]: gr-satellites: Observation: 9333286, Norad: 43012, Name: CZ-4C_RB, Script: satnogs_fm.py
Apr 08 23:09:24 raspberrypi satnogs-client[685]: gr-satellites: Starting observation 9333286
Apr 08 23:09:25 raspberrypi satnogs-client[685]: gr-satellites: running at 48000 sps
Apr 08 23:09:25 raspberrypi satnogs-client[29787]: satnogsclient.observer.observer - INFO - Start rotctrl thread.
Apr 08 23:09:25 raspberrypi satnogs-client[29787]: satnogsclient.observer.worker - INFO - Tracking initiated
Apr 08 23:09:25 raspberrypi satnogs-client[29787]: satnogsclient.observer.observer - INFO - Start rigctrl thread.
Apr 08 23:09:25 raspberrypi satnogs-client[29787]: satnogsclient.observer.worker - INFO - Tracking initiated
Apr 08 23:09:25 raspberrypi satnogs-client[29787]: rig_init: rig does not have rx_range!!
Apr 08 23:09:25 raspberrypi satnogs-client[29787]: network_open: hoststr=127.0.0.1, portstr=4542
Apr 08 23:09:26 raspberrypi satnogs-client[29787]: satnogsclient.observer.observer - INFO - Start gnuradio thread.
Apr 08 23:09:27 raspberrypi satnogs-client[726]: Found Rafael Micro R820T tuner
Apr 08 23:09:28 raspberrypi satnogs-client[726]: Found Rafael Micro R820T tuner
Apr 08 23:09:28 raspberrypi satnogs-client[726]: [INFO] Opening Generic RTL2832U OEM :: 00000002…
Apr 08 23:09:28 raspberrypi satnogs-client[726]: Found Rafael Micro R820T tuner
Apr 08 23:09:29 raspberrypi satnogs-client[726]: [R82XX] PLL not locked!
Apr 08 23:09:29 raspberrypi satnogs-client[726]: [INFO] Using format CF32.
Apr 08 23:09:29 raspberrypi satnogs-client[726]: Allocating 15 zero-copy buffers
Apr 08 23:18:17 raspberrypi satnogs-client[29787]: satnogsclient.observer.observer - INFO - Tracking stopped.
Apr 08 23:18:17 raspberrypi satnogs-client[29787]: netrigctl_close: done status=Command completed successfully
Apr 08 23:18:18 raspberrypi satnogs-client[29787]: satnogsclient.observer.observer - INFO - Observation Finished
Apr 08 23:18:18 raspberrypi satnogs-client[29787]: satnogsclient.observer.observer - INFO - Executing post-observation script.
Apr 08 23:18:18 raspberrypi satnogs-client[1228]: gr-satellites: Observation: 9333286, Norad: 43012, Name: CZ-4C_RB, Script: satnogs_fm.py
Apr 08 23:18:18 raspberrypi satnogs-client[1228]: gr-satellites: Stopping observation 9333286
Apr 08 23:18:18 raspberrypi satnogs-client[1228]: /usr/local/bin/grsat-wrapper.sh: line 67: kill: (712) - No such process
Apr 08 23:18:18 raspberrypi satnogs-client[29787]: satnogsclient.observer.observer - INFO - Rename encoded file for uploading finished
Apr 08 23:18:18 raspberrypi satnogs-client[29787]: satnogsclient.observer.observer - INFO - Creating waterfall plot.
Apr 08 23:18:18 raspberrypi satnogs-client[29787]: satnogsclient.waterfall - INFO - Reading waterfall file

At the moment I have never been able to decode anything with gr_satellites on client2.

It appears to me that you are doing a whole chroot thing but you missed one python module.

I would simply try to run two instances of the program as two different users.

If I use the same user it works on condition that at main user client1 I run gr_satellites and on client2 I don’t run it, in this case everything works, if I activate gr_satellites on the second one it doesn’t work either. I’ll try to configure with a second user, I tried using docker, but I’m not an expert and it doesn’t seem like I can then enter the container and modify to add the NOAA decoding scripts or anything else with wxtoimg or satdump. Thanks for your help, I’ll do further testing.