Docker version, failed observations (RTL V4 and/or HackRF), after changing USB port

Need help (again).
I am running the docker version, installed few months ago, working OK.
I tried to find another USB on the computer, port with less noise. After some tests, the system stopped work.
So, if I have inserted RTL V4 blog and HackRF in computer, but it seems I can see only the HackRF:

yo4dft@marte:~/station-3600$ SoapySDRUtil --find
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

[INFO] [UHD] linux; GNU C++ version 12.2.0; Boost_107400; UHD_4.3.0.0+ds1-5
Found device 0
  default_input = False
  default_output = True
  device_id = 0
  driver = audio
  label = Built-in Audio

Found device 1
  device = HackRF One
  driver = hackrf
  label = HackRF One #0 66a062dc232c3e9f
  part_id = a000cb3c00614f5a
  serial = 000000000000000066a062dc232c3e9f
  version = 2024.02.1

If I use usb reset, the computer say both SDR are inserted:

yo4dft@marte:~/station-3600$ usbreset
Usage:
usbreset PPPP:VVVV - reset by product and vendor id
usbreset BBB/DDD - reset by bus and device number
usbreset “Product” - reset by product name

Devices:
Number 001/005 ID 1a2c:0c23 USB Keyboard
Number 001/008 ID 0bda:2838 Blog V4
Number 001/002 ID 174c:2074 AS2107
Number 001/003 ID 10c4:8108 USB OPTICAL MOUSE
Number 001/006 ID 1d50:6089 HackRF One
Number 002/002 ID 174c:3074 AS2107

If I am running rtl_test, the computer see the RTL V4:
yo4dft@marte:~/station-3600$ rtl_test
Found 1 device(s):
0: RTLSDRBlog, Blog V4, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R828D tuner
RTL-SDR Blog V4 Detected
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
Sampling at 2048000 S/s.

Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.

Reading samples in async mode…
^CSignal caught, exiting!

User cancel, exiting…
Samples per million lost (minimum): 0
yo4dft@marte:~/station-3600$

For SoapySDRUtil, something wrong:

yo4dft@marte:~/station-3600$ SoapySDRUtil --probe=“driver=rtlsdr”
######################################################

Soapy SDR – the SDR abstraction library

######################################################

Probe device driver=rtlsdr
Error probing device: SoapySDR::Device::make() no match
yo4dft@marte:~/station-3600$

When I am loading the HackRF settings, no reception (waterfall, data, etc):

yo4dft@marte:~/station-3600$ docker-compose exec satnogs_client bash
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 705, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 400, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/lib/python3.11/http/client.py”, line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/lib/python3.11/http/client.py”, line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/lib/python3.11/http/client.py”, line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/lib/python3.11/http/client.py”, line 1037, in _send_output
self.send(msg)
File “/usr/lib/python3.11/http/client.py”, line 975, in send
self.connect()
File “/usr/lib/python3/dist-packages/docker/transport/unixconn.py”, line 30, in connect
sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/requests/adapters.py”, line 489, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 789, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/urllib3/util/retry.py”, line 552, in increment
raise six.reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/six.py”, line 718, in reraise
raise value.with_traceback(tb)
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 705, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 400, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/lib/python3.11/http/client.py”, line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/lib/python3.11/http/client.py”, line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/lib/python3.11/http/client.py”, line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/lib/python3.11/http/client.py”, line 1037, in _send_output
self.send(msg)
File “/usr/lib/python3.11/http/client.py”, line 975, in send
self.connect()
File “/usr/lib/python3/dist-packages/docker/transport/unixconn.py”, line 30, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: (‘Connection aborted.’, FileNotFoundError(2, ‘No such file or directory’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 214, in _retrieve_server_version
return self.version(api_version=False)[“ApiVersion”]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/docker/api/daemon.py”, line 181, in version
return self._result(self._get(url), json=True)
^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/docker/utils/decorators.py”, line 46, in inner
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/requests/sessions.py”, line 600, in get
return self.request(“GET”, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/requests/sessions.py”, line 587, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/requests/sessions.py”, line 701, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/requests/adapters.py”, line 547, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, FileNotFoundError(2, ‘No such file or directory’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/docker-compose”, line 33, in
sys.exit(load_entry_point(‘docker-compose==1.29.2’, ‘console_scripts’, ‘docker-compose’)())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/compose/cli/main.py”, line 81, in main
command_func()
File “/usr/lib/python3/dist-packages/compose/cli/main.py”, line 200, in perform_command
project = project_from_options(‘.’, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/compose/cli/command.py”, line 60, in project_from_options
return get_project(
^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/compose/cli/command.py”, line 152, in get_project
client = get_client(
^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/compose/cli/docker_client.py”, line 41, in get_client
client = docker_client(
^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/compose/cli/docker_client.py”, line 170, in docker_client
client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 197, in init
self._version = self._retrieve_server_version()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.’, FileNotFoundError(2, ‘No such file or directory’))
yo4dft@marte:~/station-3600$

I tried to reinstall from step : wget https://github.com/kng/satnogs-client-docker/raw/main/lsf/docker-compose.yml from guide
(satnogs-client-docker/lsf/LSF-GUIDE.md at main · kng/satnogs-client-docker · GitHub), same problems.

Cristian, YO4DFT

Hi Christian,

We are in the middle of the transition and the official SatNOGS client docker solution (with options that aren’t working yet) uses a slightly different setup.

I see you are using the image from @SA2KNG as am I.
Maybe you need to change and or update the image, I am using this one: image: knegge/satnogs-client:lsf-addons

If you want to run command inside the container, like for example SoapySDRUtil --find you need to execute the following:

docker exec <satnogs container name> SoapySDRUtil --find

docker ps can help you in finding the container name.

Jan | PE0SAT

Hi Jan,
Thanks for support, I shall try to update the image, I hope I can manage. After that, I hope I can solve the problem with RTL (I have now the Hackrf settings loaded).

Regards,
Cristian - YO4DFT

You are using the compose file and need to check and or alter the image line.

Then in that directory run:

docker-compose down && docker-compose pull && docker-compose up -d

That should pull the possible new image and start the container.

:frowning_face:
Jan, I hope you remember I dont have any skills in software…
I’ve run something like this:

yo4dft@marte:~/station-3600$ sudo docker pull knegge/satnogs-client:lsf-addons
lsf-addons: Pulling from knegge/satnogs-client
69fb10dc82f9: Already exists
7dc07a6e1511: Already exists
65954c50fbdf: Already exists
7bc5f04405d5: Already exists
cefd4e3903a2: Already exists
56de8aa0ece8: Already exists
8486f1018f50: Already exists
0214244902ae: Pull complete
3bf1c7be382b: Pull complete
c993a87c25c5: Pull complete
0f2513c9e0f1: Pull complete
178e4fae0ed6: Pull complete
4f4fb700ef54: Pull complete
3ddb9e9bb9e2: Pull complete
2dbac82c435d: Pull complete
5c71f73fb6ca: Pull complete
6a31111e7ba8: Pull complete
587dd7251b48: Pull complete
6a147b1717b8: Pull complete
397d4b583d39: Pull complete
Digest: sha256:432c65db414391371ab9c1fc3bce5c32fa43bbd883176fe6888e72b247b9c326
Status: Downloaded newer image for knegge/satnogs-client:lsf-addons
docker.io/knegge/satnogs-client:lsf-addons
yo4dft@marte:~/station-3600$ sudo docker-compose down
Stopping station-3600_satnogs_client_1 ... done
Stopping station-3600_rigctld_1        ... done
Removing station-3600_satnogs_client_1 ... done
Removing station-3600_rigctld_1        ... done
Removing network station-3600_default
yo4dft@marte:~/station-3600$ sudo docker-compose pull
Pulling rigctld        ... done
Pulling satnogs_client ... done
yo4dft@marte:~/station-3600$ sudo docker-compose up -d
Creating network "station-3600_default" with the default driver
Creating station-3600_satnogs_client_1 ... done
Creating station-3600_rigctld_1        ... done

I am sure it was wrong !
Sorry… You are using the compose file and need to check and or alter the image line… how can I do this task ?
Cristian - YO4DFT

I tried again…
y

o4dft@marte:~/station-3600$ sudo docker pull knegge/satnogs-client:lsf-addons
[sudo] password for yo4dft:
lsf-addons: Pulling from knegge/satnogs-client
Digest: sha256:432c65db414391371ab9c1fc3bce5c32fa43bbd883176fe6888e72b247b9c326
Status: Image is up to date for knegge/satnogs-client:lsf-addons
docker.io/knegge/satnogs-client:lsf-addons
yo4dft@marte:~/station-3600$ sudo docker-compose down
Stopping station-3600_satnogs_client_1 ... done
Stopping station-3600_rigctld_1        ... done
Removing station-3600_satnogs_client_1 ... done
Removing station-3600_rigctld_1        ... done
Removing network station-3600_default
yo4dft@marte:~/station-3600$ sudo docker-compose pull
Pulling rigctld        ... done
Pulling satnogs_client ... done
yo4dft@marte:~/station-3600$ sudo docker-compose up -d
Creating network "station-3600_default" with the default driver
Creating station-3600_rigctld_1        ... done
Creating station-3600_satnogs_client_1 ... done
yo4dft@marte:~/station-3600$

I hope will works,

Inside the docker-compose.yml file is an image statement and I tried to tell you to check/alter that line the the docker-compose pull is enough without the knegge/satnogs-client:lsf-addons

I didn’t know this was possible :wink:

OK, understand… :smirk: but, it seems it doesnt work, for the momment…

yo4dft@marte:~/station-3600$ sudo docker-compose pull
[sudo] password for yo4dft:
Pulling rigctld        ... done
Pulling satnogs_client ... done
yo4dft@marte:~/station-3600$ sudo docker-compose down
Stopping station-3600_rigctld_1        ... done
Stopping station-3600_satnogs_client_1 ... done
Removing station-3600_rigctld_1        ... done
Removing station-3600_satnogs_client_1 ... done
Removing network station-3600_default
yo4dft@marte:~/station-3600$ sudo docker-compose pull
Pulling rigctld        ... done
Pulling satnogs_client ... done
yo4dft@marte:~/station-3600$ sudo docker-compose up -d
Creating network "station-3600_default" with the default driver
Creating station-3600_rigctld_1        ... done
Creating station-3600_satnogs_client_1 ... done
yo4dft@marte:~/station-3600$ docker-compose exec satnogs_client bash
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 705, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 400, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.11/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/usr/lib/python3.11/http/client.py", line 975, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/docker/transport/unixconn.py", line 30, in connect
    sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 552, in increment
    raise six.reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 705, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 400, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.11/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/usr/lib/python3.11/http/client.py", line 975, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/docker/transport/unixconn.py", line 30, in connect
    sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
    return self.version(api_version=False)["ApiVersion"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in version
    return self._result(self._get(url), json=True)
                        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 600, in get
    return self.request("GET", url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 547, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
    command_func()
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
    project = project_from_options('.', options)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
    return get_project(
           ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 152, in get_project
    client = get_client(
             ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 41, in get_client
    client = docker_client(
             ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 170, in docker_client
    client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
    self._version = self._retrieve_server_version()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
    raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
yo4dft@marte:~/station-3600$

We need some help from @SA2KNG I hope he has some time, in the meantime, can you share your docker-compose.yml and make sure the API key or other personal information isn’t visible.

OK, let see if I can do this:

yo4dft@marte:~$ cd station-3600
yo4dft@marte:~/station-3600$ nano docker-compose.yml
  GNU nano 7.2                                                                              docker-compose.yml
version: '3.8'
services:

  rigctld:
    image: librespace/hamlib:latest
    user: '999'
    read_only: true
    environment:
      MODEL: '1'
    restart: 'unless-stopped'
    command: 'rigctld'

  satnogs_client:
    image: librespace/satnogs-client:master  # LSF stable docker image
    #image: librespace/satnogs-client:master-unstable  # LSF experimental docker image
    #image: librespace/satnogs-client:lsf-addons  # LSF stable + gr-satellites and addons
    #image: librespace/satnogs-client:lsf-dev-addons  # LSF unstable + gr-satellites and addons
    user: '999'
    read_only: true
    init: true  # init is needed when launching processes in the background
    env_file:
      - ./station.env
    environment:
      SATNOGS_RIG_IP: 'rigctld'
      SATNOGS_RIG_PORT: '4532'
    command: 'satnogs-client'  # default
    device_cgroup_rules:
      - 'c 189:* rwm'
    devices:
      - '/dev/bus/usb'
    volumes:
      - type: 'tmpfs'
        target: '/tmp'
      - type: 'volume'
        source: 'satnogs-client'
        target: '/var/lib/satnogs-client'
    restart: 'unless-stopped'
    stop_grace_period: 1s

volumes:
  satnogs-client:  # persistent named volume for the station

I dont see API keys, or other sensitive data… But it doesnt seems to be like this example SatNOGS librespace docker client with addons · GitHub
there some items missing, its like the settings are not saved from nano station.env
I shall try again to see if it will appear.

Remark: # image: librespace/satnogs-client:master # LSF stable docker image

and add the following image line

image: knegge/satnogs-client:lsf-addons

Then after saving the file run:

docker-compose down && docker-compose pull && docker-compose up -d

If the current user is member of the group docker you don’t need sudo.
group membership can be check with the command id

Understood, thank you. I shall try tommorow evening, now I start the night shift at job.
73, Cristian
TNX

1 Like

It seems it will more work…
I insert HackRF, RTL SDR V4 and a mini RTL SDR…

yo4dft@marte:~$ sudo SoapySDRUtil --find
[sudo] password for yo4dft:
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

[INFO] [UHD] linux; GNU C++ version 12.2.0; Boost_107400; UHD_4.3.0.0+ds1-5

RtApiPulse::DeviceInfo pa_context_connect() failed: Connection refused

Found device 0
  default_input = True
  default_output = True
  device_id = 0
  driver = audio
  label = hw:HDA Intel PCH,0

Found device 1
  default_input = False
  default_output = False
  device_id = 2
  driver = audio

label = hw:HDA Intel PCH,2

yo4dft@marte:~$ cd station-3600
yo4dft@marte:~/station-3600$ sudo SoapySDRUtil --find
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

[INFO] [UHD] linux; GNU C++ version 12.2.0; Boost_107400; UHD_4.3.0.0+ds1-5

RtApiPulse::DeviceInfo pa_context_connect() failed: Connection refused

Found device 0
  default_input = True
  default_output = True
  device_id = 0
  driver = audio
  label = hw:HDA Intel PCH,0

Found device 1
  default_input = False
  default_output = False
  device_id = 2
  driver = audio
  label = hw:HDA Intel PCH,2

I made the modification for yml file:

version: '3.3'
services:

  rigctld:
    image: librespace/hamlib:latest
    user: '999'
    read_only: true
    environment:
      MODEL: '1'
    restart: 'unless-stopped'
    command: 'rigctld'

  satnogs_client:
    image: knegge/satnogs-client:lsf-addons
    #image: librespace/satnogs-client:master  # LSF stable docker image
    #image: librespace/satnogs-client:master-unstable  # LSF experimental docker image
    #image: librespace/satnogs-client:lsf-addons  # LSF stable + gr-satellites and addons
    #image: librespace/satnogs-client:lsf-dev-addons  # LSF unstable + gr-satellites and addons
    user: '999'
    read_only: true
    init: true  # init is needed when launching processes in the background
    env_file:
      - ./station.env
    environment:
      SATNOGS_RIG_IP: 'rigctld'
      SATNOGS_RIG_PORT: '4532'
    command: 'satnogs-client'  # default
    device_cgroup_rules:
      - 'c 189:* rwm'
    devices:
      - '/dev/bus/usb'
    volumes:
      - type: 'tmpfs'
        target: '/tmp'
      - type: 'volume'
        source: 'satnogs-client'
        target: '/var/lib/satnogs-client'
    restart: 'unless-stopped'
    stop_grace_period: 1s

volumes:
  satnogs-client:  # persistent named volume for the station

But I still have errors

yo4dft@marte:~/station-3600$ docker-compose exec satnogs_client bash
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 705, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 400, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.11/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/usr/lib/python3.11/http/client.py", line 975, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/docker/transport/unixconn.py", line 30, in connect
    sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 552, in increment
    raise six.reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 705, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 400, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.11/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/usr/lib/python3.11/http/client.py", line 975, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/docker/transport/unixconn.py", line 30, in connect
    sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
    return self.version(api_version=False)["ApiVersion"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in version
    return self._result(self._get(url), json=True)
                        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 600, in get
    return self.request("GET", url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 547, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
    command_func()
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
    project = project_from_options('.', options)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
    return get_project(
           ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 152, in get_project
    client = get_client(
             ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 41, in get_client
    client = docker_client(
             ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 170, in docker_client
    client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
    self._version = self._retrieve_server_version()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
    raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
yo4dft@marte:~/station-3600$

It looks like I dont have signal from LNA, I disconnect the LNA, checked separate the SDR’"s with GQRX, etc.
something like this:
https://network.satnogs.org/observations/11405976/

Cristian - YO4DFT

That will not work, you need to run the command inside the docker container.

docker exec <container name> SoapySDRUtil --find

You are right…

This needs to be docker exec -ti satnogs_client /bin/bashand assuming the container name is satnogs_client

After this command you can run all the usual commands inside the container.
You will see that the prompt has changed.

Here an example on one of my systems, and keep in mind just an example, my container has another name.

lab@cebreros:~$ docker exec -ti satnogs-1696 /bin/bash

satnogs-client@8ca7ee45d0e4:~$ SoapySDRUtil --find

######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

Found device 0
  default_input = True
  default_output = True
  device_id = 0
  driver = audio
  label = PulseAudio

Found device 1
  driver = rtlsdr
  label = Generic RTL2832U OEM :: 00000775
  manufacturer = Realtek
  product = RTL2838UHIDIR
  serial = 00000775
  tuner = unavailable

Thank you very much, understand now. I change the settings to RTL sdr, but nothing on waterfall. It seems I have more to work. Next days I shall check all sdr on other computer… and LNA with the analyzer…and all the cables and connectors, its something wrong, not only software part.
Thank you for support,
Cristian - YO4DFT

that should be :4.0, it worked until 4.5.4 was released and that became latest.

I don’t recognize those errors thou, requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

can you share the contents of station.env except the API key ?

On the latest observation it looks like the software and settings is working.

1 Like

@SA2KNG and maybe I am mixing up images/configurations. @yo4dft mentioned your git page and therefor I assumed he is/was using your image.

Jan | PE0SAT

Good morning Jan & Daniel,

I am at job now, I shall send you info this evening (station settings, logs, etc.) It seems its OK now, with RTL V4, but is without LNA, only antenna and interdigital filter.

Thank you for support,
Cristian - YO4DFT

1 Like